Index...
[gcc.git] / gcc / ChangeLog
1 2012-05-23 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/53438
4 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
5
6 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
7
8 PR target/53448
9 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
10 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
11 ASM_OUTPUT_ALIGN.
12
13 2012-05-23 Richard Guenther <rguenther@suse.de>
14
15 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
16 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
17 via the global_unused_vars bitmap.
18 (remove_unused_locals): Handle global vars in local-decls via
19 a global_unused_vars bitmap instead of the used flag in the
20 var annotation. Simplify global variable handling and removal.
21
22 2012-05-22 Jan Hubicka <jh@suse.cz>
23
24 PR middle-end/53426
25 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
26 from other partitions.
27
28 2012-05-22 Jan Hubicka <jh@suse.cz>
29
30 PR middle-end/53161
31 * symtab.c (symtab_register_node): Fix ordering issue.
32
33 2012-05-22 Steven Drake <sbd@NetBSD.org>
34
35 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
36
37 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
38
39 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
40 Use strip_name_encoding target hook.
41
42 2012-05-22 Richard Guenther <rguenther@suse.de>
43
44 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
45 (init_function_for_compilation): Remove.
46 * tree-dfa.c (find_vars_r): Take struct function argument.
47 (find_referenced_vars_in): Adjust.
48 * tree-ssa-operands.c (clobber_stats): Remove.
49 (create_vop_var): Take struct function argument. Mark
50 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
51 (init_ssa_operands): Take struct function argument.
52 (fini_ssa_operands): Do not dump dead stats.
53 * tree-ssa-operands.h (init_ssa_operands): Take struct function
54 argument.
55 * cgraphunit.c (init_lowered_empty_function): Adjust.
56 * lto-streamer-in.c (input_cfg): Likewise.
57 * tree-inline.c (initialize_cfun): Likewise.
58 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
59 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching
60 cfun.
61 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
62 virtual operands are not registers.
63
64 2012-05-22 Richard Guenther <rguenther@suse.de>
65
66 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous
67 commit.
68
69 2012-05-22 Richard Guenther <rguenther@suse.de>
70
71 PR middle-end/53437
72 * tree-inline.c (setup_one_parameter): Create a dummy init
73 statement for unused parameters when not optimizing.
74
75 2012-05-22 Richard Guenther <rguenther@suse.de>
76
77 * tree-flow.h (add_referenced_var_1): Declare.
78 (add_referenced_var): Define.
79 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash
80 lookup.
81 (add_referenced_var): Rename to ...
82 (add_referenced_var_1): ... this. Take struct function argument.
83
84 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
85
86 PR target/53334
87 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
88 * config/arm/arm.c (arm_validize_comparison): Define.
89 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
90 arm_validize_comparison.
91 ("cbranchdi4"): Likewise.
92 ("cstoredi4"): Likewise.
93 ("movsicc"): Likewise.
94 ("movsfcc"): Likewise.
95 ("movdfcc"): Likewise.
96
97 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
98
99 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
100 the mw_reg_pool size.
101
102 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
103
104 PR tree-optimization/53336
105 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
106 non-integer integral types to offset type and vice versa.
107
108 2012-05-22 Alan Modra <amodra@gmail.com>
109
110 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
111 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
112 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
113 V_SAVE_INLINE): Delete.
114 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
115 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
116 For ELF targets, use out-of-line restores for -Os and any number
117 of regs if the restore exits, and out-of-line gp save for two or
118 more regs. Use save_reg_p to test for holes in reg restore set.
119 Replace "#if" with "if".
120
121 2012-05-22 Alan Modra <amodra@gmail.com>
122
123 * config/rs6000/rs6000.c (save_reg_p): New function.
124 (first_reg_to_save, first_fp_reg_to_save): Use it here.
125 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
126 (emit_frame_save): Use gen_frame_store.
127 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
128 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
129 vrsave and toc.
130 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
131 vrsave, toc, gp and fp restores.
132
133 2012-05-22 Alan Modra <amodra@gmail.com>
134
135 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
136 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
137 Move function pointer variables after forward declarations.
138 (rs6000_builtin_support_vector_misalignment): Make static.
139 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
140 (rs6000_function_value, rs6000_can_eliminate): Likewise.
141
142 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
143
144 PR rtl-optimization/53373
145 * caller-save.c (save_call_clobbered_regs): Look into a possible
146 PARALLEL manually rather than using single_set on a call insn.
147
148 2012-05-21 Jakub Jelinek <jakub@redhat.com>
149
150 PR tree-optimization/53436
151 * omp-low.c (omp_build_component_ref): New function.
152 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
153
154 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
155
156 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
157 arguments to bool.
158 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
159 Do not print '.' here. Output operand lossage error for unhandled
160 sizes. Move.
161 <case '*'>: Move.
162 <case '&'>: Ditto.
163 <case 'Y'>: Ditto.
164 <case 'z'>: Hardcode "code" argument into error strings.
165 <case 'Z'>: Ditto.
166 <case 'D'>: Merge AVX and non-AVX codes.
167 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
168 Update call to put_condition_code.
169
170 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
171
172 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
173 CC_STATUS_INIT.
174 (clzsi2): New expander.
175 (*clzsi2_68k): New insn.
176 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
177
178 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
179
180 * gimple.h (gimple_set_in_transaction): Remove.
181 (gimple_in_transaction): Look in BB instead.
182 (gimple_statement_base): Remove in_transaction field.
183 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
184 * trans-mem.c (compute_transaction_bits): Place transaction bit
185 information into basic blocks.
186
187 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
188
189 * expr.c (get_def_for_expr_class): Define only if
190 HAVE_conditional_move.
191 (convert_tree_comp_to_rtx): Likewise.
192
193 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
194
195 PR target/53399
196 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
197 for TARGET_BMI.
198 (ffssi2_no_cmove): Ditto.
199 (*ffs<mode>_1): Remove insn pattern.
200 (*tzcnt<mode>_1): New insn pattern.
201 (*bsf<mode>1): Ditto.
202
203 2012-05-21 Richard Guenther <rguenther@suse.de>
204
205 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
206 more referenced vars.
207 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
208 flag on variables that have a var-annotation.
209
210 2012-05-21 Joseph Myers <joseph@codesourcery.com>
211
212 PR c/53418
213 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
214 from folded operands before wrapping another around the
215 conditional expression.
216
217 2012-05-21 Jakub Jelinek <jakub@redhat.com>
218
219 PR tree-optimization/53366
220 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
221 tests if complex_numbers == 2, but there are non-complex number loads
222 too.
223
224 PR tree-optimization/53409
225 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
226 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
227
228 PR tree-optimization/53410
229 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
230 instead of build_int_cst (type, 0) where vector types might be
231 involved. Instead of build_int_cst (type, 1) convert the original
232 integer_onep argument to the desired type.
233
234 2012-05-21 Michael Matz <matz@suse.de>
235
236 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
237 (simplify_test_exp): Handle one more case of distributive law,
238 decrease cost threshold.
239 (tests_attr_p, get_attr_order): New functions.
240 (optimize_attrs): Use topological order, inline only cheap values.
241 (write_attr_set): Reset our_known_true after some time.
242
243 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
244
245 PR target/53425
246 * config/i386/i386.c (type_natural_mode): Warn passing SSE
247 vector argument without SSE enabled changes the ABI.
248
249 2012-05-21 Richard Guenther <rguenther@suse.de>
250
251 PR tree-optimization/53408
252 * tree-vect-loop.c (vectorizable_induction): Properly check
253 the restriction that we cannot handle induction results from
254 the inner loop outside of the outer loop.
255
256 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
257
258 PR target/53416
259 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
260 (UNSPECV_RDRAND): This.
261 (rdrand<mode>_1): Updated.
262
263 2012-05-21 Richard Guenther <rguenther@suse.de>
264
265 * tree-loop-distribution.c (can_generate_builtin): Reject
266 volatile stmts.
267
268 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
269
270 * Makefile.in (options.c): Add options.h to included header
271 files, before tm.h.
272
273 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
274
275 * tree-parloops.c : Add myself to contributors, update
276 TODO list, add link to wiki.
277
278 2012-05-21 Alan Modra <amodra@gmail.com>
279
280 * config/rs6000/predicates.md (input_operand): Don't match
281 constant pool addresses. Remove label_ref, high and plus from
282 match_code list. Remove redundant CONSTANT_P test.
283 (splat_input_operand): Similarly update match_code list.
284 (small_toc_ref): New predicate.
285 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
286 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
287 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
288 register checks to..
289 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
290 generated by create_TOC_reference.
291 (rs6000_legitimize_address): Update cerate_TOC_reference call.
292 (rs6000_delegitimize_address): Handle new rtl for toc refs.
293 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
294 (use_toc_relative_ref): New function, split out from..
295 (rs6000_emit_move): ..here. Remove redundant tests. Update
296 create_TOC_reference calls.
297 (rs6000_legitimize_reload_address): Formatting. Handle splitting
298 of medium/large model toc addresses. Use use_toc_relative_ref.
299 (print_operand): Formatting, style. Adjust for toc changes.
300 (print_operand_address): Likewise.
301 (rs6000_output_addr_const_extra): Likewise.
302 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
303 than a PLUS. Use this formulation for both high and low part
304 of -mcmodel=medium/large toc reference too. Before reload,
305 always use the small model formulation.
306 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
307 a PLUS in high part of addresses here.
308 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
309 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
310 (largetoc_high, largetoc_low): Move earlier. Cope when no
311 base reg available.
312 (largetoc_high_plus): New insn.
313 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
314 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
315 (tocref): ..instead do so here, new insn and split.
316
317 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
318
319 * config/i386/driver-i386.c (host_detect_local_cpu): Support
320 RDRND, F16C and FSGSBASE.
321
322 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
323
324 PR rtl-optimzation/53373
325 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
326 call pattern. Update split patterns.
327 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
328 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
329
330 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
331
332 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
333 for outer loops.
334
335 2012-05-18 Jan Hubicka <jh@suse.cz>
336
337 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
338 (cgraph_process_new_functions): Process also aliases.
339 * lto-streamer-out.c (struct sets): Remove.
340 (trivally_defined_alias): Remove.
341 (output_alias_pair_p): Remove.
342 (output_unreferenced_globals): Remove.
343 (produce_symtab); Do not handle alias pairs.
344 (produce_asm_for_decls): Likewise.
345 * lto-streamer-in.c (input_alias_pairs): Remove.
346 (lto_read_body): Do not input alias pairs.
347 (lto_input_constructors_and_inits): Remove.
348
349 2012-05-18 Jan Hubicka <jh@suse.cz>
350
351 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
352 aliases.
353
354 2012-05-18 Jan Hubicka <jh@suse.cz>
355
356 * cgraphbuild.c (record_reference): Update.
357 * lto-cgraph.c (lto_output_varpool_node): External vars
358 are not in other partition even if they are not output
359 in current partition.
360 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
361 argument; fix.
362 (canonicalize_constructor_val): Take FROM_DECL argument.
363 (fold_ctor_reference, fold_string_cst_ctor_reference,
364 fold_array_ctor_reference, fold_nonarray_ctor_reference,
365 fold_ctor_reference): Likewise.
366 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
367 * gimple.h (gimple_fold_builtin): Likewise.
368
369 2012-05-18 Olivier Hainque <hainque@adacore.com>
370
371 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
372 $(libsubdir) as libexecsubdir.
373
374 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
375
376 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
377 relied on signed overflow behavior.
378
379 2012-05-18 Richard Guenther <rguenther@suse.de>
380
381 PR tree-optimization/53346
382 * tree-loop-distribution.c (ldist_gen): Make sure to apply
383 builtin transform even when only a single partition with
384 all reads/writes exists.
385
386 2012-05-18 Richard Guenther <rguenther@suse.de>
387
388 PR tree-optimization/53390
389 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
390 strided loads.
391
392 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
393
394 * tree-ssa-reassoc.c (bip_map): Remove decl.
395 (completely_remove_stmt): Remove function.
396 (remove_def_if_absorbed_call): Remove function.
397 (remove_visited_stmt_chain): Remove __builtin_powi handling.
398 (possibly_move_powi): Remove function.
399 (rewrite_expr_tree): Remove calls to possibly_move_powi.
400 (rewrite_expr_tree_parallel): Likewise.
401 (attempt_builtin_powi): Build multiplies explicitly rather than
402 relying on the ops vector and rank system.
403 (transform_stmt_to_copy): New function.
404 (transform_stmt_to_multiply): Likewise.
405 (reassociate_bb): Handle leftover operations after __builtin_powi
406 optimization; build a final multiply if necessary.
407
408 2012-05-18 Jan Hubicka <jh@suse.cz>
409
410 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
411 (mark_functions_to_output): Fix sanity check.
412 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
413
414 2012-05-18 Richard Guenther <rguenther@suse.de>
415
416 * tree-flow.h (mark_symbols_for_renaming): Remove.
417 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
418 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
419 (copy_debug_stmt): Likewise.
420 (expand_call_inline): Likewise.
421 (declare_return_variable): Mark the return variable for renaming
422 if necessary.
423
424 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
425
426 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
427 prototype.
428 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
429 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
430 (ashrdi3,lshrdi3): Likewise.
431 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
432
433 2012-05-18 Meador Inge <meadori@codesourcery.com>
434
435 PR rtl-optimization/53352
436 * cse.c (equiv_constant): Ignore paradoxical subregs.
437
438 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
439
440 PR rtl-optimization/53125
441 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
442 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
443 die in the basic block. Correctly top off REG_FREQ and
444 REG_FREQ_CALLS_CROSSED.
445 Remove do_not_gen.
446 (regstat_compute_ri): Allocate and free local_live_last_luid.
447 Remove do_not_gen.
448 (regstat_bb_compute_calls_crossed): Correctly top off
449 REG_FREQ_CALLS_CROSSED.
450
451 2012-05-17 Jan Hubicka <jh@suse.cz>
452
453 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
454 constructor over decl without.
455 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
456 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
457 * cgraphunit.c (process_function_and_variable_attributes): Finalize
458 extrnal decls.
459 (mark_functions_to_output): Also accept bodies for functions with
460 clones.
461 (output_in_order): Skip external vars.
462 * lto-cgraph.c (lto_output_node): External functions are never in other
463 partition.
464 (lto_output_varpool_node): Likewise.
465 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
466 forgotten initializers.
467 * ipa.c (process_references): Handle external vars.
468 (symtab_remove_unreachable_nodes): Update to handle external vars.
469 (varpool_externally_visible_p): External vars are externally visible.
470 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
471 * varpool.c (varpool_remove_node): Remove constructor.
472 (decide_is_variable_needed): Handle externals.
473 (varpool_remove_unreferenced_decls): Likewise.
474
475 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
476
477 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
478 (enable_warning_as_error): Do not special case Wuninitialized.
479 * optc-gen.awk: Add sanity checks.
480
481 2012-05-17 Jan Hubicka <jh@suse.cz>
482
483 * ipa-reference.c (is_proper_for_analysis): Do not check flags
484 that might change as result of global optimization.
485 (analyze_function): Do not check analyzed and externally_visible
486 flags; be happy about address dereferences.
487 (propagate): Prune all_module_statics so it really contains just
488 statics; prune all the local summaries.
489 (ipa_reference_write_optimization_summary): Simplify.
490
491 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
492
493 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
494 * config/m68k/m68k-tables.opt: Regenerated.
495 * doc/invoke.texi (M680x0 Options): Document.
496
497 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
498 Patrick Marlier <patrick.marlier@gmail.com>
499
500 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
501 indirect calls.
502
503 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
504
505 * configure: Regenerated.
506
507 2012-05-16 Andrew Pinski <apinski@cavium.com>
508
509 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
510 GIMPLE_ASSIGN.
511
512 2012-05-16 David S. Miller <davem@davemloft.net>
513
514 * jump.c (delete_related_insns): If we remove a CALL, make sure
515 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
516
517 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
518
519 PR tree-optimization/53217
520 * tree-ssa-reassoc.c (bip_map): New static variable.
521 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
522 (attempt_builtin_powi): Save feeding multiplies on a stack.
523 (reassociate_bb): Create and destroy bip_map.
524
525 2012-05-16 Olivier Hainque <hainque@adacore.com>
526
527 * Makefile.in (install-no-fixedincludes): New target, former toplevel
528 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
529 Add comments and improve stamp preservation across the whole sequence.
530 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
531
532 2012-05-16 Richard Guenther <rguenther@suse.de>
533
534 * tree-inline.c (insert_init_stmt): Do not call
535 mark_symbols_for_renaming.
536 (setup_one_parameter): Avoid initializing unused parameters.
537 (declare_return_variable): Properly handle DECL_BY_REFERENCE
538 return vars in SSA form.
539
540 2012-05-16 Richard Guenther <rguenther@suse.de>
541
542 * tree-flow.h (get_virtual_var): Remove.
543 * tree-dfa.c (get_virtual_var): Likewise.
544
545 2012-05-16 Richard Guenther <rguenther@suse.de>
546
547 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
548 Remove set-only bitmap of new names.
549 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
550 CFG hooks.
551 * tree-flow.h (ssa_names_to_replace): Remove.
552 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
553
554 2012-05-16 Richard Guenther <rguenther@suse.de>
555
556 PR tree-optimization/53364
557 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
558 detect a view-conversion of the decl.
559
560 2012-05-16 Dodji Seketeli <dodji@redhat.com>
561
562 PR preprocessor/7263
563 * c-tree.h (enum c_declspec_word): Declare new enum.
564 (struct c_declspecs::locations): New member.
565 (declspecs_add_qual, declspecs_add_scspec)
566 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
567 location parameter.
568 * c-decl.c (build_null_declspecs): Initialize the new struct
569 c_declspecs::locations member.
570 (declspecs_add_addrspace): Take a location parameter for the
571 address space. Store it onto declaration specifiers.
572 (declspecs_add_qual): Likewise, take a location parameter for the
573 qualifier.
574 (declspecs_add_type): Likewise, take a location parameter for the
575 type specifier.
576 (declspecs_add_scspec): Likewise, take a location parameter for
577 the storage class specifier.
578 (declspecs_add_attrs): Likewise, take a location parameter for the
579 first attribute.
580 (declspecs_add_alignas): Likewise, take a location parameter for
581 the alignas token.
582 (finish_declspecs): For diagnostics, use the location of the
583 relevant declspec, instead of the global input_location.
584 * c-parser.c (c_parser_parameter_declaration): Pass the precise
585 virtual location of the declspec to the declspecs-setters.
586 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
587 repeatedly.
588
589 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
590
591 * configure.ac: Stack protector enabling for Android targets.
592 * configure: Regenerate.
593
594 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
595
596 * ira.c (pseudo_move_insn): Delete.
597 (find_moveable_pseudos): Don't set it.
598 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
599 the definitions of the original pseudo. Delete all of them.
600
601 2012-05-16 Olivier Hainque <hainque@adacore.com>
602
603 * config/rs6000/rs6000-opts.h (enum processor_type): Add
604 PROCESSOR_PPC8548.
605 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
606 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
607 * config/rs6000/8540.md: indicate that the units/patterns apply to
608 ppc8548 as well.
609
610 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
611 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
612 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
613 related flags, check that what is queried is supported by the selected
614 configuration. Rework the single/double_float and MASK_STRING resets to
615 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
616 costs for PROCESSOR_PPC8548 as well.
617 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
618 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
619 statement instead of a sequence of ifs.
620
621 * config/rs6000/rs6000.h (TARGET_E500): Remove.
622 (TARGET_NO_LWSYNC): Adjust accordingly.
623 * config/rs6000/e500.h (TARGET_E500): Remove.
624 (CHECK_E500_OPTIONS): Adjust accordingly.
625 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
626 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
627 * config/rs6000/linuxspe.h: Likewise.
628 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
629 superfluous comments.
630 * config/rs6000/e500-double.h: Remove.
631
632 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
633 default to with_cpu=8548 if --enable-e500-double, and to 8540
634 otherwise.
635 (set misc flags section): For powerpc*|rs6000*, remove inclusion
636 of e500-double.h for --enable-e500-double.
637
638 2012-05-16 Olivier Hainque <hainque@adacore.com>
639
640 * Makefile.in (s-header-vars): Resort to -n instead of trailing
641 -e d in sed invocation.
642
643 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
644
645 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
646 source-code.
647 * doc/tm.texi: Regenerate.
648
649 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
650
651 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
652
653 2012-05-15 Jakub Jelinek <jakub@redhat.com>
654
655 PR target/53358
656 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
657 that operands[2] is either immediate, or q_regs_operand.
658
659 2012-05-15 Richard Guenther <rguenther@suse.de>
660
661 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
662 (assemble_thunk): Likewise. Manually rename and register
663 function arguments.
664
665 2012-05-15 Richard Guenther <rguenther@suse.de>
666
667 PR tree-optimization/53355
668 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
669 by constants.
670
671 2012-05-15 Tristan Gingold <gingold@adacore.com>
672
673 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
674
675 2012-05-15 Richard Guenther <rguenther@suse.de>
676
677 * gimple.c (gimple_set_modified): Move ...
678 * gimple.h (gimple_set_modified): ... here.
679
680 2012-05-15 Tristan Gingold <gingold@adacore.com>
681
682 * ira-color.c (move_spill_restore): Add a guard.
683
684 2012-05-15 Tristan Gingold <gingold@adacore.com>
685
686 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
687 plus_constant.
688
689 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
690
691 * gimplify.c (gimplify_init_constructor): Do a block move for very
692 small objects as well.
693
694 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
695
696 * ira.c (find_moveable_pseudos): Skip registers whose
697 DF_REG_EQ_USE_COUNT is nonzero.
698
699 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
700
701 * doc/md.texi (fma): Define to only be applicable for single rounding.
702
703 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
704
705 PR target/46098
706 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
707 generate target register for "load" class builtins.
708
709 Revert:
710 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
711
712 PR target/46098
713 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
714 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
715 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
716 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
717 (<sse>_movu<ssemodesuffix>): New expander.
718 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
719 (avx_movdqu<avxmodesuffix>): New expander.
720 (*sse2_movdqu): Rename from sse2_movdqu.
721 (sse2_movdqu): New expander.
722
723 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
724
725 PR target/52607
726 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
727 (canonicalize_perm): ... new function.
728 (expand_vec_perm_2vperm2f128_vshuf): New function.
729 (ix86_expand_vec_perm_const_1): Call it.
730
731 2012-05-14 Andrew Pinski <apinski@cavium.com>
732 H.J. Lu <hongjiu.lu@intel.com>
733 Jakub Jelinek <jakub@redhat.com>
734
735 PR target/53315
736 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
737 (xbegin): Updated.
738
739 2012-05-14 Jakub Jelinek <jakub@redhat.com>
740
741 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
742 lineno 1 the same as lineno 0 before first start file directive.
743 (optimize_macinfo_range): Likewise.
744
745 * dwarf2out.c (have_macinfo): Define.
746 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
747 attribute, don't force empty compilation unit and don't emit any
748 .debug_macinfo/.debug_macro section if macinfo_table is empty.
749
750 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
751
752 PR target/53344
753 * config/avr/avr.c (avr_const_address_lo16): Remove.
754 (avr_assemble_integer): Print ".byte lo8(x)",
755 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
756 .warning if 3-byte address is assembled.
757 * doc/extend.texi (AVR Named Address Spaces): Document that
758 binutils 2.23 is needed to assemble 3-byte addresses.
759
760 2012-05-14 Richard Guenther <rguenther@suse.de>
761
762 * tree-vect-data-refs.c (vect_setup_realignment): Remove
763 call to mark_symbols_for_renaming.
764 (vect_permute_load_chain): Likewise.
765 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
766 instead of calling mark_symbols_for_renaming.
767 * tree-vect-stmts.c (read_vector_array): Remove call to
768 mark_symbols_for_renaming.
769 (write_vector_array): Likewise.
770 (vectorizable_call): Likewise.
771 (vectorizable_store): Likewise.
772 (vectorizable_load): Likewise.
773 * matrix-reorg.c (transform_allocation_sites): Likewise.
774 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
775 (create_expression_by_pieces): Likewise.
776
777 2012-05-14 Richard Guenther <rguenther@suse.de>
778
779 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
780 of statements for renaming.
781 (force_gimple_operand_1): Likewise, consistently for both
782 calls to force_gimple_operand and force_gimple_operand_gsi.
783
784 2012-05-14 Richard Guenther <rguenther@suse.de>
785
786 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
787 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
788 to update_ssa.
789 (expand_omp_for): Likewise.
790 (expand_omp_for_generic): Adjust conditional add to referenced vars.
791 Use make_rename_temp for temporaries that should be rewritten into
792 SSA form.
793 (expand_omp_for_static_nochunk): Likewise.
794 (expand_omp_atomic_pipeline): Likewise.
795
796 2012-05-14 Richard Guenther <rguenther@suse.de>
797
798 PR tree-optimization/53331
799 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
800 strided loads.
801 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
802
803 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
804
805 PR 53063
806 * doc/options.texi: (LangEnabledBy): Document it.
807 * optc-gen.awk: Handle LangEnabledBy.
808 * opth-gen.awk: Generate declaration for lang-specific functions.
809 * opt-read.awk: Record lang numbers.
810 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
811 (lang_sanitized_name): New.
812
813 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
814
815 * attribs.c (decl_attributes): Avoid emitting a warning if
816 ATTR_FLAG_BUILT_IN.
817 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
818 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
819 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
820 define a string "1".
821 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
822 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
823 BUILT_IN_STRCPY): Use it for these functions.
824 * postreload.c (reload_combine): Deal with SETs inside
825 CALL_INSN_FUNCTION_USAGE.
826 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
827 Look for REG_RETURNED notes and use a cheap restore if possible.
828 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
829 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
830 * ira-build.c (ira_create_allocno, create_cap_allocno,
831 propagate_allocno_info, propagate_some_info_from_allocno,
832 copy_info_to_removed_store_destination, ira_flattening): Handle it.
833 * ira-lives.c (pseudo_regno_single_word_and_live_p,
834 find_call_crossed_cheap_reg): New static functions.
835 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
836 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
837 a REG_RETURNED note in that case.
838 * ira.c (setup_reg_renumber): Change assert to allow cases where
839 allocnos only cross calls for which they are cheap to restore.
840 * ira-costs.c (ira_tune_allocno_costs): Compare
841 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
842 than 0.
843 * reg-notes.def (REG_RETURNED): New note.
844 * cse.c (cse_insn): Likewise.
845 * sched-deps.c (sched_analyze_insn): Likewise.
846 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
847 * calls.c (decl_return_flags): New static function.
848 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
849 functions that return one of their arguments.
850 * regcprop.c (struct kill_set_value_data): New.
851 (kill_set_value): Interpret data as a pointer to such a struct.
852 Do nothing if the caller wants the register to be ignored.
853 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
854
855 2012-05-14 Richard Guenther <rguenther@suse.de>
856
857 PR tree-optimization/53340
858 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
859
860 2012-05-14 Richard Guenther <rguenther@suse.de>
861
862 * gimplify.c (gimplify_expr): Remove odd code.
863
864 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
865
866 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
867 into a PLUS_EXPR byte offset.
868
869 * tree-ssa-pre.c (can_value_number_call): Delete.
870 (compute_avail): Skip all statements with side effects.
871 <GIMPLE_CALL>: Skip calls to internal functions.
872
873 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
874
875 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
876
877 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
878
879 * common.opt (Wtype-limits): Use EnabledBy.
880
881 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
882
883 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
884 (pushtf splitter): Ditto.
885 (movtf): Ditto.
886 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
887 (<code>tf2): Enable for TARGET_SSE.
888 (*absnegtf2_sse): Ditto.
889 (copysign<mode>3): Enable TFmode for TARGET_SSE.
890 (copysign<mode>3_const): Ditto.
891 (copysign<mode>3_var): Ditto.
892 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
893 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
894 (*<code>tf3): Ditto.
895 * config/i386/i386.c (struct builtin_description bdesc_args)
896 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
897 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
898 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
899 Emit a normal call if SSE isn't available.
900
901 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
902
903 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
904 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
905 (<code><mode>3): Ditto.
906 (*andnot<mode>3): Ditto.
907 (*andnottf3): Ditto.
908 (*<code><mode>3): Ditto.
909 (<code>tf3): Ditto.
910
911 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
912
913 * optc-gen.awk: Error instead of warning for conflicting help.
914
915 2012-05-12 Jason Merrill <jason@redhat.com>
916
917 PR debug/53235
918 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
919 comdat types.
920
921 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
922
923 * function.c (requires_stack_frame_p): If the function can throw
924 non-call exceptions, return true if the insn can throw internally.
925
926 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
927
928 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
929
930 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
931
932 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
933 ORDERED and UNORDERED conditions.
934
935 2012-05-11 Richard Guenther <rguenther@suse.de>
936
937 * tree-flow.h (referenced_var_check_and_insert): Remove.
938 (find_new_referenced_vars): Likewise.
939 * tree-dfa.c (referenced_var_check_and_insert): Make static.
940 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
941 * tree-inline.c (copy_bb): Use find_referenced_vars_in
942 instead of find_new_referenced_vars.
943 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
944
945 2012-05-11 Richard Guenther <rguenther@suse.de>
946
947 * tree-pass.h (pass_rest_of_compilation,
948 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
949 Remove.
950 * passes.c (pass_all_optimizations, pass_postreload,
951 pass_all_early_optimizations): Make static.
952 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
953 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
954 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
955 (delete_tree_ssa): Do not call fini_phinodes.
956 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
957
958 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
959
960 PR 53063
961 * doc/options.texi (EnabledBy): Document
962 * opts.c: Include opts.h and options.h before tm.h.
963 (finish_options): Do not handle some sub-options here...
964 (common_handle_option): ... instead call common_handle_option_auto here.
965 * optc-gen.awk: Handle EnabledBy.
966 * opth-gen.awk: Declare common_handle_option_auto.
967 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
968 (Wmaybe-uninitialized): Likewise.
969 (Wunused-but-set-variable): Likewise.
970 (Wunused-function): Likewise.
971 (Wunused-label): Likewise.
972 (Wunused-value): Likewise.
973 (Wunused-variable): Likewise.
974 * opt-read.awk: Create opt_numbers array.
975
976 2012-05-11 Richard Guenther <rguenther@suse.de>
977
978 PR tree-optimization/53295
979 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
980 strides.
981 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
982 strides when analyzing data-references in a loop context.
983 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
984 non-constant strides for now.
985 (vect_enhance_data_refs_alignment): Ignore data references
986 that are strided loads.
987 (vect_analyze_data_ref_access): Handle non-constant strides.
988 (vect_check_strided_load): Verify the data-reference is a load.
989 (vect_analyze_data_refs): Restructure to make strided load
990 support not dependent on gather support.
991 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
992 when doing strided or gather loads.
993 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
994 integer_zerop to compare stride with zero.
995
996 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
997
998 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
999
1000 2012-05-11 Jan Hubicka <jh@suse.cz>
1001
1002 PR bootstrap/53300
1003 * varpool.c (varpool_assemble_decl): Also output constat pool entries
1004 that output_constant_pool missed.
1005
1006 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
1007
1008 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
1009 MULTILIB_EXTRA_OPTS.
1010
1011 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
1012
1013 PR target/53291
1014 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
1015
1016 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
1017
1018 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
1019 optimization for TARGET_AVX.
1020 (*movti_internal_sse): Ditto.
1021 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
1022 (*movdi_internal): Ditto.
1023 (*movsi_internal): Ditto.
1024 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
1025 (*movdf_internal_rex64): Ditto.
1026 (*movfd_internal): Ditto.
1027 (*movsf_internal): Ditto.
1028 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
1029
1030 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
1031
1032 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
1033 reference as size attribute.
1034
1035 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
1036 Tristan Gingold <gingold@adacore.com>
1037
1038 * doc/md.texi (Standard Names): Document probe_stack_address.
1039 * explow.c (emit_stack_probe): Handle probe_stack_address.
1040 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
1041 (UNSPECV_PROBE_STACK_RANGE): Likewise.
1042 (probe_stack_address): New insn.
1043 (probe_stack_range): Likewise.
1044 * config/ia64/ia64.c: Include common/common-target.h.
1045 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
1046 checking is enabled.
1047 (ia64_emit_probe_stack_range): New function.
1048 (output_probe_stack_range): Likewise.
1049 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
1050 builtin stack checking is enabled.
1051 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
1052 and UNSPECV_PROBE_STACK_ADDRESS.
1053 (unknown_for_bundling_p): New predicate.
1054 (group_barrier_needed): Use important_for_bundling_p.
1055 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
1056 (issue_nops_and_insn): Likewise.
1057 (bundling): Likewise.
1058 (final_emit_insn_group_barriers): Likewise.
1059 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
1060 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
1061 (STACK_CHECK_PROTECT): Likewise.
1062 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1063
1064 2012-05-10 Jan Hubicka <jh@suse.cz>
1065
1066 * ipa-inline.c (update_all_callee_keys): Remove.
1067 (inline_small_functions): Simplify priority updating.
1068
1069 2012-05-10 Jan Hubicka <jh@suse.cz>
1070
1071 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
1072
1073 2012-05-10 Jan Hubicka <jh@suse.cz>
1074
1075 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
1076 (symtab_remove_unreachable_nodes): ... this one.
1077 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
1078 * cgraphunit.c (ipa_passes): Update.
1079 * cgraphclones.c (cgraph_materialize_all_clones): Update.
1080 * cgraph.c (cgraph_release_function_body): Only turn initial
1081 into error mark when initial was previously set.
1082 * ipa-inline.c (ipa_inline): Update.
1083 * ipa.c: Include ipa-inline.h
1084 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
1085 (enqueue_node): New function.
1086 (process_references): Update.
1087 (symtab_remove_unreachable_nodes): Cleanup.
1088 * passes.c (execute_todo, execute_one_pass): Update.
1089
1090 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
1091
1092 PR rtl-optimization/53125
1093 * ira.c (ira): Call find_moveable_pseudos and
1094 move_unallocated_pseudos if only ira_conflicts_p is true.
1095
1096 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
1097
1098 * config/i386/i386.md (*movoi_internal_avx): Handle
1099 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
1100 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
1101 (*movti_internal_sse): Ditto.
1102 (*movtf_internal): Ditto.
1103 * config/i386/sse.md (ssePSmode): New mode attribute.
1104 (*move<mode>_internal): Use ssePSmode.
1105 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
1106 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
1107 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
1108 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
1109
1110 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
1111
1112 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
1113 DECL_ORIGINAL_TYPE if it is present.
1114
1115 2012-05-10 Nick Clifton <nickc@redhat.com>
1116
1117 PR target/53120
1118 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
1119 a "0" constraint to being a (match_dup 0).
1120
1121 2012-05-10 Richard Guenther <rguenther@suse.de>
1122
1123 * stor-layout.c (byte_from_pos): Amend comment.
1124
1125 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1126
1127 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
1128 Document requirement to call in constructors.
1129
1130 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
1131
1132 2012-05-10 Richard Guenther <rguenther@suse.de>
1133
1134 * tree.h (TYPE_IS_SIZETYPE): Remove.
1135 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
1136 (extract_muldiv_1): Likewise.
1137 * gimple.c (gtc_visit): Likewise.
1138 (gimple_types_compatible_p): Likewise.
1139 (iterative_hash_canonical_type): Likewise.
1140 (gimple_canonical_types_compatible_p): Likewise.
1141 * gimplify.c (gimplify_one_sizepos): Likewise.
1142 * print-tree.c (print_node): Likewise.
1143 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
1144
1145 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
1146
1147 PR target/52908
1148 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
1149 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
1150 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
1151 instead of xop_mulv2div2di3_low.
1152 (xop_p<macs>dql): Fix vec_select selector.
1153 (xop_p<macs>dqh): Ditto.
1154 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
1155 (xop_mulv2div2di3_high): Ditto.
1156
1157 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1158
1159 PR c++/53289
1160 * diagnostic.h (diagnostic_context): Add last_location.
1161 * diagnostic.c (diagnostic_initialize): Initialize it.
1162 (diagnostic_show_locus): Use it.
1163
1164 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1165
1166 * doc/extend.texi (Function Attributes): Point xref to section
1167 about Pragmas.
1168
1169 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
1170
1171 * config/i386/i386.c (*movdf_internal_rex64): Remove
1172 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
1173 Calculate "mode" attribute according to
1174 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
1175 (*movdf_internal): Ditto.
1176
1177 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
1178
1179 PR target/44141
1180 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
1181 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
1182 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
1183 or when optimizing for size.
1184 * config/i386/sse.md (*mov<mode>_internal): Remove
1185 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
1186 Calculate "mode" attribute according to optimize_function_for_size_p
1187 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
1188 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
1189 depending on the mode of the instruction. Calculate "mode" attribute
1190 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
1191 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
1192 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
1193
1194 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
1195
1196 PR target/53256
1197 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
1198 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
1199 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
1200 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
1201 (expand_prologue): Move initialization of cfun->machine->is_naked,
1202 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
1203 (avr_set_current_function): ...this new static function.
1204 (TARGET_SET_CURRENT_FUNCTION): New define.
1205 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
1206 checking attributes of current_function_decl.
1207 (avr_regs_to_save): Ditto.
1208 (signal_function_p): Rename to avr_signal_function_p.
1209 (interrupt_function_p): Rename to avr_interrupt_function_p.
1210
1211 * doc/extend.texi (Function Attributes): Better explanation of
1212 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
1213 alphabetical order.
1214
1215 2012-05-09 Michael Matz <matz@suse.de>
1216
1217 PR tree-optimization/53185
1218 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
1219 peeling when we see strided loads.
1220
1221 2012-05-09 Matthias Klose <doko@ubuntu.com>
1222
1223 * gcc-ar.c (main): Don't check for execute bits for the plugin.
1224
1225 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1226
1227 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
1228 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
1229 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
1230 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
1231 (USE_LOAD_POST_INCREMENT): Define.
1232 (USE_LOAD_PRE_INCREMENT): Define.
1233 (USE_LOAD_POST_DECREMENT): Define.
1234 (USE_LOAD_PRE_DECREMENT): Define.
1235 (USE_STORE_PRE_DECREMENT): Define.
1236 (USE_STORE_PRE_INCREMENT): Define.
1237 (USE_STORE_POST_DECREMENT): Define.
1238 (USE_STORE_POST_INCREMENT): Define.
1239 (arm_auto_incmodes): Add enumeration.
1240 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
1241 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
1242
1243 2012-05-09 Jakub Jelinek <jakub@redhat.com>
1244
1245 PR tree-optimization/53226
1246 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
1247 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
1248 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
1249 doesn't need to be revisited, look for earliest stmt with
1250 !gimple_plf (stmt, GF_PLF_1) if something changed.
1251
1252 2012-05-09 Terry Guo <terry.guo@arm.com>
1253
1254 * genmultilib: Update copyright dates.
1255 * doc/fragments.texi: Ditto.
1256
1257 2012-05-09 Terry Guo <terry.guo@arm.com>
1258
1259 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
1260 * genmultilib (MULTILIB_REQUIRED): New.
1261 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
1262
1263 2012-05-09 Richard Guenther <rguenther@suse.de>
1264
1265 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1266 (vect_do_peeling_for_loop_bound): Likewise.
1267 (vect_do_peeling_for_alignment): Likewise.
1268 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
1269 (vect_do_peeling_for_loop_bound): Get check_profitability and
1270 threshold as parameters.
1271 (vect_do_peeling_for_alignment): Likewise.
1272 (vect_loop_versioning): Likewise.
1273 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
1274 and threshold here. Control where to put the check here.
1275
1276 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
1277
1278 PR middle-end/53249
1279 * dwarf2out.h (get_address_mode): Move declaration to...
1280 * rtl.h: ...here.
1281 * dwarf2out.c (get_address_mode): Move definition to...
1282 * rtlanal.c: ...here.
1283 * var-tracking.c (get_address_mode): Delete.
1284 * combine.c (find_split_point): Use get_address_mode instead of
1285 targetm.addr_space.address_mode.
1286 * cselib.c (cselib_record_sets): Likewise.
1287 * dse.c (canon_address, record_store): Likewise.
1288 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
1289 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
1290 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
1291 (expand_expr_real_1): Likewise.
1292 * ifcvt.c (noce_try_cmove_arith): Likewise.
1293 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
1294 * reload.c (find_reloads): Likewise.
1295 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
1296 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
1297
1298 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
1299
1300 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
1301 information from the instruction produced.
1302
1303 2012-05-09 Richard Guenther <rguenther@suse.de>
1304
1305 * stor-layout.c (bit_from_pos): Document.
1306 (byte_from_pos): Likewise. Optimize.
1307 (pos_from_bit): Likewise.
1308 (normalize_offset): Use pos_from_bit instead of replicating it.
1309
1310 2012-05-09 Alan Modra <amodra@gmail.com>
1311
1312 PR target/53271
1313 * config/rs6000/rs6000.c (gen_frame_set): New function.
1314 (gen_frame_load, gen_frame_store): New functions.
1315 (rs6000_savres_rtx): Use the above.
1316 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
1317 Correct mode used for CR2 in save/restore_world patterns.
1318 Don't emit instructions for eh_return frame unwind reg info.
1319
1320 2012-05-08 Jan Hubicka <jh@suse.cz>
1321
1322 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
1323 with VALUE_EXPR.
1324 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
1325 are removable.
1326 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
1327 need to wrapup.
1328 (compile_file): Do not output variables.
1329 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
1330 output it.
1331 * langhooks.c: Include timevar.h
1332 (write_global_declarations): Finalize compilation unit after wrapup;
1333 set timevars correctly.
1334 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
1335 not to be added to varpool.
1336 * varpool.c (varpool_assemble_decl): Sanity check that we are called
1337 only on cases where it makes sense; skip constant pool and value expr
1338 vars.
1339
1340 2012-05-08 David S. Miller <davem@davemloft.net>
1341
1342 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
1343 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
1344 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
1345
1346 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
1347
1348 PR rtl-optimization/53278
1349 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
1350 speed_p code from earlier patch.
1351
1352 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
1353
1354 PR target/51244
1355 * config/sh/sh.md (*branch_true, *branch_false): New insns.
1356
1357 2012-05-08 Teresa Johnson <tejohnson@google.com>
1358
1359 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
1360 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
1361
1362 2012-05-08 Jan Hubicka <jh@suse.cz>
1363
1364 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
1365 (cgraph_create_node_1): Rename to ...
1366 (cgraph_create_empty_node): ... this one; export.
1367 (cgraph_create_node): Update.
1368 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
1369 (cgraph_create_edge_including_clones): Likewise.
1370 (cgraph_find_replacement_node): Likewise.
1371 (cgraph_clone_edge): Likewise.
1372 (cgraph_clone_node): Likewise.
1373 (clone_function_name): Likewise.
1374 (cgraph_create_virtual_clone): Likewise.
1375 (cgraph_remove_node_and_inline_clones): Likewise.
1376 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
1377 * cgraph.h: Reorder declarations so they match file of origin.
1378 (cgraph_create_empty_node): Declare.
1379 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
1380 (cgraph_copy_node_for_versioning): Likewise.
1381 (cgraph_function_versioning): Likewise.
1382 (cgraph_materialize_clone): Likewise.
1383 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1384 (cgraph_materialize_all_clones): Likewise.
1385 * cgraphclones.c: New file.
1386 * Makefile.in: Update for cgraphclones.
1387
1388 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
1389
1390 PR target/53176
1391 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
1392 (ix86_rtx_costs): Handle SET.
1393
1394 2012-05-08 Michael Matz <matz@suse.de>
1395
1396 * basic-block.h (struct rtl_bb_info): Remove visited member and
1397 move head_ member to ...
1398 (struct basic_block_def.basic_block_il_dependent): ... the new
1399 member x, replacing but containing old member rtl.
1400 (enum bb_flags): New BB_VISITED flag.
1401 (BB_HEADER, BB_FOOTER): New macros.
1402
1403 * jump.c (mark_all_labels): Adjust.
1404 * cfgcleanup.c (try_optimize_cfg): Adjust.
1405 * cfglayout.c (record_effective_endpoints): Adjust.
1406 (relink_block_chain): Ditto (and don't fiddle with visited).
1407 (fixup_reorder_chain): Adjust.
1408 (fixup_fallthru_exit_predecessor): Ditto.
1409 (cfg_layout_duplicate_bb): Ditto.
1410 * combine.c (update_cfg_for_uncondjump): Adjust.
1411 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
1412 (bb_visited_trace): New accessor.
1413 (mark_bb_visited): Move in front.
1414 (rotate_loop): Use bb_visited_trace.
1415 (find_traces_1_round): Ditto.
1416 (emit_barrier_after): Ditto.
1417 (copy_bb): Ditto, and initialize visited on resize.
1418 (reorder_basic_blocks): Initize visited member.
1419 (duplicate_computed_gotos): Clear bb flags at start, use
1420 BB_VISITED flags.
1421
1422 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
1423 (rtl_verify_flow_info_1): Ditto.
1424 (cfg_layout_split_block): Ditto.
1425 (cfg_layout_delete_block): Ditto.
1426 (cfg_layout_merge_blocks): Ditto.
1427 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
1428
1429 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
1430
1431 PR target/53272
1432 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
1433 when a constant source operand matches an "I" constraint, the "no
1434 CC0 change" applies to a register-destination only, not a
1435 strict_low_part-destination.
1436
1437 2012-05-08 Richard Guenther <rguenther@suse.de>
1438
1439 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
1440 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
1441
1442 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
1443
1444 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
1445
1446 * doc/avr-mmcu.texi: New auto-generated file.
1447 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
1448 to document all valid -mmcu= arguments.
1449
1450 * config/avr/avr.h (arch_info_s): New struct definition.
1451 * config/avr/avr-devices.c (avr_texinfo): New variable.
1452 * config/avr/gen-avr-mmcu-texi.c: New file.
1453 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
1454
1455 2012-05-08 Dehao Chen <dehao@google.com>
1456
1457 * predict.c (find_qualified_ssa_name): New.
1458 (find_ssa_name_in_expr): New.
1459 (find_ssa_name_in_assign_stmt): New.
1460 (is_comparison_with_loop_invariant_p): New.
1461 (is_bound_expr_similar): New.
1462 (predict_iv_comparison): New.
1463 (predict_loops): Add heuristic for loop-nested branches that compare an
1464 induction variable to a loop bound variable.
1465 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
1466
1467 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
1468
1469 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
1470 TARGET_BDVER2 defines where appropriate.
1471
1472 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
1473
1474 * configure.ac (PLUGIN_LD): Rename into...
1475 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
1476 * config.in: Regenerate.
1477 * configure: Likewise.
1478 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
1479
1480 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
1481
1482 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
1483 computation using the precision of the index type.
1484 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
1485 (fold_array_ctor_reference): Do index computations in the index type.
1486
1487 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
1488
1489 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
1490 down to plus_constant.
1491 (expand_epilogue): Ditto.
1492
1493 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
1494
1495 * postreload.c (reload_cse_regs): Make static.
1496 * reload.h (reload_cse_regs): Remove prototype.
1497
1498 2012-05-07 Richard Henderson <rth@redhat.com>
1499
1500 * config/alpha/alpha.md (clear_cache): New pattern.
1501
1502 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
1503
1504 PR middle-end/53245
1505 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
1506 is folded to a type boundary value, verify that the resulting case
1507 label is still a care range.
1508
1509 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
1510
1511 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
1512 only for TARGET_GENERIC, when not optimizing for size.
1513 (*ffs<mode>_1): Ditto.
1514
1515 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
1516
1517 * tree-cfg.c (verify_gimple_switch): Tighten checks.
1518
1519 2012-05-07 Jakub Jelinek <jakub@redhat.com>
1520
1521 PR tree-optimization/53239
1522 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
1523 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
1524
1525 2012-05-07 Richard Guenther <rguenther@suse.de>
1526
1527 PR tree-optimization/53195
1528 * tree-inline.c (setup_one_parameter): Properly add referenced
1529 vars from the parameters new known value.
1530
1531 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
1532
1533 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
1534 (sched_branch_type): Remove.
1535 (m68k_sched_md_init_global): Don't allocate it.
1536 (m68k_sched_md_finish_global): Don't free it.
1537 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
1538 * config/m68k/m68k.md: Set the type of insns using
1539 m68k_sched_branch_type to bcc directly.
1540
1541 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1542
1543 * config/sol2.c (solaris_override_options): New function.
1544 * config/sol2-protos.h (solaris_override_options): Declare.
1545 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
1546
1547 2012-05-07 Richard Guenther <rguenther@suse.de>
1548
1549 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
1550 whether we failed to compute data dependences.
1551 (loop_prefetch_arrays): Fail if we failed.
1552
1553 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
1554 Paolo Bonzini <bonzini@gnu.org>
1555
1556 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
1557 Emit bsf when optimizing for size.
1558 (*ffs<mode>_1): Ditto.
1559
1560 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
1561
1562 PR target/53250
1563 * config/sh/sh.c (sh_rtx_costs): Handle SET.
1564
1565 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
1566
1567 PR target/53227
1568 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
1569 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
1570 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
1571 (bswapsi2): Ditto.
1572 (*bswapdi2_doubleword): New insn pattern.
1573 (*bswap<mode>2): Rename from *bswap<mode>2_1.
1574
1575 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
1576
1577 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
1578 (mips_set_reg_reg_cost): Likewise.
1579 (mips_rtx_costs): Handle SET.
1580
1581 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
1582
1583 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
1584 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
1585 to compute the cost of moves. Set the mode of the target register.
1586
1587 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
1588
1589 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
1590 plus_constant function.
1591 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
1592 that the mode is sensible.
1593 (use_anchored_address, round_push, allocate_dynamic_stack_space)
1594 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
1595 plus_constant.
1596
1597 * alias.c (canon_rtx): Likewise.
1598 (init_alias_analysis): Likewise.
1599 * builtins.c (expand_builtin_return_addr)
1600 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
1601 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
1602 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
1603 (expand_builtin_stpcpy): Likewise.
1604 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
1605 (compute_argument_addresses, internal_arg_pointer_based_exp)
1606 (expand_call, emit_library_call_value_1): Likewise.
1607 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
1608 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
1609 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
1610 * cse.c (insert_const_anchor, find_reg_offset_for_const)
1611 (use_related_value, fold_rtx): Likewise.
1612 * cselib.c (cselib_subst_to_values): Likewise.
1613 * dse.c (record_store, check_mem_read_rtx): Likewise.
1614 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
1615 * emit-rtl.c (adjust_address_1): Likewise.
1616 * except.c (sjlj_emit_function_enter)
1617 (expand_builtin_extract_return_addr)
1618 (expand_builtin_frob_return_addr): Likewise.
1619 * expmed.c (expand_divmod): Likewise.
1620 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
1621 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
1622 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
1623 * function.c (assign_stack_local_1)
1624 (instantiate_virtual_regs_in_rtx): Likewise.
1625 * optabs.c (prepare_cmp_insn): Likewise.
1626 * recog.c (offsettable_address_addr_space_p): Likewise.
1627 * reload.c (find_reloads_address, form_sum)
1628 (find_reloads_subreg_address): Likewise.
1629 * reload1.c (init_reload, eliminate_regs_1)
1630 (eliminate_regs_in_insn): Likewise.
1631 * simplify-rtx.c (simplify_unary_operation_1)
1632 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
1633 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
1634 (vt_add_function_parameter): Likewise.
1635
1636 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
1637 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
1638 * config/alpha/alpha.c (alpha_legitimize_address_1)
1639 (get_unaligned_address, alpha_expand_unaligned_load)
1640 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
1641 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
1642 (alpha_expand_builtin_establish_vms_condition_handler)
1643 (alpha_setup_incoming_varargs, emit_frame_store_1)
1644 (alpha_expand_prologue, alpha_expand_epilogue)
1645 (alpha_use_linkage): Likewise.
1646 * config/alpha/alpha.md: Likewise.
1647
1648 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
1649 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
1650 (thumb_legitimize_address, arm_gen_load_multiple_1)
1651 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
1652 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
1653 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
1654 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
1655 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
1656 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
1657 (thumb_expand_movmemqi, arm_set_return_address)
1658 (thumb_set_return_address): Likewise.
1659 * config/arm/arm.md: Likewise.
1660
1661 * config/avr/avr.c (avr_incoming_return_addr_rtx)
1662 (avr_prologue_setup_frame, expand_epilogue)
1663 (avr_const_address_lo16): Likewise.
1664
1665 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
1666 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
1667 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
1668 (bfin_output_mi_thunk): Likewise.
1669
1670 * config/c6x/c6x.c (c6x_initialize_trampoline)
1671 (c6x_output_mi_thunk): Likewise.
1672
1673 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
1674 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
1675
1676 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
1677 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
1678 (cris_emit_movem_store, cris_trampoline_init): Likewise.
1679 * config/cris/cris.md: Likewise.
1680
1681 * config/darwin.c (machopic_indirect_data_reference)
1682 (machopic_legitimize_pic_address): Likewise.
1683
1684 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
1685 (epiphany_expand_prologue, epiphany_expand_epilogue)
1686 (epiphany_trampoline_init): Likewise.
1687 * config/epiphany/epiphany.md: Likewise.
1688
1689 * config/fr30/fr30.c (fr30_move_double): Likewise.
1690
1691 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
1692 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
1693 (frv_index_memory, unspec_got_name, frv_find_base_term)
1694 (frv_output_dwarf_dtprel): Likewise.
1695
1696 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
1697 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
1698
1699 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
1700 * config/i386/i386.c (setup_incoming_varargs_64)
1701 (setup_incoming_varargs_ms_64, choose_baseaddr)
1702 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
1703 (ix86_emit_probe_stack_range, ix86_expand_prologue)
1704 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
1705 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
1706 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
1707 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
1708 (x86_output_mi_thunk): Likewise.
1709 * config/i386/i386.md: Likewise.
1710
1711 * config/ia64/ia64.c (ia64_expand_load_address)
1712 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
1713 (do_spill, ia64_trampoline_init): Likewise.
1714
1715 * config/iq2000/iq2000.c (iq2000_va_start)
1716 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
1717 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
1718 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
1719
1720 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1721
1722 * config/m32c/m32c.c (m32c_return_addr_rtx)
1723 (m32c_expand_insv): Likewise.
1724
1725 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
1726 (m32r_legitimize_pic_address, m32r_print_operand)
1727 (m32r_print_operand_address): Likewise.
1728
1729 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
1730 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
1731 (EH_RETURN_HANDLER_RTX): Likewise.
1732 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
1733 (m68k_expand_epilogue, legitimize_pic_address)
1734 (m68k_output_mi_thunk): Likewise.
1735 * config/m68k/m68k.md: Likewise.
1736
1737 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1738 (mcore_expand_epilog): Likewise.
1739 * config/mcore/mcore.md: Likewise.
1740
1741 * config/mep/mep.c (mep_allocate_initial_value)
1742 (mep_expand_prologue, mep_expand_epilogue): Likewise.
1743
1744 * config/microblaze/microblaze.c (double_memory_operand)
1745 (microblaze_block_move_loop): Likewise.
1746
1747 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
1748 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
1749 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
1750 (mips_expand_prologue, mips_epilogue_set_cfa)
1751 (mips_expand_epilogue): Likewise.
1752 * config/mips/mips.md: Likewise.
1753
1754 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
1755 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
1756
1757 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
1758 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
1759
1760 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1761 (EH_RETURN_HANDLER_RTX): Likewise.
1762 * config/moxie/moxie.c (moxie_static_chain): Likewise.
1763
1764 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
1765 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
1766 (pa_return_addr_rtx, hppa_builtin_saveregs)
1767 (pa_trampoline_init): Likewise.
1768 * config/pa/pa.md: Likewise.
1769
1770 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
1771
1772 * config/picochip/picochip.c (picochip_static_chain): Likewise.
1773
1774 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
1775 * config/rs6000/rs6000.c (rs6000_legitimize_address)
1776 (setup_incoming_varargs, print_operand, rs6000_return_addr)
1777 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
1778 (rs6000_emit_epilogue)
1779 (rs6000_machopic_legitimize_pic_address): Likewise.
1780
1781 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1782
1783 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
1784 (DYNAMIC_CHAIN_ADDRESS): Likewise.
1785 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
1786 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
1787 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
1788 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
1789 (s390_emit_epilogue, s390_function_profiler): Likewise.
1790 * config/s390/s390.md: Likewise.
1791
1792 * config/score/score.c (score_add_offset, score_prologue): Likewise.
1793
1794 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
1795 (sh_output_mi_thunk): Likewise.
1796 * config/sh/sh.md: Likewise.
1797
1798 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
1799 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
1800 * config/sparc/sparc.c (sparc_legitimize_pic_address)
1801 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
1802 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
1803 (emit_and_preserve): Likewise.
1804 * config/sparc/sparc.md: Likewise.
1805
1806 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
1807 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
1808 (spu_setup_incoming_varargs, ea_load_store_inline)
1809 (spu_expand_load): Likewise.
1810
1811 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
1812 (combine_bnp): Likewise.
1813
1814 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
1815 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
1816 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
1817
1818 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
1819 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
1820 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
1821
1822 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
1823 * config/v850/v850.md: Likewise.
1824
1825 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
1826 (EH_RETURN_HANDLER_RTX): Likewise.
1827 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
1828 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
1829 (print_operand_address, vax_trampoline_init): Likewise.
1830
1831 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
1832 (xtensa_function_value_regno_p): Likewise.
1833
1834 2012-05-04 Andrew Pinski <apinski@cavium.com>
1835
1836 * expr.c (get_def_for_expr_class): New function.
1837 (convert_tree_comp_to_rtx): New function.
1838 (expand_cond_expr_using_cmove): New function.
1839 (expand_expr_real_2 <case COND_EXPR>): Call
1840 expand_cond_expr_using_cmove first and return if it succeeds.
1841 Remove the check for HAVE_conditional_move since we should have
1842 already converted it to a conditional move.
1843 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
1844 modes of DImode for 32bits and TImode.
1845
1846 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
1847
1848 PR other/29442
1849 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
1850 (print_md_ptr_loc, print_c_condition): Use them.
1851 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
1852 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
1853 attr_file, dfa_file, latency_file): New global variables.
1854 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
1855 write_upcase, write_indent, write_length_unit_log, write_test_expr,
1856 write_attr_get, write_insn_cases, write_eligible_delay,
1857 write_const_num_delay_slots): Accept FILE pointer and toss it around.
1858 Update all callers.
1859 (write_header, open_outfile, handle_arg): New funcions.
1860 (make_automaton_attrs): Write prototypes as extern to the output
1861 files.
1862 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
1863 names from the command line. Open the output files and write out
1864 internal functions for DFA functions to dfa_file_name, insn latency
1865 functions to latency_file_name, and everything else to attr_file.
1866 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
1867 (BACKEND): Build libbackend first.
1868 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
1869 (.PRECIOUS): Likewise.
1870 (insn-dfatab.o): New rule.
1871 (insn-latencytab.o): New rule.
1872 (simple_rtl_generated_c): Do not include insn-attrtab.c.
1873 (s-attrtab): New rule.
1874
1875 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
1876
1877 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
1878 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
1879 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
1880 * reorg.c (get_jump_flags): Do not set the removed flags.
1881
1882 * doc/md.texi (attr_flag): Update for abovementioned changes.
1883
1884 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
1885
1886 PR target/53228
1887 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
1888 (TARGET_CMOV): Rename from TARGET_CMOVE.
1889 (TARGET_CMOVE): New define.
1890 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
1891 Do not set TARGET_CMOVE here.
1892
1893 2012-05-04 Dodji Seketeli <dodji@redhat.com>
1894
1895 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
1896 * opts.c (finish_options): Activate -Wunused-local-typedefs if
1897 -Wunused is activated.
1898 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
1899
1900 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1901
1902 * config/s390/s390.md (*movmem_short, *clrmem_short)
1903 (*cmpmem_short): Move the mode check from the insn condition to
1904 the match_scratch.
1905
1906 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1907
1908 PR tree-optimization/52633
1909 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
1910 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
1911 (vect_recog_over_widening_pattern): Remove handling of code that was
1912 already detected as over-widening pattern. Remove special handling
1913 of "unsigned" cases. Instead, support general case of conversion
1914 of the shift result to another type.
1915
1916 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1917
1918 * tree-vect-patterns.c (vect_single_imm_use): New function.
1919 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
1920 (vect_recog_over_widening_pattern): Likewise.
1921 (vect_recog_widen_shift_pattern): Likewise.
1922
1923 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1924
1925 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
1926 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
1927 (vect_recog_widen_mult_pattern): Likewise.
1928 (vect_operation_fits_smaller_type): Likewise.
1929 (vect_recog_over_widening_pattern): Likewise.
1930 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
1931
1932 2012-05-04 Richard Guenther <rguenther@suse.de>
1933
1934 PR lto/50602
1935 * lto-wrapper.c (merge_and_complain): Complain about mismatches
1936 of -freg-struct-return and -fpcc-struct-return.
1937 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
1938 from the input file options and ignore those from the link
1939 command line.
1940
1941 2012-05-04 Richard Guenther <rguenther@suse.de>
1942
1943 PR tree-optimization/53168
1944 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
1945 memory reads when the result is a constant we can pun.
1946
1947 2012-05-04 Richard Guenther <rguenther@suse.de>
1948
1949 * common.opt (flto-report): Do not mark as Optimization.
1950
1951 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
1952
1953 PR target/48496
1954 * recog.c (constrain_operands): If extra constraints are present, also
1955 accept pseudo-registers with equivalent memory locations during reload.
1956
1957 2012-05-04 Olivier Hainque <hainque@adacore.com>
1958
1959 * collect2.c (may_unlink_output_file): New global.
1960 (maybe_unlink): Honor it.
1961 * collect2.h: Add extern for it.
1962 * tlink.c (do_tlink): Set it to true if the link succeeded.
1963
1964 2012-05-04 Olivier Hainque <hainque@adacore.com>
1965
1966 * gcc.c (eval_spec_function): Finalize/restore the current string
1967 obstack state as part of the context push/pop operations.
1968
1969 2012-05-04 Bin Cheng <bin.cheng@arm.com>
1970
1971 PR rtl-optimization/52804
1972 * reload1.c (reload_reg_reaches_end_p): Check whether successor
1973 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
1974 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
1975 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
1976 RELOAD_FOR_OUTADDR_ADDRESS.
1977
1978 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1979
1980 PR c++/24985
1981 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
1982 for macro expansion.
1983
1984 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1985
1986 * flags.h (flag_permissive): Do not declare.
1987 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
1988 option specially.
1989 * toplev.c (flag_permissive): Do not define.
1990 * c-tree.h (system_header_p): Delete unused.
1991
1992 2012-05-03 David S. Miller <davem@davemloft.net>
1993
1994 PR target/52684
1995 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
1996 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
1997 (sparc_emit_float_lib_cmp): Likewise.
1998
1999 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2000
2001 PR target/53199
2002 * config/rs6000/rs6000.md (bswapdi splitters): If
2003 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
2004 default) is used, generate an alternate sequence that does not
2005 depend on using indexed addressing.
2006
2007 2012-05-03 Jason Merrill <jason@redhat.com>
2008
2009 * gengtype.c (write_types): Fix warning message.
2010 (write_local): Likewise.
2011
2012 2012-05-02 Jason Merrill <jason@redhat.com>
2013
2014 * dwarf2out.c (struct external_ref, build_local_stub): New.
2015 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
2016 (optimize_external_refs, optimize_external_refs_1): New.
2017 (change_AT_die_ref): New.
2018 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
2019 (build_abbrev_table): Take the external refs hashtable.
2020 (output_comp_unit): Get it from optimize_external_refs and pass it in.
2021
2022 2012-05-03 Jan Hubicka <jh@suse.cz>
2023
2024 PR middle-end/53093
2025 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
2026
2027 2012-05-03 Jan Hubicka <jh@suse.cz>
2028
2029 PR middle-end/53106
2030 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
2031
2032 2012-05-03 Jason Merrill <jason@redhat.com>
2033
2034 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
2035 use_debug_types to discriminate the die_id union.
2036 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
2037 (build_abbrev_table, output_die): Likewise.
2038 (prune_unused_types_walk_attribs): Likewise.
2039 (generate_type_signature, copy_declaration_context): Set it.
2040 (remove_child_or_replace_with_skeleton): Set it.
2041 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
2042 check use_debug_types.
2043 (dwarf2out_finish): Do break_out_includes after .debug_types.
2044
2045 2012-05-03 Jason Merrill <jason@redhat.com>
2046
2047 * dwarf2out.c (modified_type_die): Use scope_die_for.
2048 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
2049 (uses_local_type_r, uses_local_type): New.
2050 (scope_die_for): Keep a type that uses a local type in local scope.
2051 Use get_context_die for namespace and type scope.
2052
2053 2012-05-03 Jason Merrill <jason@redhat.com>
2054
2055 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
2056 pc thunk.
2057 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
2058 (dwarf2out_finish): Likewise.
2059
2060 2012-05-03 Martin Jambor <mjambor@suse.cz>
2061
2062 * builtins.c (get_object_alignment_1): Return whether we can determine
2063 the alignment or conservatively assume byte alignment. Return the
2064 alignment by reference. Use get_pointer_alignment_1 for dereference
2065 alignment.
2066 (get_pointer_alignment_1): Return whether we can determine the
2067 alignment or conservatively assume byte alignment. Return the
2068 alignment by reference. Use get_ptr_info_alignment to get SSA name
2069 alignment.
2070 (get_object_alignment): Update call to get_object_alignment_1.
2071 (get_object_or_type_alignment): Likewise, fall back to type alignment
2072 only when it returned false.
2073 (get_pointer_alignment): Update call to get_pointer_alignment_1.
2074 * fold-const.c (get_pointer_modulus_and_residue): Update call to
2075 get_object_alignment_1.
2076 * ipa-prop.c (ipa_modify_call_arguments): Update call to
2077 get_pointer_alignment_1.
2078 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
2079 of MEM_REF or TARGET_MEM_REF only when it returns false.
2080 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
2081 get_object_alignment_1.
2082 (ccp_finalize): Use set_ptr_info_alignment.
2083 * tree.h (get_object_alignment_1): Update declaration.
2084 (get_pointer_alignment_1): Likewise.
2085 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
2086 (dump_gimple_stmt): Likewise.
2087 * tree-flow.h (ptr_info_def): Updated comments of fields align and
2088 misalign.
2089 (get_ptr_info_alignment): Declared.
2090 (mark_ptr_info_alignment_unknown): Likewise.
2091 (set_ptr_info_alignment): Likewise.
2092 (adjust_ptr_info_misalignment): Likewise.
2093 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
2094 and set alignment of SSA names.
2095 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
2096 mark_ptr_info_alignment_unknown.
2097 * tree-ssanames.c (get_ptr_info_alignment): New function.
2098 (mark_ptr_info_alignment_unknown): Likewise.
2099 (set_ptr_info_alignment): Likewise.
2100 (adjust_ptr_info_misalignment): Likewise.
2101 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
2102 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2103 Likewise.
2104 (bump_vector_ptr): Likewise.
2105 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
2106 (vectorizable_store): Likewise.
2107 (vectorizable_load): Likewise.
2108
2109 2012-05-03 Michael Matz <matz@suse.de>
2110
2111 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
2112 in front of basic_block_def.
2113 (struct basic_block_def): Make il.gimple the full struct, not a
2114 pointer.
2115 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
2116
2117 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
2118 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
2119 NULL il.gimple, which can't happen anymore.
2120 * gimple.h (bb_seq): il.gimple can't be NULL.
2121 (bb_seq_add): Ditto.
2122 (set_bb_seq): Adjust.
2123 (gsi_start_bb, gsi_last_bb): Tidy.
2124 * lto-streamer-in.c (make_new_block): Don't zero members that
2125 are zeroed already, don't allocate a gimple_bb_info.
2126 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
2127 (remove_bb): Clear all il.gimple members.
2128 (gimple_verify_flow_info): Adjust for flat il.gimple.
2129 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
2130
2131 * coretypes.h (const_gimple_seq): Remove typedef.
2132 * gimple.h (gimple_seq_first): Take gimple_seq.
2133 (gimple_seq_first_stmt): Ditto.
2134 (gimple_seq_last): Ditto.
2135 (gimple_seq_last_stmt): Ditto.
2136 (gimple_seq_empty_p): Ditto.
2137
2138 2012-05-03 Richard Guenther <rguenther@suse.de>
2139
2140 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
2141 operations.
2142 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
2143 (compute_avail): Do not add possibly trapping operations to
2144 EXP_GEN if they might not be executed in the block.
2145
2146 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
2147
2148 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
2149
2150 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
2151
2152 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
2153 information as early as possible. Update dominance info instead of
2154 discarding it.
2155
2156 2012-05-03 Richard Guenther <rguenther@suse.de>
2157
2158 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
2159 (union_contains_value): Remove.
2160 (vro_valid_in_sets): Likewise.
2161 (op_valid_in_sets): New function.
2162 (valid_in_sets): Use op_valid_in_sets.
2163 (insert_into_preds_of_block): Move dumping ...
2164 (do_regular_insertion): ... here.
2165 (do_partial_partial_insertion): ... and here. Dump that
2166 we've found a partial partial redundancy.
2167 (insert): Dump the current insert iteration.
2168
2169 2012-05-03 Jakub Jelinek <jakub@redhat.com>
2170
2171 PR plugins/53126
2172 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
2173 append program name to it and pass that as first argument
2174 to make_relative_prefix. Always pass standard_libexec_prefix
2175 as last argument to make_relative_prefix. If
2176 make_relative_prefix returns NULL, fall back to
2177 standard_libexec_prefix.
2178
2179 PR debug/53174
2180 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
2181 removed.
2182
2183 PR target/53187
2184 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
2185 mode, return that mode.
2186
2187 PR target/53194
2188 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
2189 define __ATOMIC_HLE_* macros here.
2190 (ix86_target_macros): But here, using cpp_define_formatted.
2191
2192 2012-05-03 Richard Guenther <rguenther@suse.de>
2193
2194 PR tree-optimization/53144
2195 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
2196 Rename to ...
2197 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
2198 with SSA name values.
2199 (vn_reference_lookup_3): Adjust callers.
2200
2201 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2202
2203 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
2204 has_fma4 for AMD processors with both fma3 and fma4 support.
2205
2206 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
2207
2208 PR target/53201
2209 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
2210 "-mno-hle".
2211
2212 2012-05-03 Michael Matz <matz@suse.de>
2213
2214 PR bootstrap/53197
2215 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
2216 (dse_enter_block): Properly iterate the whole sequence even
2217 if the last statement was removed.
2218
2219 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
2220
2221 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
2222 unset flag_jump_tables.
2223 * stmt.c (expand_case): Remove special flag_pic case conditional
2224 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
2225
2226 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2227
2228 * common/config/s390/s390-common.c (s390_option_optimization_table):
2229 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
2230 default when optimizing.
2231
2232 2012-05-02 Martin Jambor <mjambor@suse.cz>
2233
2234 PR lto/52605
2235 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
2236 of a variable when the contect is a function.
2237
2238 2012-05-02 Michael Matz <matz@suse.de>
2239
2240 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
2241 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
2242 (const_gimple_seq_node): Remove.
2243 (gimple_seq_node): Typedef as gimple.
2244 (struct gimple_statement_base): Add next and prev members,
2245 adjust all WORD markers in using structs.
2246 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
2247 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
2248 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
2249 gimple are the same.
2250 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
2251 gimple_seq, adjust.
2252 (gimple_init_singleton): New function.
2253 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
2254 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
2255 (gsi_stmt): Adjust.
2256 (gsi_stmt_ptr): Remove.
2257 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
2258
2259 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
2260 again, adjust for above changes.
2261 (update_call_edge_frequencies): Adjust for above changes.
2262 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
2263 (gsi_insert_seq_nodes_after): Ditto.
2264 (gsi_split_seq_after): Ditto.
2265 (gsi_set_stmt): Ditto.
2266 (gsi_split_seq_before): Ditto.
2267 (gsi_remove): Ditto.
2268 (gsi_insert_seq_before_without_update): Don't free sequence.
2269 (gsi_insert_seq_after_without_update): Ditto.
2270 (gsi_replace): Assert some more invariants.
2271 (gsi_insert_before_without_update, gsi_insert_after_without_update):
2272 Tidy.
2273 (gsi_for_stmt): Don't search for stmt.
2274 (gsi_insert_on_edge_immediate): Tidy.
2275
2276 * gimple.c (gimple_alloc_k): Remove "sequences".
2277 (gimple_seq_cache): Remove.
2278 (gimple_alloc_stat): Make stmt a singleton sequence.
2279 (gimple_seq_alloc, gimple_seq_free): Remove.
2280 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
2281 (gimple_copy): Ditto.
2282 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
2283 create iterator from correct sequence.
2284 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
2285
2286 2012-05-02 Michael Matz <matz@suse.de>
2287
2288 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
2289 gimple_seq.
2290 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
2291 sequence, lazily allocate it.
2292 (bb_seq_addr): New function.
2293 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
2294 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
2295 (gsi_none): New function.
2296 (gsi_start_bb): Adjust.
2297 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
2298 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
2299 (gsi_last_bb): Adjust.
2300 (gsi_seq): Adjust.
2301 * tree-flow-inline.h (phi_nodes_ptr): New function.
2302
2303 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
2304 datastructure and interface change.
2305 (gsi_insert_seq_before_without_update): Ditto.
2306 (gsi_insert_seq_nodes_after): Ditto.
2307 (gsi_insert_seq_after_without_update): Ditto.
2308 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
2309 (gsi_split_seq_before): Ditto.
2310 (gsi_start_phis): Adjust.
2311 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
2312 (vect_transform_loop): Ditto.
2313 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
2314 gimple_seq_copy): Don't use gimple_seq_alloc.
2315 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
2316 (gimplify_seq_add_seq): Ditto.
2317 * lto-streamer-in.c (make_new_block): Ditto.
2318 * tree-cfg.c (create_bb): Ditto.
2319 * tree-sra.c (initialize_parameter_reductions): Ditto.
2320
2321 2012-05-02 Michael Matz <matz@suse.de>
2322
2323 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
2324 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
2325 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
2326 set_bb_seq): Move down to after gimple_statement_d definition.
2327
2328 2012-05-02 Michael Matz <matz@suse.de>
2329
2330 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
2331 gsi_replace_with_seq, instead of inserting itself.
2332 * gimple-iterator.c (gsi_replace_with_seq): New function.
2333 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
2334 iterator instead of statement, advance it.
2335 (ssa_forward_propagate_and_combine): Adjust call to above.
2336
2337 2012-05-02 Michael Matz <matz@suse.de>
2338
2339 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
2340 gimple_seq_alloc.
2341 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
2342 * tree-nested.c (walk_gimple_omp_for): Ditto.
2343 * trans-mem.c (lower_transaction): Ditto.
2344 * tree-eh.c (do_return_redirection): Ditto.
2345 (do_goto_redirection): Ditto.
2346 (lower_try_finally_switch): Ditto.
2347 * gimplify.c (gimplify_stmt): Ditto.
2348 (gimplify_scan_omp_clauses): Ditto.
2349 (gimplify_omp_for): Ditto.
2350 (gimplify_function_tree): Ditto.
2351 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
2352 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
2353 (mf_build_check_statement_for): Ditto.
2354 (mx_register_decls): Ditto.
2355 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
2356 and don't use itertors to append.
2357 (insert_stmts): Ditto.
2358 (insert_out_of_ssa_copy): Ditto.
2359 (insert_out_of_ssa_copy_on_edge): Ditto.
2360
2361 2012-05-02 Michael Matz <matz@suse.de>
2362
2363 * gimple.h (gimple_bind_body_ptr): New function.
2364 (gimple_bind_body): Use it.
2365 (gimple_catch_handler): Use gimple_catch_handler_ptr.
2366 (gimple_eh_filter_failure_ptr): New function.
2367 (gimple_eh_filter_failure): Use it.
2368 (gimple_eh_else_n_body_ptr): New function.
2369 (gimple_eh_else_n_body): Use it.
2370 (gimple_eh_else_e_body_ptr): New function.
2371 (gimple_eh_else_e_body): Use it.
2372 (gimple_try_eval_ptr): New function.
2373 (gimple_try_eval): Use it.
2374 (gimple_try_cleanup_ptr): New function.
2375 (gimple_try_cleanup): Use it.
2376 (gimple_wce_cleanup_ptr): New function.
2377 (gimple_wce_cleanup): Use it.
2378 (gimple_omp_body_ptr): New function.
2379 (gimple_omp_body): Use it.
2380 (gimple_omp_for_pre_body_ptr): New function.
2381 (gimple_omp_for_pre_body): Use it.
2382 (gimple_transaction_body_ptr): New function.
2383 (gimple_transaction_body): Use it.
2384 (gsi_split_seq_before): Adjust to return nothing and take pointer
2385 to sequence.
2386 (gsi_set_stmt): Declare.
2387 (gsi_replace_with_seq): Declare.
2388 (walk_gimple_seq_mod): Declare.
2389 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
2390
2391 * gimple-iterator.c (gsi_set_stmt): New function.
2392 (gsi_split_seq_before): Return new sequence via pointer argument.
2393 (gsi_replace): Use gsi_set_stmt.
2394
2395 * tree-ssa-loop-im.c (move_computations_stmt): First remove
2396 then insert stmt.
2397 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
2398 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
2399 return new stmt.
2400 (reserve_phi_args_for_new_edge): Change call to above,
2401 use gsi_set_stmt.
2402
2403 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
2404 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
2405 iterators. Adjust call to lower_omp.
2406 (lower_lastprivate_clauses): Adjust call to lower_omp.
2407 (lower_reduction_clauses): Ditto.
2408 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
2409 (lower_omp_sections): Don't explicitely count sequence length,
2410 nullify lowered bodies earlier, ensure stmts are part of only
2411 one sequence, adjust call to lower_omp.
2412 (lower_omp_single): Ensure stmts are part of only one sequence,
2413 adjust call to lower_omp.
2414 (lower_omp_master): Ditto.
2415 (lower_omp_ordered): Ditto.
2416 (lower_omp_critical): Ditto.
2417 (lower_omp_for): Ditto.
2418 (lower_omp_taskreg): Ditto, tidy.
2419 (lower_omp_1): Adjust calls to lower_omp.
2420 (execute_lower_omp): Ditto.
2421 (lower_omp): Adjust to take pointer to sequence.
2422 (diagnose_sb_2): Use walk_gimple_seq_mod.
2423 (diagnose_omp_structured_block_errors): Ditto and set possibly
2424 changed function body.
2425 * gimple-low.c (lower_function_body): Set function body after
2426 it stabilizes.
2427 (lower_sequence): Adjust to take pointer to sequence.
2428 (lower_omp_directive): Ensure stmt isn't put twice into the
2429 sequence, adjust call to lower_sequence.
2430 (lower_stmt): Adjust calls to lower_sequence.
2431 (lower_gimple_bind): Ditto.
2432 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
2433 * tree-nested.c (walk_body): Take pointer to sequence, use
2434 walk_gimple_seq_mod.
2435 (walk_function): Adjust call to walk_body, set possibly changed body.
2436 (walk_gimple_omp_for): Adjust calls to walk_body.
2437 (convert_nonlocal_omp_clauses): Ditto.
2438 (convert_nonlocal_reference_stmt): Ditto.
2439 (convert_local_omp_clauses): Ditto.
2440 (convert_local_reference_stmt): Ditto.
2441 (convert_tramp_reference_stmt): Ditto.
2442 (convert_gimple_call): Ditto.
2443 (convert_nl_goto_reference): Use local iterator copy.
2444 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
2445 but taking pointer to sequence, ensure gsi_start is called with
2446 callers lvalue.
2447 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
2448 asserting that the sequence head didn't change.
2449 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
2450 walk_gimple_seq_mod.
2451 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
2452 (execute_lower_tm): Ditto, and set possibly changed body.
2453 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
2454 call gsi_start with that lvalue.
2455 (replace_goto_queue_stmt_list): Ditto.
2456 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
2457 (replace_goto_queue): Ditto.
2458 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
2459 (lower_try_finally_onedest): Ditto.
2460 (lower_try_finally_copy): Ditto.
2461 (lower_try_finally_switch): Ditto.
2462 (lower_try_finally): Ditto.
2463 (lower_eh_filter): Ditto.
2464 (lower_eh_must_not_throw): Ditto.
2465 (lower_cleanup): Ditto.
2466 (lower_eh_constructs_2): Ditto.
2467 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
2468 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
2469 set possibly changed body.
2470 (optimize_double_finally): Call gsi_start with lvalue.
2471
2472 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
2473 (gimple_split_block): Ditto.
2474 (gimple_merge_blocks): Use gsi_start_phis.
2475 (move_stmt_r): Use walk_gimple_seq_mod.
2476 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
2477 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
2478 (rebuild_cgraph_edges): Ditto.
2479 (cgraph_rebuild_references): Ditto.
2480 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
2481 * tree-inline.c (copy_phis_for_bb): Ditto.
2482 * tree-ssa-dce.c: Ditto.
2483
2484 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
2485
2486 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
2487 Andi Kleen <ak@linux.intel.com>
2488
2489 * coretypes.h (MEMMODEL_MASK): New.
2490 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
2491 and return new variable.
2492 (expand_builtin_atomic_exchange): Mask memmodel values.
2493 (expand_builtin_atomic_compare_exchange): Ditto.
2494 (expand_builtin_atomic_load): Ditto.
2495 (expand_builtin_atomic_store): Ditto.
2496 (expand_builtin_atomic_clear): Ditto.
2497 * doc/extend.texi: Mention port-dependent memory model flags.
2498 * config/i386/cpuid.h (bit_HLE): New.
2499 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2500 HLE support.
2501 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
2502 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
2503 (ix86_target_string)<-mhle>: New.
2504 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
2505 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
2506 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
2507 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
2508 enabled for generic, generic64 and core-avx2.
2509 (ix86_print_operand): Generate HLE lock prefixes.
2510 (ix86_memmodel_check): New.
2511 (TARGET_MEMMODEL_CHECK): Ditto.
2512 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
2513 (IX86_HLE_ACQUIRE): Ditto.
2514 (IX86_HLE_RELEASE): Ditto.
2515 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
2516 * config/i386/i386.opt (mhle): Ditto.
2517 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
2518 success model to instruction emitter.
2519 (atomic_fetch_add<mode>): Ditto.
2520 (atomic_exchange<mode>): Ditto.
2521 (atomic_add<mode>): Ditto.
2522 (atomic_sub<mode>): Ditto.
2523 (atomic_<code><mode>): Ditto.
2524 (*atomic_compare_and_swap_doubledi_pic): Ditto.
2525 (atomic_compare_and_swap_single<mode>): Define and use argument
2526 for success model.
2527 (atomic_compare_and_swap_double<mode>): Ditto.
2528 * configure.ac: Check if assembler support HLE prefixes.
2529 * configure: Regenerate.
2530 * config.in: Ditto.
2531
2532 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
2533
2534 PR middle-end/53153
2535 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
2536 split out from ...
2537 (gimplify_switch_expr): ... here.
2538 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
2539 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
2540 to clean up case labels with values outside the index type range.
2541 (simplify_gimple_switch): Call it if something changed.
2542 Remove strange and unnecessary assert.
2543
2544 2012-05-02 Richard Guenther <rguenther@suse.de>
2545
2546 * fold-const.c (div_if_zero_remainder): sizetypes no longer
2547 sign-extend.
2548 (int_const_binop_1): New worker for int_const_binop with
2549 overflowable parameter. Pass it through to force_fit_type_double.
2550 (int_const_binop): Wrap around int_const_binop_1 with overflowable
2551 equal to one.
2552 (size_binop_loc): Call int_const_binop_1 with overflowable equal
2553 to minus one, forcing overflow detection for even unsigned types.
2554 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
2555 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
2556 * stor-layout.c (initialize_sizetypes): sizetypes no longer
2557 sign-extend.
2558 (layout_type): For zero-sized arrays ignore overflow on the
2559 size calculations.
2560 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
2561 (bit_value_binop_1): Likewise.
2562 * tree.c (double_int_to_tree): Likewise.
2563 (double_int_fits_to_tree_p): Likewise.
2564 (force_fit_type_double): Likewise.
2565 (host_integerp): Likewise.
2566 (int_fits_type_p): Likewise.
2567 * varasm.c (output_constructor_regular_field): Sign-extend the
2568 field-offset to cater for negative offsets produced by the Ada
2569 frontend.
2570 * omp-low.c (extract_omp_for_data): Convert the loop step to
2571 signed for pointer adjustments.
2572
2573 2012-05-02 Richard Guenther <rguenther@suse.de>
2574
2575 * tree.c (valid_constant_size_p): New function.
2576 * tree.h (valid_constant_size_p): Declare.
2577 * cfgexpand.c (expand_one_var): Adjust check for too large
2578 variables by using valid_constant_size_p.
2579 * varasm.c (assemble_variable): Likewise.
2580
2581 * c-decl.c (grokdeclarator): Properly check for sizes that
2582 cover more than half of the address-space.
2583
2584 2012-05-02 Jakub Jelinek <jakub@redhat.com>
2585
2586 PR tree-optimization/53163
2587 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
2588 return value from compute_all_dependences.
2589
2590 PR rtl-optimization/53160
2591 * ree.c (combine_reaching_defs): Handle the case where cand->insn
2592 has been modified by ree pass already.
2593
2594 2012-05-01 Ian Lance Taylor <iant@google.com>
2595
2596 PR c/37303
2597 * c-decl.c (build_compound_literal): Make the decl readonly if it
2598 an array of a readonly type.
2599 * gimplify.c (gimplify_compound_literal_expr): Add fallback
2600 parameter. Change all callers. If the decl is not addressable
2601 and is not an l-value, make it readonly.
2602
2603 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
2604
2605 * ira.c (allocated_reg_info_size): New static variable.
2606 (expand_reg_info): Manage it. Call
2607 setup_preferred_alternate_classes_for_new_pseudos.
2608 (ira): Don't do it here. Remove local allocated_reg_info_size,
2609 set the global before calling find_moveable_pseudos.
2610 (find_moveable_pseudos): Call expand_reg_info rather than
2611 resize_reg_info.
2612
2613 2012-05-01 Richard Henderson <rth@redhat.com>
2614
2615 * common.opt (fsync-libcalls): New.
2616 * doc/invoke.texi: Document it.
2617 * optabs.c (init_sync_libfuncs): Honor it.
2618
2619 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
2620 Richard Sandiford <r.sandiford@uk.ibm.com>
2621
2622 PR rtl-optimization/52543
2623 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
2624 lower-subreg.h.
2625 * lower-subreg.h: New file.
2626 * target-globals.h (this_target_lower_subreg): Declare.
2627 (target_globals): Add lower_subreg;
2628 (restore_target_globals): Restore this_target_lower_subreg.
2629 * target-globals.c: Include it.
2630 (default_target_globals): Add default_target_lower_subreg.
2631 (save_target_globals): Initialize target_lower_subreg.
2632 * rtl.h (init_lower_subreg): Added declaration.
2633 * toplev.c (backend_init_target): Call initializer for lower-subreg
2634 pass.
2635 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
2636 (default_target_lower_subreg): New variable.
2637 (this_target_lower_subreg): Likewise.
2638 (twice_word_mode, choices): New macros.
2639 (shift_cost, compute_splitting_shift, compute_costs)
2640 (init_lower_subreg): New functions.
2641 (resolve_simple_move): Add speed_p argument. Check choices.
2642 (find_pseudo_copy): Don't check the mode size here.
2643 (resolve_simple_move): Assert the mode size.
2644 (find_decomposable_shift_zext): Add speed_p argument and return
2645 a bool. Check choices.
2646 (resolve_shift_zext): Add comment.
2647 (dump_shift_choices, dump_choices): New functions.
2648 (decompose_multiword_subregs): Dump list of profitable
2649 transformations. Add code to skip non profitable transformations.
2650 Update calls to simple_move and find_decomposable_shift_zext.
2651
2652 2012-05-01 Ian Bolton <ian.bolton@arm.com>
2653 Sameera Deshpande <sameera.deshpande@arm.com>
2654 Greta Yorsh <greta.yorsh@arm.com>
2655
2656 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
2657 (thumb1_unexpanded_epilogue): ...this.
2658 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
2659 (thumb1_unexpanded_epilogue): ...this.
2660 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
2661 (thumb1_unexpanded_epilogue): ...this.
2662
2663 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
2664
2665 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
2666 comparing enumeration values. Update comments.
2667
2668 2012-05-01 Alan Modra <amodra@gmail.com>
2669
2670 PR target/53038
2671 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
2672 load_cr_save, add_crlr_cfa_restore): New functions.
2673 (rs6000_restore_saved_cr): Rename to..
2674 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
2675 (rs6000_emit_epilogue): Use new functions. Adjust condition
2676 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
2677 regs when using out-of-line restore only when shrink wrapping.
2678
2679 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
2680
2681 PR middle-end/53136
2682 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
2683 calls to cgraph_node_name in xstrdup.
2684 (ipa_make_edge_direct_to_target): Ditto.
2685 * cgraph.c (dump_cgraph_node): Ditto.
2686 * tree-sra.c (convert_callers_for_node): Ditto.
2687 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
2688 * ipa-cp.c (perhaps_add_new_callers): Ditto.
2689 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
2690 (cgraph_materialize_all_clones): Ditto.
2691 * ipa-inline.c (report_inline_failed_reason): Ditto.
2692 (want_early_inline_function_p): Ditto.
2693 (edge_badness): Ditto.
2694 (update_edge_key): Ditto.
2695 (flatten_function): Ditto.
2696 (ipa_inline): Ditto.
2697 (inline_always_inline_functions): Ditto.
2698 (early_inline_small_functions): Ditto.
2699
2700 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
2701
2702 PR target/53141
2703 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
2704 constraints 0 and 1.
2705
2706 012-04-30 Jan Hubicka <jh@suse.cz>
2707
2708 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
2709 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
2710 (cgraph_add_to_same_comdat_group): Remove.
2711 (cgraph_add_asm_node): Move to cgraphunit.c.
2712 (cgraph_make_decl_local): Move to symtab.c
2713 (cgraph_make_node_local_1): Update.
2714 (cgraph_can_remove_if_no_direct_calls_and): Update.
2715 (used_from_object_file_p): Update.
2716 (resolution_used_from_other_file_p): Move to symtab.c
2717 (cgraph_used_from_object_file_p): move to symtab.c
2718 (verify_cgraph_node): Verify same comdat groups.
2719 * cgraph.h (cgraph_asm_node): Rename to ...
2720 (asm_node): ... this one.
2721 (cgraph_asm_nodes): Rename to ...
2722 (asm_nodes): ... this one.
2723 (symtab_add_to_same_comdat_group): New function.
2724 (symtab_dissolve_same_comdat_group_list): New function.
2725 (symtab_used_from_object_file_p): Declare.
2726 (symtab_make_decl_local): Declare.
2727 (cgraph_add_to_same_comdat_group): Remove.
2728 (cgraph_add_asm_node): Remove.
2729 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
2730 Remove.
2731 (cgraph_finalize_compilation_unit): Rename to ...
2732 (finalize_compilation_unit): ... this one.
2733 (cgraph_optimize): Rename to ....
2734 (compile): ... this one.
2735 (add_asm_node): Declare.
2736 (fixup_same_cpp_alias_visibility): Declare.
2737 (cgraph_make_decl_local): Remove.
2738 (varpool_assemble_pending_decls): Rename to ...
2739 (varpool_output_variables): ... this one.
2740 (varpool_remove_unreferenced_decls): Remove.
2741 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
2742 (preserve_function_body_p): Make static.
2743 * toplev.c (compile_file): Update comments; update.
2744 * cgraphunit.c: Update comments.
2745 (cgraph_expand_all_functions): Rename to ...
2746 (expand_all_functions): ... this one; update.
2747 (cgraph_mark_functions_to_output): Rename to ...
2748 (mark_functions_to_output): ... this one; cleanup.
2749 (cgraph_output_pending_asms): Remove prototype.
2750 (asm_nodes, asm_last_node): New static vars.
2751 (cgraph_process_new_functions): Update.
2752 (cgraph_reset_node): Cleanup; add comment.
2753 (cgraph_add_new_function): Update.
2754 (cgraph_output_pending_asms): Rename to ...
2755 (output_asm_statements): ... this one.
2756 (add_asm_node): New function.
2757 (fixup_same_cpp_alias_visibility): New function based on code
2758 in cgraph_analyze_function.
2759 (cgraph_analyze_function): Use it.
2760 (cgraph_order_sort): Update.
2761 (cgraph_output_in_order): Update.
2762 (cgraph_function_versioning): Update.
2763 (cgraph_optimize): Rename to ...
2764 (compile): ... this one; initialize streamer hooks here.
2765 (cgraph_finalize_compilation_unit): Rename to ...
2766 (finalize_compilation_unit): ... this one; do not initialize streamer
2767 hook here.
2768 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
2769 * dwarf2out.c: Update ocmment.
2770 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
2771 * method.c (use_thunk): Likewise.
2772 * semantics.c (maybe_add_lambda_conv_op): Likewise.
2773 * decl2.c (maybe_emit_vtables): Likewise.
2774 (cp_write_global_declarations): Use finalize_compilation_unit.
2775 * parser.c (cp_parser_asm_definition): Use add_asm_node.
2776 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
2777 * c-decl.c (c_write_global_declarations): Use
2778 finalize_compilation_unit.
2779 * langhooks.c (write_global_declarations): Update.
2780 * ipa.c (cgraph_externally_visible_p): Update.
2781 (dissolve_same_comdat_group_list): Remove.
2782 (function_and_variable_visibility): Update.
2783 * symtab.c: Inlcude lto-streamer.h and rtl.h
2784 (ld_plugin_symbol_resolution_names): New.
2785 (symtab_add_to_same_comdat_group): New.
2786 (symtab_dissolve_same_comdat_group_list): New.
2787 (resolution_used_from_other_file_p): Move here from cgraph.c
2788 (symtab_used_from_object_file_p): New.
2789 (symtab_make_decl_local): New.
2790 * passes.c (register_pass): Update comments.
2791 * c-parser.c (c_parser_asm_definition): Update.
2792 * varpool.c (varpool_analyze_node): Use
2793 fixup_same_cpp_alias_visibility.
2794 (varpool_remove_unreferenced_decls): Make static.
2795 (varpool_assemble_pending_decls): Rename to ...
2796 (varpool_output_variables): ... this one; call
2797 varpool_remove_unreferenced_decls.
2798 (varpool_used_from_object_file_p): Remove.
2799
2800 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
2801
2802 PR c++/51033
2803 * c-typeck.c (build_array_ref): Call
2804 convert_vector_to_pointer_for_subscript.
2805 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
2806
2807 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
2808
2809 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
2810 to compile-time "mode == <MODE>mode" checks.
2811 (and splitter): Ditto.
2812
2813 2012-04-30 Richard Henderson <rth@redhat.com>
2814
2815 * config/arm/arm.md (UNSPEC_LL): New.
2816 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
2817 (arm_load_exclusivedi): Use %H0.
2818
2819 2012-04-30 Jason Merrill <jason@redhat.com>
2820
2821 * dwarf2out.c (comdat_symbol_id): Add const.
2822 (union die_symbol_or_type_node): Add const to die_symbol.
2823 (output_die_symbol, output_die, output_comp_unit): Adjust.
2824
2825 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
2826
2827 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
2828 * config/arm/neon.md (negdi2_neon): New insn.
2829 Also add splitters for core and NEON registers.
2830
2831 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
2832
2833 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
2834 (arm_print_operand): Add 'x' format.
2835 * config/arm/constraints.md (Dn): Allow const_int.
2836 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
2837 Use 'x' format to print constants.
2838 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
2839 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
2840 is enabled.
2841 (movdi_vfp_cortexa8): Likewise.
2842
2843 2012-04-30 Ian Bolton <ian.bolton@arm.com>
2844 Sameera Deshpande <sameera.deshpande@arm.com>
2845 Greta Yorsh <greta.yorsh@arm.com>
2846
2847 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
2848 * config/arm/arm.c (ldm_stm_operation_p): New function.
2849 * config/arm/predicates.md (load_multiple_operation): Update predicate.
2850 (store_multiple_operation): Likewise.
2851
2852 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
2853 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
2854 * config/arm/predicates.md (load_multiple_operation): Add arguments.
2855 (store_multiple_operation): Likewise.
2856
2857 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
2858
2859 * config/i386/i386.md (and<mode>3): Expand masking operations with
2860 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
2861 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
2862
2863 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2864
2865 Add -Wvarargs option
2866 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
2867 argument for the various warning_at calls.
2868 * docs/invoke.texi: Update the documentation.
2869
2870 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2871
2872 Switch -ftrack-macro-expansion=2 on by default.
2873 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
2874 by default.
2875
2876 Fix va_start related location
2877 * builtins.c (fold_builtin_next_arg): Unwinds to the first
2878 location in real source code.
2879
2880 Make conversion warnings work on NULL with -ftrack-macro-expansion
2881 * input.h (expansion_point_location_if_in_system_header): Declare
2882 new function.
2883 * input.c (expansion_point_location_if_in_system_header): Define it.
2884
2885 Fix -Wuninitialized for -ftrack-macro-expansion
2886 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
2887 declaration. Use linemap_location_before_p for source locations.
2888
2889 Strip "<built-in>" loc from displayed expansion context
2890 * input.c (expand_location_1): When expanding to spelling location
2891 in a context of a macro expansion, skip reserved system header
2892 locations. Update comments. * tree-diagnostic.c
2893 (maybe_unwind_expanded_macro_loc): Likewise.
2894
2895 Make expand_location resolve to locus in main source file
2896 * input.c (expand_location_1): New. Takes a parameter to choose
2897 whether to resolve the location to spelling or expansion point.
2898 Was factorized from ...
2899 (expand_location): ... here.
2900 (expand_location_to_spelling_point): New. Implemented in terms of
2901 expand_location_1.
2902 * diagnostic.c (diagnostic_build_prefix): Use the new
2903 expand_location_to_spelling_point instead of expand_location.
2904
2905 Fix PCH crash on GTYed pointer-to-scalar field of a struct
2906 * gengtype.c (write_types_process_field): Force second argument of
2907 the call to the PCH object hierarchy walker to be 'x'.
2908
2909 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
2910
2911 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
2912 predicate to discriminate types.
2913
2914 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2915
2916 * doc/invoke.texi (Wmissing-format-attribute): Document as an
2917 alias of Wsuggest-attribute=format.
2918 * c-typeck.c (convert_for_assignment): Replace
2919 Wmissing-format-attribute with Wsuggest-attribute=format.
2920 (digest_init): Likewise.
2921
2922 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2923
2924 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
2925 * common.opt (Wmissing-noreturn): Alias of
2926 -Wsuggest-attribute=noreturn.
2927
2928 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
2929
2930 PR target/53156
2931 * config/cris/cris.md (andqu): New peephole2.
2932 (andu): Tweak head comment.
2933
2934 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2935 Steven Bosscher <steven@gcc.gnu.org>
2936 Maxim Kuvyrkov <maxim@codesourcery.com>
2937
2938 PR tree-optimization/38785
2939 * common.opt (ftree-partial-pre): New option.
2940 * doc/invoke.texi: Document it.
2941 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
2942 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
2943 benefit speed path.
2944 (execute_pre): Use flag_tree_partial_pre.
2945
2946 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2947
2948 PR target/52999
2949 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
2950 in constant pool.
2951
2952 2012-04-27 Ollie Wild <aaw@google.com>
2953
2954 * doc/invoke.texi (Wliteral-suffix): Document new option.
2955
2956 2012-04-27 Tom Tromey <tromey@redhat.com>
2957
2958 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
2959 (dwarf_tag_name): Use get_DW_TAG_name.
2960 (dwarf_attr_name): Use get_DW_AT_name.
2961 (dwarf_form_name): Use get_DW_FORM_name.
2962 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
2963
2964 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
2965
2966 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
2967 arguments are -1 and 0, by negating the result of the conditional.
2968
2969 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
2970
2971 PR target/53138
2972 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
2973
2974 2012-04-27 Richard Guenther <rguenther@suse.de>
2975
2976 * tree-flow.h (is_hidden_global_store): Remove.
2977 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
2978 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
2979 (stmt_may_clobber_global_p): Likewise.
2980 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
2981 (stmt_may_clobber_global_p): Likewise.
2982 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
2983 stmt_may_clobber_global_p.
2984 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
2985
2986 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
2987
2988 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
2989 place.
2990
2991 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
2992 reorganize some fields and update comments. Rename bit_test_uniq
2993 and bit_test_count to uniq resp. count. Remove bit_test_bb.
2994 (collect_switch_conv_info): New function, collects info about a
2995 GIMPLE_SWITCH into a struct switch_conv_info.
2996 (check_range): Simplify to use pre-recorded info. Fix think-o in
2997 range-branch ratio check.
2998 (check_process_case): Remove function.
2999 (check_all_empty_except_final): New function, verifies that all
3000 non-final basic blocks are empty.
3001 (process_switch): Simplify to use pre-recorded info. Call
3002 collect_switch_conv_info to do that. Assert that degenerate switch
3003 statements have been cleaned up.
3004
3005 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
3006
3007 PR middle-end/27139
3008 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
3009
3010 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3011
3012 PR c/53130
3013 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
3014
3015 2012-04-27 Tom de Vries <tom@codesourcery.com>
3016
3017 PR tree-optimization/51879
3018 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
3019 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
3020 of ...
3021 (defs_to_varying): ... here. Don't set use_processed.
3022 (visit_reference_op_call): Handle gimple_vdef.
3023 Handle case that lhs is NULL_TREE.
3024 (visit_use): Use mark_use_processed. Handle calls with side-effect
3025 using visit_reference_op_call.
3026
3027 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
3028
3029 * sched-deps.c (fixup_sched_groups): Rename to...
3030 (chain_to_prev_insn): ...this.
3031 (chain_to_prev_insn_p): New function.
3032 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
3033
3034 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
3035
3036 * sched-int.h (_haifa_insn_data): Move priority_status.
3037 Add model_index.
3038 (INSN_MODEL_INDEX): New macro.
3039 * haifa-sched.c (insn_delay): New function.
3040 (sched_regno_pressure_class): Update commentary.
3041 (mark_regno_birth_or_death): Pass the liveness bitmap and
3042 pressure array as arguments, instead of using curr_reg_live and
3043 curr_reg_pressure. Only update the pressure if the bit in the
3044 liveness set has changed.
3045 (initiate_reg_pressure_info): Always trust the live-in set for
3046 SCHED_PRESSURE_MODEL.
3047 (initiate_bb_reg_pressure_info): Update call to
3048 mark_regno_birth_or_death.
3049 (dep_list_size): Take the list as argument.
3050 (calculate_reg_deaths): New function, extracted from...
3051 (setup_insn_reg_pressure_info): ...here.
3052 (MODEL_BAR): New macro.
3053 (model_pressure_data, model_insn_info, model_pressure_limit)
3054 (model_pressure_group): New structures.
3055 (model_schedule, model_worklist, model_insns, model_num_insns)
3056 (model_curr_point, model_before_pressure, model_next_priority):
3057 New variables.
3058 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
3059 (MODEL_INSN_INFO, MODEL_INSN): New macros.
3060 (model_index, model_update_limit_points_in_group): New functions.
3061 (model_update_limit_points, model_last_use_except): Likewise.
3062 (model_start_update_pressure, model_update_pressure): Likewise.
3063 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
3064 (model_excess_cost, model_dump_pressure_points): Likewise.
3065 (model_set_excess_costs): Likewise.
3066 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
3067 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
3068 schedule as an alternative tie-breaker. Update the call to
3069 dep_list_size.
3070 (ready_sort): Call model_set_excess_costs.
3071 (update_register_pressure): Update call to mark_regno_birth_or_death.
3072 Rely on that function to check liveness rather than doing it here.
3073 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
3074 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
3075 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
3076 (model_record_pressure, model_record_pressures): New functions.
3077 (model_record_final_pressures, model_add_successors_to_worklist)
3078 (model_promote_predecessors, model_choose_insn): Likewise.
3079 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
3080 (model_start_schedule, model_finalize_pressure_group): Likewise.
3081 (model_end_schedule): Likewise.
3082 (schedule_insn): Say when we're scheduling the next instruction
3083 in the model schedule.
3084 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
3085 (queue_to_ready): Do not add instructions that are
3086 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
3087 Always allow the next instruction in the model schedule to be added.
3088 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
3089 and delay for SCHED_PRESSURE_MODEL too.
3090 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
3091 SCHED_PRIORITY_MODEL, but also take the DFA into account.
3092 (schedule_block): Call model_start_schedule and model_end_schedule.
3093 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
3094 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
3095 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
3096 region_ref_regs.
3097 (sched_finish): Update accordingly.
3098 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
3099 to SCHED_PRESSURE_MODEL.
3100 (add_jump_dependencies): Update call to dep_list_size.
3101 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
3102 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
3103 to SCHED_PRESSURE_MODEL.
3104 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
3105 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
3106 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
3107 handling to SCHED_PRESSURE_MODEL.
3108
3109 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
3110
3111 * common.opt (fsched-pressure-algorithm=): New option.
3112 * flag-types.h (sched_pressure_algorithm): New enum.
3113 * sched-int.h (sched_pressure_p): Replace with...
3114 (sched_pressure): ...this new variable.
3115 * haifa-sched.c (sched_pressure_p): Replace with...
3116 (sched_pressure): ...this new variable.
3117 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
3118 (update_reg_and_insn_max_reg_pressure, schedule_insn)
3119 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
3120 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
3121 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3122 (sched_analyze_insn): Likewise.
3123 * sched-rgn.c (schedule_region): Likewise.
3124 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
3125
3126 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
3127
3128 * PR middle-end/52997
3129 * ira.c (find_moveable_pseudos): Call resize_reg_info.
3130
3131 PR middle-end/52940
3132 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
3133 * expr.c (convert_move): Honor unsignedp when extending partial int
3134 modes.
3135 * genmodes.c (complete_mode): Don't clear component field of partial
3136 int modes.
3137 (emit_mode_inner): Don't emit it however.
3138 (calc_wider_mode): Partial int modes widen to their component.
3139
3140 2012-04-26 David S. Miller <davem@davemloft.net>
3141
3142 * config/sparc/niagara4.md: New file.
3143 * config/sparc/sparc.md: Include it.
3144 * config/sparc/sparc.c (niagara4_costs): New processor costs.
3145 (sparc_option_override): Use it.
3146 (sparc_use_sched_lookahead): Return 2 for niagara4.
3147 (sparc_issue_rate): Likewise.
3148
3149 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
3150 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
3151 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
3152 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
3153 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
3154 alignaddrldi_vis): Set type to gsr.
3155 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
3156 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
3157 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
3158 v<vis3_shift_patname><mode>3, fmean16_vis,
3159 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
3160 fucmp<code>8<P:mode>_vis): Set type to fga.
3161 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
3162 * config/sparc/niagara.md: Likewise.
3163 * config/sparc/niagara2.md: Likewise.
3164 * config/sparc/ultra3.md: Likewise, and fix type matching for
3165 us3_ialuX reservation.
3166
3167 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3168
3169 * reload.c (find_reloads): Change the loop nesting when trying an
3170 alternative with swapped operands.
3171
3172 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3173
3174 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
3175 comment. Delete unused parameter first_exp_point_map.
3176 (virt_loc_aware_diagnostic_finalizer): Update call.
3177
3178 2012-04-26 Michael Hope <michael.hope@linaro.org>
3179 Richard Earnshaw <rearnsha@arm.com>
3180
3181 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
3182 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
3183 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
3184 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
3185
3186 2012-04-25 Sriraman Tallam <tmsriram@google.com>
3187
3188 * doc/extend.texi: Document avx2 support.
3189 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
3190
3191 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
3192
3193 PR target/53120
3194 * config/cris/cris.md ("*andhi_lowpart_v32")
3195 ("*andqi_lowpart_v32"): Change first input-only operand from
3196 a (match_operand ...) to (match_dup 0). Drop alternatives with
3197 const_int-matching constraints for redundancy.
3198 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
3199 three-operand alternative.
3200
3201 2012-04-25 Jakub Jelinek <jakub@redhat.com>
3202
3203 PR target/53110
3204 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
3205 instead expand it as zero extension.
3206
3207 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
3208
3209 PR debug/52857
3210 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
3211
3212 2012-04-25 Jakub Jelinek <jakub@redhat.com>
3213
3214 * common.opt (flag_debug_types_section): Default to 0.
3215 (dwarf_version): Default to 4.
3216 (dwarf_record_gcc_switches): Default to 1.
3217 (dwarf_strict): Default to 0.
3218 * toplev.c (process_options): Don't handle dwarf_strict
3219 or dwarf_version here.
3220 * config/vxworks.c (vxworks_override_options): Don't
3221 test whether dwarf_strict or dwarf_version are negative,
3222 instead test !global_options_set.x_dwarf_*.
3223 * config/darwin.c (darwin_override_options): Default to
3224 dwarf_version 2.
3225 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
3226 and -fno-debug-types-section are now the default.
3227
3228 2012-04-25 Jan Hubicka <jh@suse.cz>
3229
3230 * cgraphunit.c: Update toplevel comment.
3231 (tree_rest_of_compilation): Merge into cgraph_expand_function.
3232 (cgraph_analyze_function): Make static.
3233 (cgraph_decide_is_function_needed): Make static.
3234 (cgraph_add_new_function): Use expand_function instead of
3235 rest_of_compilation.
3236 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
3237 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
3238 Move to cgraph.c
3239 (cgraph_inline_p): Remove.
3240 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
3241 (init_cgraph): Add comment.
3242 * cgraphbuild.c (record_reference, mark_address, mark_load,
3243 mark_store): Do not call analyze_expr hook.
3244 * cgraph.c: Update toplevel comment.
3245 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
3246 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
3247 Move fere from cgraphunit.c
3248 (cgraph_mark_force_output_node): Move to cgraph.h
3249 * cgraph.h: Reorder so the comments match the function placement.
3250 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
3251 (cgraph_mark_force_output_node): Move here from cgraph.c
3252 * tree.c (free_lang_data): Do not clear analyze_expr hook.
3253 * ipa-inline-transform.c (preserve_function_body_p): New function.
3254 (inline_transform): Update.
3255 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
3256 * langhooks.h (lang_hooks_for_callgraph): Remove.
3257 (lang_hooks): Remove callgraph.
3258 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
3259 * varpool.c: Remove out of date comment.
3260 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
3261 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
3262
3263 2012-04-25 Jan Hubicka <jh@suse.cz>
3264
3265 PR middle-end/53089
3266 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
3267 forward declaration.
3268 (cgraph_finalize_function): Finalize them here.
3269 * symtab.c (dump_symtab): Dump ctors and dtors.
3270
3271 2012-04-25 Jakub Jelinek <jakub@redhat.com>
3272
3273 PR middle-end/52979
3274 * stor-layout.c (get_best_mode): Don't return mode with bitsize
3275 larger than maxbits. Don't compute maxbits modulo align.
3276 Also check that unit bytes long store at bitpos / unit * unit
3277 doesn't affect bits beyond bitregion_end.
3278 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
3279 would not fit into bitregion_start ... bitregion_end + 1 bit region.
3280 (store_split_bit_field): Decrease unit close to end of bitregion_end
3281 if access is restricted in order to avoid mutual recursion.
3282
3283 PR tree-optimization/53058
3284 * double-int.h (double_int_max_value, double_int_min_value): New
3285 prototypes.
3286 * double-int.c (double_int_max_value, double_int_min_value): New
3287 functions.
3288 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
3289 or GT_EXPR with double_int_max_value instead of double_int_mask.
3290
3291 2012-04-25 Richard Guenther <rguenther@suse.de>
3292
3293 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
3294 * tree-vect-loop.c (vect_transform_loop): Adjust.
3295 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
3296 the maximum number of iterations for the epilogue loop.
3297 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
3298
3299 2012-04-25 Jakub Jelinek <jakub@redhat.com>
3300
3301 PR c/52880
3302 * c-typeck.c (set_nonincremental_init,
3303 set_nonincremental_init_from_string): Pass true instead of false
3304 as IMPLICIT to add_pending_init.
3305
3306 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3307
3308 * c-typeck.c (pop_init_level): Improve diagnostics.
3309
3310 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
3311
3312 * compare-elim.c (try_eliminate_compare): Also handle operands with
3313 implicit extensions.
3314
3315 2012-04-25 Alan Modra <amodra@gmail.com>
3316
3317 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
3318 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
3319 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
3320 (no_global_regs_above): Delete.
3321 (no_global_regs): New function.
3322 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
3323 value for load multiple test.
3324 (savres_routine_syms): Increase size.
3325 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
3326 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
3327 rather than a number of boolean flags. Update all callers.
3328 (rs6000_savres_routine_name): Generate vector save/restore names.
3329 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
3330 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
3331 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
3332 and using_store_multiple. Expand uses. Don't always use r11 as
3333 frame reg when needed for out-of-line saves. Set up initial offset
3334 for out-of-line vector saves when buying stack frame. Handle pointer
3335 reg setup for out-of-line fp save. Emit call to out-of-line vector
3336 save function. Choose r11 or r12 for vrsave reg when available for
3337 better scheduling.
3338 (rs6000_output_function_prologue): Don't emit .extern for ELF.
3339 (rs6000_emit_epilogue): Choose a better frame reg when restoring
3340 from back-chain to suit out-of-line vector restore functions. Emit
3341 call to out-of-line vector restore function. Adjust register used
3342 for cr restore. Tweak pointer register setup for gpr restore.
3343 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
3344 FIXED_R13.
3345 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
3346 (V_SAVE_INLINE): Define.
3347 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
3348
3349 2012-04-25 Alan Modra <amodra@gmail.com>
3350
3351 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
3352 out-of-line save/restore for large frames. Don't disable
3353 out-of-line saves on ABI_AIX when using static chain reg.
3354 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
3355 clobber static chain reg, and tweak for out-of-line gpr saves
3356 that use r1.
3357
3358 2012-04-25 Alan Modra <amodra@gmail.com>
3359
3360 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
3361 (rs6000_emit_prologue): Use the above to catch register overlap.
3362
3363 2012-04-25 Alan Modra <amodra@gmail.com>
3364
3365 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
3366 decl. Move logic selecting update reg to callers. Update all callers.
3367 (rs6000_emit_allocate_stack): Add copy_off param.
3368 (emit_frame_save): Don't handle reg+reg addressing.
3369 (ptr_regno_for_savres): New function, extracted from..
3370 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
3371 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
3372 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
3373 frame offset adjustment for out-of-line save with copy from sp.
3374 Simplify condition controlling whether cr is saved early or
3375 late. Use ptr_regno_for_savres to verify correct reg is set
3376 up for out-of-line saves. Pass the actual pointer reg used to
3377 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
3378 function. Rearrange spe vars so code is similar to that
3379 elsewhere in this function. Don't update frame_off when spe
3380 save code will restore r11. Use emit_frame_save for spe and
3381 gpr saves. Consolidate darwin out-of-line gpr setup with that
3382 for other abis. Don't assume frame_offset is zero and frame
3383 reg is sp when setting up altivec reg saves, and calculate
3384 exact offset requirement.
3385 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
3386 spe restore code. Consolidate darwin out-of-line gpr setup
3387 with that for other abis.
3388
3389 2012-04-25 Alan Modra <amodra@gmail.com>
3390
3391 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
3392 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
3393 the replacement.
3394 (emit_frame_save): Delete frame_ptr param. Rename total_size to
3395 frame_reg_to_sp.
3396 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
3397 and emit_frame_save calls. Cope with possibly missing note.
3398
3399 2012-04-24 Sriraman Tallam <tmsriram@google.com>
3400
3401 * config/i386/i386.c (build_processor_model_struct): New function.
3402 (make_var_decl): New function.
3403 (fold_builtin_cpu): New function.
3404 (ix86_fold_builtin): New function.
3405 (make_cpu_type_builtin): New function.
3406 (ix86_init_platform_type_builtins): New function.
3407 (ix86_expand_builtin): Expand new builtins by folding them.
3408 (ix86_init_builtins): Make new builtins to detect CPU type.
3409 (TARGET_FOLD_BUILTIN): New macro.
3410 (IX86_BUILTIN_CPU_INIT): New enum value.
3411 (IX86_BUILTIN_CPU_IS): New enum value.
3412 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
3413 * config/i386/i386-builtin-types.def: New function type.
3414 * testsuite/gcc.target/builtin_target.c: New testcase.
3415 * doc/extend.texi: Document builtins.
3416
3417 2012-04-24 Olivier Hainque <hainque@adacore.com>
3418
3419 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
3420 * toplev.c (process_options): Default to dwarf_version 2.
3421 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
3422 and dwarf_version 2.
3423
3424 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3425
3426 * tree-pretty-print.h (default_tree_printer): Do not declare.
3427 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
3428 intl.h.
3429 (default_tree_diagnostic_starter): Make static.
3430 (default_tree_printer): Move to here. Make static.
3431 (tree_diagnostics_defaults): New.
3432 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
3433 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
3434 * toplev.c: Do not include tree-pass.h.
3435 (default_tree_printer): Move from here.
3436 (general_init): Use tree_diagnostics_defaults.
3437
3438 2012-04-24 Chao-ying Fu <fu@mips.com>
3439
3440 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
3441 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
3442 * config/mips/gnu-user.h
3443 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
3444 (GNU_USER_TARGET_LINK_SPEC): New define.
3445 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
3446 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
3447 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
3448 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
3449 GNU_USER_TARGET_ENDFILE_SPEC.
3450 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
3451 (GNU_USER_TARGET_LINK_SPEC): New define.
3452 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
3453 * config/mips/linux-common.h: New file.
3454
3455 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3456
3457 PR target/47197
3458 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
3459 (altivec_build_resolved_builtin): Call fully_fold_convert.
3460
3461 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
3462
3463 PR target/53065
3464 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
3465
3466 2012-04-24 Richard Guenther <rguenther@suse.de>
3467
3468 PR tree-optimization/53085
3469 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
3470 stores.
3471
3472 2012-04-24 Richard Guenther <rguenther@suse.de>
3473
3474 * tree-if-conv.c (main_tree_if_conversion): Move bb under
3475 ENABLE_CHECKING.
3476
3477 2012-04-24 Jim Meyering <meyering@redhat.com>
3478
3479 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
3480 absence of an define_enum call.
3481
3482 2012-04-24 Richard Guenther <rguenther@suse.de>
3483
3484 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
3485 the epilogue loop is not re-used as unvectorized version
3486 record the its maximum number of iterations.
3487
3488 2012-04-24 Andrew Pinski <apinski@cavium.com>
3489
3490 * tree-ssa-forwprop.c (simplify_bitwise_binary):
3491 Don't directly use def1/def2.
3492
3493 2012-04-24 Richard Guenther <rguenther@suse.de>
3494
3495 PR tree-optimization/53098
3496 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
3497 comparison sign.
3498
3499 2012-04-24 Andrew Pinski <apinski@cavium.com>
3500
3501 PR tree-opt/33512
3502 * tree-ssa-forwprop.c (defcodefor_name): New function.
3503 (simplify_bitwise_binary): Use defcodefor_name instead of manually
3504 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
3505 Simplify "(~X | Y) & X" to "X & Y" and
3506 "(~X & Y) | X" to "X | Y".
3507
3508 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3509
3510 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
3511 validate_change to add clobbers if IN_GROUP is nonzero.
3512 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
3513 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
3514 prototype.
3515 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
3516 set to false.
3517 * config/s390/s390.c (insn_invalid_p): Likewise.
3518
3519 2012-04-24 Jakub Jelinek <jakub@redhat.com>
3520
3521 PR middle-end/53084
3522 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
3523 (output_addressed_constants): Likewise.
3524
3525 PR middle-end/52999
3526 * varasm.c (get_section): Don't ICE for section conflicts with
3527 built-in section kinds.
3528
3529 2012-04-23 DJ Delorie <dj@redhat.com>
3530
3531 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
3532 (LIBSTDCXX): Change to CPP2.
3533
3534 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
3535
3536 PR bootstrap/52878
3537 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
3538 extra_masks.
3539
3540 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
3541
3542 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
3543 (*addsi_2_zext): Ditto.
3544 (*add<mode>_3): Ditto.
3545 (*addsi_3_zext): Ditto.
3546 (*add<mode>_5): Ditto.
3547
3548 2012-04-23 Andrew Pinski <apinski@cavium.com>
3549
3550 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
3551 (C & B) to (A OP0) & B.
3552
3553 2012-04-23 Martin Jambor <mjambor@suse.cz>
3554
3555 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
3556 temporaries created for a bitfield (reverting revision 122014).
3557
3558 2012-04-23 Richard Guenther <rguenther@suse.de>
3559
3560 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
3561 the condition using is_gimple_condexpr and avoid the not necessary
3562 boolification.
3563 (set_prologue_iterations): Likewise.
3564 (vect_loop_versioning): Likewise.
3565
3566 2012-04-23 Richard Guenther <rguenther@suse.de>
3567
3568 PR tree-optimization/53070
3569 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
3570 (main_tree_if_conversion): Verify we succeeded in that.
3571
3572 2012-04-23 Jan Hubicka <jh@suse.cz>
3573
3574 * lto-symtab.c (lto_cgraph_replace_node): Do not call
3575 mark_reahcable_node.
3576 * cgraph.c (cgraph_remove_node): Do not clear reachable.
3577 (cgraph_mark_reachable_node): Remove.
3578 (cgraph_mark_force_output_node): Do not set reachable.
3579 (dump_cgraph_node): Do not dump reachable.
3580 (cgraph_create_virtual_clone): Do not set reachable.
3581 * cgraph.h (cgraph_node): Remove reachable flag.
3582 (varpool_node): Remove reachable flag.
3583 (cgraph_mark_if_needed): Remove.
3584 (cgraph_mark_reachable_node): Remove.
3585 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
3586 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
3587 reachable.
3588 (cgraph_add_new_function): Likewise.
3589 (cgraph_mark_if_needed): Remove.
3590 (cgraph_analyze_function): Do not set target as reachable.
3591 (process_function_and_variable_attributes): Do not care about
3592 dllexport.
3593 (cgraph_analyze_functions): Do not set reachable flags.
3594 (cgraph_mark_functions_to_output): Do not check reachability.
3595 (cgraph_copy_node_for_versioning): Do not set reachable flag.
3596 (dbxout_expand_expr): Update.
3597 * c-decl.c (merge_decls): Do not track changed externs.
3598 * ipa.c: Include pointer-set.h
3599 (enqueue_cgraph_node): Use reachable pointer set.
3600 (process_references): Likewise.
3601 (cgraph_remove_unreachable_nodes): Likewise.
3602 (whole_program_function_and_variable_visibility): Do not recompute
3603 reachable.
3604 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
3605
3606 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
3607
3608 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
3609
3610 2012-04-23 Richard Guenther <rguenther@suse.de>
3611
3612 PR c/53060
3613 * c-typeck.c (build_binary_op): Fix typo.
3614
3615 2012-04-23 Jakub Jelinek <jakub@redhat.com>
3616
3617 PR tree-optimizations/52891
3618 * tree-vect-patterns.c (adjust_bool_pattern): Use
3619 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
3620 but with non-standard precision.
3621
3622 2012-04-22 Jan Hubicka <jh@suse.cz>
3623
3624 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
3625 tree refs.
3626
3627 2012-04-22 Jan Hubicka <jh@suse.cz>
3628
3629 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
3630 * cgraphbuild.c (record_reference, record_type_list, mark_address,
3631 mark_load, mark_store): Do not mark varpool nodes as needed.
3632 * cgraph.c (cgraph_new_nodes): Remove.
3633 (cgraph_create_function_alias): Do not mark nodes as reachable.
3634 (cgraph_add_thunk): Likewise.
3635 (cgraph_mark_reachable_node): Do not manage the queue.
3636 * cgraph.h (cgraph_node): Remove next_needed.
3637 (varpool_nodes_queue): Remove next_needed and prev_needed.
3638 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
3639 (cgraph_new_nodes): Declare.
3640 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
3641 (varpool_analyze_pending_decls): Remove.
3642 (varpool_analyze_node): New.
3643 (varpool_mark_needed_node): Remove.
3644 (varpool_first_variable, varpool_next_variable): New inlines.
3645 (varpool_first_static_initializer, varpool_next_static_initializer):
3646 Update.
3647 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
3648 (varpool_first_defined_variable): New inline.
3649 (varpool_next_defined_variable): New inline
3650 (FOR_EACH_VARIABLE): Reimplement.
3651 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
3652 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
3653 needed flag.
3654 * cgraphunit.c (cgraph_new_nodes): Declare here.
3655 (enqueue_node): New function.
3656 (cgraph_process_new_functions): update for new
3657 node set; when constructing cgraph enqueue node for processing.
3658 (cgraph_add_new_function): Use new node set.
3659 (process_function_and_variable_attributes): Do not set varpool needed
3660 flags.
3661 (referred_to_p): New function.
3662 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
3663 when varpool is in construction.
3664 (cgraph_analyze_functions): Rewrite.
3665 (cgraph_expand_all_functions): Update.
3666 (cgraph_output_in_order): Do not analyze pending decls; do not set
3667 needed flags.
3668 (cgraph_optimize): Do not analyze pending decls.
3669 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
3670 in other partition; do not mark node as needed.
3671 * dwarf2out.c (reference_to_unused): Use analyzed flag.
3672 (premark_types_used_by_global_vars_helper): Likewise.
3673 * ipa.c (process_references): Do not call varpool_mark_needed_node.
3674 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
3675 cgrpah queues.
3676 (function_and_variable_visibility): Do not mark node as needed.
3677 (whole_program_function_and_variable_visibility): Likewise.
3678 * Makefile.in (gt-varpool.h): No longer needed.
3679 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
3680 (ipa_write_summaries): Do not use needed flag.
3681 * varpool.c: Do not include gt-varpool.h
3682 (x_varpool_nodes_queue, x_varpool_last_needed_node,
3683 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
3684 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
3685 Remove.
3686 (varpool_remove_node): Do not update the lists.
3687 (dump_varpool_node): Do not dump needed flag.
3688 (varpool_enqueue_needed_node): Remove.
3689 (varpool_mark_needed_node): Remove.
3690 (varpool_reset_queue): Remove.
3691 (varpool_finalize_decl): Move to cgraphunit.c
3692 (varpool_analyze_node): New functions based on former
3693 varpool_analyze_pending_decls.
3694 (varpool_analyze_pending_decls): Remove.
3695 (varpool_assemble_decl): Do not update the lists.
3696 (enqueue_node): New function.
3697 (varpool_remove_unreferenced_decls): Rewrite.
3698 (varpool_empty_needed_queue): Remove.
3699 (add_new_static_var): Do not mark node as needed.
3700 (varpool_create_variable_alias): Handle expansion state
3701 creation.
3702 * except.c (output_ttype): Do not mark node as needed.
3703 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
3704 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
3705 Likewise.
3706 * tree-switch-conversion.c (build_one_array): Likewise.
3707
3708 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3709
3710 PR c/44774
3711 * doc/invoke.texi (pedantic): Rename to Wpedantic.
3712 * common.opt (Wpedantic): New.
3713 (pedantic): Alias Wpedantic.
3714 * diagnostic.c (warning_at): Likewise.
3715 * c-decl.c (diagnose_mismatched_decls): Likewise.
3716 (build_array_declarator): Likewise.
3717 (mark_forward_parm_decls):
3718 (check_bitfield_type_and_width): Likewise.
3719 (grokdeclarator): Likewise.
3720 (grokfield): Likewise.
3721 (finish_struct): Likewise.
3722 (build_enumerator): Likewise.
3723 (store_parm_decls_oldstyle): Likewise.
3724 (declspecs_add_qual): Likewise.
3725 (declspecs_add_type): Likewise.
3726 (finish_declspecs): Likewise.
3727 * c-typeck.c (composite_type): Likewise.
3728 (comp_target_types): Likewise.
3729 (build_array_ref): Likewise.
3730 (pointer_diff): Likewise.
3731 (build_unary_op): Likewise.
3732 (build_conditional_expr): Likewise.
3733 (build_c_cast): Likewise.
3734 (convert_for_assignment): Likewise.
3735 (maybe_warn_string_init): Likewise.
3736 (digest_init): Likewise.
3737 (pop_init_level): Likewise.
3738 (set_init_index): Likewise.
3739 (c_finish_goto_label): Likewise.
3740 (c_finish_return): Likewise.
3741 (do_case): Likewise.
3742 (build_binary_op): Likewise.
3743 * c-parser.c (static): Likewise.
3744 (c_parser_external_declaration): Likewise.
3745 (c_parser_declaration_or_fndef): Likewise.
3746 (c_parser_static_assert_declaration_no_se): Likewise.
3747 (c_parser_enum_specifier): Likewise.
3748 (c_parser_struct_or_union_specifier): Likewise.
3749 (c_parser_struct_declaration): Likewise.
3750 (c_parser_alignas_specifier): Likewise.
3751 (c_parser_braced_init): Likewise.
3752 (c_parser_initelt): Likewise.
3753 (c_parser_compound_statement_nostart): Likewise.
3754 (c_parser_conditional_expression): Likewise.
3755 (c_parser_alignof_expression): Likewise.
3756 (c_parser_postfix_expression): Likewise.
3757 (c_parser_postfix_expression_after_paren_): Likewise.
3758 (c_parser_objc_class_instance_variables): Likewise.
3759 (c_parser_objc_method_definition): Likewise.
3760 (c_parser_objc_methodprotolist): Likewise.
3761
3762 2012-04-22 Ian Lance Taylor <iant@google.com>
3763
3764 * godump.c (go_output_typedef): Dump size of structs.
3765
3766 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
3767
3768 Correcting transform_to_exit_first_loop + fix to PR46886
3769 * tree-parloops.c (transform_to_exit_first_loop): Remove
3770 setting of number of iterations according to the loop pattern.
3771 Duplicate from entry to exit->src instead of loop->latch.
3772 (pallelize_loops): Remove the condition preventing do-while loops.
3773 * tree-cfg.c (bool bb_in_region_p): New.
3774 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
3775 Adjust redirection of the duplicated iteration.
3776
3777 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
3778
3779 PR bootstrap/53021
3780 * rtl.def (ADDRESS): Use "i" rather than "w".
3781 * rtl.h (find_base_term): Delete.
3782 (may_be_sp_based_p): Declare.
3783 * rtl.c (rtx_code_size): Remove ADDRESS special case.
3784 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
3785 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
3786 * alias.c: ...here.
3787 (find_base_term): Make static.
3788 (may_be_sp_based_p): New function.
3789 * dse.c (record_store): Use it.
3790 * store-motion.c (store_killed_in_insn): Likewise.
3791
3792 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
3793
3794 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
3795
3796 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3797
3798 PR 35441
3799 * c-typeck.c (inform_declaration): New.
3800 (build_function_call_vec): Do not pretty-print
3801 expressions when caret is enabled.
3802 (convert_arguments): Use inform_declaration.
3803
3804 2012-04-20 Jim Meyering <meyering@redhat.com>
3805
3806 * genmodes.c (make_complex_modes): Don't truncate a mode name of
3807 length 7 or more when prepending a "C". Suggested by Richard Guenther.
3808
3809 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3810
3811 PR rtl-optimization/44214
3812 * fold-const.c (exact_inverse): New function.
3813 (fold_binary_loc): Fold vector and complex division by constant into
3814 multiply by recripocal with flag_reciprocal_math; fold vector division
3815 by constant into multiply by reciprocal with exact inverse.
3816
3817 2012-04-20 Jan Hubicka <jh@suse.cz>
3818
3819 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
3820 force flags.
3821 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
3822 (cgraph_remove_node): Update.
3823 (cgraph_mark_needed_node): Remove.
3824 (cgraph_mark_force_output_node): New.
3825 (dump_cgraph_node): Do not dump needed flag.
3826 (cgraph_node_cannot_be_local_p_1): Update.
3827 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
3828 * cgraph.h (symtab_node_base): Add force_output flag.
3829 (cgraph_node): Remove needed flag.
3830 (varpool_node): Remove force_output flag.
3831 (cgraph_mark_needed_node): Remove.
3832 (cgraph_mark_force_output_node): New.
3833 (cgraph_only_called_directly_or_aliased_p,
3834 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
3835 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
3836 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
3837 (cgraph_add_new_function): Update.
3838 (cgraph_mark_if_needed): Update.
3839 (verify_cgraph_node): Update.
3840 (cgraph_analyze_function): Alias target is reachable.
3841 (process_function_and_variable_attributes): Update: externally_visible
3842 flag makes function reachable.
3843 (cgraph_analyze_functions): Update dumping.
3844 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3845 input_overwrite_node, input_varpool_node): Update streaming.
3846 * lto-streamer-out.c (produce_symtab): Use force_output.
3847 * ipa.c (process_references): Weakrefs must be processed.
3848 (cgraph_remove_unreachable_nodes): Likewise; update for new
3849 force_output flag.
3850 (varpool_externally_visible_p): Weakrefs are externally visible
3851 even if they are not.
3852 (function_and_variable_visibility): Update; when processing alias
3853 pair force the targets to be output.
3854 (whole_program_function_and_variable_visility): Use
3855 mark_reachable_node.
3856 * trans-mem.c (ipa_tm_mark_needed_node): Remove
3857 (ipa_tm_mark_force_output_node): New function.
3858 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3859 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
3860 aliases.
3861 * varasm.c (mark_decl_referenced): Update.
3862 (find_decl_and_mark_needed): Remove.
3863 (find_decl): New function.
3864 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
3865 alias targets as needed.
3866 (dump_tm_clone_pairs): Update.
3867 * tree-inline.c (copy_bb): Update check.
3868 * symtab.c (dump_symtab_base): Dump force_output.
3869 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
3870 * passes.c (execute_todo): Fix dumping.
3871 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
3872 (varpool_analyze_pending_decls): Alias target is reachable.
3873 (varpool_create_variable_alias): Finalize weakrefs.
3874
3875 2012-04-20 Jakub Jelinek <jakub@redhat.com>
3876
3877 PR bootstrap/53021
3878 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
3879 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
3880 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
3881 macros instead of constants.
3882 * dse.c (record_store): Check for SP ADDRESS by comparing
3883 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
3884 XEXP to be stack_pointer_rtx.
3885
3886 2012-04-20 Richard Guenther <rguenther@suse.de>
3887
3888 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
3889 update_call_from_tree when propagating into a call.
3890
3891 2012-04-20 Alan Modra <amodra@gmail.com>
3892
3893 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
3894 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
3895 sp_offset to frame_off. Move world save code earlier.
3896
3897 2012-04-20 Richard Guenther <rguenther@suse.de>
3898
3899 PR tree-optimization/53050
3900 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
3901 Do only one transform on COND_EXPRs at the same time.
3902
3903 2012-04-19 Jan Hubicka <jh@suse.cz>
3904
3905 * symtab.c (dump_symtab_base): Revert accidental checkin.
3906
3907 2012-04-20 Alan Modra <amodra@gmail.com>
3908
3909 PR target/53040
3910 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
3911 static chain, set REST_INLINE_FPRS too.
3912
3913 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
3914
3915 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
3916 nodes.
3917
3918 2012-04-20 Richard Guenther <rguenther@suse.de>
3919
3920 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
3921 loops that can never run more often than the vectorization factor.
3922
3923 2012-04-19 Jan Hubicka <jh@suse.cz>
3924
3925 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
3926
3927 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
3928
3929 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
3930
3931 2012-04-19 Jim Meyering <meyering@redhat.com>
3932
3933 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
3934 We verified above that the string(including trailing NUL) fits in buf,
3935 so just use memcpy.
3936
3937 2012-04-19 Richard Guenther <rguenther@suse.de>
3938
3939 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
3940 for dumping DECL_SECTION_NAME.
3941
3942 2012-04-19 Michael Matz <matz@suse.de>
3943
3944 PR middle-end/52977
3945 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
3946 (struct tree_vector): Adjust GTY length.
3947 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
3948
3949 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
3950 members.
3951 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
3952 caller emitted the length calulation already.
3953 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
3954 before handling any of the fields for structs.
3955
3956 2012-04-19 Richard Guenther <rguenther@suse.de>
3957
3958 PR tree-optimization/53031
3959 * tree-vrp.c (adjust_range_with_scev): Revert back to
3960 using max_loop_iterations.
3961
3962 2012-04-19 Michael Matz <matz@suse.de>
3963
3964 * diagnostic.c (emit_diagnostic): Move va_end call after user
3965 of the va_list.
3966 (warning, warning_at, pedwarn, permerror): Ditto.
3967
3968 2012-04-19 Richard Guenther <rguenther@suse.de>
3969
3970 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
3971 array access.
3972
3973 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
3974
3975 PR target/53033
3976 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
3977 the case *(X+const).
3978
3979 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3980
3981 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
3982
3983 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3984
3985 PR c/52283/37985
3986 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
3987 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
3988
3989 2012-04-19 Richard Guenther <rguenther@suse.de>
3990
3991 PR rtl-optimization/44688
3992 * loop-iv.c (determine_max_iter): Only return max_iter.
3993 (iv_number_of_iterations): Also use the recorded loop bound
3994 on the maximum number of iterations.
3995 * loop-unroll.c (decide_unroll_runtime_iterations): Use
3996 max_iter to avoid unrolling loops that do not roll.
3997 (decide_unroll_stupid): Likewise.
3998
3999 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
4000
4001 * targhooks.c (default_case_values_threshold): Fix code style nit.
4002
4003 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
4004 case range and type folding from here...
4005 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
4006 type, as documented in tree.def.
4007
4008 2012-04-18 Jan Hubicka <jh@suse.cz>
4009
4010 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
4011 Declare.
4012 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
4013 cgraph hash and same comdat groups.
4014 (cgraph_optimize): Verify symbol table.
4015 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
4016 (dissolve_same_comdat_group_list): Work on symtab nodes.
4017 (function_and_variable_visibility): Dissolve variable same comdat group
4018 lists, too.
4019 * symtab.c: Include timevar.h
4020 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
4021
4022 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
4023
4024 * tree-switch-conversion.c (info): Remove global pass info.
4025 (check_range, check_process_case, check_final_bb, create_temp_arrays,
4026 free_temp_arrays, gather_default_values, build_constructors,
4027 array_value_type, build_one_array, build_arrays, gen_def_assigns,
4028 fix_phi_nodes, gen_inbound_check): Pass info around from ...
4029 (process_switch): ... here. Unify message format. Return a const
4030 char pointer to the failure reason message.
4031 (do_switchconv): Unify message format. Update process_switch usage.
4032
4033 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
4034 * tree-cfg.c (edge_to_cases): Fix documentation.
4035
4036 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
4037
4038 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
4039
4040 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4041
4042 PR tree-optimization/52976
4043 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
4044 (possibly_move_powi): New function.
4045 (rewrite_expr_tree): Call possibly_move_powi.
4046 (rewrite_expr_tree_parallel): Likewise.
4047 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
4048 call add_to_ops_vec instead.
4049
4050 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4051
4052 PR tree-optimization/52976
4053 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
4054 (decrement_power): Likewise.
4055 (propagate_op_to_single_use): Likewise.
4056 (zero_one_operation): Handle __builtin_pow* calls in linearized
4057 expression trees; factor logic into propagate_op_to_single_use.
4058 (undistribute_ops_list): Allow operands with repeat counts > 1.
4059
4060 2012-04-18 Richard Guenther <rguenther@suse.de>
4061
4062 PR tree-optimization/44688
4063 * cfgloop.h (record_niter_bound): Declare.
4064 * tree-ssa-loop-niter.c (record_niter_bound): Export.
4065 Update the estimation with the upper bound here...
4066 (estimate_numbers_of_iterations_loop): ... instead of here.
4067 Do not forcefully reset a recorded upper bound.
4068 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
4069 Record the maximum number of loop iterations of the prologue loop.
4070
4071 2012-04-18 Jan Hubicka <jh@suse.cz>
4072
4073 * lto-symtab.c (lto_cgraph_replace_node): Update.
4074 * cgraphbuild.c (record_reference, record_type_list,
4075 record_eh_tables, mark_address, mark_load, mark_store): Update.
4076 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
4077 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
4078 Update.
4079 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
4080 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
4081 * reload.c: Fix typo in comment.
4082 * rtlanal.c: Likewise.
4083 * tree-emultls.c (gen_emutls_addr): Update.
4084 * ipa-reference.c (analyze_function): Update.
4085 * cgraphunit.c (cgraph_analyze_function,
4086 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
4087 Update.
4088 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
4089 (ipa_remove_reference): Likewise.
4090 (ipa_remove_all_refering): Rename to ...
4091 (ipa_remove_all_referring): ... this one; update.
4092 (ipa_dump_references): Update.
4093 (ipa_dump_referring): Update.
4094 (ipa_clone_references): Update.
4095 (ipa_clone_refering): Rename to ...
4096 (ipa_clone_referring): ... this one; update.
4097 (ipa_ref_cannot_lead_to_return): Update.
4098 (ipa_ref_has_aliases_p): Update.
4099 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
4100 forward typedefs.
4101 (ipa_ref_type): Remove.
4102 (ipa_ref_ptr_u): Remove.
4103 (ipa_ref): Remove referencing, refered, refered_index, refering_type
4104 and refered_type; add referring, referred and referred_index.
4105 (ipa_ref_list): Rename refering to referring.
4106 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
4107 ipa_clone_references, ipa_clone_referring): Update prototypes.
4108 * lto-cgraph.c (referenced_from_other_partition_p): Update.
4109 (lto_output_ref): Update.
4110 (add_references): Update.
4111 (input_varpool_node): Update.
4112 (input_refs): Update.
4113 * ipa-ref-inline.h (ipa_ref_node): Update.
4114 (ipa_ref_varpool_node): Update.
4115 (ipa_ref_referring_node): Update.
4116 (ipa_ref_referring_varpool_node): Update.
4117 (ipa_ref_referring_ref_list): Update.
4118 (ipa_ref_referred_ref_list): Update.
4119 (ipa_ref_list_first_referring): Update.
4120 (ipa_empty_ref_list): Update.
4121 (ipa_ref_list_refering_iterate): Rename to ...
4122 (ipa_ref_list_referring_iterate): ... this one.
4123 * cse.c: Update comment.
4124 * ipa-utils.c (ipa_reverse_postorder): Update.
4125 * tree-ssa-alias.c: Update.
4126 * ipa-inline.c (reset_edge_caches): Update.
4127 (update_caller_keys): Update.
4128 * ipa-inline.h: Update comments.
4129 * jump.c: Update comment.
4130 * alias.c: Likewise.
4131 * ipa.c (process_references): Update.
4132 (cgraph_remove_unreachable_nodes): Likewise.
4133 (ipa_discover_readonly_nonaddressable_var): Likewise.
4134 (cgraph_address_taken_from_non_vtable_p): Likewise.
4135 * trans-mem.c (ipa_tm_execute): Update.
4136 * simplify-rtx.c: Fix comment.
4137 * rtl.c: Fix comment.
4138 * symtab.c (symtab_unregister_node): Update.
4139 * varpool.c (dump_varpool_node): Update.
4140 (varpool_analyze_pending_decls): Update.
4141 (assemble_aliases): Update.
4142 (varpool_for_node_and_aliases): Update.
4143
4144 2012-04-18 Richard Guenther <rguenther@suse.de>
4145
4146 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
4147 use_undefined_p parameter.
4148 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4149 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4150 Likewise.
4151 (estimate_numbers_of_iterations): Likewise.
4152 (estimated_loop_iterations): Adjust.
4153 (max_loop_iterations): Likewise.
4154 (scev_probably_wraps_p): Likewise.
4155 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4156 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
4157 not max_loop_iterations.
4158 (execute_vrp): Remove explicit number of iterations estimation.
4159
4160 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
4161
4162 * config/i386/linux-common.h: New.
4163
4164 * config.gcc: Add i386/linux-common.h before
4165 all i386/linux.h and i386/linux64.h usages.
4166
4167 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
4168 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
4169 * config/i386/gnu-user64.h: Likewise.
4170
4171 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
4172 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
4173 (GNU_USER_TARGET_MATHFILE_SPEC): New.
4174 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
4175
4176 2012-04-18 Jan Hubicka <jh@suse.cz>
4177
4178 * cgraph.c (cgraph_node_name): Remove.
4179 (dump_cgraph_node): Use dump_symtab_base; reformat.
4180 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
4181 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
4182 Declare.
4183 (cgraph_node_name, varpool_node_name): Remove.
4184 (cgraph_node_asm_name, varpool_node_asm_name,
4185 cgraph_node_name, varpool_node_name): New.
4186 * tree-pass.h (TODO_dump_cgraph): Rename to ...
4187 (TODO_dump_symtab): ... this one.
4188 * ipa-cp (pass_ipa_cp): Update.
4189 * ia-reference.c (generate_summary, read_write_all_from_decl,
4190 propagate, ipa_reference_read_optimization_summary): Update.
4191 * cgraphunit.c (cgraph_analyze_functions): Update.
4192 (cgraph_optimize): Update.
4193 * ipa-ref.c (ipa_dump_references): Update.
4194 (ipa_dump_refering): Update.
4195 * ipa-inline.c (pass_ipa_inline): Update.
4196 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
4197 * ipa.c (pass_ipa_function_visibility,
4198 pass_ipa_whole_program_visibility): Update.
4199 * tree-sra.c (pass_early_ipa_sra): Update.
4200 * symtab.c: Include langhooks.h
4201 (symtab_node_asm_name): New.
4202 (symtab_node_name): New.
4203 (symtab_type_names): New static var.
4204 (dump_symtab_base): New.
4205 (dump_symtab_node, dump_symtab): New.
4206 (debug_symtab_node, debug_symtab): New.
4207 * tree-ssa-structalias.c: Dump symbol table.
4208 * pases.c (execute_todo): Handle TODO_dump_symtab instead
4209 of TODO_dump_cgraph.
4210 * varpoo.c (varpool_node_name): Remove.
4211 (dump_varpool_node): Use dump_symtab_base; reformat.
4212
4213 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4214
4215 * doc/invoke.texi (Language Independent Options): @item should be
4216 before @opindex.
4217
4218 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4219
4220 PR bootstrap/53021
4221 * rtl.c (rtx_code_size): Handle ADDRESS.
4222
4223 2012-04-17 Tom de Vries <tom@codesourcery.com>
4224
4225 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
4226 is not a STMT_LIST.
4227
4228 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
4229
4230 PR target/53020
4231 * config/i386/sync.md (atomic_<code><mode>): Rename to
4232 atomic_<logic><mode>.
4233
4234 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4235
4236 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
4237 * alias.c (reg_base_value): Expand and update comment.
4238 (arg_base_value): New variable.
4239 (unique_id): Move up file.
4240 (unique_base_value, unique_base_value_p, known_base_value_p): New.
4241 (find_base_value): Use arg_base_value and known_base_value_p.
4242 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
4243 (find_base_term): Use known_base_value_p.
4244 (base_alias_check): Use unique_base_value_p.
4245 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
4246 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
4247
4248 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
4249
4250 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
4251
4252 2012-04-17 Michael Matz <matz@suse.de>
4253
4254 PR tree-optimization/18437
4255 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
4256 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
4257 (vect_check_strided_load): Declare.
4258 * tree-vect-data-refs.c (vect_check_strided_load): New function.
4259 (vect_analyze_data_refs): Use it to accept strided loads.
4260 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
4261
4262 2012-04-17 Richard Guenther <rguenther@suse.de>
4263
4264 PR middle-end/53011
4265 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
4266 loops when redirecting an entry or latch edge.
4267
4268 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
4269
4270 * sel-sched.c (sel_global_init): Revert previous change.
4271
4272 2012-04-17 Richard Guenther <rguenther@suse.de>
4273
4274 * tree-flow.h (array_at_struct_end_p): Move declaration ...
4275 * tree.h (array_at_struct_end_p): ... here.
4276 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
4277 * expr.c (array_at_struct_end_p): ... here. Rewrite.
4278
4279 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
4280
4281 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
4282 COST_TABLE): Remove.
4283 (estimate_case_costs): Remove.
4284 (expand_case): Do not call estimate_case_costs
4285 to set use_cost_table.
4286 (balance_case_nodes): Do not use use_cost_table.
4287
4288 2012-04-16 Jan Hubicka <jh@suse.cz>
4289
4290 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
4291 (hash_node, eq_node): Remove.
4292 (cgraph_create_node): Do not handle hashtable.
4293 (cgraph_get_node): Remove.
4294 (cgraph_insert_node_to_hashtable): Remove.
4295 (hash_node_by_assembler_name): Remove.
4296 (eq_assembler_name): Remove.
4297 (cgraph_node_for_asm): Rewrite.
4298 (cgraph_find_replacement_node): Break out from ...
4299 (cgraph_remove_node): ... here; do not maintain hashtables.
4300 (change_decl_assembler_name): Remove.
4301 (cgraph_clone_node): Do not maintain hashtables.
4302 * cgraph.h (const_symtab_node): New typedef.
4303 (cgraph_insert_node_to_hashtable): Remove.
4304 (symtab_get_node, symtab_node_for_asm,
4305 symtab_insert_node_to_hashtable): Declare.
4306 (cgraph_find_replacement_node): Declare.
4307 (cgraph_get_node, varpool_get_node): Turn into inlines.
4308 (cgraph, varpool): Work sanely on NULL pointers.
4309 (FOR_EACH_SYMBOL): New walker.
4310 * ipa-inline-transform.c (save_inline_function_body): Use
4311 symtab_insert_node_to_hashtable.
4312 * symtab.c: Include ggc.h and diagnostics.h
4313 (symtab_hash, assembler_name_hash): New static vars;
4314 (hash_node, eq_node, hash_node_by_assembler_name,
4315 eq_assembler_name, insert_to_assembler_name_hash,
4316 unlink_from_assembler_name_hash): New.
4317 (symtab_register_node): Update hashtables.
4318 (symtab_insert_node_to_hashtable): New.
4319 (symtab_unregister_node): Update hashtables.
4320 (symtab_get_node): New.
4321 (symtab_node_for_asm): New.
4322 (change_decl_assembler_name): New.
4323 * Makefile.in (symtab.o): Needs GTY.
4324 * varpool.c (varpool_hash): Remove.
4325 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
4326 (varpool_node): Rewrite using varpool_get_node.
4327 (varpool_remove_node): DO not maintain hashtables.
4328 (varpool_node_for_asm): Rewrite.
4329
4330 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
4331
4332 * doc/invoke.texi: Copy-edit to put verbs in the present tense
4333 when describing the current behavior of GCC.
4334
4335 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
4336
4337 * genemit.c (gen_exp): Remove ADDRESS handling.
4338 * genoutput.c (scan_operands): Likewise.
4339 * genpeep.c (match_rtx): Likewise.
4340 * genrecog.c (add_to_sequence): Likewise.
4341
4342 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
4343
4344 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
4345
4346 2012-04-16 Martin Jambor <mjambor@suse.cz>
4347
4348 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
4349 bit-fields.
4350
4351 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
4352
4353 PR target/51819
4354 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
4355 hints for 'A' operand types.
4356
4357 2012-04-16 Jan Hubicka <jh@suse.cz>
4358
4359 * cgraph.h (symtab_node_base): Add next and previous pointers.
4360 (cgraph_node): Remove next and preivous pointers.
4361 (varpool_node): Likewise; remove next/previous GTY marker;
4362 it is not type safe.
4363 (symtab_node_def): Update GTY marker
4364 (x_cgraph_nodes, cgraph_nodes): Remove.
4365 (symtab_nodes): New function.
4366 (cgraph_order): Rename to ...
4367 (symtab_order): ... this one.
4368 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
4369 Declare.
4370 (x_varpool_nodes, varpool_nodes): Remove.
4371 (FOR_EACH_STATIC_VARIABLE): Update.
4372 (symtab_function_p, symtab_variable_p): New function.
4373 (FOR_EACH_VARIABLE): Update.
4374 (varpool_first_variable, varpool_next_variable): New functions.
4375 (FOR_EACH_VARIABLE): Update.
4376 (cgraph_first_defined_function): Update.
4377 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
4378 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
4379 (cgraph_first_function, cgraph_next_function): New.
4380 (FOR_EACH_FUNCTION): Update.
4381 (cgraph_first_function_with_gimple_body,
4382 cgraph_next_function_with_gimple_body): Update.
4383 * symtab.c: New file.
4384 * cgraph.c: Update copyright dates.
4385 (x_cgraph_nodes, cgraph_order): Remove.
4386 (NEXT_FREE_NODE): Update.
4387 (SET_NEXT_FREE_NODE): New.
4388 (cgraph_create_node_1): Remove common code.
4389 (cgraph_create_node): Remove common code; call symtab_register_node.
4390 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
4391 (cgraph_add_asm_node): Update.
4392 (cgraph_clone_node): Register new node.
4393 * cgraphunit.c (process_function_and_variable_attributes): Update.
4394 (cgraph_analyze_functions): Update.
4395 (cgraph_analyze_functions): Update.
4396 (cgraph_output_in_order): Update.
4397 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
4398 Update.
4399 * ipa-inline.c (recursive_inlining): Update.
4400 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
4401 * ipa.c (cgraph_remove_unreachable_nodes): Update.
4402 * Makefile.in: Add symtab.o
4403 * varpool.c (x_varpool_nodes): Remove
4404 (varpool_node): Remove common code; call symtab_register_node.
4405 (varpool_remove_node): Remove common code; call symtab_unregister_node.
4406
4407 2012-04-16 Richard Guenther <rguenther@suse.de>
4408
4409 PR middle-end/52977
4410 * tree.h (VECTOR_CST_NELTS): Adjust.
4411 (struct tree_vector): Add explicit length field.
4412 (make_vector_stat): Declare.
4413 (make_vector): Define.
4414 * tree.c (make_vector_stat): New function.
4415 (build_vector_stat): Use it.
4416 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
4417
4418 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4419
4420 PR tree-optimization/52976
4421 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
4422 (undistribute_ops_list): Ops with repeat counts aren't eligible for
4423 undistribution.
4424 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
4425
4426 2012-04-16 Jan Hubicka <jh@suse.cz>
4427
4428 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
4429 New macros.
4430 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
4431 walkers to walk cgraph and varpool.
4432 * cgraph.c (cgraph_node_for_asm): Likewise.
4433 (dump_cgraph): Likewise.
4434 * value-prof.c (init_node_map): Likewise.
4435 * tree.c (free_lang_data_in_cgraph): Likewise.
4436 * tree-emutls.c: (ipa_lower_emutls): Likewise.
4437 * ipa-reference.c (generate_summary, propagate): Likewise.
4438 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
4439 cgraph_mark_functions_to_output, cgraph_output_in_order,
4440 output_weakrefs, cgraph_materialize_all_clones,
4441 cgraph_optimize): Likewise.
4442 * lto-cgraph.c (merge_profile_summaries): Likewise.
4443 (input_cgraph): Likewise.
4444 * ipa-pure-const.c (generate_summary): Likewise.
4445 (propagate): Likwise.
4446 * ipa-utils.c (ipa_reduced_postorder): Likewise.
4447 (ipa_free_postorder_info): Likewise.
4448 (ipa_reverse_postorder): Likewise.
4449 * ipa-inline.c (ipa_inline): Likewise.
4450 * matrix-reorg.c (find_matrices_decl): Likewise.
4451 (matrix_reorg): Likewise.
4452 * tree-vectorizer.c (increase_alignment): Likewise.
4453 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
4454 (function_and_variable_visibility): Likewise.
4455 (whole_program_function_and_variable_visibility): Likewise.
4456 (ipa_cdtor_merge): Likewise.
4457 * trans-mem.c (ipa_tm_execute): Likewise.
4458 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
4459 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
4460 (ipa_print_all_params): Likewise.
4461 (ipa_update_after_lto_read): Likewise.
4462 * tree-profie.c (tree_profiling): Likewise.
4463 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
4464 * passes.c (dump_passes): Likewise.
4465 (do_per_function): Likewise.
4466 (ipa_write_summaries): Likewise.
4467 * varpool.c (dump_varpool): Likewise.
4468 (varpool_node_for_asm): Likewise.
4469 (varpool_assemble_pending_decls): Likewise.
4470
4471 2012-04-16 Richard Guenther <rguenther@suse.de>
4472
4473 PR tree-optimization/52975
4474 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
4475 condition but always mark it with TRUTH_NOT_EXPR.
4476
4477 2012-04-16 Richard Guenther <rguenther@suse.de>
4478
4479 PR tree-optimization/52975
4480 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
4481 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
4482 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
4483 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
4484
4485 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
4486
4487 * config/i386/sse.md (ssse3_plusminus): New code iterator.
4488 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
4489 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
4490 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
4491 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
4492 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
4493 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
4494
4495 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
4496 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
4497 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
4498 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
4499 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
4500 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
4501
4502 (xop_plus): New code iterator.
4503 (macs): New code attribute.
4504 (macds): Ditto.
4505 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
4506 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
4507 iterator.
4508 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
4509 xop_plus code iterator.
4510 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
4511 xop_plus code iterator.
4512 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
4513 xop_plus code iterator.
4514 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
4515 xop_plus code iterator.
4516
4517 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
4518 any_extend code iterator.
4519 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
4520 any_extend code iterator.
4521 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
4522 any_extend code iterator.
4523 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
4524 any_extend code iterator.
4525 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
4526 any_extend code iterator.
4527 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
4528 any_extend code iterator.
4529
4530 2012-04-14 Tom de Vries <tom@codesourcery.com>
4531
4532 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
4533 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
4534 DELETED_LABEL note, and move it to ...
4535 * cfgrtl.c (delete_insn): ... here. Change return type to void.
4536 (delete_insn_and_edges): Likewise.
4537 (delete_insn_chain): Handle new return type of delete_insn. Delete
4538 chain backwards rather than forwards.
4539 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
4540 void.
4541 * cfglayout.c (fixup_reorder_chain): Delete unused label.
4542
4543 2012-04-14 Jan Hubicka <jh@suse.cz>
4544
4545 * cgraph.h: Update copyrights;
4546 (symtab_node): Turn to union typedef.
4547 (symtab_node_base): New structure.
4548 (symtab_type): Add SYMTAB_SYMBOL tag.
4549 (cgraph_node): Annotate some pinters with nested_ptr.
4550 (varpool_node): Likewise.
4551 (cgraph_local_info): Remove lto_file_data
4552 and externally_visible.
4553 (cgraph_node): Remove decl; same_comdat_group list;
4554 aux; ref_list; order; address_taken; reachable_from_other_parittion,
4555 in_other_partition; resolution.
4556 (varpool_node): Remove decl; same_comdat_group;
4557 ref_list; lto_file_data; aux; order; resolution; externally_visible;
4558 used_from_other_partition; in_other_partition.
4559 (symtab_node_def): New union.
4560 (cgraph, varpool): Update.
4561 (varpool_first_static_initializer, varpool_next_static_initializer,
4562 cgraph_only_called_directly_or_aliased_p,
4563 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
4564 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
4565 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
4566 field references.
4567 * cgraph.c: Likewise.
4568 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
4569 * cgraphbuild.c: Likewise.
4570 * lto-symtab.c: Likewise.
4571 * c-gimplify.c: Likewise.
4572 * value-prof.c: Likewise.
4573 * tree.c: Likewise.
4574 * ipa-cp.c: Likewise.
4575 * tree-emutls.c: Likewise.
4576 * ipa-inline-transform.c: Likwise.
4577 * ipa-reference.c: Likewise.
4578 * cgraphunit.c: Likewise.
4579 * ipa-ref.c: Likewise.
4580 * lto-cgraph.c: Likewise.
4581 * ipa-ref-inline.h: Likewise.
4582 * ipa-pure-const.c: Likewise.
4583 * lto-streamer-out.c: Likewise.
4584 * ipa-utils.c: Likewise.
4585 * ipa-inline.c: Likewise.
4586 * matrix-reorg.c: Likewise.
4587 * tree-eh.c: Likewise.
4588 * tree-vectorizer.c: Likewise.
4589 * ipa-split.c: Likewise.
4590 * ipa.c: Likewise.
4591 * trans-mem.c: Likewise.
4592 * ipa-inline-analysis.c: Likewise.
4593 * gimplify.c: Likewise.
4594 * cfgexpand.c: Likewise.
4595 * tree-sra.c: Likewise.
4596 * ipa-prop.c: Likewise.
4597 * varasm.c: Likewise.
4598 * tree-nested.c: Likewise.
4599 * tree-inline.c: Likewise.
4600 * tree-profile.c: Likewise.
4601 * tree-ssa-structalias.c: Likewise.
4602 * passes.c: Likewise.
4603 * varpool.c: Likewise.
4604
4605 2012-04-14 Tom de Vries <tom@codesourcery.com>
4606
4607 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
4608 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
4609 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
4610 of find_edge.
4611 (gsi_advance_fw_nondebug_nonlocal): New function.
4612 (local_def): Removed function.
4613 (same_succ_hash): Use stmt_local_def.
4614 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
4615 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
4616
4617 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
4618
4619 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
4620 and __ILP32__ for x32.
4621
4622 2012-04-13 Martin Jambor <mjambor@suse.cz>
4623
4624 PR middle-end/52939
4625 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
4626 fold_ctor_reference returns a zero constant.
4627
4628 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
4629
4630 * config.gcc: Add i386/gnu-user-common.h before all
4631 i386/gnu-user.h and i386/gnu-user64.h usages.
4632
4633 * config/i386/gnu-user-common.h: New.
4634
4635 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
4636 (CC1_SPEC): Likewise.
4637 (ENDFILE_SPEC): Likewise.
4638 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
4639 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
4640 (TARGET_OS_CPP_BUILTINS): Likewise.
4641 (LIBGCC2_HAS_TF_MODE): Likewise.
4642 (LIBGCC2_TF_CEXT): Likewise.
4643 (TF_SIZE): Likewise.
4644 (TARGET_ASM_FILE_END): Likewise.
4645 (STACK_CHECK_MOVING_SP): Likewise.
4646 (STACK_CHECK_STATIC_BUILTIN): Likewise.
4647 * config/i386/gnu-user64.h: Likewise.
4648
4649 2012-04-13 Martin Jambor <mjambor@suse.cz>
4650
4651 * expr.c (expand_expr_real_1): Pass type, not the expression, to
4652 set_mem_attributes for a memory temporary. Do not call the function
4653 for the memory temporary created for a bitfield.
4654
4655 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
4656
4657 PR debug/48866
4658 * df.h (enum debug_temp_where): New.
4659 (dead_debug_init, dead_debug_finish) Declare.
4660 (dead_debug_add, dead_debug_insert_temp): Declare.
4661 (struct dead_debug_use, struct dead_debug): Moved from...
4662 * df-problems.c: ... here.
4663 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
4664 to a debug temp.
4665 (df_create_unused_note): Likewise.
4666 (df_set_dead_notes_for_mw): Move comment where it belongs.
4667 (dead_debug_init): Export.
4668 (dead_debug_reset_uses): New, factored out of...
4669 (dead_debug_finish): ...this. Export.
4670 (dead_debug_reset): Remove.
4671 (dead_debug_add): Export.
4672 (dead_debug_insert_before): Rename to...
4673 (dead_debug_insert_temp): ... this. Add where argument. Export.
4674 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
4675 Return insertion count.
4676 (df_note_bb_compute): Adjust.
4677 * dce.c (word_dce_process_block): Adjust dead debug uses.
4678 (dce_process_block): Likewise.
4679
4680 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
4681
4682 * df-problems.c (df_note_bb_compute): Do not take note of
4683 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
4684
4685 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
4686
4687 PR debug/51570
4688 * var-tracking.c (expand_depth): New type.
4689 (onepart_aux, expand_loc_callback_data): Change depth type to it.
4690 (loc_exp_dep_alloc): Adjust initializer.
4691 (update_depth): Use new type. Add entryvals.
4692 (vt_expand_var_loc_chain): Take note of expansions with
4693 ENTRY_VALUEs, but don't accept them right away. Run an optional
4694 second pass accepting the minimum ENTRY_VALUE count found in the
4695 first pass.
4696 (vt_expand_loc_callback, INIT_ELCD): Adjust.
4697
4698 2012-04-13 Tom de Vries <tom@codesourcery.com>
4699
4700 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
4701 parameters vuse and vuse_escaped.
4702 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
4703 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
4704 vuse1 != vuse2.
4705
4706 2012-04-13 Richard Guenther <rguenther@suse.de>
4707
4708 PR tree-optimization/52969
4709 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
4710 the condition for the COND_EXPR and handle predicate negation
4711 by swapping the COND_EXPR arms.
4712
4713 2012-04-13 Nick Clifton <nickc@redhat.com>
4714
4715 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
4716 TODO_dump_func flag.
4717
4718 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
4719
4720 PR rtl-optimization/52203
4721 PR rtl-optimization/52715
4722
4723 Revert the 2012-03-07 fix for PR 52203.
4724 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
4725 the insn does not modify DFA right before issuing, adjust
4726 issue_rate accordingly.
4727
4728 2012-04-13 Richard Guenther <rguenther@suse.de>
4729
4730 PR c/52549
4731 * c-typeck.c (pointer_diff): Remove bogus assert.
4732
4733 2012-04-13 Richard Guenther <rguenther@suse.de>
4734
4735 PR c/52862
4736 * convert.c (convert_to_pointer): Remove special-casing of zero.
4737
4738 2012-04-13 Joey Ye <joey.ye@arm.com>
4739
4740 * config/arm/constraints.md (Pe): New constraint.
4741 * config/arm/arm.md: New split for imm 256-510.
4742
4743 2012-04-13 Terry Guo <terry.guo@arm.com>
4744
4745 * config/arm/arm-cores.def: Added core cortex-m0plus.
4746 * config/arm/arm-tune.md: Regenerated.
4747 * config/arm/arm-tables.opt: Regenerated.
4748 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
4749
4750 2012-04-13 Alan Modra <amodra@gmail.com>
4751
4752 PR target/52828
4753 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
4754 tie regs on destination of sets. Delete forward declaration.
4755 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
4756 (rs6000_emit_prologue): Likewise.
4757 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
4758 and gen_stack_tie.
4759 (is_mem_ref): Use tie_operand to recognise stack ties.
4760 * config/rs6000/predicates.md (tie_operand): New.
4761 * config/rs6000/rs6000.md (restore_stack_block): Generate new
4762 stack tie rtl.
4763 (restore_stack_nonlocal): Likewise.
4764 (stack_tie): Update.
4765 (frame_tie): Delete.
4766
4767 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4768
4769 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
4770 HOST_WIDE_INT_PRINT_DEC in format strings.
4771
4772 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
4773
4774 PR target/52932
4775 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
4776 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
4777 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
4778 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
4779 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
4780 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
4781 avx2_permvarv8si using VI4F_256 mode iterator.
4782 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
4783 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
4784 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
4785 gen_avx2_permvarv8sf.
4786 (expand_vec_perm_pshufb): Ditto.
4787
4788 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4789
4790 PR target/52775
4791 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
4792 the list of options to enable the FCFID instruction.
4793 (TARGET_EXTRA_BUILTINS): Adjust comment.
4794
4795 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4796
4797 PR tree-optimization/18589
4798 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
4799 (operand_entry): Add count field.
4800 (add_repeat_to_ops_vec): New function.
4801 (completely_remove_stmt): Likewise.
4802 (remove_def_if_absorbed_call): Likewise.
4803 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
4804 (acceptable_pow_call): New function.
4805 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
4806 entries with repeat counts when found.
4807 (repeat_factor_d): New struct and associated typedefs.
4808 (repeat_factor_vec): New static vector variable.
4809 (compare_repeat_factors): New function.
4810 (get_reassoc_pow_ssa_name): Likewise.
4811 (attempt_builtin_powi): Likewise.
4812 (reassociate_bb): Call attempt_builtin_powi.
4813 (fini_reassoc): Two new calls to statistics_counter_event.
4814
4815 2012-04-12 Richard Guenther <rguenther@suse.de>
4816
4817 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
4818 * cgraph.h (tree_rest_of_compilation): Remove.
4819 * cgraph.c (cgraph_add_new_function): Move ...
4820 * cgraphunit.c (cgraph_add_new_function): ... here.
4821 (tree_rest_of_compilation): Make static.
4822 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
4823 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
4824 gate_all_early_local_passes, execute_all_early_local_passes,
4825 pass_early_local_passes, gate_all_early_optimizations,
4826 pass_all_early_optimizations): Move ...
4827 * passes.c (gate_all_optimizations, pass_all_optimizations,
4828 gate_all_early_local_passes, execute_all_early_local_passes,
4829 pass_early_local_passes, gate_all_early_optimizations,
4830 pass_all_early_optimizations): ... here.
4831 * tree-optimize.c (execute_free_datastructures): Remove.
4832 * tree-flow.h (execute_free_datastructures): Remove.
4833 * tree-optimize.c (execute_init_datastructures,
4834 pass_init_datastructures): Move ...
4835 * tree-ssa.c (execute_init_datastructures,
4836 pass_init_datastructures): ... here.
4837 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
4838 execute_free_datastructures.
4839
4840 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
4841
4842 * dbgcnt.def (ira_move): New counter.
4843 * ira-int.h (ira_create_new_reg): Declare function.
4844 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
4845 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
4846 no longer static. All callers changed.
4847 * ira.c: Include "dbgcnt.h".
4848 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
4849 move_unallocated_pseudos): New static functions.
4850 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
4851 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
4852 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
4853 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
4854 to the pseudos generated in find_moveable_pseudos.
4855 * Makefile.in (ira.o): Add $(DBGCNT_H).
4856
4857 2012-04-12 Richard Guenther <rguenther@suse.de>
4858
4859 PR tree-optimization/52943
4860 * tree-chrec.h (chrec_is_positive): Remove.
4861 * tree-scalar-evolution.c (chrec_is_positive): Move ...
4862 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
4863 Return false for a constant zero instead of negative.
4864 (analyze_siv_subscript_cst_affine): Handle zero difference
4865 in the initial condition explicitely.
4866
4867 2012-04-12 Richard Guenther <rguenther@suse.de>
4868
4869 * tree-parloops.c (parallelize_loops): Also consult the upper
4870 bound for the number of iterations.
4871 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4872 (loop_prefetch_arrays): Likewise.
4873
4874 2012-04-12 Richard Guenther <rguenther@suse.de>
4875
4876 * cfgloop.h (estimated_loop_iterations_int): Ditch
4877 'conservative' parameter.
4878 (max_stmt_executions_int): Likewise.
4879 (estimated_loop_iterations): Likewise.
4880 (max_stmt_executions): Likewise.
4881 (max_loop_iterations): Declare.
4882 (max_loop_iterations_int): Likewise.
4883 (estimated_stmt_executions): Likewise.
4884 (estimated_stmt_executions_int): Likewise.
4885 * tree-ssa-loop-niter.c (estimated_loop_iterations):
4886 Split parts to ...
4887 (max_loop_iterations): ... this.
4888 (estimated_loop_iterations_int): Split parts to ...
4889 (max_loop_iterations_int): ... this.
4890 (max_stmt_executions_int): Split parts to ...
4891 (estimated_stmt_executions_int): ... this.
4892 (max_stmt_executions): Split parts to ...
4893 (estimated_stmt_executions): ... this.
4894 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
4895 * predict.c (predict_loops): Likewise.
4896 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
4897 (analyze_siv_subscript_cst_affine): Likewise.
4898 (compute_overlap_steps_for_affine_1_2): Likewise.
4899 (analyze_subscript_affine_affine): Likewise.
4900 (init_omega_for_ddr_1): Likewise.
4901 * tree-parloops.c (parallelize_loops): Likewise.
4902 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4903 (may_eliminate_iv): Likewise.
4904 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4905 (loop_prefetch_arrays): Likewise.
4906 * tree-vrp.c (adjust_range_with_scev): Likewise.
4907
4908 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
4909
4910 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
4911 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
4912 Fix line width.
4913 (dump_table): Use bool type for need_align and have_df variables.
4914 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
4915 (regs_used): Remove register modifier.
4916 (barrier_align): Move variables slot, credit, jump_to_next
4917 into if block above for loop. Use bool type for jump_to_next.
4918 (sh_function_arg): Use NULL_RTX instead of 0.
4919
4920 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
4921
4922 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
4923 (bswapsi2): New expander.
4924
4925 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4926
4927 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
4928 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
4929
4930 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4931
4932 PR rtl-optimization/52876
4933 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
4934 Don't call mark_reg_pointer for incompatible pointer sign extension.
4935
4936 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
4937 directly.
4938
4939 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
4940
4941 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
4942 comparisons against TYPE_PRECISION.
4943 * tree-ssa-forwprop.c (combine_conversions): Likewise.
4944
4945 2012-04-11 Xinliang David Li <davidxl@google.com>
4946
4947 * tree-passes.h: Remove TODO_dump_func.
4948 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
4949 * trans-mem.c: Remove TODO_dump_func.
4950 * ira.c: Remove TODO_dump_func.
4951
4952 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4953
4954 * config/i386/i386.c (ix86_option_override_internal): Check
4955 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
4956 after TARGET_64BIT is updated.
4957
4958 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4959
4960 * config/sh/sh.h: Remove old secondary reload code.
4961
4962 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4963
4964 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
4965 (ready_reorder): ... this function.
4966
4967 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
4968
4969 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
4970 sched_init calls.
4971
4972 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
4973 insns so that no other insn is queued for a time before them.
4974
4975 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
4976 unknown.
4977
4978 2012-04-11 Richard Guenther <rguenther@suse.de>
4979
4980 PR middle-end/52621
4981 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
4982 consider loop nesting.
4983 (evolution_function_is_univariate_p): Properly check the remainder
4984 for chrecs.
4985
4986 2012-04-11 Richard Guenther <rguenther@suse.de>
4987
4988 PR middle-end/52918
4989 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
4990
4991 2012-04-11 Nick Clifton <nickc@redhat.com>
4992
4993 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
4994 information, if requested.
4995
4996 * config/rx/rx.c (rx_expand_prologue): Likewise.
4997
4998 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
4999 Michael Matz <matz@suse.de>
5000
5001 PR target/16458
5002 * rtlanal.c (unsigned_reg_p): New function.
5003 Update copyright notice dates.
5004 * rtl.h (unsigned_reg_p): Prototype it.
5005 Update copyright notice dates.
5006 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
5007 Update comment.
5008 * expr.c (expand_expr_real_1): Set register attributes.
5009 * stmt.c (expand_case): Likewise.
5010
5011 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
5012
5013 PR target/50751
5014 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
5015 consider_sh2a and allow_zero.
5016 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
5017 (disp_addr_displacement): New function.
5018 (sh_address_cost): Use disp_addr_displacement function instead
5019 of DISP_ADDR_OFFSET.
5020 (sh_legitimate_address_p): Adapt to changed
5021 sh_legitimate_index_p declaration.
5022 (sh_find_mov_disp_adjust): Remove HImode check.
5023 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
5024 disp_addr_displacement and max_mov_insn_displacement.
5025 (max_mov_insn_displacement): Remove HImode check.
5026 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
5027 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
5028 * config/sh/constraints.md (K05, K13): New constraints.
5029 (K12): Correct comment.
5030 (Sdd): Do not use DISP_ADDR_P macro.
5031 (Snd, Sbw): Use satisfies_constraint_Sdd.
5032 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
5033 (*extendhisi2_compact, movhi_i): Remove.
5034 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
5035 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
5036 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
5037 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
5038 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
5039 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
5040 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
5041 CONST_OK_FOR_Kxx.
5042 Add new peepholes for HImode displacement addressing.
5043
5044 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
5045
5046 * config/sh/sh.h (SIDI_OFF): Remove.
5047 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
5048 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
5049 or operand_subword.
5050
5051 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5052
5053 PR target/52624
5054 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
5055 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
5056 * doc/md.texi (Standard Names): Add bswap.
5057 * builtin-types.def (BT_UINT16): New primitive type.
5058 (BT_FN_UINT16_UINT16): New function type.
5059 * builtins.def (BUILT_IN_BSWAP16): New.
5060 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
5061 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
5062 expand_builtin_bswap.
5063 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
5064 (fold_builtin_1): Likewise.
5065 (is_inexpensive_builtin): Likewise.
5066 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
5067 missing bits for bswap to libcall code.
5068 * tree.c (build_common_tree_nodes): Build uint16_type_node.
5069 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
5070 (uint16_type_node): New define.
5071 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
5072 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
5073 above builtin.
5074 (rs6000_init_builtins): Likewise.
5075 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
5076
5077 2012-04-11 Tristan Gingold <gingold@adacore.com>
5078
5079 * doc/extend.texi (Type Attributes): Move paragraph.
5080
5081 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5082
5083 PR 24985
5084 * diagnostic.h (show_caret): Declare.
5085 (caret_max_width): Declare.
5086 (diagnostic_show_locus): Declare.
5087 * diagnostic.c (diagnostic_initialize): Initialize to false.
5088 (diagnostic_show_locus): New.
5089 (diagnostic_report_diagnostic): Call it.
5090 (getenv_columns): New.
5091 (adjust_line): New.
5092 (diagnostic_set_caret_max_width): New.
5093 * input.c (read_line): New.
5094 (location_get_source_line): New.
5095 * input.h (location_get_source_line): Declare.
5096 * toplev.c (general_init): Initialize show_caret from options.
5097 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
5098 * opts.c (common_handle_option): Likewise.
5099 * pretty-print.h (pp_get_prefix): New.
5100 (pp_base_get_prefix): New.
5101 * common.opt (fdiagnostics-show-caret): New option.
5102 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
5103
5104 2012-04-11 Richard Guenther <rguenther@suse.de>
5105
5106 PR rtl-optimization/52881
5107 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
5108
5109 2012-04-11 Richard Guenther <rguenther@suse.de>
5110
5111 PR tree-optimization/52912
5112 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
5113 manipulation code we are threading through a loop header
5114 to an exit destination.
5115
5116 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5117
5118 * tree.h (warn_if_unused_value): Move declaration from here.
5119 * stmt.c (warn_if_unused_value): Move definition from here.
5120
5121 2010-04-10 Michael Matz <matz@suse.de>
5122
5123 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
5124 grouped_stores.
5125 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
5126 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
5127 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
5128 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
5129 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
5130 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
5131 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
5132 (vect_record_strided_load_vectors): Rename to
5133 vect_record_grouped_load_vectors.
5134 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
5135 Rename use of above macros.
5136 (vect_verify_datarefs_alignment): Ditto.
5137 (vector_alignment_reachable_p): Ditto.
5138 (vect_peeling_hash_get_lowest_cost): Ditto.
5139 (vect_enhance_data_refs_alignment): Ditto.
5140 (vect_analyze_group_access): Ditto and rename stride to groupsize.
5141 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
5142 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
5143 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
5144 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
5145 (vect_record_strided_load_vectors): Rename to
5146 vect_record_grouped_load_vectors.
5147 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
5148 (destroy_loop_vec_info): Ditto.
5149 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
5150 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
5151 (vect_analyze_slp): Ditto.
5152 (new_bb_vec_info): Ditto.
5153 (destroy_bb_vec_info): Ditto.
5154 (vect_schedule_slp_instance): Ditto and rename strided_store to
5155 grouped_store.
5156 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
5157 vect_cost_group_size.
5158 (vect_model_store_cost): Rename use of above macros and call
5159 to vect_cost_strided_group_size.
5160 (vect_model_load_cost): Ditto.
5161 (vectorizable_store): Ditto, rename strided_store to grouped_store
5162 and calls to renamed tree-vectorizer.h functions.
5163 (vectorizable_load): Ditto.
5164 (vect_transform_stmt): Rename use of above macros and strided_store
5165 to grouped_store.
5166
5167 2012-04-10 Jan Hubicka <jh@suse.cz>
5168
5169 * cgraph.h: Remove misledaing comment on ipa-ref.h.
5170 (symtab_type): New enum.
5171 (symtab_node): New structure.
5172 (cgraph_node, varpool_node): Add symbol base type.
5173 (cgraph, varpool): New accestor functions.
5174 * cgraph.c (cgraph_create_node_1): Set symbol type.
5175 * varpool.c (varpool_node): Set symbol type.
5176
5177 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
5178 Richard Sandiford <rdsandiford@googlemail.com>
5179
5180 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
5181
5182 2012-04-10 Richard Guenther <rguenther@suse.de>
5183
5184 PR middle-end/52888
5185 * gimple-low.c (gimple_check_call_args): Properly account for
5186 compatible aggregate types.
5187
5188 2012-04-10 Richard Guenther <rguenther@suse.de>
5189
5190 * toplev.h (tree_rest_of_compilation): Remove.
5191 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5192 * cgraph.h (tree_rest_of_compilation): Declare.
5193 * tree-optimize.c (tree_rest_of_compilation): Move ...
5194 * cgraphunit.c (tree_rest_of_compilation): ... here.
5195 * cgraph.c (cgraph_add_new_function): Adjust.
5196 * Makefile.in (tree-optimize.o): Adjust.
5197 (cgraphunit.o): Likewise.
5198
5199 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
5200
5201 PR tree-optimization/52870
5202 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
5203 presumed pattern statement is within the same loop or basic block.
5204
5205 2012-04-10 Tristan Gingold <gingold@adacore.com>
5206
5207 * gengtype.c (main): Make uintptr_t a known type.
5208
5209 2012-04-10 Richard Guenther <rguenther@suse.de>
5210
5211 * tree-pass.h (tree_lowering_passes): Remove.
5212 * tree-optimize.c (tree_lowering_passes): Remove.
5213 * cgraph.c (cgraph_add_new_function): Inline relevant parts
5214 of tree_lowering_passes, avoid redundant call of early local passes.
5215 * cgraphunit.c (cgraph_lower_function): Fold into ...
5216 (cgraph_analyze_function): ... its single caller. Inline
5217 relevant parts of tree_lowering_passes.
5218
5219 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
5220
5221 PR other/52777
5222 * config/pa/pa.opt: Remove SIO and GNU_LD.
5223
5224 2012-04-09 Jan Hubicka <jh@suse.cz>
5225
5226 PR lto/52722
5227 PR lto/51765
5228 PR lto/52634
5229 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
5230 boundary, add its target too.
5231 * lto.c (add_references_to_partition): Add also aliased nodes.
5232 (add_cgraph_node_to_partition,
5233 add_varpool_node_to_partition): Work on nodes, not functions/variables;
5234 when adding alias, add also the aliased object.
5235
5236 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
5237
5238 PR target/52883
5239 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
5240 VOIDmode immediate operands.
5241 * config/i386/constraints.md (Wz): New constraint.
5242 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
5243
5244 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
5245
5246 PR target/52717
5247 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
5248 the DECL generated for the special GOT helper.
5249
5250 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
5251
5252 * config/sh/constraints.md: Update list of constraints in
5253 comment block.
5254 (Sr0): Remove unused memory constraint.
5255
5256 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5257
5258 * tree-pretty-print.h: Update comment.
5259
5260 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
5261
5262 * config/sh/sh.md: Use braced string notation where applicable.
5263 (*prefetch_i4, prefetch_m2a): Merge into ...
5264 (*prefetch): ... this new insn.
5265
5266 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
5267
5268 * config/sh/sh.h (high_life_started): Remove
5269 * config/sh/predicates.md (general_movdst_operand): Use
5270 'reload_in_progress' instead of 'high_life_started'.
5271 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
5272 divsi_inv_fp): Likewise.
5273
5274 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
5275
5276 * config/sh/sh-protos.h (prepare_move_operands): Return void
5277 instead of int.
5278 * config/sh/sh.c (prepare_move_operands): Likewise.
5279 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
5280
5281 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
5282
5283 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
5284 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
5285 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
5286 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
5287 commutative_float_operator, noncommutative_float_operator,
5288 sh_handle_pragma): Remove.
5289
5290 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
5291
5292 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
5293 Use @option markup on command-line options. Use @samp markup on
5294 literal keywords to options. Use @code markup on code fragments.
5295 Use other markup in preference to quotation marks in the text.
5296 Add markup to some passages without any.
5297
5298 2012-04-06 Mike Stump <mikestump@comcast.net>
5299
5300 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
5301
5302 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
5303
5304 * config/sh/sh.c (hi_const): Remove.
5305 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
5306 of hi_const.
5307
5308 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
5309
5310 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
5311 to bool.
5312 * config/sh/sh.c (sh_expand_t_scc): Likewise.
5313 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
5314 calling sh_expand_t_scc.
5315
5316 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
5317
5318 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
5319 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
5320 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
5321 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
5322 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
5323 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
5324 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
5325 sh2a_is_function_vector_call): Use bool as return type.
5326 (sh_pass_in_reg_p): Remove.
5327 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
5328 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
5329 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
5330 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
5331 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
5332 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
5333 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
5334 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
5335 sh_loads_bankedreg_p): Use bool as return type.
5336 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
5337 'register' modifier.
5338
5339 2012-04-06 Matt Turner <mattst88@gmail.com>
5340
5341 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
5342
5343 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
5344
5345 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
5346 of the destination isn't also a FP_REGS register.
5347
5348 2012-04-05 Teresa Johnson <tejohnson@google.com>
5349 H.J. Lu <hongjiu.lu@intel.com>
5350
5351 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
5352 * config/i386/i386.md (move immediate to memory peephole2):
5353 Add cases for HImode move when LCP stall avoidance is needed.
5354 * config/i386/i386.c (initial_ix86_tune_features): Initialize
5355 X86_TUNE_LCP_STALL entry.
5356
5357 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
5358
5359 PR target/52882
5360 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
5361 CONST_INT operands, zero-extended with AND.
5362
5363 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
5364
5365 PR target/50751
5366 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
5367 first argument instead of mode size. Move displacement calculations
5368 to ...
5369 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
5370 ... these new functions.
5371 (disp_adjust): Remove max_mov_disp field.
5372 (sh_legitimate_index_p): Use max_mov_insn_displacement and
5373 mov_insn_alignment_mask.
5374 (sh_address_cost): Use max_mov_insn_displacement.
5375
5376 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
5377
5378 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
5379 (arch_enabled): Handle new arch types.
5380 (one_cmpldi2): Add NEON support.
5381
5382 2012-04-05 Richard Guenther <rguenther@suse.de>
5383
5384 * gimple.c (walk_gimple_op): Compute val_only for the LHS
5385 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
5386 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
5387 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
5388 ... here and make static.
5389 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
5390 Remove.
5391
5392 2012-04-05 Richard Guenther <rguenther@suse.de>
5393
5394 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
5395 basic-block before removing it.
5396
5397 2012-04-05 Richard Guenther <rguenther@suse.de>
5398
5399 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
5400 version namespace as we release the freelist.
5401
5402 2012-04-05 Richard Guenther <rguenther@suse.de>
5403
5404 * tree-nrv.c (tree_nrv): Release VDEFs.
5405 * tree-sra.c (sra_modify_constructor_assign): Likewise.
5406 (sra_modify_assign): Likewise.
5407 * tree-vect-stmts.c (vect_remove_stores): Likewise.
5408 * tree-vect-loop.c (vect_transform_loop): Likewise.
5409 * tree-ssa-dom.c (optimize_stmt): Likewise.
5410 * tree-vect-slp.c (vect_schedule_slp): Likewise.
5411 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5412
5413 2012-04-05 Richard Guenther <rguenther@suse.de>
5414
5415 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
5416 cleanup.
5417 * gimple.h (gsi_remove): Adjust.
5418 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
5419 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
5420 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
5421 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
5422 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
5423 * tree-ssa-pre.c (eliminate): Likewise.
5424
5425 2012-04-04 Mike Stump <mikestump@comcast.net>
5426
5427 * doc/rtl.texi (const_double): Document as sign-extending.
5428 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
5429 * emit-rtl.c (immed_double_int_const): Refine to state the
5430 value is signed.
5431 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
5432 CONST_DOUBLE integers.
5433 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
5434 negative values are converted. Fix conversions bigger than
5435 HOST_BITS_PER_WIDE_INT.
5436 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
5437 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
5438 * explow.c (plus_constant_mode): Add.
5439 (plus_constant): Implement with plus_constant_mode.
5440 * rtl.h (plus_constant_mode): Add.
5441
5442 2012-04-04 Richard Guenther <rguenther@suse.de>
5443
5444 PR tree-optimization/52808
5445 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
5446 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
5447
5448 2012-04-04 Tristan Gingold <gingold@adacore.com>
5449
5450 * expr.c (expand_expr_real_2): Handle larger sizetype in
5451 POINTER_PLUS_EXPR.
5452
5453 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
5454
5455 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
5456 to m2a-single instead of m2e.
5457
5458 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
5459
5460 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
5461 Change type of BITOFFSET to signed. Make sure the lower bound of
5462 the computed range is non-negative by adjusting OFFSET and BITPOS.
5463 (expand_assignment): Adjust call to get_bit_range.
5464
5465 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
5466
5467 * h8300/h8300.c (h8300_current_function_monitor_function_p):
5468 New function. Added to check monitor functions.
5469 (h8300_option_override): Modified to generate error/warning
5470 messages for invalid combinations of different command line
5471 options.
5472 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
5473 save EXR on stack for monitor function in case of H8S target
5474 when "-mno-exr" is passed.
5475 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
5476 Add prototype.
5477 * doc/invoke.texi: Document H8S options.
5478
5479 2012-04-03 Tristan Gingold <gingold@adacore.com>
5480
5481 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
5482 of gcc_AC_FUNC_MMAP_BLACKLIST.
5483 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
5484 * Makefile.in (aclocal_deps): Add mmap.m4.
5485 * configure: Regenerate.
5486 * aclocal.m4: Regenerate.
5487
5488 2012-04-03 Richard Guenther <rguenther@suse.de>
5489
5490 PR tree-optimization/52808
5491 * tracer.c (tail_duplicate): Return whether we have duplicated
5492 any block.
5493 (tracer): If we have duplicated any block, cleanup the CFG.
5494 * cfghooks.c (duplicate_block): If we duplicated a loop
5495 header but not its loop, destroy the loop because it now has
5496 multiple entries.
5497 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
5498 the cfg manipulation routines we are not creating a multiple
5499 entry loop.
5500
5501 2012-04-03 Tristan Gingold <gingold@adacore.com>
5502
5503 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
5504 'byte' alignment.
5505 (vms_c_common_override_options): Allow parameterless variadic
5506 functions.
5507
5508 2012-04-03 Jakub Jelinek <jakub@redhat.com>
5509
5510 PR tree-optimization/52835
5511 * tree-data-ref.c (build_rdg): Return NULL if
5512 compute_data_dependences_for_loop failed.
5513
5514 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
5515
5516 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
5517 for REAL_CST as well.
5518 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
5519 In the bitfield case, if the value is a REAL_CST, convert it first to
5520 an INTEGER_CST.
5521
5522 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
5523
5524 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
5525 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
5526 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
5527
5528 * config/i386/biarchx32.h: New.
5529
5530 2012-04-02 Anatoly Sokolov <aesok@post.ru>
5531
5532 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
5533 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5534 (arm_preferred_reload_class): New function.
5535
5536 2012-04-02 Richard Guenther <rguenther@suse.de>
5537
5538 PR tree-optimization/52756
5539 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
5540 (thread_through_loop_header): After threading through the loop latch
5541 remove the split part from the loop and clear further threading
5542 opportunities that would create a multiple entry loop.
5543
5544 2012-04-02 Richard Guenther <rguenther@suse.de>
5545
5546 PR rtl-optimization/52800
5547 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
5548 CLEANUP_CFG_CHANGED.
5549
5550 2012-04-02 Richard Guenther <rguenther@suse.de>
5551
5552 PR middle-end/52803
5553 * loop-init.c (gate_handle_loop2): Destroy loops here if
5554 we don't enter RTL loop optimizers.
5555
5556 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
5557
5558 Partially revert:
5559 2012-03-29 Richard Guenther <rguenther@suse.de>
5560
5561 * rtl.h (extended_count): Remove.
5562 * combine.c (extended_count): Remove.
5563
5564 2012-04-02 Dodji Seketeli <dodji@redhat.com>
5565
5566 PR c++/40942
5567 * pt.c (more_specialized_fn): Don't apply decay conversion to
5568 types of function parameters.
5569
5570 2012-04-02 Tristan Gingold <gingold@adacore.com>
5571
5572 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
5573 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
5574 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
5575 (ggc_pch_this_base): Use uintptr_t instead of size_t.
5576
5577 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
5578
5579 PR bootstrap/52784
5580 * config/i386/i386.c (ix86_option_override_internal): Don't
5581 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
5582
5583 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
5584
5585 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
5586 (stmt_can_make_abnormal_goto): Use it.
5587 (is_ctrl_altering_stmt): Likewise.
5588
5589 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
5590 Kaz Kojima <kkojima@gcc.gnu.org>
5591
5592 * config/sh/sh.c (push_regs): Skip banked registers when
5593 resbank attribute is specified.
5594 (sh_expand_epilogue): Likewise.
5595
5596 2012-03-30 Richard Henderson <rth@redhat.com>
5597
5598 PR debug/52727
5599 * combine-stack-adj.c (prev_active_insn_bb): New.
5600 (next_active_insn_bb): New.
5601 (force_move_args_size_note): New.
5602 (combine_stack_adjustments_for_block): Use it.
5603
5604 2012-03-30 Richard Henderson <rth@redhat.com>
5605
5606 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
5607 (ix86_expand_vector_init_duplicate): Initialize it.
5608 (expand_vec_perm_palignr): Likewise.
5609 (ix86_expand_vec_perm_const): Likewise.
5610 (ix86_vectorize_vec_perm_const_ok): Likewise.
5611 (expand_vec_perm_blend): Use it.
5612 (expand_vec_perm_vpermil): Likewise.
5613 (expand_vec_perm_pshufb): Likewise.
5614 (expand_vec_perm_1): Likewise.
5615 (expand_vec_perm_pshuflw_pshufhw): Likewise.
5616 (expand_vec_perm_interleave2): Likewise.
5617 (expand_vec_perm_vpermq_perm_1): Likewise.
5618 (expand_vec_perm_vperm2f128): Likewise.
5619 (expand_vec_perm_interleave3): Likewise.
5620 (expand_vec_perm_vperm2f128_vblend): Likewise.
5621 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5622 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
5623 (expand_vec_perm_broadcast): Likewise.
5624 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5625
5626 2012-03-30 Richard Henderson <rth@redhat.com>
5627
5628 * dwarf2out.c (gen_variable_die): Initialize off.
5629
5630 2012-03-30 Tristan Gingold <gingold@adacore.com>
5631
5632 * config/vms/vms-f.c: New file.
5633 * config/vms/t-vms (vms-f.o): New rule.
5634 * config.gcc (*-*-*vms*): Define fortran_target_objs.
5635
5636 2012-03-30 Richard Guenther <rguenther@suse.de>
5637
5638 PR tree-optimization/52754
5639 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
5640 propagate arbitrary addresses into really plain dereferences.
5641
5642 2012-03-30 Richard Guenther <rguenther@suse.de>
5643
5644 PR middle-end/52772
5645 * except.c (emit_to_new_bb_before): Move loop updating ...
5646 (dw2_build_landing_pads): ... here. Use a proper block for
5647 querying the loop father.
5648
5649 2012-03-30 Tristan Gingold <gingold@adacore.com>
5650
5651 * config/ia64/ia64.c (ia64_section_type_flags): Remove
5652 common_object attribute handling.
5653 (SECTION_VMS_OVERLAY): Remove
5654 (ia64_vms_common_object_attribute): Replace abort with an assert.
5655 Do not set DECL_SECTION_NAME.
5656 (ia64_vms_output_aligned_decl_common): Handle common_object
5657 attribute.
5658 (ia64_vms_elf_asm_named_section): Remove.
5659 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
5660
5661 2012-03-30 Richard Guenther <rguenther@suse.de>
5662
5663 PR middle-end/52786
5664 * double-int.c (rshift_double): Remove not needed cast.
5665
5666 2012-03-30 Richard Guenther <rguenther@suse.de>
5667
5668 * tree-affine.h (print_aff): Remove.
5669 * tree-affine.c (print_aff): Make static.
5670 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
5671 (get_references_in_stmt): Likewise.
5672 (print_direction_vector): Likewise.
5673 (print_dir_vectors): Likewise.
5674 (print_dist_vectors): Likewise.
5675 (dump_subscript): Likewise.
5676 (dump_ddrs): Likewise.
5677 (dump_dist_dir_vectors): Likewise.
5678 (dump_data_references): Likewise.
5679 (dump_data_dependence_relation): Likewise.
5680 (dump_data_dependence_direction): Likewise.
5681 (dump_rdg_vertex): Likewise.
5682 (dump_rdg_component): Likewise.
5683 (debug_ddrs): Declare.
5684 (struct data_ref_loc_d): Move ...
5685 * tree-data-ref.c (struct data_ref_loc_d): ... here.
5686 (get_references_in_stmt): Make static.
5687 (dump_data_references): Likewise.
5688 (dump_subscript): Likewise.
5689 (print_direction_vector): Likewise.
5690 (print_dir_vectors): Likewise.
5691 (print_dist_vectors): Likewise.
5692 (dump_data_dependence_relation): Likewise.
5693 (dump_dist_dir_vectors): Likewise.
5694 (dump_ddrs): Likewise.
5695 (dump_rdg_vertex): Likewise.
5696 (dump_rdg_component): Likewise.
5697 (debug_ddrs): New function.
5698 (access_matrix_get_index_for_parameter): Remove.
5699
5700 2012-03-30 Tristan Gingold <gingold@adacore.com>
5701
5702 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
5703 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
5704 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
5705 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
5706 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
5707 (vms_patch_builtins): Handle new flags
5708 * config/vms/vms-crtlmap.map: Completed using nm on
5709 c and math system libraries.
5710 * config/vms/make-crtlmap.awk: Handle any number of flags.
5711
5712 2012-03-30 Martin Jambor <mjambor@suse.cz>
5713
5714 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
5715 is a builtin_stack_save in a dominating BB.
5716
5717 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
5718
5719 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
5720 crossing 128bit lane boundary.
5721
5722 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
5723
5724 * ira-color.c (setup_left_conflict_sizes_p): Process all
5725 conflicting objects.
5726
5727 2012-03-29 Jakub Jelinek <jakub@redhat.com>
5728
5729 PR tree-optimization/52760
5730 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
5731 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
5732
5733 2012-03-29 Richard Guenther <rguenther@suse.de>
5734
5735 * cgraph.h (cgraph_materialize_all_clones): Remove.
5736 (reset_inline_failed): Likewise.
5737 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
5738 * cgraphbuild.c (reset_inline_failed): Remove.
5739 * rtl.h (cse_main): Remove.
5740 (extended_count): Likewise.
5741 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
5742 (cse_main): Make static.
5743 * combine.c (extended_count): Remove.
5744 (dump_combine_stats): Mark as DEBUG_FUNCTION.
5745 * basic-block.h (reorder_basic_blocks): Remove.
5746 * bb-reorder.c (reorder_basic_blocks): Make static.
5747 * Makefile.in (dse.o): Remove dse.h dependency.
5748 * dse.h: Remove.
5749 * dse.c (gate_dse): Remove.
5750 (clear_alias_mode_eq): Likewise.
5751 (clear_alias_mode_hash): Likewise.
5752 (dse_record_singleton_alias_set): Likewise.
5753 (dse_invalidate_singleton_alias_set): Likewise.
5754
5755 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
5756
5757 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
5758 crtbegin_so%O%s for -shared.
5759 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
5760
5761 2012-03-29 Richard Guenther <rguenther@suse.de>
5762
5763 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
5764 (add_to_value): Remove.
5765 (print_value_expressions): Likewise.
5766 * tree-ssa-pre.c (add_to_value): Make static.
5767 (print_value_expressions): Likewise.
5768 * gimple.h (gimple_adjust_this_by_delta): Remove.
5769 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
5770
5771 2012-03-29 Richard Guenther <rguenther@suse.de>
5772
5773 PR middle-end/50708
5774 * double-int.h (rshift_double): Remove.
5775 * double-int.c (lshift_double): Use absu_hwi to make count positive.
5776 (rshift_double): Make static, take unsigned count argument,
5777 remove handling of negative count argument.
5778 (double_int_rshift): Dispatch to lshift_double.
5779
5780 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
5781
5782 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
5783 OPTION_MASK_ABI_64.
5784
5785 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
5786 (SPEC_X32): Likewise.
5787 (MULTILIB_DEFAULTS): Likewise.
5788
5789 * config/i386/i386.c (isa_opts): Remove -m64.
5790 (ix86_target_string): Properly handle -m32/-m64/-mx32.
5791 (ix86_option_override_internal): Properly
5792 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
5793 handle -m32, -m64 and -mx32.
5794
5795 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
5796 with OPTION_ABI_X32. Moved after TARGET_LP64.
5797 (TARGET_LP64): Changed to OPTION_ABI_64.
5798
5799 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
5800 (mx32): Replace ISA_X32 with ABI_X32.
5801
5802 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
5803
5804 * tree.c (tree_size) <VECTOR_CST>: New case.
5805
5806 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
5807
5808 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
5809 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
5810
5811 2012-03-28 Jakub Jelinek <jakub@redhat.com>
5812
5813 PR middle-end/52691
5814 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
5815 __builtin_va_start to __builtin_next_arg if the latter is
5816 builtin_decl_explicit_p rather than when it is not.
5817
5818 PR middle-end/52750
5819 * tree-vect-generic.c (vector_element): Perform multiplication
5820 for pos in bitsizetype type instead of idx type.
5821
5822 2012-03-28 Richard Guenther <rguenther@suse.de>
5823
5824 * loop-init.c (loop_optimizer_init): If loops are preserved
5825 perform incremental initialization of required loop features.
5826 (loop_optimizer_finalize): If loops are to be preserved only
5827 clean up optional loop features.
5828 (rtl_loop_done): Forcefully free loops here.
5829 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
5830 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
5831 to existing loops.
5832 (construct_init_block): Likewise.
5833 (construct_exit_block): Likewise.
5834 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
5835 the CFG after expanding.
5836 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
5837 If we needed to calculate them, free them afterwards.
5838 * tree-pass.h (PROP_loops): New define.
5839 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
5840 * basic-block.h (CLEANUP_CFG_CHANGED): New.
5841 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
5842 (cleanup_cfg): If we did something and have loops around, fix them up.
5843 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
5844 with CLEANUP_CFG_CHANGED.
5845 * cfghooks.c (merge_blocks): If we merge a loop header into
5846 its predecessor, update the loop structure.
5847 (duplicate_block): If we copy a loop latch, adjust loop state
5848 to note we may have multiple latches.
5849 (delete_basic_block): Mark loops for fixup if we remove a loop.
5850 * cfganal.c (forwarder_block_p): Protect loop latches, headers
5851 and preheaders.
5852 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
5853 (cfg_layout_can_merge_blocks_p): Likewise.
5854 * cprop.c (bypass_block): If we create a loop with multiple
5855 entries, mark it for removal.
5856 * except.c (emit_to_new_bb_before): Add the new basic-block
5857 to existing loops.
5858 * tree-eh.c (lower_resx): Likewise.
5859 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
5860 (expand_omp_taskreg): Likewise.
5861 * tree-inline.c (initialize_cfun): Likewise.
5862 * tree-mudflap.c (add_bb_to_loop): Prototype.
5863 (mf_build_check_statement_for): Properly add new basic-blocks
5864 to existing loops.
5865 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
5866 if we remove a loop.
5867 (thread_through_loop_header): Likewise.
5868 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
5869 new basic-blocks to existing loops.
5870 (expand_transaction): Likewise.
5871 * Makefile.in (except.o): Add $(CFGLOOP_H).
5872 (expr.o): Likewise.
5873 (cgraph.o): Likewise.
5874 (cprop.o): Likewise.
5875 (cfgexpand.o): Likewise.
5876 (cfganal.o): Likewise.
5877 (trans-mem.o): Likewise.
5878 (tree-eh.o): Likewise.
5879
5880 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
5881
5882 PR target/52692
5883 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
5884 (avr_builtin_decl): New static function.
5885 (struct avr_builtin_description, avr_bdesc): Move up.
5886 Add GTY marker. Add field fndecl. Remove redundant field id.
5887 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
5888 (avr_expand_builtin): Code cleanup because .id is removed.
5889
5890 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
5891
5892 PR target/52737
5893 * config.gcc (tm_file): Remove avr/multilib.h.
5894
5895 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
5896
5897 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
5898 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
5899 * config/avr/t-avr: Remove generation of multilib.h.
5900 * config/avr/t-multilib: Regenerate.
5901 * config/avr/multilib.h: Remove.
5902 * config/avr/avr.opt (-msp8): New option.
5903 (avr_sp8): New variable.
5904 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
5905 * config/avr/avr.h (AVR_HAVE_SPH): New define.
5906 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
5907 (avr_device_to_sp8): New prototype.
5908 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
5909 (DRIVER_SELF_SPECS): New define.
5910 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
5911 __AVR_SP8__, __AVR_HAVE_SPH__.
5912 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
5913 AVR_HAVE_8BIT_SP to decide if SP_H is present.
5914 (avr_file_start): Ditto.
5915
5916 2012-03-28 Jakub Jelinek <jakub@redhat.com>
5917
5918 PR target/52736
5919 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
5920 instead of 8 in adjust_address.
5921
5922 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
5923
5924 PR middle-end/51893
5925 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
5926 targets.
5927
5928 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
5929
5930 PR target/50751
5931 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
5932 Rearrange conditional logic. Move displacement address calculations
5933 to ...
5934 (sh_find_mov_disp_adjust): ... this new function.
5935
5936 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
5937
5938 * config/arm/arm.opt (mapcs): Remove MaskExists.
5939 * config/cris/linux.opt (mno-gotplt): Likewise.
5940 * config/i386/i386.opt (mhard-float): Likewise.
5941 (msse4): Likewise.
5942 (mno-sse4): Likewise.
5943 * config/m68k/m68k.opt (mhard-float): Likewise.
5944 * config/mep/mep.op (mcop32): Likewise.
5945 * config/pa/pa-hpux.opt (msio): Likewise.
5946 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
5947 * config/picochip/picochip.opt (mlittle): Likewise.
5948 * config/sh/sh.opt (mrenesas): Likewise.
5949 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
5950 * config/sparc/sparc.opt (mhard-float): Likewise.
5951 * config/v850/v850.opt (mv850es): Likewise.
5952 * config/vax/vax.opt (mg-float): Likewise.
5953
5954 2012-03-27 Martin Jambor <mjambor@suse.cz>
5955
5956 PR middle-end/52693
5957 * tree-sra.c (sra_modify_assign): Do not call
5958 load_assign_lhs_subreplacements when working with an unscalarizable
5959 region.
5960
5961 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
5962
5963 PR target/52698
5964 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
5965 New prototype.
5966 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
5967 * config/i386/i386.c: Include reload.h.
5968 (ix86_legitimize_reload_address): New function.
5969
5970 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
5971
5972 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
5973 hasn't been allocated. Define a target macro for Mask and
5974 InverseMask if it hasn't been defined. Remove MaskExists handling.
5975
5976 * doc/options.texi: Remove MaskExists.
5977
5978 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
5979
5980 PR target/52667
5981 * config/sh/sh.c (find_barrier): Add equality check of last_got
5982 to avoid going above orig insn. Update comments.
5983
5984 2012-03-27 Richard Guenther <rguenther@suse.de>
5985
5986 PR middle-end/52720
5987 * fold-const.c (try_move_mult_to_index): Handle &x.array more
5988 explicitely.
5989
5990 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
5991
5992 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
5993 of a unit before computing the offset in units.
5994 * expr.c (get_bit_range): Return the null range if the enclosing record
5995 is part of a larger bit field.
5996
5997 2012-03-27 Tristan Gingold <gingold@adacore.com>
5998
5999 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
6000 * config/ia64/ia64.md: Remove mode in template.
6001 Sign extend operand in expand_simple_binop.
6002 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
6003 CASE_VECTOR_MODE instead of TARGET_ILP32.
6004 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
6005
6006 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
6007
6008 * varasm.c (assemble_external): #if 0 out the new assert from the
6009 previous commit, it breaks the Java and Go front ends.
6010
6011 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
6012
6013 * toplev.c (check_global_declaration_1): Do not call assemble_external.
6014 * expr.c (emit_block_move_libcall_fn): Likewise.
6015 (clear_storage_libcall_fn): Likewise.
6016 (expand_expr_addr_expr_1): Likewise.
6017 (expand_expr_real_1): Likewise.
6018 * calls.c (rtx_for_function_call): Likewise.
6019
6020 * varasm.c (assemble_external): Assert this function is only called
6021 during or after expanding to RTL.
6022
6023 2012-03-26 Martin Jambor <mjambor@suse.cz>
6024
6025 PR tree-optimization/50052
6026 * tree-sra.c (tree_non_aligned_mem_p): Removed.
6027 (tree_non_aligned_mem_for_access_p): Likewise.
6028 (build_accesses_from_assign): Removed strict alignment requirements
6029 checks.
6030 (access_precludes_ipa_sra_p): Likewise.
6031
6032 2012-03-26 Richard Guenther <rguenther@suse.de>
6033
6034 PR tree-optimization/52701
6035 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
6036 compute and set the evolution part of PHI nodes.
6037
6038 2012-03-26 Richard Guenther <rguenther@suse.de>
6039
6040 PR tree-optimization/52721
6041 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
6042
6043 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
6044
6045 PR tree-optimization/52686
6046 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
6047 WIDEN_LSHIFT_EXPR.
6048
6049 2012-03-26 Tristan Gingold <gingold@adacore.com>
6050
6051 * config/alpha/vms.h (LINK_SPEC): Simplify.
6052 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
6053 (NAME__MAIN, SYMBOL__MAIN): Remove.
6054 (VMS_DEBUG_MAIN_POINTER): Remove.
6055 * config/ia64/vms.h: Likewise.
6056 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
6057 code to vms.c. Call vms_start_function.
6058 * config/ia64/ia64.c (ia64_start_function): Likewise.
6059 * config/vms/vms-protos.h (vms_start_function): Declare.
6060 * config/vms/vms.c (vms_start_function): New function.
6061 * config/vms/vms.h (MATH_LIBRARY): Define.
6062 (VMS_DEBUG_MAIN_POINTER): Define.
6063
6064 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
6065
6066 PR rtl-optimization/52629
6067 * reload1.c (count_pseudo): Short-circuit common case.
6068 (count_spilled_pseudo): Return early for pseudos without hard regs.
6069 Assert that the pseudo has got a hard reg before manipulating it.
6070
6071 2012-03-24 Jan Hubicka <jh@suse.cz>
6072
6073 PR lto/51663
6074 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
6075 (decide_is_variable_needed): Do not handle toplevel reorder here.
6076 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
6077 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
6078 even at -O0.
6079
6080 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
6081
6082 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
6083 and str_bitsize instead of more convoluted expressions.
6084
6085 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
6086
6087 PR target/52610
6088 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
6089
6090 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
6091
6092 PR target/52656
6093 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
6094
6095 2012-03-23 Martin Jambor <mjambor@suse.cz>
6096
6097 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
6098
6099 2012-03-23 Richard Guenther <rguenther@suse.de>
6100
6101 PR tree-optimization/52678
6102 * tree-vectorizer.h (struct _stmt_vec_info): Add
6103 loop_phi_evolution_part member.
6104 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
6105 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
6106 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
6107 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6108 Use the cached evolution part and the PHI nodes value from
6109 the loop preheader edge instead of re-analyzing the evolution.
6110
6111 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
6112
6113 * config/mips/mips-tables.opt: Update.
6114 * config/mips/mips.md (processor): Add xlp.
6115 * config/mips/mips-cpus.def: Add xlp.
6116 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
6117 5KF for now.
6118 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
6119 * doc/invoke.texi: Mention XLP.
6120
6121 2012-03-22 Jakub Jelinek <jakub@redhat.com>
6122
6123 PR middle-end/52547
6124 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
6125 on any new_local_var_chain vars declared during recursing on
6126 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
6127
6128 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
6129
6130 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
6131 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
6132 (ASM_OUTPUT_LOCAL): Ditto.
6133 (ASM_OUTPUT_COMMON): Remove.
6134 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
6135 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
6136
6137 2012-03-22 Jan Hubicka <jh@suse.cz>
6138
6139 PR middle-end/51737
6140 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
6141 parameter.
6142 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
6143 * ipa-inline-transform.c (save_inline_function_body): Remove
6144 copied clone if needed.
6145 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
6146
6147 2012-03-22 Richard Guenther <rguenther@suse.de>
6148
6149 PR middle-end/52666
6150 * fold-const.c (fold_ternary_loc): Fix typo.
6151
6152 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
6153
6154 PR target/52496
6155 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
6156 (unspecv): Add UNSPECV_MEMORY_BARRIER.
6157 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
6158 (delay_cycles_1, delay_cycles_2): Ditto.
6159 (delay_cycles_3, delay_cycles_4): Ditto.
6160 (nopv, *nopv): Ditto.
6161 (sleep, *sleep): Ditto.
6162 (wdr, *wdr): Ditto.
6163
6164 2012-03-22 Richard Guenther <rguenther@suse.de>
6165
6166 PR tree-optimization/52548
6167 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
6168 because of clobbers.
6169 (prune_clobbered_mems): New function.
6170 (compute_antic_aux): Use it to prune ANTIC_OUT.
6171 (compute_partial_antic_aux): Use it to prune PA_IN.
6172 (compute_avail): Only insert expressions into EXP_GEN that are not
6173 invalidated when translated up to the beginning of the block.
6174
6175 2012-03-22 Richard Guenther <rguenther@suse.de>
6176
6177 PR tree-optimization/52638
6178 * tree-vect-stmts.c (vect_init_vector_1): New function, split
6179 out from ...
6180 (vect_init_vector): ... here. Handle scalar vector inits.
6181 (vect_get_vec_def_for_operand): Adjust.
6182 (vectorizable_load): Likewise.
6183
6184 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
6185
6186 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
6187 (alpha*-*-freebsd*): Ditto.
6188 (alpha*-*-netbsd*): Ditto.
6189 (alpha*-*-openbsd*): Ditto.
6190 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
6191 (DWARF2_DEBUGGING_INFO): Remove.
6192 (PREFERRED_DEBUGGING_TYPE): Remove.
6193 (ASM_FINAL_SPEC): Remove.
6194 (IDENT_ASM_OP): Remove.
6195 (ASM_OUTPUT_IDENT): Remove.
6196 (SKIP_ASM_OP): Remove.
6197 (ASM_OUTPUT_SKIP): Remove.
6198 (ALIGN_ASM_OP): Remove.
6199 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
6200 (ASM_OUTPUT_CASE_LABEL): Remove.
6201 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
6202 (COMMON_ASM_OP): Remove.
6203 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
6204 (ASCII_DATA_ASM_OP): Remove.
6205 (READONLY_DATA_SECTION_ASM_OP): Remove.
6206 (INIT_SECTION_ASM_OP): Remove.
6207 (FINI_SECTION_ASM_OP): Remove.
6208 (ASM_SECTION_START_OP): Remove.
6209 (ASM_OUTPUT_SECTION_START_FILE): Remove.
6210 (TARGET_ASM_NAMED_SECTION): Remove.
6211 (TARGET_ASM_SELECT_SECTION): Remove.
6212 (MAKE_DECL_ONE_ONLY): Remove.
6213 (TYPE_ASM_OP): Remove.
6214 (SIZE_ASM_OP): Remove.
6215 (ASM_WEAKEN_LABEL): Remove.
6216 (TYPE_OPERAND_FMT): Remove.
6217 (ASM_DECLARE_RESULT): Remove.
6218 (ASM_DECLARE_OBJECT_NAME): Remove.
6219 (ASM_FINISH_DECLARE_OBJECT): Remove.
6220 (ELF_ASCII_ESCAPES): Remove.
6221 (ELF_STRING_LIMIT): Remove.
6222 (STRING_ASM_OP): Remove.
6223 (ASM_OUTPUT_EXTERNAL): Remove.
6224 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
6225 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
6226 before define.
6227 (ASM_DECLARE_FUNCTION_NAME): Ditto.
6228 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
6229 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
6230 (ASM_OUTPUT_SKIP): Ditto.
6231 (READONLY_DATA_SECTION_ASM_OP): Remove.
6232 (USER_LABEL_PREFIX): Remove.
6233 (ASM_OUTPUT_ASCII): Remove.
6234 (ASM_OUTPUT_CASE_LABEL): Remove.
6235 (NO_DOLLAR_IN_LABEL): Undefine.
6236
6237 2012-03-22 Richard Guenther <rguenther@suse.de>
6238
6239 PR tree-optimization/52459
6240 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
6241 PHI insertion for calls.
6242
6243 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
6244
6245 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
6246 find_sets_in_insn, canonicalize_insn): Split out from ...
6247 (cse_insn): ... here.
6248 (invalidate_from_clobbers): Take an insn instead of the pattern.
6249
6250 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
6251
6252 PR target/52479
6253 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
6254 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
6255 * config/sh/sh.md (sindf2, cosdf2): Remove.
6256
6257 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
6258
6259 PR target/52642
6260 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
6261 prologue for unwinder and profiler.
6262
6263 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
6264
6265 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
6266 Introduce emul_name to select the right linker emulation for
6267 powerpc64-*-freebsd*.
6268 * configure: Regenerate.
6269 * config.gcc: Add bits to support powerpc64-*-freebsd*.
6270 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
6271 * config/rs6000/freebsd64.h: New file.
6272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
6273 POWERPC_FREEBSD.
6274 (rs6000_savres_strategy): Likewise.
6275 (rs6000_savres_routine_name): Likewise.
6276 (rs6000_elf_file_end): Likewise.
6277 * config/rs6000/t-freebsd64: New file.
6278 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
6279 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
6280
6281 * config/rs6000/freebsd64.h: Remove duplicated entries from last
6282 commit.
6283 * config/rs6000/t-freebsd64: Likewise.
6284
6285 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
6286
6287 PR rtl-optimization/52543
6288 PR target/52461
6289 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
6290 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
6291 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
6292 (avr_load_libgcc_p): Restrict to __flash loads.
6293 (avr_out_lpm): Only handle 1-byte loads from __flash.
6294 (avr_load_lpm): New function.
6295 (avr_find_unused_d_reg): Remove.
6296 (avr_out_lpm_no_lpmx): Remove.
6297 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
6298 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
6299 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
6300 (load_<mode>, load_<mode>_clobber): New insns.
6301 (mov<mode>): For multi-byte move from non-generic
6302 16-bit address spaces: Expand to load_<mode> resp.
6303 load_<mode>_clobber.
6304 (load<mode>_libgcc): Remove expander.
6305 (split-lpmx): Remove split.
6306
6307 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
6308
6309 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
6310 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
6311 All callers changed.
6312 (Fixed_core_reg): New feature.
6313 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
6314 disassembly.
6315 * neon-testgen.ml: Handle Fixed_core_reg.
6316
6317 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
6318
6319 * config/arm/arm.c (thumb2_reorg): Add complete support
6320 for 16-bit instructions.
6321 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
6322
6323 2012-03-21 Richard Guenther <rguenther@suse.de>
6324
6325 PR tree-optimizer/52636
6326 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
6327 to the appropriate type.
6328
6329 2012-03-21 Richard Guenther <rguenther@suse.de>
6330
6331 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
6332 dependencies.
6333 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
6334 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
6335 * passes.c (init_optimization_passes): Remove pass_init_function,
6336 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
6337 * tree-pass.h (pass_init_function): Remove.
6338 (pass_jump): Remove.
6339 (pass_initial_value_sets): Remove.
6340 (pass_unshare_all_rtl): Remove.
6341 * integrate.c (pass_initial_value_sets): Remove.
6342 * emit-rtl.c (pass_unshare_all_rtl): Remove.
6343 * tree.h (init_function_for_compilation): Remove.
6344 * function.c (init_function_for_compilation): Remove.
6345 (pass_init_function): Remove.
6346 * cfgcleanup.c (rest_of_handle_jump): Remove.
6347 (pass_jump): Remove.
6348
6349 2012-03-20 Jason Merrill <jason@redhat.com>
6350
6351 * tree-streamer-in.c (streamer_alloc_tree): Call
6352 ggc_alloc_zone_cleared_tree_node instead of
6353 ggc_alloc_zone_cleared_tree_node_stat.
6354
6355 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
6356
6357 * doc/extend.texi (Template Instantiation): Remove anachronisms.
6358
6359 2012-03-20 Jakub Jelinek <jakub@redhat.com>
6360
6361 PR target/52607
6362 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
6363 (ix86_expand_vec_perm_const_1): Call it.
6364
6365 * config/i386/i386.c (vselect_insn): New variable.
6366 (init_vselect_insn): New function.
6367 (expand_vselect, expand_vselect_insn): Add testing_p argument.
6368 Call init_vselect_insn if vselect_insn is NULL. Adjust
6369 PATTERN (vselect_insn), instead of creating a new insn each time,
6370 only emit a copy of it if not testing and recog has been successful.
6371 (expand_vec_perm_pshufb, expand_vec_perm_1,
6372 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
6373 callers.
6374
6375 PR target/52607
6376 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
6377 ("enabled" attribute): Handle avx2 and noavx2 isas.
6378 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
6379 New insns.
6380 (vec_dup<mode>): Add avx2 =x,x alternative.
6381 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
6382 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
6383 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
6384 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
6385 for V8SFmode.
6386 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
6387 if possible, handle also V8SFmode.
6388
6389 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
6390
6391 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
6392 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
6393 reg_or_zero_operand predicate.
6394 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
6395
6396 2012-03-20 Jakub Jelinek <jakub@redhat.com>
6397
6398 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
6399 If operand isn't UNSPEC, return 0.
6400
6401 2012-03-20 Richard Guenther <rguenther@suse.de>
6402
6403 * tree-pass.h (pass_rtl_eh): Remove.
6404 * except.c (gate_handle_eh): Likewise.
6405 (rest_of_handle_eh): Likewise.
6406 (pass_rtl_eh): Likewise.
6407 (finish_eh_generation): Export.
6408 * except.h (finish_eh_generation): Declare.
6409 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
6410 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
6411 after expanding stack alignment. Instead of compacting blocks
6412 call cleanup_cfg.
6413
6414 2012-03-20 Richard Guenther <rguenther@suse.de>
6415
6416 * stor-layout.c (finish_bitfield_representative): Fallback
6417 to conservative maximum size if the padding up to the next
6418 field cannot be computed as a constant.
6419 (finish_bitfield_layout): If we cannot compute the distance
6420 between the start of the bitfield representative and the
6421 bitfield member start a new representative.
6422 * expr.c (get_bit_range): The distance between the start of
6423 the bitfield representative and the bitfield member is zero
6424 if the field offsets are not constants.
6425
6426 2012-03-20 Tristan Gingold <gingold@adacore.com>
6427
6428 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
6429 convert in lowercase.
6430 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
6431 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
6432 * stor-layout.c (sizetype_tab): Adjust.
6433 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
6434 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
6435 instead of type_kind_last.
6436 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
6437 instead of size_int_kind.
6438 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
6439 * doc/tm.texi: Regenerate.
6440 * defaults.h (SIZETYPE): Provide a default value.
6441 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
6442 (SIZETYPE): Define.
6443
6444 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
6445
6446 * config/sh/sh.md: Use braced string notation where applicable.
6447
6448 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
6449
6450 * config/i386/i386.md (allocate_stack): Simplify.
6451
6452 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
6453
6454 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
6455 copy_to_mode_reg (Pmode, ...).
6456 (expand_builtin_frame_address): Ditto.
6457 * expr.c (emit_block_move_via_libcall): Ditto.
6458 (set_storage_via_libcall): Ditto.
6459
6460 * config/i386/i386.c (ix86_expand_movmem): Ditto.
6461 (ix86_expand_setmem): Ditto.
6462 (ix86_trampoline_init): DItto.
6463 * config/i386/i386.md (cmpstrnsi): Ditto.
6464
6465 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
6466
6467 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
6468 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
6469 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
6470 (SH Options): Likewise.
6471
6472 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
6473
6474 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
6475 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
6476 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
6477 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
6478 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
6479
6480 Revert:
6481 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6482
6483 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
6484 * config/i386/i386.c (ix86_decompose_address): Use
6485 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
6486 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
6487 thread pointer to a register.
6488
6489 Revert:
6490 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
6491
6492 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
6493 if Pmode != word_mode.
6494 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
6495 Pmode == SImode for TARGET_X32.
6496
6497 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
6498 (tls_initial_exec_x32): Likewise.
6499
6500 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
6501
6502 PR target/50751
6503 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
6504 DISP_ADDR_OFFSET): New macros.
6505 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
6506 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
6507 (sh_legitimize_address): Add QImode displacement handling.
6508 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
6509 vector subregs.
6510 (sh_secondary_reload): Add QImode displacement handling.
6511 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
6512 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
6513 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
6514 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
6515 to register operands only.
6516 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
6517 (extendqihi2): Change insn to expander.
6518 (*extendqihi2_compact_reg): New insn.
6519 (movqi_i, movqi): Replace with ...
6520 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
6521 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
6522 Add new peepholes for QImode displacement addressing.
6523
6524 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
6525
6526 PR c++/14710
6527 * doc/invoke.texi: Document -Wuseless-cast.
6528
6529 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
6530
6531 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
6532 * tree.h (handled_component_p): Reorder cases.
6533 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
6534 not initialize unsignedp.
6535 (loc_list_from_tree): Likewise.
6536 (fortran_common): Likewise.
6537 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6538
6539 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
6540
6541 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
6542 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
6543 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
6544 (ix86_split_long_move): Ditto.
6545 (legitimize_tls_address): Use ix86_gen_sub3.
6546 (construct_plt_address): Assert that Pmode == DImode.
6547
6548 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
6549
6550 * config/i386/i386.md: Remove empty predicates and/or constraints.
6551 * config/i386/sync.md: Ditto.
6552 * config/i386/sse.md: Ditto.
6553 * config/i386/mmx.md: Ditto.
6554 * config/i386/pentium.md: Ditto.
6555 * config/i386/athlon.md: Ditto.
6556
6557 2012-03-16 Richard Guenther <rguenther@suse.de>
6558
6559 PR tree-optimization/52603
6560 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
6561 comment.
6562
6563 Revert
6564 2012-03-14 Richard Guenther <rguenther@suse.de>
6565
6566 PR tree-optimization/52571
6567 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6568 flag_section_anchors check ...
6569 (vect_can_force_dr_alignment_p): ... here.
6570
6571 2012-03-16 Martin Jambor <mjambor@suse.cz>
6572
6573 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
6574 memory through MEM_REFs by calling extract_bit_field.
6575
6576 2012-03-16 Richard Guenther <rguenther@suse.de>
6577
6578 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
6579 and REFERENCE_TYPE interpretations.
6580 (can_native_interpret_type_p): New function.
6581 (fold_ternary_loc): Use native encode/interpret to fold
6582 BIT_FIELD_REFs of constants.
6583
6584 2012-03-16 Richard Guenther <rguenther@suse.de>
6585
6586 PR middle-end/52584
6587 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
6588 of vector constants and constructors.
6589
6590 2012-03-16 Richard Guenther <rguenther@suse.de>
6591
6592 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
6593 VIEW_CONVERT_EXPR to convert constants.
6594 (vect_is_simple_use): Treat all constants as vec_constant_def.
6595
6596 2012-03-16 Richard Guenther <rguenther@suse.de>
6597 Kai Tietz <ktietz@redhat.com>
6598
6599 PR middle-end/48814
6600 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
6601 side-effects completely in the pre-queue and use a temporary
6602 for the result.
6603
6604 2012-03-16 Richard Guenther <rguenther@suse.de>
6605
6606 * stor-layout.c (finish_bitfield_representative): Fall back
6607 to the conservative maximum size if we cannot compute the
6608 size of the tail padding.
6609
6610 2012-03-16 Tristan Gingold <gingold@adacore.com>
6611
6612 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
6613 __CRTL_VER and __VMS_VER.
6614 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
6615 and vms_c_get_vms_ver.
6616 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
6617 functions.
6618 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
6619 (VMS_DEFAULT_VMS_VER): Define.
6620 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
6621 (VMS_DEFAULT_VMS_VER): Define.
6622
6623 2012-03-16 Richard Guenther <rguenther@suse.de>
6624
6625 * tree-vect-loop.c (get_initial_def_for_induction): Use
6626 build_constructor directly.
6627 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
6628 build_vector_from_val.
6629 * tree.c (build_vector_from_val): Avoid creating a constructor
6630 first when we want a constant vector.
6631
6632 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6633
6634 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
6635
6636 2012-03-16 Richard Guenther <rguenther@suse.de>
6637
6638 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
6639 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
6640 (struct tree_vector): Remove elements member, add variable size
6641 elts array member.
6642 (build_vector_stat): Declare.
6643 (build_vector): Define in terms of build_vector_stat.
6644 * tree.c (build_vector): Rename to ...
6645 (build_vector_stat): ... this. Take array of trees as parameter.
6646 (build_vector_from_ctor): Adjust.
6647 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
6648 initializer_zerop): Adjust.
6649 * cfgexpand.c (expand_debug_expr): Likewise.
6650 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
6651 const_vector_from_tree): Likewise.
6652 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
6653 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
6654 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
6655 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
6656 (lto_input_ts_vector_tree_pointers): Adjust.
6657 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
6658 (write_ts_vector_tree_pointers): Adjust.
6659 * varasm.c (const_hash_1, compare_constant, copy_constant,
6660 output_constant): Adjust.
6661 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
6662 * print-tree.c (print_node): Adjust.
6663 * tree-pretty-print.c (dump_generic_node): Adjust.
6664 * tree-vect-generic.c (uniform_vector_p, vector_element,
6665 lower_vec_perm): Adjust.
6666 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
6667 * tree-vect-slp.c (vect_get_constant_vectors,
6668 vect_transform_slp_perm_load): Adjust.
6669 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
6670 * expmed.c (make_tree): Adjust.
6671 * config/i386/i386.c (ix86_expand_builtin): Adjust.
6672 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
6673 and implementation.
6674 (sparc_fold_builtin): Adjust.
6675
6676 2012-03-16 Tristan Gingold <gingold@adacore.com>
6677
6678 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
6679 * config/vms/vms-stdint.h: New file.
6680
6681 2012-03-16 Tristan Gingold <gingold@adacore.com>
6682
6683 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
6684 (ia64-hp-*vms*): Replaced by ...
6685 (*-*-*vms*): ... This new entry.
6686
6687 2012-03-15 Jakub Jelinek <jakub@redhat.com>
6688
6689 PR target/52568
6690 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
6691 (ix86_expand_vec_perm_const_1): Use it.
6692
6693 PR target/52568
6694 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
6695 (avx2_permv4df): Remove.
6696 (avx2_permv4di): Macroize into...
6697 (avx2_perm<mode>): ... this using VI8F_256 iterator.
6698 (avx2_permv4di_1): Macroize into...
6699 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
6700
6701 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
6702
6703 * combine.c (apply_distributive_law): Do not distribute SUBREG.
6704
6705 2012-03-15 Ira Rosen <irar@il.ibm.com>
6706 Ulrich Weigand <ulrich.weigand@linaro.org>
6707
6708 * tree-vect-patterns.c (widened_name_p): Rename to ...
6709 (type_conversion_p): ... this. Add new argument to determine
6710 if it's a promotion or demotion operation. Check for
6711 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
6712 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
6713 widened_name_p.
6714 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
6715 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
6716 Likewise.
6717 (vect_recog_mixed_size_cond_pattern): Likewise and allow
6718 non-constant then and else clauses.
6719
6720 2012-03-15 Ira Rosen <irar@il.ibm.com>
6721 Ulrich Weigand <ulrich.weigand@linaro.org>
6722
6723 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
6724 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
6725 vect_pattern_recog.
6726 * tree-vect-patterns.c (widened_name_p): Pass basic block
6727 info to vect_is_simple_use.
6728 (vect_recog_dot_prod_pattern): Fail for basic blocks.
6729 (vect_recog_widen_sum_pattern): Likewise.
6730 (vect_handle_widen_op_by_const): Support basic blocks.
6731 (vect_operation_fits_smaller_type,
6732 vect_recog_over_widening_pattern): Likewise.
6733 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
6734 Update call to vect_is_simple_use.
6735 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
6736 Add printing.
6737 (check_bool_pattern): Add an argument, update call to
6738 vect_is_simple_use and the recursive calls.
6739 (vect_recog_bool_pattern): Update relevant function calls.
6740 Add printing.
6741 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
6742 (vect_pattern_recog_1): Check for reduction only in loops.
6743 (vect_pattern_recog): Add new argument. Support basic blocks.
6744 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
6745 info to vect_is_simple_use_1.
6746 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
6747 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
6748
6749 2012-03-15 Jakub Jelinek <jakub@redhat.com>
6750 Andrew Pinski <apinski@cavium.com>
6751
6752 PR middle-end/52592
6753 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
6754 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
6755 calls instead of __builtin_ir{int,ound}*.
6756
6757 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6758
6759 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
6760 documentation.
6761
6762 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6763
6764 * config.gcc (target_type_format_char): New. Document it. Set it for
6765 arm*-*-* .
6766 * configure.ac (gnu_unique_option): Use target_type_format_char
6767 in test. Comment rationale.
6768 * configure: Regenerate .
6769
6770 2012-03-15 Jakub Jelinek <jakub@redhat.com>
6771
6772 PR tree-optimization/52267
6773 * tree-vrp.c (masked_increment): New function.
6774 (register_edge_assert_for_2): Derive ASSERT_EXPRs
6775 from (X & CST1) cmp CST2 tests.
6776
6777 2012-03-15 Richard Guenther <rguenther@suse.de>
6778
6779 PR middle-end/52580
6780 * tree-data-ref.c (subscript_dependence_tester_1): Check
6781 all dimensions for non-conflicting access functions.
6782
6783 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6784
6785 PR c++/44783
6786 * doc/invoke.texi [C++ Language Options]: Document
6787 -ftemplate-backtrace-limit.
6788
6789 2012-03-15 Tristan Gingold <gingold@adacore.com>
6790
6791 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
6792 before a parameter.
6793
6794 2012-03-15 Tristan Gingold <gingold@adacore.com>
6795
6796 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
6797 use DW_OP_call_frame_cfa.
6798
6799 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
6800
6801 PR target/50797
6802 * config/i386/i386-opts.h (pmode): New.
6803
6804 * config/i386/i386.c (ix86_option_override_internal): Properly
6805 check and set ix86_pmode.
6806
6807 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
6808
6809 * config/i386/i386.opt (maddress-mode=): New.
6810
6811 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
6812
6813 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6814
6815 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
6816 (dwarf2out_do_cfi_asm): Likewise.
6817 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
6818 handling.
6819 (add_data_member_location_attribute): Likewise.
6820 (gen_array_type_die): Likewise.
6821 (gen_subprogram_die): Likewise.
6822 (gen_producer_string): Likewise.
6823 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
6824 Remove MIPS_DEBUGGING_INFO handling.
6825 (sdb_debug_hooks): Likewise.
6826 (sdbout_begin_block): Likewise.
6827 (sdbout_end_block): Likewise.
6828 (sdbout_begin_prologue): Likewise.
6829 (sdbout_start_source_file): Likewise.
6830 (sdbout_end_source_file): Likewise.
6831 (sdbout_init): Likewise.
6832 * system.h (MIPS_DEBUGGING_INFO): Poison.
6833
6834 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6835
6836 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
6837 (alpha_file_start) [MS_STAMP]: Remove.
6838
6839 * config/alpha/elf.h (TARGET_GAS): Remove.
6840 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
6841 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
6842 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
6843 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
6844 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
6845 (alpha*-*-freebsd*): Likewise.
6846 (alpha*-*-netbsd*): Likewise.
6847 (alpha*-*-openbsd*): Likewise.
6848 (alpha*-*-*): Remove target_cpu_default2.
6849 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
6850 handling.
6851 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
6852 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
6853 * config/alpha/alpha.c (print_operand): Always assume
6854 TARGET_AS_SLASH_BEFORE_SUFFIX.
6855 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
6856 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
6857 ("*builtin_setjmp_receiver_er_1"): Remove.
6858 * config/alpha/alpha.opt (malpha-as): Remove.
6859 (mgas): Ignore.
6860 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
6861 -malpha-as, -mgas.
6862 Remove DEC Unix reference.
6863
6864 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
6865 (EXTENDED_COFF): Remove.
6866 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
6867 (EXTENDED_COFF): Don't undef.
6868 * config/alpha/alpha.c (alpha_file_start): Always assume
6869 OBJECT_FORMAT_ELF.
6870 Don't set targetm.asm_file_start_file_directive.
6871 [!OBJECT_FORMAT_ELF]: Remove.
6872 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6873
6874 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
6875 (DBX_DEBUGGING_INFO): Remove.
6876 (MIPS_DEBUGGING_INFO): Remove.
6877 (PREFERRED_DEBUGGING_TYPE): Remove.
6878 (DBX_OUTPUT_SOURCE_LINE): Remove.
6879 (SDB_OUTPUT_SOURCE_LINE): Remove.
6880 (DBX_CONTIN_LENGTH): Remove.
6881 (NO_DBX_FUNCTION_END): Remove.
6882 (ASM_STABS_OP): Remove.
6883 (ASM_STABN_OP): Remove.
6884 (ASM_STABD_OP): Remove.
6885 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
6886 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
6887 (PUT_SDB_DEF): Remove.
6888 (PUT_SDB_PLAIN_DEF): Remove.
6889 (PUT_SDB_TYPE): Remove.
6890 (sdb_label_count): Remove.
6891 (PUT_SDB_BLOCK_START): Remove.
6892 (PUT_SDB_BLOCK_END): Remove.
6893 (PUT_SDB_FUNCTION_START): Remove.
6894 (PUT_SDB_FUNCTION_END): Remove.
6895 (PUT_SDB_EPILOGUE_END): Remove.
6896 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
6897 (MIPS_DEBUGGING_INFO): Don't undef.
6898 (DBX_DEBUGGING_INFO): Don't undef.
6899 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
6900 (MIPS_DEBUGGING_INFO): Don't undef.
6901 (DBX_DEBUGGING_INFO): Don't undef.
6902 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
6903 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
6904 handling.
6905 (alpha_start_function): Likewise.
6906 (sdb_label_count): Remove.
6907 (alpha_output_filename): Remove DBX_DEBUG handling.
6908 (alpha_file_start): Likewise.
6909
6910 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6911
6912 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
6913 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
6914 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
6915 Solaris 8 support.
6916 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
6917 (ld_tls_support): Remove Solaris 8 references.
6918 (lwp_dir, lwp_spec): Remove support for alternate thread library.
6919 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
6920 * configure: Regenerate.
6921 * config.in: Regenerate.
6922
6923 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
6924 * config/i386/sol2.h: Remove Solaris 8 references.
6925
6926 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
6927 (i?86-*-solaris2.9): ... this.
6928 Remove Solaris 8 references.
6929 (Specific, *-*-solaris2*): Document Solaris 8 removal.
6930 Remove Solaris 8 references.
6931
6932 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6933
6934 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
6935 (mips-sgi-irix6.5*): Remove.
6936 * config.host (mips-sgi-irix*): Remove.
6937 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
6938 (set_have_as_tls): Remove *-*-irix6*.
6939 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
6940 * configure: Regenerate.
6941
6942 * config/mips/iris6.h: Remove.
6943 * config/mips/iris6.opt: Remove.
6944 * config/mips/t-irix6: Remove.
6945
6946 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
6947 (TARGET_IRIX6): Remove.
6948 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
6949 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
6950 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
6951 handling.
6952 (mips_file_start): Likewise.
6953 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
6954
6955 * config/mips/driver-native.c [__sgi__]: Remove.
6956 (host_detect_local_cpu) [__sgi__]: Remove.
6957
6958 * config/mips/gnu-user.h: Remove iris5.h reference.
6959
6960 * config/mips/mips-modes.def: Remove IRIX 6 reference.
6961 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
6962 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
6963 Remove.
6964
6965 * gcc.c (main): Move asm_debug initialization ...
6966 (asm_debug): ... here.
6967
6968 * ginclude/stddef.h (__STDDEF_H__): Don't define.
6969
6970 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
6971 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
6972 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
6973 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
6974 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
6975 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
6976 Remove.
6977 * doc/tm.texi: Regenerate.
6978
6979 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
6980 IRIX 6 reference.
6981 (MIPS Options, -march): Remove IRIX reference.
6982 * doc/install.texi (Binaries, SGI IRIX): Remove.
6983 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
6984 of section.
6985 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
6986
6987 2012-03-14 Martin Jambor <mjambor@suse.cz>
6988
6989 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
6990 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
6991 (expand_expr_real_1): Do not handle misalignment if modifier is
6992 EXPAND_WRITE.
6993
6994 2012-03-14 Richard Guenther <rguenther@suse.de>
6995
6996 PR middle-end/52584
6997 * tree-vect-generic.c (type_for_widest_vector_mode): Take
6998 element type instead of mode, use build_vector_type_for_mode
6999 instead of the langhook, build a vector of proper signedness.
7000 (expand_vector_operations_1): Adjust.
7001
7002 2012-03-14 Richard Guenther <rguenther@suse.de>
7003
7004 PR middle-end/52582
7005 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
7006 a cgraph node for a FUNCTION_DECL that comes from a constructor.
7007 (gimple_get_virt_method_for_binfo): Likewise.
7008
7009 2012-03-14 Richard Guenther <rguenther@suse.de>
7010
7011 PR tree-optimization/52571
7012 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7013 flag_section_anchors check ...
7014 (vect_can_force_dr_alignment_p): ... here. Do not re-align
7015 DECL_COMMON variables.
7016
7017 2012-03-14 Richard Guenther <rguenther@suse.de>
7018
7019 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
7020 * stor-layout.c (start_bitfield_representative): New function.
7021 (finish_bitfield_representative): Likewise.
7022 (finish_bitfield_layout): Likewise.
7023 (finish_record_layout): Call finish_bitfield_layout.
7024 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
7025 for QUAL_UNION_TYPE fields.
7026 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
7027 Stream DECL_BIT_FIELD_REPRESENTATIVE.
7028 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
7029
7030 PR middle-end/52080
7031 PR middle-end/52097
7032 PR middle-end/48124
7033 * expr.c (get_bit_range): Unconditionally extract bitrange
7034 from DECL_BIT_FIELD_REPRESENTATIVE.
7035 (expand_assignment): Adjust call to get_bit_range.
7036
7037 2012-03-14 Richard Guenther <rguenther@suse.de>
7038
7039 PR middle-end/52578
7040 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
7041 the outermost conversion is a sign-change only.
7042 (fold_binary_loc): Disregard widening and sign-changing
7043 conversions when we determine if two variables are equal
7044 for reassociation.
7045 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
7046 (T1)x if the outermost conversion is a sign-change only.
7047
7048 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
7049
7050 Revert:
7051 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
7052
7053 * config/i386/predicates.md (constant_call_address_operand): Declare
7054 as special predicate. Update all uses.
7055
7056 2012-03-13 Jakub Jelinek <jakub@redhat.com>
7057
7058 PR c/52577
7059 * c-parser.c (c_parser_postfix_expression)
7060 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
7061
7062 * config/i386/smmintrin.h: Avoid /* within a comment.
7063 * config/i386/nmmintrin.h: Likewise.
7064
7065 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
7066
7067 * config/i386/i386.md (xbegin): Remove constraint from expander.
7068
7069 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
7070
7071 * config/i386/predicates.md (constant_call_address_operand): Declare
7072 as special predicate. Update all uses.
7073 * config/i386/i386.md: Remove mode from constant_call_address_operand
7074 predicates.
7075 * config/i386/i386.c (ix86_output_call_insn): Call
7076 constant_call_address_operand with VOIDmode.
7077
7078 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
7079
7080 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
7081 AND zero extended address correctly.
7082
7083 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
7084
7085 * config/i386/predicates.md (tls_symbolic_operand): Declare as
7086 special predicate.
7087 (tls_modbase_operand): Ditto.
7088 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
7089 tls_modbase_operand predicates.
7090
7091 2012-03-13 Martin Jambor <mjambor@suse.cz>
7092
7093 * expr.c (expand_assignment): Handle misaligned scalar writes to
7094 memory through top-level MEM_REFs by calling store_bit_field.
7095
7096 2012-03-13 Richard Guenther <rguenther@suse.de>
7097
7098 PR middle-end/52134
7099 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
7100 if Y is a constant multiple of 1 << CST.
7101
7102 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
7103
7104 PR target/52488
7105 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
7106 offset (size) to a value the insns can deal with.
7107 (expand_epilogue): Ditto.
7108
7109 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7110
7111 * config/arm/neon.ml (ops): Fixup expected instructions for
7112 unsigned vector compares.
7113
7114 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
7115
7116 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
7117 addresses only when %reg is not in word mode.
7118
7119 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7120
7121 * config/microblaze/microblaze.md: Fix typo.
7122 * tree-if-conv.c: Likewise.
7123 * tree-vect-patterns.c: Likewise.
7124
7125 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7126
7127 * config.gcc (extra_passes): Remove.
7128 * configure.ac (extra_passes): Don't substitute.
7129 * configure: Regenerate.
7130 * Makefile.in (EXTRA_PASSES): Remove.
7131 (GCC_PASSES): Remove $(EXTRA_PASSES).
7132 (MOSTLYCLEANFILES): Likewise.
7133 (native): Likewise.
7134 (install-common): Likewise.
7135
7136 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
7137
7138 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
7139 * config/i386/i386.c (ix86_decompose_address): Use
7140 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
7141 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
7142 thread pointer to a register.
7143
7144 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
7145
7146 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
7147 on tls_symbolic_operand.
7148 (tls_global_dynamic_64_<mode>): Likewise.
7149
7150 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
7151
7152 PR other/52545
7153 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
7154 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
7155
7156 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
7157
7158 PR target/52499
7159 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
7160 type from reg_class_t to enum reg_class.
7161 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
7162
7163 2012-03-12 Andrew Pinski <apinski@cavium.com>
7164
7165 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
7166 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
7167 (value_replacement): Likewise.
7168 (empty_block_p): Check also if the PHIs for the block are empty.
7169
7170 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
7171
7172 PR target/52148
7173 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
7174 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
7175 r184615 from 2012-02-28.
7176
7177 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
7178
7179 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
7180 (ix86_gen_tls_local_dynamic_base_64): Likewise.
7181 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
7182 and ix86_gen_tls_local_dynamic_base_64.
7183 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
7184 ix86_gen_tls_local_dynamic_base_64.
7185
7186 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
7187 (*tls_global_dynamic_64_<mode>): This.
7188 (tls_global_dynamic_64): Renamed to ...
7189 (tls_global_dynamic_64_<mode>): This.
7190 (*tls_local_dynamic_base_64): Renamed to ...
7191 (*tls_local_dynamic_base_64_<mode>): This.
7192 (tls_local_dynamic_base_64): Renamed to ...
7193 (tls_local_dynamic_base_64_<mode>): This.
7194
7195 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
7196
7197 * config/i386/i386.c (ix86_option_override_internal): Properly
7198 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
7199 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
7200 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
7201 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
7202
7203 * config/i386/sse.md (sse3_monitor64): Renamed to ...
7204 (sse3_monitor64_<mode>): This.
7205
7206 2012-03-12 Tristan Gingold <gingold@adacore.com>
7207
7208 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
7209 (ia64_function_arg_advance): Ditto.
7210
7211 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7212
7213 * config.gcc (mips*-*-openbsd*): Remove.
7214 * config/mips/openbsd.h: Remove.
7215 * config/mips/sdb.h: Remove.
7216
7217 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
7218 * config/mips/mips.c (sdb_label_count): Remove.
7219 (mips_debugger_offset): Remove #if 0 code.
7220 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
7221 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
7222
7223 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7224
7225 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
7226 binutils reference.
7227 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
7228 Update binutils references.
7229 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
7230 Update binutils reference.
7231 Update Sun as/GNU ld caveat.
7232 Document binutils largefile requirement for LTO plugin.
7233 Remove reference to alternate libpthread.
7234
7235 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7236
7237 * config.gcc (alpha*-dec-osf5.1*): Remove.
7238 * config.host (alpha*-dec-osf*): Remove.
7239 * configure.ac (*-*-osf*): Remove.
7240 (alpha*-dec-osf*): Remove.
7241 * configure: Regenerate.
7242
7243 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
7244 config/alpha/va_list.h, config/alpha/x-osf: Remove.
7245
7246 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
7247 * config/alpha/alpha.c (struct machine_function): Update comment.
7248 (alpha_start_function): Remove Tru64 UNIX as handling for
7249 max_frame_size.
7250 * config/alpha/alpha.md ("exception_receiver"): Remove
7251 TARGET_LD_BUGGY_LDGP.
7252 ("*exception_receiver_2"): Likewise.
7253 * except.c (finish_eh_generation): Remove Tru64 reference.
7254 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
7255 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
7256 * target.def (handle_pragma_extern_prefix): Remove.
7257
7258 * Makefile.in (mips-tfile.o-warn): Remove.
7259 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
7260 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
7261 * mips-tdump.c, mips-tfile.c: Remove.
7262
7263 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
7264 extern_prefix.
7265 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
7266 (Specific, alpha*-dec-osf5.1): Note removal.
7267 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
7268 Remove.
7269 * doc/tm.texi: Regenerate.
7270 * doc/trouble.texi (Cross-Compiler Problems): Remove.
7271
7272 2012-03-12 Richard Guenther <rguenther@suse.de>
7273
7274 * config/arm/arm.c (neon_dereference_pointer): Do not call
7275 covert during RTL expansion.
7276
7277 2012-03-12 Tristan Gingold <gingold@adacore.com>
7278
7279 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
7280 Options. Mention -mpointer-size.
7281
7282 2012-03-12 Richard Guenther <rguenther@suse.de>
7283
7284 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
7285 build_nonstandard_integer_type.
7286
7287 2012-03-12 Richard Guenther <rguenther@suse.de>
7288
7289 * tree.c (signed_or_unsigned_type_for): Use
7290 build_nonstandard_integer_type.
7291 (signed_type_for): Adjust documentation.
7292 (unsigned_type_for): Likewise.
7293 * tree-pretty-print.c (dump_generic_node): Use standard names
7294 for non-standard integer types if available.
7295
7296 2012-03-12 Tristan Gingold <gingold@adacore.com>
7297
7298 * config/vms/vms.opt: Add vms-opts.h header.
7299 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
7300 target mask.
7301 (-mvms-return-codes): Document.
7302 (-mpointer-size): New option.
7303 (vms_pointer_size): Add enumeration.
7304 * config/vms/vms-opts.h: New file.
7305 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
7306 __INITIAL_POINTER_SIZE.
7307 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
7308 (C_COMMON_OVERRIDE_OPTIONS): Define.
7309 (DWARF2_ADDR_SIZE): Define.
7310 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
7311 * config/vms/vms-protos.h (vms_c_common_override_options):
7312 New prototype.
7313 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
7314 if -mno-pointer-size.
7315 (vms_c_common_override_options): New function.
7316 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
7317 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
7318 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
7319 and flag_vms_pointer_size.
7320 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
7321 * config.gcc (*-*-*vms*): Define xm_file.
7322 (alpha*-dec-*vms*): Do not define xm_file.
7323 (alpha64-dec-*vms*): Remove.
7324 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
7325 and tmake_file.
7326
7327 2012-03-12 Jakub Jelinek <jakub@redhat.com>
7328
7329 PR tree-optimization/51721
7330 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
7331 if (int) unsvar cmp CST.
7332
7333 2012-03-12 Richard Guenther <rguenther@suse.de>
7334
7335 * tree-sra.c (create_access_replacement): Only rename the replacement
7336 if we can rewrite it into SSA form. Properly mark register typed
7337 replacements that we cannot rewrite with TREE_ADDRESSABLE.
7338 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
7339 for aggregate or BLKmode results.
7340
7341 2012-03-12 Jakub Jelinek <jakub@redhat.com>
7342
7343 PR tree-optimization/52533
7344 * tree-vrp.c (register_edge_assert_for_2): Use double_int
7345 type for mask, only handle shifts by non-zero in-range
7346 shift count, for LE_EXPR and GT_EXPR if new_val is
7347 maximum, don't add the assertion.
7348
7349 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
7350
7351 * doc/invoke.texi: Document -mrtm option.
7352 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
7353 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
7354 (ix86_handle_option): Handle OPT_mrtm.
7355 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
7356 xtestintrin.h.
7357 (x86_64-*-*): Ditto.
7358 * i386-builtin-types.def (INT_FTYPE_VOID): New.
7359 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7360 __RTM__ if needed.
7361 (ix86_target_string): Define -mrtm option.
7362 (PTA_RTM): New.
7363 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
7364 Handle new option.
7365 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
7366 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
7367 IX86_BUILTIN_XTEST.
7368 (bdesc_special_args): Ditto.
7369 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
7370 (ix86_expand_special_args_builtin): Handle new built-in type.
7371 (ix86_expand_builtin): Handle XABORT instruction.
7372 * config/i386/i386.h (TARGET_RTM): New.
7373 * config/i386/i386.md (UNSPECV_XBEGIN): New.
7374 (UNSPECV_XEND): Ditto.
7375 (UNSPECV_XABORT): Ditto.
7376 (UNSPECV_XTEST): Ditto.
7377 (xbegin): Ditto.
7378 (xbegin_1): Ditto.
7379 (xend): Ditto.
7380 (xabort): Ditto
7381 (xtest): Ditto.
7382 (xtest_1): Ditto.
7383 * config/i386/i386.opt (mrtm): New.
7384 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
7385 * config/i386/rtmintrin.h: New header.
7386 * config/i386/xtestintrin.h: Ditto.
7387
7388 2012-03-12 Tristan Gingold <gingold@adacore.com>
7389
7390 * ginclude/stddef.h: Adjust previous patch.
7391 Use __VMS__ instead of VMS.
7392
7393 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
7394
7395 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
7396 Also convert sequences with CC setting arithmetic instruction.
7397
7398 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
7399
7400 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
7401 from C Language Options to Preprocessor Options.
7402 (C Dialect Options): Move -no-integrated-cpp documentation
7403 from here...
7404 (Preprocessor Options): ...to here. Rewrite the description
7405 so it makes more sense, and remove discussion of merging front ends.
7406
7407 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
7408
7409 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
7410 needed for loop.
7411 (ix86_expand_setmem): Likewise.
7412
7413 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
7414
7415 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
7416 convert_to_mode.
7417
7418 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
7419
7420 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
7421 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
7422
7423 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
7424
7425 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
7426
7427 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
7428
7429 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
7430 TARGET_64BIT.
7431
7432 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
7433 Uros Bizjak <ubizjak@gmail.com>
7434
7435 * config/i386/predicates.md (call_insn_operand): Allow
7436 constant_call_address_operand in Pmode only.
7437 (sibcall_insn_operand): Ditto.
7438 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
7439 (*call_vzeroupper): Ditto.
7440 (*sibcall): Ditto.
7441 (*sibcall_vzeroupper): Ditto.
7442 (*call_value): Ditto.
7443 (*call_value_vzeroupper): Ditto.
7444 (*sibcall_value): Ditto.
7445 (*sibcall_value_vzeroupper): Ditto.
7446 (*indirect_jump): Ditto.
7447 (*tablejump_1): Ditto.
7448 (indirect_jump): Convert memory address to word mode for TARGET_X32.
7449 (tablejump): Ditto.
7450 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
7451 to word mode.
7452
7453 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
7454
7455 PR target/51244
7456 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
7457 Use movrt_negc instead of negc pattern for non-SH2A.
7458 (*movnegt): Remove.
7459 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
7460
7461 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
7462
7463 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
7464 if Pmode != word_mode.
7465 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
7466 Pmode == SImode for TARGET_X32.
7467
7468 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
7469 (tls_initial_exec_x32): Likewise.
7470
7471 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
7472
7473 PR rtl-optimization/52528
7474 * combine.c (can_combine_p): Add setting of subst_low_luid
7475 before call to expand_field_assignment().
7476
7477 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
7478
7479 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
7480 and related program names.
7481
7482 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
7483
7484 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
7485
7486 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
7487
7488 PR target/52530
7489 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
7490 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
7491 to set code to 'q'.
7492 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
7493 (*movdi_internal_rex64): Use %E operand modifier for lea.
7494 (*movsi_internal): Ditto.
7495 (*lea_1): Ditto.
7496 (*lea<mode>_2): Ditto.
7497 (*lea_{3,4,5,6}_zext): Ditto.
7498 (*tls_global_dynamic_32_gnu): Ditto.
7499 (*tls_global_dynamic_64): Ditto.
7500 (*tls_dynamic_gnu2_lea_32): Ditto.
7501 (*tls_dynamic_gnu2_lea_64): Ditto.
7502 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
7503
7504 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7505
7506 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
7507 redefine to be NULL if the current bit-size is different from the
7508 configured bit-size.
7509
7510 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
7511 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
7512 set the default tuning. Add asserts to make sure the cpu and tune
7513 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
7514 test whether the index is set, instead of > 0.
7515 (rs6000_file_start): Do not reset the default cpu if the current
7516 bit-size is different from the configured bit-size.
7517
7518 2012-03-09 Tristan Gingold <gingold@adacore.com>
7519
7520 * config/vms/vms-crtlmap.map: Add comments.
7521 Add entries needed to build Ada RTS.
7522
7523 2012-03-09 Tristan Gingold <gingold@adacore.com>
7524
7525 * ginclude/stddef.h: Do not define __size_t on VMS.
7526
7527 2012-03-09 Tristan Gingold <gingold@adacore.com>
7528
7529 * c-tree.h (c_default_pointer_mode): New variable.
7530 * c-decl.c (c_default_pointer_mode): New variable.
7531 (c_build_pointer_type): New function.
7532 (grokdeclarator): Call c_build_pointer_type instead
7533 of build_pointer_type.
7534
7535 * config/vms/vms-c.c: Include c-tree.h
7536 (saved_pointer_mode): New variable.
7537 (handle_pragma_pointer_size): New function.
7538 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
7539 (vms_c_register_pragma): Register __pointer_size and
7540 __required_pointer_size pragmas.
7541
7542 2012-03-09 Tristan Gingold <gingold@adacore.com>
7543
7544 * config/vms/vms-c.c (vms_construct_include_filename): New function.
7545 (vms_c_register_includes): Reference it.
7546
7547 2012-03-09 Andrew Pinski <apinski@cavium.com>
7548
7549 PR middle-end/51988
7550 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
7551 print_generic_expr.
7552 (tree_ssa_phiopt_worker): Go through all the PHIs for
7553 value_replacement instead of just the singleton one.
7554 (value_replacement): Change return type to int. Return 0 instead of
7555 false.
7556 Allow the middle basic block to contain more than just the defining
7557 statement.
7558 Handle non empty middle basic blocks.
7559 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
7560
7561 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
7562
7563 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
7564 array reference and component reference.
7565 (analyze_scalar_evolution_for_address_of): New.
7566
7567 2012-03-08 Jie Zhang <jzhang918@gmail.com>
7568
7569 PR target/49862
7570 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
7571 (hwloop_pattern_reg): Fix set but not used warning.
7572 (bfin_reorg_loops): Remove unused parameter.
7573 (bfin_reorg): Update use of bfin_reorg_loops.
7574
7575 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
7576
7577 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
7578 with integer parameters in registers.
7579 (gen_push): Push register in word_mode instead of Pmode.
7580 (ix86_emit_save_regs): Likewise.
7581 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
7582 (gen_pop): Pop register in word_mode instead of Pmode.
7583 (ix86_emit_restore_regs_using_pop): Likewise.
7584 (ix86_expand_prologue): Replace Pmode with word_mode for push
7585 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
7586 restore RAX and R10 in word_mode.
7587 (ix86_emit_restore_regs_using_mov): Restore integer registers
7588 in word_mode.
7589 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
7590 word_mode.
7591 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
7592 (ix86_split_long_move): Likewise.
7593
7594 * config/i386/i386.md (W): New.
7595 (*push<mode>2_prologue): Replace :P with :W.
7596 (*pop<mode>1): Likewise.
7597 (*pop<mode>1_epilogue): Likewise.
7598 (push/pop peephole2): Use word_mode scratch registers.
7599
7600 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
7601
7602 * config/i386/predicates.md (indirect_branch_operand): Simplify.
7603
7604 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
7605
7606 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
7607 for constants in [-63,63].
7608
7609 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
7610
7611 PR target/52530
7612 Revert:
7613 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7614
7615 * config/i386/i386.c (ix86_print_operand_address): Only handle
7616 zero-extended DImode addresses.
7617
7618 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7619
7620 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
7621 * configure: Regenerate.
7622
7623 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
7624
7625 PR target/52496
7626 * config/avr/avr.c (avr_mem_clobber): New static function.
7627 (avr_expand_delay_cycles): Add memory clobber operand to
7628 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
7629 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
7630 (enable_interrupt, disable_interrupt): New expander.
7631 (nopv, sleep, wdr): New expanders.
7632 (delay_cycles_1): Add memory clobber.
7633 (delay_cycles_2): Add memory clobber.
7634 (delay_cycles_3): Add memory clobber.
7635 (delay_cycles_4): Add memory clobber.
7636 (cli_sei): New insn from former "enable_interrupt",
7637 "disable_interrupt" with memory clobber.
7638 (*wdt): New insn from former "wdt" with memory clobber.
7639 (*nopv): Similar, but for "nopv".
7640 (*sleep): Similar, but for "sleep".
7641
7642 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
7643 Kaz Kojima <kkojima@gcc.gnu.org>
7644
7645 PR target/52503
7646 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
7647 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
7648 (SUBTARGET_OVERRIDE_OPTIONS): Define.
7649
7650 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
7651
7652 * config/i386/predicates.md (x86_64_zext_general_operand): New.
7653 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
7654 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
7655
7656 2012-03-07 Walter Lee <walt@tilera.com>
7657
7658 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
7659 REG_CFA_* notes for the stack pointer.
7660 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
7661 EH_RETURN_STACKADJ_RTX.
7662 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
7663 generate REG_CFA_* notes for the stack pointer.
7664 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
7665 by EH_RETURN_STACKADJ_RTX.
7666
7667 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
7668
7669 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
7670 when __AVR_3_BYTE_PC__ is defined.
7671
7672 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
7673
7674 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
7675 (ix86_print_operand): Handle '^'.
7676 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
7677 using P mode iterator. Add %^ to asm template to conditionally emit
7678 addr32 prefix.
7679 (*rep_movdi_rex64): Ditto.
7680 (*strsetdi_rex_1): Ditto.
7681 (*rep_stosdi_rex64): Ditto.
7682 (*strmov{si,hi,qi}_1): Add %^ to asm template to
7683 conditionally emit addr32 prefix.
7684 (*rep_mov{si,qi}): Ditto.
7685 (*strset{si,hi,qi}): Ditto.
7686 (*rep_stos{si,qi}): Ditto.
7687 (*cmpstrnqi_nz_1): Ditto.
7688 (*cmpstrnqi_1): Ditto.
7689 (*strlenqi_1): Ditto.
7690
7691 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
7692
7693 * config/i386/i386.c (function_value_64): Return pointers in
7694 word_mode instead of Pmode.
7695 (ix86_promote_function_mode): Likewise.
7696
7697 2012-03-07 Richard Guenther <rguenther@suse.de>
7698
7699 * coverage.c (get_gcov_type): Use type_for_mode.
7700 (get_gcov_unsigned_t): Likewise.
7701 * expr.c (store_constructor): Use type_for_mode.
7702 (try_casesi): Likewise.
7703 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
7704 (add_standard_iv_candidates): Use standard type trees.
7705 * dojump.c (do_jump): Remove dead code.
7706
7707 2012-03-07 Richard Guenther <rguenther@suse.de>
7708
7709 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
7710
7711 2012-03-07 Richard Guenther <rguenther@suse.de>
7712
7713 * convert.c (strip_float_extensions): Move ...
7714 * tree.c (strip_float_extensions): ... here.
7715
7716 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
7717
7718 PR target/52484
7719 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
7720
7721 2012-03-07 Richard Guenther <rguenther@suse.de>
7722
7723 * omp-low.c (extract_omp_for_data): Use signed_type_for.
7724 (expand_omp_for_generic): Likewise.
7725 (expand_omp_for_static_nochunk): Likewise.
7726 (expand_omp_for_static_chunk): Likewise.
7727 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
7728 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7729 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
7730 Use unsigned_type_for.
7731 (vect_create_cond_for_align_checks): Use signed_type_for.
7732
7733 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
7734
7735 PR rtl-optimization/52203
7736 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
7737 all callers to pass NULL except ...
7738 (reset_sched_cycles_in_current_ebb): ... here, save the value
7739 in new variable 'empty'. Increase issue_rate only for
7740 non-empty insns.
7741
7742 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
7743
7744 PR target/51417
7745 * Makefile.in: Let install-gcc-ar depend on installdirs,
7746 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
7747 Don't double canonicalize if cross-compiling.
7748
7749 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
7750
7751 PR target/52506
7752 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
7753 to: RAMPZ, RAMPY, RAMPX, RAMPD.
7754 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
7755
7756 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
7757
7758 PR target/52505
7759 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
7760 from RAM.
7761 * config/avr/avr.md (xload_8): Adjust insn length.
7762
7763 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
7764
7765 PR target/52461
7766 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
7767 if RAMPZ affects reading from RAM.
7768
7769 2012-03-07 Richard Guenther <rguenther@suse.de>
7770
7771 PR pch/52518
7772 PR pch/38987
7773 * doc/invoke.texi (Precompiled Headers): Remove sentence that
7774 suggests you can include PCHs from inside another header.
7775
7776 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
7777
7778 PR middle-end/52515
7779 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
7780
7781 2012-03-07 Kai Tietz <ktietz@redhat.com>
7782
7783 * doc/invoke.texi (fwritable-relocated-rdata): Document
7784 new Cygwin/MinGW target option.
7785 * config/i386/winnt.c (i386_pe_unique_section): Ignore
7786 reloc if flag -fwritable-relocated-rdata is not set.
7787 (i386_pe_section_type_flags): Likewise.
7788 * config/i386/cygming.opt (fwritable-relocated-rdata):
7789 Add new flag variable flag_writable_rel_rdata.
7790
7791 2012-03-07 Richard Guenther <rguenther@suse.de>
7792
7793 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
7794 precision against gimple constraints.
7795
7796 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
7797
7798 PR middle-end/52372
7799 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
7800 variables.
7801 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
7802 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
7803 variables.
7804 (init_emit_regs): Move associated initialization to...
7805 (init_emit_once): ...here.
7806
7807 2012-03-06 Richard Henderson <rth@redhat.com>
7808
7809 * config/m68k/m68k.h (ISA_HAS_TAS): New.
7810 * config/m68k/sync.md (atomic_test_and_set): Use it.
7811 (atomic_test_and_set_1): Likewise.
7812
7813 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7814
7815 PR target/50310
7816 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
7817 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
7818 (vector_ltgt<mode>): Likewise.
7819 (vector_ordered<mode>): Likewise.
7820 (vector_unordered<mode>): Likewise.
7821 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
7822
7823 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
7824
7825 * trans-mem.c: New typedef for tm_region_p.
7826 Define vector types for tm_region_p.
7827 (tm_region_init): Replace region_worklist to a vector called
7828 bb_regions.
7829
7830 2012-03-06 Richard Guenther <rguenther@suse.de>
7831
7832 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
7833 MEM_REF with constant pointer operand.
7834
7835 2012-03-06 Richard Guenther <rguenther@suse.de>
7836
7837 PR middle-end/52493
7838 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
7839
7840 2012-03-06 Tristan Gingold <gingold@adacore.com>
7841
7842 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
7843 (external_model_kind): Improve documentation.
7844 (vms_pragma_extern_model): Handle relaxed_redef.
7845 (vms_c_register_pragma): Allow expansion for nomember_alignment.
7846
7847 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
7848
7849 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
7850 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
7851 Some more notes on EIND usage and reorder EIND subsection.
7852
7853 2012-03-06 Tristan Gingold <gingold@adacore.com>
7854
7855 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
7856 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
7857
7858 2012-03-06 Tristan Gingold <gingold@adacore.com>
7859
7860 * config/vms/t-vmsnative (version): Define.
7861 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
7862
7863 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
7864
7865 PR rtl-optimization/52250
7866 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
7867 to put note list into. Unconditionally call move_bb_info.
7868 (move_bb_info): Do not assert the blocks being in the same region,
7869 just drop the note list if they are not.
7870
7871 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7872
7873 PR target/51244
7874 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
7875 and use unified expansion logic.
7876 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
7877 closer to the existing movt insn.
7878 (negc): Rename insn to *negc. Add new expander.
7879 (movnegt): Use xor pattern for T bit negation. Reserve helper
7880 constant for negc pattern.
7881 (*movnegt): New insn and splitter.
7882
7883 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
7884
7885 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
7886 PLUS_EXPR.
7887
7888 2012-03-05 Richard Henderson <rth@redhat.com>
7889
7890 * genemit.c (main): Include "target.h" in insn-emit.c.
7891 * Makefile.in (insn-emit.o): Depend on TARGET_H.
7892 * config/sh/sync.md (atomic_test_and_set): Reference
7893 targetm.atomic_test_and_set_trueval instead of
7894 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
7895
7896 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
7897
7898 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
7899 Make static.
7900
7901 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
7902
7903 * langhooks.c (add_builtin_type): New function.
7904 * langhooks.h (add_builtin_type): Export it.
7905 * config/mep/mep.c (mep_init_builtins): Use it.
7906 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
7907
7908 2012-03-05 Jakub Jelinek <jakub@redhat.com>
7909
7910 PR debug/51902
7911 * tree.h (BLOCK_SAME_RANGE): Define.
7912 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
7913 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
7914 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
7915 isn't equal to supercontext fragment's fragment chain.
7916 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
7917 fragment origin.
7918 (blocks_nreverse_all): Likewise.
7919 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
7920 BLOCK_SUPERCONTEXT to supercontext fragment instead of
7921 supercontext fragment's fragment origin.
7922 * dwarf2out.c (add_high_low_attributes): If stmt has the same
7923 range as its parent (or parents thereof etc.), use the parent's
7924 DW_AT_ranges value instead of creating a new .debug_ranges range.
7925
7926 2012-03-05 Richard Henderson <rth@redhat.com>
7927
7928 PR tree-opt/52242
7929 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
7930 * omp-low.c (expand_omp_atomic): Assume anything aligned to
7931 BIGGEST_ALIGNMENT is aligned.
7932
7933 2012-03-05 Richard Henderson <rth@redhat.com>
7934
7935 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
7936 * config/sh/sh.c: ... here.
7937
7938 2012-03-05 Richard Henderson <rth@redhat.com>
7939
7940 PR target/52481
7941 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
7942 instead of calling negqi2 directly.
7943
7944 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
7945
7946 PR middle-end/52463
7947 * trans-mem.c (tm_region_init): Use last_basic_block.
7948
7949 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
7950
7951 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
7952 * config/sh/sync.md (atomic_test_and_set): New expander.
7953 (tasb, atomic_test_and_set_soft): New insns.
7954 * config/sh/sh.opt (menable-tas): New option.
7955 * doc/invoke.texi (SH Options): Document it.
7956
7957 2012-03-05 Richard Guenther <rguenther@suse.de>
7958
7959 * cfgloop.c (verify_loop_structure): Verify dominators before
7960 using them.
7961 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
7962 dominators from here.
7963 * graphite-scop-detection.c (create_sese_edges): Likewise.
7964 * loop-doloop.c (doloop_optimize_loops): Likewise.
7965 * loop-init.c (loop_optimizer_init): Likewise.
7966 * loop-unroll.c (unroll_and_peel_loops): Likewise.
7967 * loop-unswitch.c (unswitch_loops): Likewise.
7968 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
7969 * tree-parloops.c (parallelize_loops): Likewise. Verify
7970 only when checking is enabled.
7971 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
7972
7973 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
7974
7975 * genautomata.c (parse_automata_opt): New static function.
7976 (initiate_automaton_gen): Remove all option handling code. Remove
7977 argc argument. All callers changed.
7978 (main): Call init_rtx_reader_args_cb with the new function as argument.
7979
7980 2012-03-05 Richard Guenther <rguenther@suse.de>
7981
7982 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
7983 * tree-if-conv.c (combine_blocks): Free post-dominator info
7984 after breaking it.
7985 * tree-parloops.c (create_parallel_loop): Free and re-compute
7986 dominator info after breaking it.
7987
7988 2012-03-05 Richard Guenther <rguenther@suse.de>
7989
7990 PR middle-end/52353
7991 * optabs.h (trapv_unoptab_p): New function.
7992 (trapv_binoptab_p): Likewise.
7993 * optabs.c (expand_binop): Use emit_libcall_block_1 with
7994 a proper equiv_may_trap argument.
7995 (expand_unop): Likewise.
7996 (emit_libcall_block_1): Take extra argument whether the
7997 instruction may trap. Renamed from ...
7998 (emit_libcall_block): ... this. New wrapper.
7999
8000 2012-03-05 Jakub Jelinek <jakub@redhat.com>
8001
8002 PR tree-optimization/51721
8003 * tree-vrp.c (register_edge_assert_for_2): If comparing
8004 lhs of right shift by constant with an integer constant,
8005 add ASSERT_EXPRs for the rhs1 of the right shift.
8006
8007 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
8008
8009 2012-03-05 Richard Guenther <rguenther@suse.de>
8010
8011 * tree.c (integer_zerop): Handle VECTOR_CSTs.
8012 (integer_onep): Likewise.
8013 (integer_all_onesp): Likewise.
8014
8015 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
8016
8017 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
8018
8019 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
8020
8021 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
8022 instead of TARGET_64BIT.
8023
8024 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
8025
8026 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
8027 adjust_stack_insn.
8028
8029 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
8030
8031 * config/i386/i386.c (ix86_print_operand_address): Only handle
8032 zero-extended DImode addresses.
8033
8034 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
8035
8036 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
8037 taken and cputaken as bool.
8038
8039 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
8040
8041 * config/i386/constraints.md (Ya): New internal constraint.
8042 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
8043 (*zero_extendsidi2_rex64): Add x,x alternative.
8044 (*zero_extendsidi2): Ditto. Add o,0 alternative.
8045 Remove flags reg clobber. Adjust corresponding splits.
8046 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
8047 zero_extendqisi2 expanders using SWI12 mode iterator.
8048 (zero_extend<mode>si2_and): Macroize insn from
8049 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
8050 splitters.
8051 (*zero_extend<mode>si2): Macroize insn from
8052 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
8053 (*zero_extend*2_movzbl_and): Remove insn patterns.
8054 (zero_extendqihi2_and): Merge corresponding splitter.
8055 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
8056 (*zero_extend*2_movzbl_and): Remove insn patterns.
8057 (*anddi_1): Split TYPE_IMOVX instructions.
8058 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
8059 (*andhi_1): Ditto.
8060 (and->zext splitter): Add splitter pattern.
8061 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
8062
8063 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
8064
8065 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
8066 x86-specific text.
8067 (Debugging Options): Likewise.
8068 (Optimize Options): Likewise.
8069 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
8070 with other architectures. Use official processor names with correct
8071 spelling/capitalization. Fix formatting and grammar issues.
8072 (i386 and x86-64 Windows Options): Similar cleanup here.
8073
8074 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
8075
8076 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
8077
8078 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
8079
8080 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
8081 DBX_REGISTER_NUMBER.
8082
8083 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
8084
8085 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
8086 operand is CONST_INT. Take COSTS_N_INSNS into account.
8087 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
8088 of shiftcosts.
8089
8090 2012-03-02 Richard Henderson <rth@redhat.com>
8091
8092 * optabs.c (expand_atomic_test_and_set): Honor
8093 atomic_test_and_set_trueval even when atomic_test_and_set
8094 optab is not in use.
8095
8096 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
8097
8098 PR target/48596
8099 PR target/48806
8100 * config/sh/sh.c (sh_register_move_cost): Increase cost between
8101 GENERAL_REGS and FP_REGS for SImode.
8102
8103 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
8104
8105 PR target/49486
8106 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
8107 (absdi2): New expander.
8108 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
8109
8110 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
8111
8112 * config/sh/sync.md (atomic_exchange<mode>): New expander.
8113 (atomic_exchange<mode>_soft): New insn.
8114
8115 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
8116
8117 * config/sh/sync.md: Update copyright notice dates.
8118 (atomic_compare_and_swap<mode>): Use SImode for return value instead
8119 of QImode.
8120 (atomic_compare_and_swap<mode>_soft): Likewise.
8121
8122 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
8123
8124 PR target/31640
8125 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
8126 * config/sh/sh.c: Update copyright notice dates.
8127 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
8128 alignment for TARGET_HARD_SH4.
8129 (sh_option_override): Reduce default function alignment. Set
8130 loop alignment to 4 bytes when not optimizing for size.
8131
8132 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
8133
8134 PR middle-end/50335
8135 * doc/invoke.texi (floop-flatten): Remove.
8136 * toplev.c (process_options): Remove references to flag_loop_flatten.
8137 * tree-ssa-loop.c (gate_graphite_transform): Same.
8138 * common.opt (floop-flatten): Obsolete.
8139 * graphite-poly.c (apply_poly_transforms): Remove reference to
8140 flag_loop_flatten.
8141 * Makefile.in (graphite-flattening.o): Remove.
8142 * graphite-flattening.c: Remove.
8143
8144 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
8145
8146 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
8147 having mode compatible with the mode of previous compare. Substitute
8148 compare mode of previous compare with the mode, compatible
8149 with eliminated and previous compare.
8150
8151 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
8152
8153 * config/rs6000/dfp.md (floatdidd2): New define_insn.
8154
8155 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
8156
8157 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
8158 compatible with CCGOCmode and CCGCmode.
8159
8160 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
8161
8162 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
8163
8164 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8165
8166 * config/arm/arm.c (arm_sat_operator_match): New function.
8167 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
8168 * config/arm/arm.md ("insn" attribute): Add "sat" value.
8169 ("SAT", "SATrev"): New code iterators.
8170 ("SATlo", "SAThi"): New code iterator attributes.
8171 ("*satsi_<SAT:code>"): New pattern.
8172 ("*satsi_<SAT:code>_shift"): Likewise.
8173 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
8174 and "shift" attributes.
8175 ("arm_usatsihi"): Add "insn" attribute.
8176 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
8177 by powers of two. Do not allow shift by 32.
8178
8179 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
8180
8181 PR target/46716
8182 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
8183 to pass the argument in the register of "natural" mode.
8184
8185 2012-03-02 Richard Guenther <rguenther@suse.de>
8186
8187 PR tree-optimization/52406
8188 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
8189 (struct indices): Add unconstrained_base member.
8190 (struct dr_alias): Remove unused vops member.
8191 (DR_UNCONSTRAINED_BASE): New define.
8192 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
8193 add indices to allow their disambiguation. Make DR_BASE_OBJECT
8194 be an artificial access that covers the whole indexed object,
8195 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
8196 plain decl base-objects to their MEM_REF variant.
8197 (dr_may_alias_p): When the base-object of either data reference
8198 has unknown size use only points-to information.
8199 (compute_affine_dependence): Make dumps easier to read and
8200 more verbose.
8201 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
8202 DR_REF when looking for packed references.
8203 (vect_supportable_dr_alignment): Likewise.
8204
8205 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
8206
8207 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
8208 Improve conditions for peepholes of loads followed by commutative
8209 operators.
8210 * config/arm/ldmstm.md: Regenerated.
8211
8212 2012-03-02 Richard Guenther <rguenther@suse.de>
8213
8214 * BASE-VER: Set to 4.8.0.
8215
8216 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
8217
8218 * config.gcc (obsolete): Add all ARM targets using the FPA.
8219 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
8220 * doc/install.texi: Avoid references to obsolete ARM ports.
8221
8222 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
8223
8224 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
8225
8226 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
8227 Joern Rennecke <joern.rennecke@embecosm.com>
8228
8229 * doc/extend.texi: Expand and update information on interrupt
8230 attribute for Epiphany.
8231
8232 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
8233
8234 * config/sh/sh-protos.h: Update copyright notice dates.
8235 * config/sh/sh.h: Likewise.
8236 * config/sh/sh.md: Likewise.
8237 * config/sh/constraints.md: Likewise.
8238 * config/sh/predicates.md: Likewise.
8239
8240 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
8241
8242 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
8243 * config/sh/sh.c (tertiary_reload_operand): Likewise.
8244
8245 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
8246
8247 * config/sh/constraints.md: Fix comment typo.
8248
8249 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8250
8251 PR target/52408
8252 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
8253 unsigned HOST_WIDE_INT.
8254 (zvdep_imm64): Likewise.
8255 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
8256 (vdepi_and): Likewise.
8257 Likewise for unamed 64-bit patterns.
8258 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
8259
8260 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
8261
8262 PR debug/52001
8263 PR rtl-optimization/52417
8264 * cselib.c (cselib_any_perm_equivs): New variable.
8265 (cselib_reset_table): Check that it's not set when not
8266 preserving constants.
8267 (cselib_add_permanent_equiv): Set it.
8268 (cselib_have_permanent_equivalences): New.
8269 (cselib_init, cselib_finish): Reset it.
8270 * cselib.h (cselib_have_permanent_equivalences): Declare.
8271 * alias.c (get_addr): Restore earlier behavior when there
8272 aren't permanent equivalences.
8273
8274 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
8275
8276 * config/mn10300/mn10300-modes.def: Fix copyright notice.
8277 * config/v850/v850-modes.def: Fix copyright notice.
8278
8279 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
8280
8281 * doc/extend.texi (AVR Built-in Functions): Document
8282 __builtin_avr_flash_segment.
8283
8284 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
8285 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
8286 (*split.flash_segment): New insn-and-split.
8287 * config/avr/avr.c (avr_init_builtins): Add local variables:
8288 const_memx_void_node, const_memx_ptr_type_node,
8289 char_ftype_const_memx_ptr.
8290
8291 2012-03-01 Jakub Jelinek <jakub@redhat.com>
8292
8293 PR tree-optimization/52445
8294 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
8295 add ssa_name_ver, offset and size fields and change store field
8296 to bool.
8297 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
8298 (add_or_mark_expr): Likewise. Only consider previous stores
8299 with the same size and offset.
8300 (nt_init_block): Only look at gimple_assign_single_p stmts,
8301 doesn't look at rhs2.
8302
8303 2012-03-01 Richard Guenther <rguenther@suse.de>
8304
8305 PR middle-end/52443
8306 * tree-cfg.c (verify_gimple_assign_unary): Allow any
8307 conversions from integral types to pointer types.
8308
8309 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
8310
8311 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
8312 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
8313 unintentionally removed in r184616.
8314
8315 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8316
8317 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
8318 3DNow from bdver1.
8319
8320 2012-02-29 Jakub Jelinek <jakub@redhat.com>
8321 Uros Bizjak <ubizjak@gmail.com>
8322
8323 PR target/52437
8324 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
8325 alternatives, add "e" constraint to the new last alternative
8326 and ! to last 3 alternatives.
8327
8328 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8329
8330 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
8331 DW_AT_artificial attributes at the end of the processing.
8332 (gen_array_type_die): Likewise.
8333 (gen_enumeration_type_die): Likewise.
8334 (gen_struct_or_union_type_die): Likewise.
8335 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
8336 the parent type.
8337
8338 2012-02-29 Jakub Jelinek <jakub@redhat.com>
8339
8340 PR middle-end/52419
8341 * expr.c (expand_assignment): If doing misaligned store that doesn't
8342 cover all mode bits, perform a RMW cycle.
8343
8344 PR tree-optimization/52429
8345 * tree-parloops.c (separate_decls_in_region_debug): Return early
8346 if var is LABEL_DECL.
8347
8348 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8349
8350 PR tree-optimization/52424
8351 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
8352 calling dom_thread_across_edge.
8353
8354 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
8355
8356 * config/avr/avr.c: Move definition of TARGET macros to end of file.
8357
8358 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
8359
8360 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
8361 * config/avr/avr.c (avr_output_bld): Remove unused function.
8362 (avr_out_sbxx_branch): Use "%T" to print bit position.
8363
8364 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
8365
8366 * config/avr/avr.md: Untabify.
8367
8368 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
8369
8370 * config/avr/avr.md (eqne): New code iterator.
8371 (*dec-and-branchsi): Use it in text peephole's condition.
8372 (*dec-and-branchhi): Ditto.
8373 (*dec-and-branchqi): Ditto.
8374
8375 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
8376
8377 PR target/49939
8378 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
8379 the device does not have the skip-bug.
8380
8381 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
8382
8383 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
8384 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
8385 -mpretend-cmove): New.
8386
8387 2012-02-29 Jakub Jelinek <jakub@redhat.com>
8388
8389 PR bootstrap/52397
8390 * df.h (struct df_d): Adjust comment that hard_regs_live_count
8391 doesn't count DEBUG_INSN refs.
8392 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
8393 for DEBUG_INSN refs.
8394
8395 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8396
8397 Partially revert:
8398
8399 2012-02-20 Richard Guenther <rguenther@suse.de>
8400 PR tree-optimization/52298
8401 * tree-vect-stmts.c (vectorizable_load): Properly use
8402 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
8403
8404 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
8405
8406 PR middle-end/51752
8407 * gimple.h (gimple_in_transaction): New.
8408 (gimple_set_in_transaction): New.
8409 (struct gimple_statement_base): Add in_transaction field.
8410 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
8411 transaction loads.
8412 (tree_ssa_lim_initialize): Compute transaction bits.
8413 * tree.h (compute_transaction_bits): Protoize.
8414 * trans-mem.c (tm_region_init): Use the heap to store BB
8415 auxilliary data.
8416 (compute_transaction_bits): New.
8417
8418 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8419
8420 * gcc.c (display_help): Document --help=common and sort entries
8421 alphabetically.
8422
8423 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8424
8425 * doc/install.texi: Document check-$LANG specific shortcuts
8426
8427 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8428
8429 PR target/51534
8430 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
8431 and vcgtu.
8432 * config/arm/arm_neon.h: Regenerate.
8433 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
8434 (neon_vcgeu): New insn.
8435 (neon_vcgtu): Likewise.
8436 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
8437 (ops): Unsigned comparison intrinsics call a different builtin.
8438
8439 2012-02-28 Richard Guenther <rguenther@suse.de>
8440
8441 PR target/52407
8442 * config/i386/i386.c (ix86_expand_vector_set): Fix element
8443 ordering for the VEC_CONCAT for two element vectors for
8444 V2SFmode, V2SImode and V2DImode.
8445
8446 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
8447
8448 PR target/49448
8449 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
8450 detecting big-endian triplets.
8451
8452 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
8453
8454 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
8455 mode if there is no type information available.
8456
8457 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
8458
8459 PR tree-optimization/53207
8460 * doc/invoke.texi: Document as experimental and relying on graphite.
8461
8462 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
8463
8464 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
8465 of initializer to changes from r184614.
8466
8467 2012-02-28 Richard Guenther <rguenther@suse.de>
8468
8469 PR tree-optimization/52395
8470 * tree-sra.c (build_ref_for_offset): Also look at the base
8471 TYPE_ALIGN when figuring out the alignment of the replacement.
8472
8473 2012-02-28 Richard Guenther <rguenther@suse.de>
8474
8475 PR tree-optimization/52402
8476 * ipa-prop.c (ipa_modify_call_arguments): Properly use
8477 mis-aligned types when creating the accesses at the call site.
8478
8479 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
8480
8481 * config/avr/builtins.def: New file.
8482 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
8483 * config/avr/avr.c (enum avr_builtin_id): Use it.
8484 (avr_init_builtins): Use it. And use avr_bdesc.
8485 (bdesc_1arg): Remove.
8486 (bdesc_2arg): Remove.
8487 (bdesc_3arg): Remove.
8488 (struct avr_builtin_description): Add field n_args.
8489 (avr_bdesc): New static variable using builtins.def.
8490 (avr_expand_builtin): Use it.
8491 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
8492 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
8493 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
8494
8495 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
8496
8497 PR target/52148
8498 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
8499 match only one single hard register with respective hard reg rtx.
8500 (movmemx_<mode>): Ditto.
8501 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
8502 insn anatomy of movmem[x]_<mode>.
8503 (avr_out_movmem): Same for printing assembler and operand usage.
8504
8505 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
8506
8507 PR target/49868
8508 PR target/52261
8509 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
8510 address spaces located outside of device flash.
8511
8512 * config/avr/avr.h (base_arch_s): Remove field n_segments.
8513 (mcu_type_s): Add field n_flash.
8514 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
8515 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
8516 (AVR_MCU): Add N_FLASH argument.
8517 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
8518 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
8519 macro __FLASH<n> if that address space makes sense for the device.
8520 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
8521 outside of target flash.
8522 (avr_asm_named_section): Ditto.
8523 (avr_asm_select_section): Ditto.
8524 (avr_addr_space_convert): Ditto.
8525 (avr_emit_movmemhi): Ditto.
8526 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
8527 address space is outside of device flash.
8528 (avr_insert_attributes): Ditto.
8529 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
8530 avr_current_arch->n_segments.
8531
8532 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
8533
8534 PR target/52352
8535 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
8536 (*movabs<mode>_2): Likewise.
8537
8538 2012-02-27 Jakub Jelinek <jakub@redhat.com>
8539
8540 PR target/52375
8541 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
8542 s_register_operand in the test instead of REG_P. Don't call
8543 gen_reg_rtx if it won't be used.
8544
8545 PR tree-optimization/52376
8546 * ipa-split.c (split_function): Ignore CLOBBER stmts.
8547
8548 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
8549
8550 * ifcvt.c (noce_get_condition): Check condition variable is not
8551 small_register_classes_for_mode_p before accepting.
8552
8553 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
8554
8555 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
8556
8557 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8558
8559 Revert:
8560 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8561 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
8562 tuning parameters.
8563 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
8564
8565 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
8566
8567 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
8568
8569 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
8570
8571 * config/sh/predicates.md: Remove blank lines.
8572 * config/sh/sh.c: Fix typos in comments.
8573 * config/sh/constraints.md: Likewise.
8574 * config/sh/sh.md: Remove blank lines.
8575 Fix typos in comments. Use ;; as comment characters.
8576
8577 2012-02-26 Walter Lee <walt@tilera.com>
8578
8579 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
8580 (replace_mov_pcrel_step2): Ditto.
8581
8582 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
8583
8584 PR debug/52001
8585 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
8586 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
8587 and locs that reference values newer than the non-canonical value
8588 at hand. Return the canonical value as a worst case.
8589 (memrefs_conflict_p): Walk canonical value's locs.
8590
8591 PR debug/52001
8592 * cselib.c (preserve_only_constants): Rename to...
8593 (preserve_constants_and_equivs): ... this. Split out...
8594 (invariant_or_equiv_p): ... this. Preserve plus expressions
8595 of other preserved expressions too.
8596 (cselib_reset_table): Adjust.
8597 * var-tracking.c (reverse_op): Use canonical value to build
8598 reverse operation.
8599
8600 2012-02-23 Kai Tietz <ktietz@redhat.com>
8601
8602 * config/i386/i386.c (ix86_delegitimize_address): Handle
8603 UNSPEC_PCREL plus displacement.
8604
8605 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
8606
8607 PR target/52261
8608 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
8609 to test for unusedness in st X addressing.
8610
8611 2012-02-24 Richard Guenther <rguenther@suse.de>
8612
8613 PR middle-end/52361
8614 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
8615 (is_gimple_reg_type): Move inline ...
8616 * gimple.h (is_gimple_reg_type): ... here.
8617
8618 2012-02-24 Richard Guenther <rguenther@suse.de>
8619
8620 PR middle-end/52361
8621 * passes.c (execute_function_todo): When verifying SSA form
8622 verify gimple form first.
8623 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
8624
8625 2012-02-24 Richard Guenther <rguenther@suse.de>
8626
8627 PR middle-end/52355
8628 * fold-const.c (fold_addr_of_array_ref_difference): New function.
8629 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
8630
8631 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8632
8633 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
8634
8635 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8636
8637 * tree-phinodes.c (make_phi_node): Mark static.
8638 * tree-flow.h (make_phi_node): Remove extern decl.
8639 * doc/gimple.texi (make_phi_node): Remove documentation.
8640
8641 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8642
8643 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
8644 * tree-ssa-sccvn.c (print_scc): Ditto.
8645
8646 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8647
8648 * doc/passes.texi (Full redundancy elimination): Fix typo.
8649
8650 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8651
8652 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
8653
8654 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
8655
8656 PR bootstrap/52287
8657 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
8658
8659 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
8660
8661 PR c/52290
8662 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
8663
8664 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
8665
8666 * config/avr/avr.md (code_stdname): Add ior, xor.
8667 (xior): New code iterator.
8668 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
8669 (*<code_stdname><mode>qi.byte1-3): Ditto.
8670
8671 2012-02-23 Jakub Jelinek <jakub@redhat.com>
8672
8673 PR tree-optimization/52019
8674 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
8675 CLOBBER stmts.
8676
8677 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8678
8679 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
8680 HAVE_INITFINI_ARRAY to work around namespace pollution in
8681 certain versions of newlib system headers.
8682 * config.in: Regenerate.
8683 * configure: Regenerate.
8684 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
8685 instead of HAVE_INITFINI_ARRAY.
8686
8687 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
8688
8689 PR target/52330
8690 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
8691 is not offsettable memory reference.
8692
8693 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
8694
8695 PR target/18145
8696 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
8697 setting avr_need_clear_bss_p for __gnu_lto* symbols.
8698
8699 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
8700
8701 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
8702 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
8703
8704 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8705
8706 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
8707 library on Solaris 8 even without TLS support.
8708 * configure: Regenerate.
8709
8710 2012-02-22 Richard Guenther <rguenther@suse.de>
8711
8712 PR middle-end/52329
8713 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
8714 for GIMPLE_DEBUG stmts.
8715
8716 2012-02-22 Martin Jambor <mjambor@suse.cz>
8717
8718 PR middle-end/51782
8719 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
8720 according to the base object.
8721
8722 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
8723
8724 PR rtl-optimization/50063
8725 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
8726 and 2 (8-bit SP) in operand 2.
8727 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
8728 setup to use movhi_sp_r instead of vanilla move to write SP.
8729 Adjust REG_CFA notes to superseed unspec.
8730 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
8731 of vanilla move.
8732 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
8733 known to be off) only with TARGET_NO_INTERRUPTS. Never use
8734 irq_state 1 (IRQ known to be on) here.
8735
8736 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
8737
8738 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
8739 WORDS_BIG_ENDIAN.
8740 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
8741 assign_hard_reg): Likewise.
8742
8743 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
8744
8745 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
8746
8747 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
8748
8749 * config/avr/avr.md
8750 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
8751 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
8752
8753 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
8754
8755 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
8756 prototype from here to...
8757 * config/avr/avr.h: ...here.
8758
8759 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
8760
8761 PR target/52294
8762 * thumb2.md (thumb2_shiftsi3_short): Split register and
8763 immediate shifts. For register shifts tie operands 0 and 1.
8764 (peephole2 for above): Check that register-controlled shifts
8765 have suitably tied operands.
8766
8767 2012-02-21 Quentin Neill <quentin.neill@amd.com>
8768
8769 PR target/52137
8770 * config/i386/bdver1.md (bdver1_call, bdver1_push,
8771 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
8772 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
8773 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
8774 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
8775 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
8776 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
8777 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
8778 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
8779 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
8780 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
8781 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
8782 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
8783 bdver1_ssevector_avx256_unaligned_load,
8784 bdver1_ssevector_sse128_unaligned_load,
8785 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
8786 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
8787 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
8788 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
8789 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
8790 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
8791 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
8792 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
8793 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
8794 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
8795 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
8796 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
8797 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
8798 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
8799 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
8800 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
8801 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
8802 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
8803 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
8804 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
8805 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
8806 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
8807 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
8808 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
8809 bdver1_ssediv_double_load, bdver1_ssediv_double,
8810 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
8811 Add "bdver2" attribute.
8812
8813 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8814
8815 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
8816 default if possible and not specified otherwise.
8817
8818 2012-02-21 Richard Guenther <rguenther@suse.de>
8819
8820 PR middle-end/52314
8821 * gimplify.c (create_tmp_from_val): Use the main variant type
8822 for the type of the temporary we create.
8823
8824 2012-02-21 Richard Guenther <rguenther@suse.de>
8825
8826 PR tree-optimization/52324
8827 * gimplify.c (gimplify_expr): When re-gimplifying expressions
8828 do not gimplify a MEM_REF address operand if it is already
8829 in suitable form.
8830
8831 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8832
8833 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
8834 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
8835
8836 2012-02-21 Richard Guenther <rguenther@suse.de>
8837
8838 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
8839 nested_in_vect_loop.
8840
8841 2012-02-21 Jakub Jelinek <jakub@redhat.com>
8842
8843 PR tree-optimization/52318
8844 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
8845 vdef also to non-pure/const call stmts in the sequence.
8846
8847 2012-02-21 Tristan Gingold <gingold@adacore.com>
8848
8849 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
8850
8851 2012-02-20 David S. Miller <davem@davemloft.net>
8852
8853 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
8854 don't use the "rd %pc" instruction on v9 for PIC register loads.
8855
8856 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
8857
8858 PR middle-end/52141
8859 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
8860 in a transaction safe function.
8861
8862 2012-02-20 Kai Tietz <ktietz@redhat.com>
8863
8864 PR target/52238
8865 * stor-layout.c (place_field): Handle desired_align for
8866 ms-bitfields, too.
8867
8868 2012-02-20 Richard Guenther <rguenther@suse.de>
8869
8870 PR tree-optimization/52298
8871 * tree-vect-stmts.c (vectorizable_store): Properly use
8872 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
8873 outer loops.
8874 (vectorizable_load): Likewise.
8875 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8876 Access DR_STEP after ensuring it is not NULL.
8877
8878 2012-02-20 Jakub Jelinek <jakub@redhat.com>
8879
8880 PR tree-optimization/52286
8881 * fold-const.c (fold_binary_loc): For (X & C1) | C2
8882 optimization use double_int_to_tree instead of build_int_cst_wide,
8883 rewrite to use double_int vars.
8884
8885 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8886
8887 PR target/50166
8888 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
8889 Define _start.
8890 Remove -e 0 from $gcc_cv_ld invocation.
8891 Only use __GLIBC_PREREQ if defined.
8892 Enable on Solaris since Solaris 8 patch.
8893 (gcc_SUN_LD_VERSION): New macro.
8894 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
8895 gcc_SUN_LD_VERSION for version number format.
8896 * configure: Regenerate.
8897 * varasm.c (get_elf_initfini_array_priority_section): Set
8898 SECTION_NOTYPE for non-default priority.
8899 Use get_section instead of get_unnamed_section to emit
8900 .init_array/.fini_array with default priority.
8901
8902 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
8903
8904 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
8905 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
8906 (mips_start_unique_function, mips_output_mips16_rdhwr)
8907 (mips_code_end): New functions.
8908 (TARGET_ASM_CODE_END): Define.
8909
8910 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
8911
8912 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
8913 to stubs with non-sibling calls.
8914
8915 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
8916
8917 * doc/invoke.texi (-fira-* options): Copy-edit.
8918 (ira-* parameters): Copy-edit.
8919
8920 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
8921
8922 * doc/invoke.texi: Minor copy-edits to bring into conformance with
8923 GCC coding conventions.
8924
8925 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
8926
8927 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
8928 when used as adjectives.
8929
8930 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
8931
8932 * doc/invoke.texi: Clean up "that"/"which" confusion.
8933
8934 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
8935
8936 * system.h: Poison SMALL_REGISTER_CLASSES
8937 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
8938 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
8939
8940 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8941
8942 PR tree-optimization/52285
8943 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
8944 when deciding if a call is a tail call or tail recursion.
8945
8946 2012-02-16 Kai Tietz <ktietz@redhat.com>
8947
8948 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
8949 interger-constant displacement for UNSPEC_PCREL.
8950
8951 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8952
8953 PR rtl-optimization/52208
8954 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
8955 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
8956
8957 PR tree-optimization/52255
8958 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
8959 loop->header has virtual PHI, but exit_e->dest doesn't, add
8960 virtual PHI to exit_e->dest and adjust all uses after the loop.
8961
8962 PR debug/52260
8963 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
8964 children with clone_tree_hash, not after it.
8965
8966 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
8967
8968 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
8969 extended identifiers.
8970
8971 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8972
8973 PR middle-end/51929
8974 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
8975 a same_body_alias, also test whether e->callee isn't a former
8976 or current clone of the decl this is a same body alias of.
8977
8978 PR translation/52264
8979 * cgraphunit.c (verify_cgraph_node): Fix a typo.
8980
8981 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
8982
8983 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
8984
8985 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8986
8987 PR target/52199
8988 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
8989 force_reg instead of copy_to_reg for better optimization. Force
8990 non-register or memory operands into a register.
8991
8992 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
8993
8994 * extend.texi: Reserve upper bits of memory model for future use.
8995
8996 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
8997 Anatoly Sokolov <aesok@post.ru>
8998 Eric Weddington <eric.weddington@atmel.com>
8999
9000 PR target/52261
9001 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
9002 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
9003 Rewrite initializers for .macro.
9004 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
9005 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
9006 atxmega32d4, atxmega32x1.
9007 avrxmega4: atxmega64a3, atxmega64d3.
9008 avrxmega5: atxmega64a1, atxmega64a1u.
9009 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
9010 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
9011 avrxmega7: atxmega128a1, atxmega128a1u.
9012 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
9013 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
9014 (struct base_arch_s): Rename reserved to xmega_p.
9015 Rename reserved2 to have_rampd.
9016 (AVR_XMEGA): New define.
9017 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
9018 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
9019 * config/avr/predicates.md (io_address_operand): Take into
9020 account SFR offset.
9021 (low_io_address_operand): Ditto.
9022 (high_io_address_operand): Ditto.
9023 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
9024 (enabled, movhi_sp_r): Use them.
9025 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
9026 cpp_define_formatted to built-in define __AVR_ARCH__.
9027 (__AVR_XMEGA__): New built-in define.
9028 (__AVR_HAVE_RAMPD__): New built-in define.
9029 (__AVR_HAVE_RAMPX__): New built-in define.
9030 (__AVR_HAVE_RAMPY__): New built-in define.
9031 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
9032
9033 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
9034 (avr_option_override): Initialize them.
9035 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
9036 (avr_init_expanders): Initialize them. No more block several calls.
9037 (emit_push_sfr): New static function.
9038 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
9039 Handle AVR_XMEGA.
9040 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
9041 (avr_print_operand): Print addreeses as symbols for
9042 RAMPX, RAMPY, RAMPD, CCP.
9043 (output_movhi): Handle AVR_XMEGA when writing to SP.
9044 (avr_out_movhi_mr_r_xmega): New static function.
9045 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
9046 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
9047 __RAMPD__, __CCP__ as needed.
9048
9049 * config/avr/multilib.h: Regenerate.
9050 * config/avr/t-multilib: Regenerate.
9051 * config/avr/avr-tables.opt: Regenerate.
9052
9053 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
9054
9055 PR tree-optimization/50561
9056 * graphite-flattening.c (lst_project_loop): Do not
9057 remove old scattering dimensions after flattening.
9058 (lst_do_flatten): Likewise.
9059
9060 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
9061
9062 * doc/extend.texi (AVR Built-in Functions): Remove doc for
9063 __builtin_avr_map8, __builtin_avr_map16.
9064 Document __builtin_avr_insert_bits.
9065
9066 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
9067 (insert_bits): New insn.
9068 (adjust_len.map_bits): Rename to insert_bits.
9069 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
9070 * avr-protos.h (avr_out_map_bits): Remove.
9071 (avr_out_insert_bits, avr_has_nibble_0xf): New.
9072 * config/avr/constraints.md (Cxf,C0f): New.
9073 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
9074 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
9075 New built-in define __BUILTIN_AVR_INSERT_BITS.
9076 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
9077 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
9078 (avr_move_bits): Rewrite.
9079 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
9080 functions.
9081 (avr_map_op_t): New typedef.
9082 (avr_map_op): New static variable.
9083 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
9084 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
9085 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
9086 (bdesc_3arg, avr_expand_triop_builtin): New.
9087 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
9088 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
9089 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
9090 (avr_map_equal_p, avr_map_sig_p): Remove.
9091 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
9092 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
9093 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
9094 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
9095 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
9096 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
9097
9098 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
9099
9100 * config/c6x/c6x.md (reserve_cycles): New attribute.
9101 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
9102 don't reserve functional units after the branch occurs.
9103
9104 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
9105
9106 PR middle-end/52142
9107 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
9108 functions into non-tm_pure functions.
9109
9110 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
9111
9112 PR lto/52178
9113 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
9114 (iterative_hash_canonical_type): Likewise.
9115 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
9116 the dead edges.
9117
9118 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
9119
9120 * haifa-sched.c (prune_ready_list): Ensure that if there is a
9121 sched-group insn, it either remains alone or the entire list is pruned.
9122
9123 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
9124
9125 * doc/install.texi (Prerequisites): Fix grammar.
9126 (Configuration): Likewise.
9127
9128 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
9129
9130 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
9131 MPC as part of GCC before describing configuring with --with-gmp etc.
9132 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
9133 sources are present.
9134
9135 2012-02-14 Jakub Jelinek <jakub@redhat.com>
9136
9137 PR debug/51950
9138 * dwarf2out.c (clone_tree_hash): New function.
9139 (copy_decls_walk): Use it instead of clone_tree.
9140
9141 2012-02-14 Richard Guenther <rguenther@suse.de>
9142
9143 PR tree-optimization/52244
9144 PR tree-optimization/51528
9145 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
9146 replacements for integral types.
9147
9148 2012-02-14 Walter Lee <walt@tilera.com>
9149
9150 * config.gcc: Handle tilegx and tilepro.
9151 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
9152 tilegx and tilepro.
9153 Add HAVE_AS_TLS check for tilegx and tilepro.
9154 * configure: Regenerate.
9155 * doc/contrib.texi: Add Mat Hostetter and self.
9156 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
9157 Document instruction intrinsics and network accessing intrinsics.
9158 (TILEPro Built-in Functions): New node. Document instruction
9159 intrinsics and network accessing intrinsics.
9160 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
9161 (Specific, tilepro-*-linux*): Likewise.
9162 * doc/invoke.texi (TILE-Gx Options): New section.
9163 (TILEPro Options): New section.
9164 * doc/md.texi (TILE-Gx): New section.
9165 (TILEPro): New section.
9166 * common/config/tilegx/tilegx-common.c: New file.
9167 * common/config/tilepro/tilepro-common.c: New file.
9168 * config/tilegx/constraints.md: New file.
9169 * config/tilegx/linux.h: New file.
9170 * config/tilegx/mul-tables.c: New file.
9171 * config/tilegx/predicates.md: New file.
9172 * config/tilegx/sync.md: New file.
9173 * config/tilegx/t-tilegx: New file.
9174 * config/tilegx/tilegx-builtins.h: New file.
9175 * config/tilegx/tilegx-c.c: New file.
9176 * config/tilegx/tilegx-generic.md: New file.
9177 * config/tilegx/tilegx-modes.def: New file.
9178 * config/tilegx/tilegx-multiply.h: New file.
9179 * config/tilegx/tilegx-protos.h: New file.
9180 * config/tilegx/tilegx.c: New file.
9181 * config/tilegx/tilegx.h: New file.
9182 * config/tilegx/tilegx.md: New file.
9183 * config/tilegx/tilegx.opt: New file.
9184 * config/tilepro/constraints.md: New file.
9185 * config/tilepro/gen-mul-tables.cc: New file.
9186 * config/tilepro/linux.h: New file.
9187 * config/tilepro/mul-tables.c: New file.
9188 * config/tilepro/predicates.md: New file.
9189 * config/tilepro/t-tilepro: New file.
9190 * config/tilepro/tilepro-builtins.h: New file.
9191 * config/tilepro/tilepro-c.c: New file.
9192 * config/tilepro/tilepro-generic.md: New file.
9193 * config/tilepro/tilepro-modes.def: New file.
9194 * config/tilepro/tilepro-multiply.h: New file.
9195 * config/tilepro/tilepro-protos.h: New file.
9196 * config/tilepro/tilepro.c: New file.
9197 * config/tilepro/tilepro.h: New file.
9198 * config/tilepro/tilepro.md: New file.
9199 * config/tilepro/tilepro.opt: New file.
9200
9201 2012-02-14 Jakub Jelinek <jakub@redhat.com>
9202
9203 PR tree-optimization/52210
9204 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
9205 vect_model_simple_cost with two entry vect_def_type array instead
9206 of an address of dt.
9207
9208 2012-02-14 Richard Guenther <rguenther@suse.de>
9209
9210 PR lto/52178
9211 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
9212 Do not stream DECL_QUALIFIER.
9213 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
9214 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
9215 (find_decls_types_r): Do not walk DECL_QUALIFIER.
9216
9217 2012-02-14 Jakub Jelinek <jakub@redhat.com>
9218
9219 PR c/52181
9220 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
9221 newdecl.
9222
9223 2012-02-13 Jakub Jelinek <jakub@redhat.com>
9224
9225 PR bootstrap/52172
9226 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
9227 * cselib.c (cselib_subst_to_values_from_insn): New function.
9228 * sched-deps.c (add_insn_mem_dependence,
9229 sched_analyze_1, sched_analyze_2): Use it.
9230
9231 2012-02-13 Jan Hubicka <jh@suse.cz>
9232
9233 PR middle-end/52214
9234 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
9235
9236 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
9237
9238 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
9239 (GTM_SELF_SPECS): Define if not already defined.
9240 (driver_self_specs): Add GTM_SELF_SPECS.
9241 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
9242 (GTM_SELF_SPECS): Define.
9243 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
9244 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
9245
9246 2012-02-13 Jakub Jelinek <jakub@redhat.com>
9247
9248 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
9249 away if seen.
9250
9251 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
9252
9253 PR middle-end/52230
9254 * omp-low.c (expand_omp_for): If a static schedule without chunk size
9255 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
9256
9257 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
9258
9259 PR c/52190
9260 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
9261
9262 2012-02-13 Richard Guenther <rguenther@suse.de>
9263
9264 PR translation/52211
9265 * passes.c (enable_disable_pass): Fix typo.
9266
9267 2012-02-13 Jakub Jelinek <jakub@redhat.com>
9268
9269 PR middle-end/52209
9270 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
9271 XOR for reduce_bit_field if type is unsigned.
9272
9273 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
9274
9275 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
9276 disallow changes from SFmode to mode with different size in FP regs.
9277
9278 2012-02-12 Robert Millan <rmh@gnu.org>
9279 Gerald Pfeifer <gerald@pfeifer.com>
9280
9281 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
9282 Tweak comment.
9283
9284 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
9285
9286 PR rtl-optimization/52175
9287 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
9288 to frame-related instructions.
9289
9290 2012-02-10 Jason Merrill <jason@redhat.com>
9291
9292 PR c++/51910
9293 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
9294 (demangle_new_symbols): Fill it.
9295 (scan_linker_output): Walk it.
9296 (start_tweaking): Split out from scan_linker_output.
9297 (maybe_tweak): Update sym->chosen.
9298 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
9299
9300 2012-02-11 Jakub Jelinek <jakub@redhat.com>
9301
9302 PR debug/52132
9303 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
9304
9305 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
9306
9307 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
9308 having the same mode as previous compare.
9309
9310 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
9311
9312 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
9313 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
9314 (nonlocal_goto_internal): Likewise.
9315 (nonlocal_goto): Emit a use and an indirect jump directly.
9316
9317 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
9318
9319 PR c/52190
9320 * doc/extend.texi : Update comments for __atomic_compare_exchange and
9321 __atomic_{is,always}_lock_free.
9322
9323 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
9324
9325 PR target/52146
9326 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
9327 negative constant address for TARGET_X32.
9328
9329 2012-02-10 Richard Henderson <rth@redhat.com>
9330
9331 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
9332 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
9333 for GIMPLE_TRANSACTION. Tidy if's into a switch.
9334
9335 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9336 Ira Rosen <irar@il.ibm.com>
9337
9338 PR tree-optimization/50031
9339 * targhooks.c (default_builtin_vectorization_cost): Handle
9340 vec_promote_demote.
9341 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
9342 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
9343 all types of reduction and pattern statements.
9344 (vect_estimate_min_profitable_iters): Likewise.
9345 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
9346 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
9347 for explicit realigns.
9348 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
9349 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
9350 vec_promote_demote.
9351 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
9352 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
9353 vec_perm for VSX and handle vec_promote_demote.
9354
9355 2012-02-10 Jakub Jelinek <jakub@redhat.com>
9356
9357 PR middle-end/52177
9358 * builtins.c (fold_builtin_atomic_always_lock_free,
9359 expand_builtin_atomic_always_lock_free,
9360 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
9361 Return and/or test boolean_true_node/boolean_false_node instead of
9362 integer_one_node/integer_zero_node.
9363
9364 2012-02-10 Jan Hubicka <jh@suse.cz>
9365
9366 PR middle-end/48600
9367 * predict.c (predict_paths_for_bb): Prevent looping.
9368 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
9369
9370 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
9371
9372 * config/arm/arm.c (output_move_double): In one case properly
9373 count number of instructions that will be emitted.
9374
9375 2012-02-10 Richard Guenther <rguenther@suse.de>
9376
9377 PR translation/52193
9378 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
9379
9380 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
9381
9382 PR middle-end/52140
9383 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
9384
9385 2012-02-09 Jakub Jelinek <jakub@redhat.com>
9386
9387 PR debug/52165
9388 * var-tracking.c (emit_note_insn_var_location): If
9389 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
9390 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
9391 non-NOTE_DURING_CALL_P insn.
9392
9393 2012-02-09 Bin Cheng <bin.cheng@arm.com>
9394
9395 PR middle-end/51867
9396 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
9397
9398 2012-02-08 Magnus Granberg <zorry@gentoo.org>
9399
9400 PR driver/48524
9401 * gcc.c (switch_matches) Support switches with separated form,
9402 -D and -U.
9403
9404 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
9405
9406 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
9407 (SP_ADDR): Ditto.
9408 (RAMPZ_ADDR): Ditto.
9409 * config/avr/avr.c (avr_addr_t): New typedef.
9410 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
9411 (avr_init_expanders): Initialize it.
9412 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
9413 SREG_ADDR.
9414 (expand_epilogue): Ditto.
9415 (avr_print_operand): Ditto.
9416 (avr_file_start): Ditto.
9417 (avr_emit_movmemhi): Ditto.
9418
9419 2012-02-08 Richard Guenther <rguenther@suse.de>
9420
9421 PR tree-optimization/46886
9422 * tree-flow.h (do_while_loop_p): Declare.
9423 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
9424 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
9425
9426 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
9427
9428 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
9429 always succeed for integers larger than a native word.
9430
9431 2012-02-08 Richard Guenther <rguenther@suse.de>
9432
9433 PR rtl-optimization/52170
9434 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
9435 properly handle integer vector modes.
9436
9437 2012-02-08 Jakub Jelinek <jakub@redhat.com>
9438
9439 PR gcov-profile/52150
9440 * coverage.c: Include target.h.
9441 (build_var): Call targetm.strip_name_encoding on the assembler name.
9442 Change one _ into . or $ if the target allows it.
9443 * Makefile.in (coverage.o): Depend on $(TARGET_H).
9444
9445 PR rtl-optimization/52139
9446 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
9447 is a BARRIER after emit_insn_after_noloc, move BB_END
9448 to the last non-BARRIER insn before it.
9449
9450 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
9451
9452 PR middle-end/24306
9453 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
9454 (mips_gimplify_va_arg_expr): Call it instead of
9455 std_gimplify_va_arg_expr.
9456
9457 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
9458
9459 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
9460 message for -mno-pointers-to-nested-function.
9461
9462 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
9463
9464 PR middle-end/51994
9465 * expr.c (get_inner_reference): If there is an offset, add a negative
9466 bit position to it (if any).
9467
9468 2012-02-07 Jakub Jelinek <jakub@redhat.com>
9469
9470 PR rtl-optimization/52060
9471 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
9472 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
9473 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
9474 and/or i0src_copy2 when needed.
9475
9476 2012-02-07 Jakub Jelinek <jakub@redhat.com>
9477
9478 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
9479 or LTOPLUGINSONAME if have_c.
9480
9481 * config/freebsd-spec.h: Add comment about what macros can be defined
9482 in this header.
9483 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
9484 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
9485 here instead.
9486
9487 2012-02-07 Richard Guenther <rguenther@suse.de>
9488
9489 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
9490 newline in -alias dumps.
9491
9492 2012-02-07 Kai Tietz <ktietz@redhat.com>
9493 Dave Korn <dave.korn.cygwin@gmail.com>
9494
9495 PR target/40068
9496 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
9497 Take care that typinfo gets dllexport-attribute.
9498
9499 2012-02-07 Jakub Jelinek <jakub@redhat.com>
9500
9501 PR middle-end/52074
9502 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
9503 if modifier < EXPAND_SUM call force_operand on the result.
9504
9505 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
9506
9507 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
9508 adding __forwarder_dst__ prefix if a forwarder_section attribute is
9509 present.
9510 (epiphany_function_type): Replace types for specific interrupts with
9511 EPIPHANY_FUNCTION_INTERRUPT.
9512 (EPIPHANY_INTERRUPT_P): Update.
9513 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
9514 New static function.
9515 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
9516 <disinterrupt>: Affects type identity.
9517 (epiphany_handle_interrupt_attribute): Handle variable number of
9518 arguments.
9519 (epiphany_compute_function_type): Update for new
9520 epiphany_function_type definition.
9521 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
9522 handlers with a longcall forwarder.
9523 (epiphany_start_function): Handle multiple interrupt arguments and/or
9524 forwarder_section attribute.
9525
9526 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
9527 libgloss.
9528
9529 2012-02-07 Alan Modra <amodra@gmail.com>
9530
9531 PR target/52107
9532 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
9533 subregs of TFmode.
9534
9535 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9536
9537 PR tree-optimization/50969
9538 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
9539 use vec_perm rather than vector_stmt.
9540 (vect_model_load_cost): Likewise.
9541 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
9542 vec_perm to be the same as other vector statements.
9543 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
9544 cost of vec_perm for TARGET_VSX.
9545
9546 2012-02-06 Richard Guenther <rguenther@suse.de>
9547
9548 PR tree-optimization/52115
9549 * tree-sra.c (access_has_replacements_p): New function.
9550 (sra_modify_assign): Use it to decide whether a use is uninitialized.
9551
9552 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
9553
9554 PR middle-end/52047
9555 * trans-mem.c (expand_call_tm): Add an assertion.
9556 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
9557 functions.
9558
9559 2012-02-06 Richard Guenther <rguenther@suse.de>
9560
9561 PR tree-optimization/50955
9562 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
9563 raise cost of expressions that replace an address with an
9564 expression based on a different pointer.
9565
9566 2012-02-06 Jakub Jelinek <jakub@redhat.com>
9567
9568 PR target/52129
9569 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
9570 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
9571
9572 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9573
9574 PR c++/48680
9575 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
9576 -Weffc++ and specify guidelines come from second edition.
9577
9578 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
9579
9580 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
9581 (sibcall_value_multiple_internal, call_split, call_internal_direct)
9582 (call_direct_split, call_value_split, call_value_internal_direct)
9583 (call_value_direct_split, call_value_multiple_split): Use jal and
9584 jal_macro attributes.
9585
9586 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
9587
9588 * reload1.c (reload_regs_reach_end_p): Replace with...
9589 (reload_reg_rtx_reaches_end_p): ...this function.
9590 (new_spill_reg_store): Update commentary.
9591 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
9592 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
9593 before setting new_spill_reg_store.
9594 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
9595 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
9596 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
9597 for non-spill reload registers.
9598
9599 2012-02-05 Ira Rosen <irar@il.ibm.com>
9600
9601 PR tree-optimization/52091
9602 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
9603 (vect_is_simple_use_1): Likewise.
9604 * tree-vect-loop.c (vectorizable_reduction): Update calls
9605 to vect_is_simple_use_1 and vect_is_simple_use.
9606 (vectorizable_live_operation): Likewise.
9607 * tree-vect-patterns.c (widened_name_p,
9608 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
9609 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
9610 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
9611 vectorizable_shift,vectorizable_operation, vectorizable_store,
9612 vectorizable_load): Likewise.
9613 (vect_is_simple_cond): Add an argument, pass it to
9614 vect_is_simple_use_1.
9615 (vectorizable_condition): Update calls to vect_is_simple_cond,
9616 vect_is_simple_use.
9617 (vect_is_simple_use): Add an argument, the statement in which
9618 OPERAND is used. Check that if OPERAND's def stmt is a double
9619 reduction phi node, the use is a phi node too.
9620 (vect_is_simple_use_1): Add an argument, pass it to
9621 vect_is_simple_use.
9622 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
9623 to vect_is_simple_use.
9624
9625 2012-02-04 Jakub Jelinek <jakub@redhat.com>
9626
9627 PR rtl-optimization/52095
9628 * modulo-sched.c (dump_insn_locator): New function.
9629 (loop_canon_p, sms_schedule): Use it.
9630
9631 PR rtl-optimization/52113
9632 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
9633 even for decomposable shift/zext insns.
9634
9635 2012-02-03 Jakub Jelinek <jakub@redhat.com>
9636 Zdenek Dvorak <ook@ucw.cz>
9637
9638 PR rtl-optimization/52092
9639 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
9640 on get_iv_value result.
9641
9642 2012-02-02 Andrew Pinski <apinski@cavium.com>
9643
9644 PR middle-end/47982
9645 PR middle-end/43967
9646 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
9647
9648 2012-02-02 Jakub Jelinek <jakub@redhat.com>
9649
9650 PR middle-end/48071
9651 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
9652
9653 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
9654
9655 PR rtl-optimization/49800
9656 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
9657 (sched_finish): Call regstat_free_n_sets_and_refs.
9658
9659 2012-02-02 Jia Liu <proljc@gmail.com>
9660
9661 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
9662 than operand 2.
9663
9664 2012-02-02 Jan Hubicka <jh@suse.cz>
9665 Tom de Vries <tom@codesourcery.com>
9666
9667 PR middle-end/51998
9668 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
9669 * varpool.c (varpool_analyze_pending_decls): Likewise.
9670
9671 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
9672 Jayant R Sonar <jayant.sonar@kpitcummins.com>
9673
9674 * config.gcc: Add cr16-* support.
9675
9676 * doc/extend.texi: Document cr16 extensions.
9677 * doc/install.texi: Document cr16 install.
9678 * doc/invoke.texi: Document cr16 options.
9679 * doc/md.texi: Document cr16 constraints.
9680
9681 * common/config/cr16/cr16-common.c: New file.
9682 * config/cr16/cr16.c: New file.
9683 * config/cr16/cr16.h: New file.
9684 * config/cr16/cr16.md: New file.
9685 * config/cr16/cr16.opt: New file.
9686 * config/cr16/cr16-protos.h: New file.
9687 * config/cr16/predicates.md: New file.
9688 * config/cr16/constraints.md: New file.
9689 * config/cr16/t-cr16: New file.
9690
9691 2012-02-02 Jakub Jelinek <jakub@redhat.com>
9692
9693 PR target/52086
9694 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
9695 that operands[2] is either immediate, or q_regs_operand.
9696
9697 PR tree-optimization/52073
9698 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
9699 a pattern stmt for pattern uses, ignore uses outside of the loop.
9700
9701 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
9702
9703 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
9704 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
9705 (OUT_AS1, OUT_AS2): Remove.
9706
9707 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
9708
9709 PR rtl-optimization/51374
9710 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
9711 to cross other volatile_refs_p insns.
9712
9713 2012-02-01 Richard Guenther <rguenther@suse.de>
9714
9715 * doc/invoke.texi (fno-inline): Clarify documentation.
9716 (finline-small-functions): Likewise.
9717 (finline-functions): Likewise.
9718 * common.opt (finline): Adjust comment and documentation.
9719 (finline-small-functions): Clarify documentation.
9720 (finline-functions): Likewise.
9721 (finline-functions-called-once): Likewise.
9722
9723 2012-02-01 Tristan Gingold <gingold@adacore.com>
9724
9725 * c-typeck.c (composite_type): Keep mode for pointers.
9726
9727 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
9728
9729 * function.h (regno_reg_rtx): Adjust comment.
9730 * reginfo.c (init_reg_modes_target): Only use the previous mode
9731 if it fits within one register. Remove MIPS comment.
9732
9733 2012-01-31 Jakub Jelinek <jakub@redhat.com>
9734
9735 PR bootstrap/52058
9736 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
9737
9738 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9739
9740 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
9741 to srak instruction.
9742
9743 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9744
9745 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
9746
9747 2012-01-31 Jakub Jelinek <jakub@redhat.com>
9748
9749 PR bootstrap/52041
9750 PR bootstrap/52039
9751 PR target/51974
9752 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
9753
9754 2012-01-31 Richard Guenther <rguenther@suse.de>
9755
9756 PR tree-optimization/51528
9757 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
9758 assigns.
9759
9760 2012-01-31 Jakub Jelinek <jakub@redhat.com>
9761
9762 PR bootstrap/52041
9763 PR bootstrap/52039
9764 PR target/51974
9765 * ree.c (add_removable_extension): Change def_map argument
9766 to unsigned *, store in def_map 1 + offset into *insn_list vector
9767 instead of pointers into the vector.
9768 (find_removable_extensions): Adjust caller.
9769
9770 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
9771
9772 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
9773 Transform all "* quoted-c-code" to { c-code }.
9774 Remove redundant test for "optimize" in combine patterns.
9775 Move (include "avr-dimode.md") to end of file.
9776
9777 2012-01-30 Bin Cheng <bin.cheng@arm.com>
9778
9779 PR target/51835
9780 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9781 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
9782
9783 2012-01-30 Richard Guenther <rguenther@suse.de>
9784
9785 PR tree-optimization/52028
9786 * tree-loop-distribution.c (ldist_gen): Properly update
9787 virtual SSA form.
9788
9789 2012-01-30 Jakub Jelinek <jakub@redhat.com>
9790
9791 PR debug/52027
9792 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
9793 set_cur_line_info_table if not emitting debug info.
9794
9795 PR tree-optimization/52046
9796 * tree-vect-patterns.c (check_bool_pattern): Give up if
9797 a comparison could throw.
9798
9799 PR debug/52048
9800 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
9801
9802 2012-01-30 Richard Guenther <rguenther@suse.de>
9803
9804 PR tree-optimization/52045
9805 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
9806 SSA form if cfgcleanup did anything.
9807
9808 2012-01-30 Richard Guenther <rguenther@suse.de>
9809
9810 PR tree-optimization/52045
9811 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
9812 before computing final todo.
9813
9814 2012-01-30 Richard Guenther <rguenther@suse.de>
9815
9816 PR tree-optimization/51528
9817 * tree-sra.c (sra_modify_assign): Re-factor in preparation
9818 for PR51528 fix.
9819
9820 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
9821
9822 * df-problems.c (df_kill_notes): Check that the use refers
9823 to the note under examination.
9824
9825 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
9826
9827 PR target/51920
9828 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
9829 parameter and use short-lived pseudos.
9830 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
9831 (sparc_expand_vector_init): Const-ify local variables and adjust
9832 calls to above functions.
9833
9834 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
9835
9836 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
9837
9838 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
9839
9840 * doc/invoke.texi: Make usage of "compile time" and
9841 "run time"/"runtime" consistent throughout the file.
9842
9843 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
9844
9845 * config/alpha/alpha.c (alpha_option_override): Default to
9846 full IEEE compliance mode for Go language.
9847
9848 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
9849
9850 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
9851 (LINK_SSP_SPEC): Define.
9852
9853 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9854
9855 PR target/51871
9856 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
9857 stubs.
9858
9859 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
9860
9861 * doc/invoke.texi: Correct hyphenation of "floating point",
9862 "double precision", and related terminology throughout the file.
9863
9864 2012-01-28 Jakub Jelinek <jakub@redhat.com>
9865
9866 PR target/52006
9867 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
9868 arm_general_register_operand predicate for operand 2 instead of
9869 register_operand.
9870
9871 2012-01-27 Ian Lance Taylor <iant@google.com>
9872
9873 PR go/47656
9874 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
9875 * builtins.c (expand_builtin_init_trampoline): Add onstack
9876 parameter. Change caller.
9877 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
9878 * tree.c (build_common_builtin_nodes): Declare
9879 __builtin_init_heap_trampoline.
9880
9881 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
9882
9883 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
9884 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
9885 * config/avr/avr.c: Ditto.
9886 (avr_regnames): Remove because unused.
9887 * config/avr/avr.md (*cpse.ne): New peephole.
9888 (*cpse.eq): New peephole from former cpse peepholes.
9889
9890 2012-01-27 Michael Eager <eager@eagercon.com>
9891
9892 * config/microblaze.c (microblaze_emit_compare): Correct
9893 test after pcmp instruction.
9894
9895 2012-01-27 Richard Guenther <rguenther@suse.de>
9896
9897 PR tree-optimization/52020
9898 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
9899
9900 2012-01-27 Richard Guenther <rguenther@suse.de>
9901
9902 * ipa-pure-const.c (check_stmt): Clobbers do not make a
9903 function non-const/pure.
9904
9905 2012-01-27 Richard Guenther <rguenther@suse.de>
9906
9907 PR tree-optimization/50444
9908 * tree-sra.c (build_ref_for_offset): Properly adjust the
9909 MEM_REF type for unaligned accesses.
9910
9911 2012-01-27 Richard Guenther <rguenther@suse.de>
9912
9913 PR tree-optimization/50444
9914 * expr.c (mem_ref_refers_to_non_mem_p): New function.
9915 (expand_assignment): Use it. Properly handle misaligned
9916 bases when expanding stores to component references.
9917 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
9918 refactor that case.
9919
9920 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
9921
9922 PR middle-end/51389
9923 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
9924 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
9925 * tree-data-ref.c (find_data_references_in_loop): Make static.
9926 (compute_all_dependences): Change return type to bool. Bail out
9927 for too many datarefs in a loop. Move the hunk resetting the data
9928 dependences vector from ...
9929 (compute_data_dependences_for_loop): ... here. Account for
9930 compute_all_dependences returning false.
9931 (compute_data_dependences_for_bb): Likewise.
9932 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
9933 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
9934
9935 2012-01-27 Richard Guenther <rguenther@suse.de>
9936
9937 PR middle-end/51959
9938 * expr.c (store_field): Use the alias-set of the scratch memory
9939 for storing to it.
9940
9941 2012-01-27 Tom de Vries <tom@codesourcery.com>
9942
9943 PR tree-optimization/51990
9944 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9945 WITH_SIZE_EXPR.
9946 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
9947
9948 2012-01-27 Jakub Jelinek <jakub@redhat.com>
9949
9950 PR debug/52001
9951 * var-tracking.c (reverse_op): Don't add any reverse operation
9952 if V already has any constant locations.
9953
9954 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
9955
9956 * doc/invoke.texi: Correct usage of "command line" (noun)
9957 vs "command-line" (adjective) throughout.
9958
9959 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
9960
9961 * doc/invoke.texi (Language Independent Options): Move
9962 -Wcoverage-mismatch blurb from here....
9963 (Warning Options): ...to here.
9964
9965 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
9966
9967 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9968 Set rs6000_always_hint to false for 476.
9969
9970 2012-01-27 Matthias Klose <doko@ubuntu.com>
9971
9972 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
9973 system root.
9974 * incpath.c (add_standard_paths): Likewise.
9975
9976 2012-01-27 Richard Henderson <rth@redhat.com>
9977
9978 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9979 * config/m68k/sync.md (atomic_test_and_set): Rename from
9980 sync_test_and_setqi and adjust the operands.
9981 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
9982 and unconditionally enable.
9983
9984 2012-01-27 Richard Henderson <rth@redhat.com>
9985
9986 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9987 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
9988 (ldstub): Rename from ldstubqi.
9989 (ldstub<I24MODE>): Remove.
9990
9991 2012-01-27 Richard Henderson <rth@redhat.com>
9992
9993 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9994 * c-cppbuiltin.c (cpp_atomic_builtins): Define
9995 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
9996 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
9997 * doc/tm.texi: Rebuild.
9998
9999 2012-01-27 Richard Henderson <rth@redhat.com>
10000
10001 * optabs.c (gen_atomic_test_and_set): Remove default.
10002 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
10003
10004 2012-01-26 Jakub Jelinek <jakub@redhat.com>
10005
10006 PR rtl-optimization/51978
10007 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
10008 (combine_reaching_defs): Likewise.
10009 (struct re_info): Remove.
10010 (add_removable_extension): Remove x and data arguments,
10011 add insn, insn_list and def_map. Use the arguments directly
10012 instead of using struct re_info.
10013 (find_removable_extensions): Don't call add_removable_extension
10014 through note_stores, instead just call it with single_set
10015 result if non-NULL.
10016 (find_and_remove_re): Pass curr_cand->expr instead of
10017 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
10018
10019 2012-01-26 Michael Matz <matz@suse.de>
10020
10021 PR tree-optimization/46590
10022 * cfgexpand.c: Revert last change (r183305).
10023 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
10024 regs.
10025 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
10026 checking for emptiness.
10027
10028 2012-01-26 Jakub Jelinek <jakub@redhat.com>
10029
10030 PR middle-end/51895
10031 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
10032 non-addressable non-BLKmode base correctly.
10033
10034 2012-01-26 Michael Matz <matz@suse.de>
10035
10036 PR tree-optimization/48794
10037 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
10038 regions referenced from RESX/EH_DISPATCH.
10039
10040 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10041
10042 * config/s390/s390.h: Make BRANCH_COST an option.
10043 * config/s390/s390.opt: New option -mbranch-cost.
10044
10045 2012-01-26 Richard Henderson <rth@redhat.com>
10046
10047 Revert 2012-01-24 change:
10048 * trans-mem.c (requires_barrier): Do not instrument thread local
10049 variables and emit save/restore for them.
10050
10051 2012-01-25 Jakub Jelinek <jakub@redhat.com>
10052
10053 PR middle-end/51986
10054 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
10055 for pat == 0.
10056
10057 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
10058
10059 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
10060 ASM_OPERANDS.
10061
10062 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
10063
10064 PR target/49868
10065 Rename __pgm to __flash.
10066 Rename __pgm1 to __flash1.
10067 Rename __pgm2 to __flash2.
10068 Rename __pgm3 to __flash3.
10069 Rename __pgm4 to __flash4.
10070 Rename __pgm5 to __flash5.
10071 Rename __pgmx to __memx.
10072 * doc/extend.texi (AVR Named Address Spaces)
10073 Rename address space names as indicated above.
10074 * config/avr/avr.c (avr_addrspace): Ditto.
10075
10076 * config/avr/avr-protos.h
10077 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
10078 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
10079 * config/avr/predicates.md: Ditto.
10080 * config/avr/avr.c Ditto, and
10081 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
10082 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
10083
10084 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
10085 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
10086 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
10087 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
10088 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
10089 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
10090 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
10091 * config/avr/avr.c: Ditto.
10092 * config/avr/avr.md: Ditto.
10093
10094 2012-01-25 Jason Merrill <jason@redhat.com>
10095
10096 PR c++/51992
10097 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
10098
10099 2012-01-25 Jakub Jelinek <jakub@redhat.com>
10100
10101 PR tree-optimization/51987
10102 * tree-data-ref.c (get_references_in_stmt): Handle references in
10103 non-volatile GIMPLE_ASM.
10104
10105 2012-01-25 Richard Guenther <rguenther@suse.de>
10106
10107 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
10108 bases are dereferenced.
10109
10110 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
10111
10112 PR rtl-optimization/48374
10113 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
10114
10115 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
10116
10117 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
10118 compute_data_dependences_for_loop returns false.
10119 * tree-parloops.c (loop_parallel_p): Likewise.
10120
10121 2012-01-25 Richard Guenther <rguenther@suse.de>
10122
10123 * tree.h (get_pointer_alignment_1): Declare.
10124 * builtins.c (get_pointer_alignment_1): New function.
10125 (get_pointer_alignment): Use it.
10126
10127 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10128
10129 PR rtl-optimization/48308
10130 * combine.c (enum undo_kind): Add UNDO_LINKS.
10131 (struct undo): Add member l to other_contents and where.
10132 (do_SUBST_LINK): New.
10133 (SUBST_LINK): New.
10134 (try_combine): Handle LOG_LINKS for the dummy i1 case.
10135 (undo_all): Handle UNDO_LINKS.
10136
10137 2012-01-25 Richard Henderson <rth@redhat.com>
10138
10139 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
10140 mem inputs.
10141
10142 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10143
10144 * optabs.c (gen_atomic_test_and_set): Use each argument.
10145
10146 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10147
10148 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
10149 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
10150 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
10151 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
10152 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
10153 TARGET_PAIRED_SINGLE_FLOAT.
10154
10155 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10156
10157 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
10158 (in_struct, return_val): Remove MEM documentation.
10159 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
10160 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
10161 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
10162 and MEM_SCALAR.
10163 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10164 * cfgexpand.c (add_alias_set_conflicts): Likewise.
10165 * expr.c (store_field): Likewise.
10166 * function.c (assign_stack_temp_for_type): Likewise.
10167 * ifcvt.c (noce_try_cmove_arith): Likewise.
10168 * reload1.c (reload): Likewise.
10169 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
10170 (alpha_set_memflags): Likewise.
10171 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
10172
10173 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10174
10175 * rtl.h (true_dependence, canon_true_dependence): Remove varies
10176 parameter.
10177 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
10178 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
10179 (true_dependence_1, true_dependence, canon_true_dependence): Remove
10180 varies parameter.
10181 * cselib.c (cselib_rtx_varies_p): Delete.
10182 (cselib_invalidate_mem): Update call to canon_true_dependence.
10183 * dse.c (record_store, check_mem_read_rtx): Likewise.
10184 (scan_reads_nospill): Likewise.
10185 * cse.c (check_dependence): Likewise.
10186 (cse_rtx_varies_p): Delete.
10187 * expr.c (safe_from_p): Update call to true_dependence.
10188 * ira.c (validate_equiv_mem_from_store): Likewise.
10189 (memref_referenced_p): Likewise.
10190 * postreload-gcse.c (find_mem_conflicts): Likewise.
10191 * sched-deps.c (sched_analyze_2): Likewise.
10192 * store-motion.c (load_kills_store): Likewise.
10193 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
10194 * gcse.c (mems_conflict_for_gcse_p): Likewise.
10195 (compute_transp): Update call to canon_true_dependence.
10196
10197 2012-01-25 Richard Henderson <rth@redhat.com>
10198
10199 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
10200 (maybe_emit_atomic_test_and_set): New.
10201 (expand_sync_lock_test_and_set): Use it.
10202 (expand_atomic_test_and_set): Likewise.
10203 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
10204 the implementation; clarify implementation defined details.
10205 * doc/md.texi (atomic_test_and_set): Document.
10206
10207 2012-01-25 Richard Henderson <rth@redhat.com>
10208
10209 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
10210
10211 2012-01-25 Richard Henderson <rth@redhat.com>
10212
10213 PR target/51968
10214 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
10215 to effect no-op split.
10216
10217 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
10218
10219 PR lto/51698
10220 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
10221 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
10222 (BT_FN_VOID_PTR_INT_SIZE): New.
10223 (BT_FN_UINT_UINT_VAR): Remove.
10224 (BT_FN_UINT32_UINT32_VAR): New.
10225 (BT_FN_DOUBLE_VPTR): Remove.
10226 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
10227
10228 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
10229 (_ITM_changeTransactionMode): Same.
10230 (_ITM_memmoveRtWt): Change return type to void.
10231 (_ITM_memcpyRtWt): Same.
10232 (_ITM_memsetW): Same.
10233 (_ITM_RaRD): Change types to double.
10234 (_ITM_RD): Same.
10235 (_ITM_RaWD): Same.
10236 (_ITM_RfWD): Same.
10237
10238 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
10239
10240 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
10241 Patrick Marlier <patrick.marlier@gmail.com>
10242
10243 * trans-mem.c (requires_barrier): Do not instrument thread local
10244 variables and emit save/restore for them.
10245
10246 2012-01-24 Jason Merrill <jason@redhat.com>
10247
10248 PR c++/51812
10249 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
10250 output static aliases.
10251
10252 2012-01-24 Jakub Jelinek <jakub@redhat.com>
10253
10254 PR driver/47249
10255 * common.opt (-pie, -shared, pie, shared): Change from Common to
10256 Driver.
10257 * gcc.c (display_help): Display help for -pie and -shared.
10258
10259 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
10260
10261 PR target/49868
10262 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
10263 Remove note on size/offset limitation.
10264 (AVR Variable Attributes): Add example how to read data located
10265 with progmem. Refer to named address spaces.
10266 * doc/invoke.texi (AVR Options): Fix typo.
10267
10268 2012-01-24 Richard Guenther <rguenther@suse.de>
10269
10270 Forward-port to trunk
10271 2010-09-21 Jakub Jelinek <jakub@redhat.com>
10272
10273 PR middle-end/45678
10274 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
10275 op0 isn't sufficiently aligned and there is movmisalignM
10276 insn for mode, use it to load op0 into a temporary register.
10277
10278 2012-01-24 Jakub Jelinek <jakub@redhat.com>
10279
10280 PR target/51957
10281 * target.def (const_not_ok_for_debug_p): New hook.
10282 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
10283 documentation.
10284 * doc/tm.texi: Regenerated.
10285 * dwarf2out.c (const_ok_for_output_1): If
10286 targetm.const_not_ok_for_debug_p returns true, fail.
10287 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
10288 function.
10289 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
10290
10291 2012-01-23 Kai Tietz <ktietz@redhat.com>
10292
10293 PR target/51900
10294 * config/i386/predicates.md (symbolic_operand): Allow
10295 UNSPEC_PCREL as PIC expression for lea.
10296 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
10297 * config/i386/i386.c (ix86_delegitimize_address): Handle
10298 UNSPEC_PCREL for none-MEM, too.
10299
10300 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
10301
10302 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
10303 (ipa_tm_create_version_alias): Same.
10304
10305 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
10306
10307 PR libitm/51830
10308 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
10309 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
10310
10311 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
10312 Patrick Marlier <patrick.marlier@gmail.com>
10313 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10314
10315 PR lto/51916
10316 * lto-wrapper.c (run_gcc): Pass the LTO section name to
10317 simple_object_start_read.
10318
10319 2012-01-23 Richard Guenther <rguenther@suse.de>
10320
10321
10322 PR tree-optimization/51895
10323 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
10324 parameter decomposition into BLKmode components.
10325
10326 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
10327
10328 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
10329 fake variables for restrict-qualified pointers whose pointed-to type
10330 contains a placeholder.
10331
10332 2012-01-23 Richard Guenther <rguenther@suse.de>
10333
10334 PR tree-optimization/51949
10335 * ipa-split.c (execute_split_functions): Do not split malloc functions.
10336
10337 2012-01-23 Jakub Jelinek <jakub@redhat.com>
10338
10339 PR rtl-optimization/51933
10340 * ree.c (transform_ifelse): Return true right away if dstreg is
10341 already wider or equal to cand->mode.
10342 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
10343 (make_defs_and_copies_lists): Remove defs_list and copies_list
10344 arguments, add state argument, just truncate state->work_list
10345 instead of always allocating and freeing the vector. Assert that
10346 get_defs succeeds instead of returning 2. Changed return type to bool.
10347 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
10348 have ext_src_mode, see if it has been modified already with the
10349 right kind of extension and has been extended before from the
10350 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
10351 just return true. Remember the original mode in state->modified array.
10352 (combine_reaching_defs): Add state argument. Don't allocate and
10353 free here def_list, copied_list and vec vectors, instead just
10354 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
10355 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
10356 Add state variable, clear vectors in it, initialize state.modified
10357 if needed. Free all the vectors at the end and state.modified too.
10358 Don't skip a candidate if the extension expression has been modified.
10359
10360 2012-01-22 Douglas B Rupp <rupp@gnat.com>
10361
10362 PR target/47096
10363 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
10364 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
10365 (extra_options) interix.opt -> i386/interix.opt"
10366 (extra_objs):Add winnt-stubs.o
10367 * configure.ac: Add interix to target_os .comm on PE check.
10368 * configure: Regenerate.
10369 * config/interix3.h: Delete and move bits to..
10370 * config/interix.h: Delete and move bits to..
10371 * config/i386/i386-interix3.h: Delete and move bits to..
10372 * config/i386/i386-interix.h: ..here.
10373 (TARGET_CPU_DEFAULT): Remove redefinition.
10374 (TARGET_ASM_CONSTRUCTOR): Undefine.
10375 (SUBTARGET_SWITCHES): Define for ms-bitfields.
10376 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
10377 (PTRDIFF_TYPE): Define.
10378 (LONG_DOUBLE_TYPE_SIZE): Define.
10379 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
10380 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10381 (TARGET_SECTION_TYPE_FLAGS): Define.
10382 (ASM_DECLARE_FUNCTION_NAME): Define.
10383 (ASM_OUTPUT_EXTERNAL): Define.
10384 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
10385 (ASM_OUTPUT_ALIGNED_BSS): Define.
10386 (PCC_BITFIELD_TYPE_MATTERS): Define.
10387 (USE_CONST_SECTION): Define.
10388 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
10389 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10390 (SUPPORTS_ONE_ONLY): Remove.
10391 (I386_PE_STRIP_ENCODING): Define.
10392 * config/interix.opt: Delete and move bits to..
10393 * config/i386/interix.opt: ..here. New.
10394 (mpe-aligned-commons): Add.
10395 * config/i386/t-interix: Add copyright header.
10396 (winnt-stubs.o): Add rule.
10397
10398 2012-01-22 Jason Merrill <jason@redhat.com>
10399
10400 PR c++/51832
10401 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
10402 for extra name aliases.
10403
10404 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
10405
10406 PR rtl-optimization/51924
10407 * ree.c (combine_set_extension): Improve debugging message.
10408 (combine_reaching_defs): Likewise.
10409 (get_defs): Rename confusingly named variable.
10410 (find_and_remove_re): Skip a candidate if the extension expression has
10411 been modified.
10412
10413 2012-01-21 Robert Millan <rmh@gnu.org>
10414 Gerald Pfeifer <gerald@pfeifer.com>
10415
10416 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
10417 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
10418
10419 2012-01-20 Jakub Jelinek <jakub@redhat.com>
10420
10421 PR tree-optimization/51914
10422 * tree-vect-stmts.c (vectorizable_conversion): For
10423 cvt_type && modifier == WIDEN, put temporary with cvt_type
10424 at the beginning of vec_dsts and set vec_dest to temporary
10425 with vectype_out.
10426
10427 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
10428
10429 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
10430
10431 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
10432
10433 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
10434 * config/rs6000/rs6000.c: Likewise.
10435
10436 2012-01-20 Jakub Jelinek <jakub@redhat.com>
10437
10438 PR target/51915
10439 * config/arm/arm.c (arm_count_output_move_double_insns): Call
10440 output_move_double on a copy of operands array.
10441
10442 2012-01-20 Cary Coutant <ccoutant@google.com>
10443 Dodji Seketeli <dodji@redhat.com>
10444
10445 PR debug/45682
10446 * dwarf2out.c (copy_declaration_context): Return ref to parent
10447 of declaration DIE, if necessary.
10448 (remove_child_or_replace_with_skeleton): Add new parameter; update
10449 caller. Place skeleton DIE under parent DIE of original declaration.
10450 Move call to copy_declaration_context to here ...
10451 (break_out_comdat_types): ... from here.
10452
10453 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10454
10455 PR rtl-optimization/51856
10456 * reload.c (find_reloads_subreg_address): Set the address_reloaded
10457 flag to reloaded.
10458
10459 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10460
10461 PR target/51819
10462 * config/arm/arm.c (arm_print_operand): Correct output of alignment
10463 hints for neon loads and stores.
10464
10465 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
10466
10467 PR target/49868
10468 PR target/50887
10469 * doc/extend.texi (Named Address Spaces): Split into subsections.
10470 (AVR Named Address Spaces): New subsection.
10471 (M32C Named Address Spaces): New subsection.
10472 (RL78 Named Address Spaces): New subsection.
10473 (SPU Named Address Spaces): New subsection.
10474 (Variable Attributes): New anchor "AVR Variable Attributes".
10475 (AVR Variable Attributes): Rewrite and avoid wording
10476 "address space" in this context.
10477 * doc/invoke.texi (AVR Options): Rewrite and add documentation
10478 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
10479 (AVR Built-in Macros): New subsubsection therein.
10480 * doc/md.texi (AVR constraints): Remove "C04", "R".
10481
10482 2012-01-20 Richard Guenther <rguenther@suse.de>
10483
10484 PR tree-optimization/51903
10485 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
10486 when removing stmts.
10487
10488 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10489
10490 PR target/50313
10491 * config/arm/arm.c (arm_load_pic_register): Use
10492 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
10493 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
10494 (arm_pic_static_addr): Likewise.
10495 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
10496 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
10497 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
10498 (pic_load_addr_unified): New.
10499
10500 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
10501
10502 PR target/51106
10503 * function.c (instantiate_virtual_regs_in_insn): Use
10504 delete_insn_and_edges when removing a wrong asm insn.
10505
10506 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
10507
10508 PR rtl-optimization/40761
10509 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
10510 Add new member loop_num.
10511 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
10512 (ira_build): Remove the parameter.
10513
10514 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
10515 (ira.c): Do not build CFG loops for one region allocation. Remove
10516 argument from ira_build call.
10517
10518 * ira-build.c (init_loop_tree_node): New function.
10519 (create_loop_tree_nodes): Use it. Separate the case when CFG
10520 loops are not built.
10521 (more_one_region_p): Check current_loops.
10522 (finish_loop_tree_nodes): Separate the case when CFG loops are not
10523 built.
10524 (add_loop_to_tree): Process loop equal to NULL too.
10525 (form_loop_tree): Separate the case when CFG loops are not built.
10526 Use explicitly number for the root.
10527 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
10528 an assertion.
10529 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
10530 instead of loop->num.
10531 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
10532 (mark_all_loops_for_removal): Ditto.
10533 (remove_unnecessary_regions): Separate the case when CFG loops
10534 are not built.
10535 (ira_build): Remove the parameter. Use explicit number of regions
10536 when CFG loops are not built.
10537
10538 * ira-color.c (print_loop_title): Separate the case for the root node.
10539 Use loop_num instead of loop->num.
10540 (move_spill_restore): Use loop_num instead of loop->num.
10541
10542 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
10543 (change_loop): Ditto.
10544 (change_loop): Use loop_num instead of loop->num.
10545
10546 * ira-lives.c (process_bb_node_lives): Ditto.
10547
10548 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
10549
10550 * ira-conflicts.c (print_allocno_conflicts): Ditto.
10551
10552 2012-01-19 Jakub Jelinek <jakub@redhat.com>
10553
10554 PR libmudflap/40778
10555 * tree-mudflap.c (mf_artificial): New function.
10556 (execute_mudflap_function_ops, execute_mudflap_function_decls,
10557 mx_register_decls, mudflap_enqueue_decl): Use it.
10558
10559 PR target/51876
10560 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
10561 numbers in the insn pattern.
10562
10563 2012-01-19 Michael Matz <matz@suse.de>
10564
10565 PR tree-optimization/46590
10566 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
10567 use it in remembering which conflicts we already created.
10568 (add_scope_conflicts): Adjust call to above, (de)allocate helper
10569 bitmap.
10570
10571 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
10572
10573 PR lto/51280
10574 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
10575 (merge_and_complain): Same.
10576
10577 2012-01-19 Jakub Jelinek <jakub@redhat.com>
10578
10579 PR bootstrap/50237
10580 * config/initfini-array.h: Guard content of the header
10581 with #ifdef HAVE_INITFINI_ARRAY.
10582 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
10583 Add initfini-array.h to tm_file here.
10584 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
10585 * config.gcc: Don't add initfini-array.h to tm_file here.
10586 * configure: Regenerated.
10587
10588 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
10589
10590 PR rtl-optimization/51505
10591 * df-problems.c (df_kill_notes): New parameter live. Update comment.
10592 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
10593 (df_note_bb_compute): Update the call to df_kill_notes.
10594
10595 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
10596
10597 * trans-mem.c (requires_barrier): Remove call to is_global_var.
10598
10599 2012-01-18 Richard Guenther <rguenther@suse.de>
10600
10601 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
10602 of conversions to void *.
10603
10604 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10605 Richard Sandiford <rdsandiford@googlemail.com>
10606
10607 PR middle-end/50325
10608 PR middle-end/51192
10609 * optabs.h (simplify_expand_binop): Declare.
10610 * optabs.c (simplify_expand_binop): Make global.
10611 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
10612 endian targets if the source cannot be exactly covered by word
10613 mode chunks.
10614
10615 2012-01-17 Jakub Jelinek <jakub@redhat.com>
10616
10617 PR bootstrap/51872
10618 * hard-reg-set.h (struct hard_reg_set_container): New type.
10619 * target.h (struct hard_reg_set_container): Forward declare.
10620 * target.def (set_up_by_prologue): New target hook.
10621 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
10622 * doc/tm.texi: Regenerated.
10623 * function.c (thread_prologue_and_epilogue_insns): Change
10624 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
10625 Call targetm.set_up_by_prologue on it.
10626 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
10627 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
10628
10629 2012-01-17 Nick Clifton <nickc@redhat.com>
10630
10631 * config/rx/rx.c (rx_can_use_simple_return): New function.
10632 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
10633 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
10634
10635 2012-01-17 Richard Guenther <rguenther@suse.de>
10636
10637 PR middle-end/51782
10638 * expr.c (expand_assignment): Take address-space information
10639 from the address operand of MEM_REF and TARGET_MEM_REF.
10640 (expand_expr_real_1): Likewise.
10641
10642 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10643
10644 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
10645 reload dump is requested.
10646
10647 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
10648
10649 PR other/51165
10650 * trans-mem.c (requires_barrier): Call may_be_aliased.
10651
10652 2012-01-17 Jakub Jelinek <jakub@redhat.com>
10653
10654 PR tree-optimization/51877
10655 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
10656 call arguments and fndecls compare equal, instead return false if they
10657 don't. Return true only if lhs1 and lhs2 are either both NULL, or
10658 both SSA_NAMEs that are valueized the same, or they satisfy
10659 operand_equal_p.
10660
10661 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10662
10663 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
10664 Solaris 11+.
10665 * configure: Regenerate.
10666
10667 2012-01-16 Jan Hubicka <jh@suse.cz>
10668
10669 PR c/12245
10670 PR c++/14179
10671 * convert.c (convert_to_integer): Use fold_convert for
10672 converting an INTEGER_CST to integer type.
10673
10674 2012-01-16 Jason Merrill <jason@redhat.com>
10675
10676 PR c++/14179
10677 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
10678
10679 2012-01-16 Jakub Jelinek <jakub@redhat.com>
10680
10681 PR bootstrap/51860
10682 * config/s390/s390.c (s390_chunkify_start): Don't skip
10683 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
10684 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
10685 If insn is followed by NOTE_INSN_VAR_LOCATION or
10686 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
10687 Don't use location of note insns.
10688
10689 PR tree-optimization/51865
10690 * tree-inline.c (tree_function_versioning): Call remap_decl
10691 on DECL_RESULT whenever it has VOID_TYPE_P type.
10692
10693 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
10694
10695 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
10696 for calls to locally-binding MIPS16 functions if only the return
10697 type uses float regs.
10698
10699 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
10700 Richard Sandiford <rdsandiford@googlemail.com>
10701
10702 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
10703 (SYMBOL_32_HIGH): Likewise.
10704 (mips_output_tls_reloc_directive): Declare.
10705 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
10706 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
10707 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
10708 (mips_lo_relocs, mips_hi_relocs): Make extern.
10709 (mips16_stub_function): Move up file.
10710 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
10711 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
10712 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
10713 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
10714 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
10715 (mips_get_tp): Add MIPS16 support.
10716 (mips_legitimize_tls_address): Remove MIPS16 sorry().
10717 Generalize DTPREL and TPREL handling.
10718 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
10719 Add MIPS16 TLS support.
10720 (mips_output_tls_reloc_directive): New function.
10721 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
10722 * config/mips/predicates.md (symbolic_operand_with_high)
10723 (tls_reloc_operand): New predicates.
10724 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
10725 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
10726 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
10727 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
10728 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
10729 (*tls_get_tp_mips16_call_<mode>): Likewise.
10730
10731 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
10732
10733 PR rtl-optimization/51821
10734 * recog.c (peep2_find_free_register): Determine clobbered registers
10735 from insn pattern.
10736
10737 2012-01-14 Denis Chertykov <chertykov@gmail.com>
10738
10739 PR target/50925
10740 * config/avr/avr-protos.h: Revert change of 2012-01-09.
10741 * config/avr/avr.c: Likewise.
10742 * config/avr/avr.h: Likewise.
10743
10744 2012-01-13 Ian Lance Taylor <iant@google.com>
10745
10746 PR c++/50012
10747 * tree.h (TYPE_QUALS): Add cast to int.
10748 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
10749
10750 2012-01-13 Ian Lance Taylor <iant@google.com>
10751
10752 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
10753 comparing param_index to VEC_length result.
10754
10755 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
10756
10757 * c-decl.c: Do not include tree-mudflap.h
10758 * tree-optimize.c: Likewise.
10759 * Makefile.in: Update dependencies.
10760
10761 2012-01-13 Richard Guenther <rguenther@suse.de>
10762
10763 PR middle-end/8081
10764 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
10765 variable-sized result always use RSO.
10766
10767 2012-01-12 DJ Delorie <dj@redhat.com>
10768
10769 * cfgexpand.c (convert_debug_memory_address): Allow any valid
10770 pointer type, not just the default pointer type.
10771
10772 2012-01-09 Richard Henderson <rth@redhat.com>
10773 Denis Chertykov <chertykov@gmail.com>
10774
10775 PR target/50925
10776 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
10777 * config/avr/avr.c (avr_can_eliminate): Simplify.
10778 (avr_initial_elimination_offset): Likewise.
10779 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
10780 (expand_epilogue): Likewise.
10781 (avr_legitimize_address): Gut.
10782 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
10783 (avr_hard_regno_nregs): New.
10784 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
10785 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
10786 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
10787 add soft frame pointer.
10788 (CALL_USED_REGISTERS): Likewise.
10789 (REG_CLASS_CONTENTS): Likewise.
10790 (REGISTER_NAMES): Likewise.
10791 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
10792 (HARD_FRAME_POINTER_REGNUM): New.
10793 (FRAME_POINTER_REGNUM): Use soft frame pointer.
10794 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
10795 remove the HARD_FRAME_POINTER self-elimination.
10796
10797 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
10798
10799 PR target/51756
10800 * config/avr/avr.c (avr_encode_section_info): Test for absence of
10801 DECL_EXTERNAL when checking for initializers of progmem variables.
10802
10803 2012-01-12 Ira Rosen <irar@il.ibm.com>
10804
10805 PR tree-optimization/51799
10806 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
10807 that the last operation is a type demotion.
10808
10809 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
10810
10811 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
10812 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
10813
10814 2012-01-11 Jakub Jelinek <jakub@redhat.com>
10815
10816 PR bootstrap/51796
10817 * combine.c (distribute_notes): If i3 is a noreturn call,
10818 allow old_size to be equal to args_size and make sure the
10819 noreturn call gets REG_ARGS_SIZE note.
10820 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
10821 on noreturn calls even when the delta is 0.
10822
10823 2012-01-11 Nathan Sidwell <nathan@acm.org>
10824
10825 * gcov.c (STRING_SIZE): Remove.
10826 (generate_results): Erase annotations for source files with no
10827 coverage information.
10828 (read_line): New.
10829 (output_lines): Use it.
10830
10831 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
10832
10833 * gimple.h (gimplify_body): Remove first argument.
10834 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
10835 pointer set here, instead just pass DATA to walk_tree.
10836 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
10837 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
10838 (unvisit_body): Likewise, but with unmark_visited.
10839 (gimplify_body): Remove BODY_P argument and adjust.
10840 (gimplify_function_tree): Adjust call to gimplify_body.
10841 * omp-low.c (finalize_task_copyfn): Likewise.
10842
10843 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
10844
10845 * tree.h (build_function_decl_skip_args): Add boolean parameter.
10846 (build_function_type_skip_args): Delete.
10847 * tree.c (build_function_type_skip_args): Make static and add
10848 SKIP_RETURN parameter. Fix thinko in the handling of variants.
10849 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
10850 pass it to build_function_type_skip_args.
10851 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
10852 (tree_function_versioning): Likewise.
10853 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
10854 build_function_decl_skip_args.
10855 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
10856 and pass it to build_function_decl_skip_args/tree_function_versioning.
10857 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
10858 * ipa-inline-transform.c (save_inline_function_body): Likewise.
10859 * trans-mem.c (ipa_tm_create_version): Likewise.
10860 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
10861 * tree-inline.c (declare_return_variable): Remove always-true test.
10862 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
10863 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
10864 * ipa-split.c (split_function): Skip the return value for the split
10865 part if it doesn't return.
10866
10867 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10868
10869 PR tree-optimization/49642
10870 * ipa-split.c (forbidden_dominators): New variable.
10871 (check_forbidden_calls): New function.
10872 (dominated_by_forbidden): Likewise.
10873 (consider_split): Check for forbidden dominators.
10874 (execute_split_functions): Initialize and free forbidden
10875 dominators info; call check_forbidden_calls.
10876
10877 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10878
10879 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
10880
10881 2012-01-11 Nick Clifton <nickc@redhat.com>
10882
10883 * config/rx/rx.md (return): Define pattern.
10884
10885 2012-01-11 Richard Guenther <rguenther@suse.de>
10886
10887 * doc/extend.texi (malloc attribute): Adjust according to
10888 implementation.
10889
10890 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
10891 Patrick Marlier <patrick.marlier@gmail.com>
10892
10893 PR middle-end/51516
10894 * trans-mem.c (get_cg_data): Traverse aliases if requested.
10895 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
10896 (ipa_tm_note_irrevocable): Same.
10897 (ipa_tm_scan_irr_block): Same.
10898 (ipa_tm_decrement_clone_counts): Same.
10899 (ipa_tm_scan_irr_function): Same.
10900 (ipa_tm_create_version_alias): Same.
10901 (ipa_tm_create_version): Same.
10902 (ipa_tm_transform_calls_redirect): Same.
10903 (ipa_tm_transform_calls): Same.
10904 (ipa_tm_transform_transaction): Same.
10905 (ipa_tm_execute): Same.
10906
10907 2012-01-10 Richard Guenther <rguenther@suse.de>
10908
10909 PR middle-end/51806
10910 * opts.c (common_handle_option): Handle -Werror.
10911
10912 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
10913
10914 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
10915 operand number.
10916
10917 2012-01-10 Jason Merrill <jason@redhat.com>
10918
10919 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
10920 information.
10921
10922 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10923
10924 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
10925 supports R_386_TLS_GD_PLT reloc.
10926 (gcc_cv_as_ix86_tlsldmplt): Check if linker
10927 supports R_386_TLS_LDM_PLT reloc.
10928 * configure: Regenerate.
10929 * config.in: Regenerate.
10930
10931 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
10932
10933 PR target/49868
10934 Extend __pgmx semantics to linearize memory.
10935 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
10936 determine if code comes inline or from libgcc.
10937 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
10938 (movmem_qi, movmem_qi): Set constraint #2 to "n".
10939 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
10940 (movmemx_qi, movmemx_hi): New insns.
10941 (xload_<mode>_libgcc): Rewrite to new insn condition.
10942 (xload_<mode>): Remove insns.
10943 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
10944 cases that don't satisfy avr_xload_libgcc_p().
10945 (avr_addr_space_convert): Allow converting in any direction.
10946 (avr_addr_space_subset_p): Return always true.
10947 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
10948 (avr_emit_movmemhi): Ditto.
10949 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
10950 (avr_out_movmem): Ditto.
10951 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
10952 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
10953 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
10954 (avr_encode_section_info): Encode 'progmem' in symbol flags.
10955 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
10956
10957 2012-01-10 Richard Guenther <rguenther@suse.de>
10958
10959 PR tree-optimization/50913
10960 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
10961 Require data-refs to be representable by Graphite with respect
10962 to any loop nest.
10963
10964 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
10965
10966 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
10967 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
10968
10969 2012-01-10 Tom de Vries <tom@codesourcery.com>
10970
10971 PR rtl-optimization/51271
10972 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
10973 handling annulled branch.
10974
10975 2012-01-10 Richard Henderson <rth@redhat.com>
10976
10977 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
10978 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
10979 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
10980 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
10981 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
10982 arm_expand_vec_perm_const): New.
10983 * config/arm/arm-protos.h: Update.
10984 * config/arm/neon.md (UNSPEC_VCONCAT): New.
10985 (*neon_vswp<VDQX>): New.
10986 (neon_vcombine<VDX>): Use neon_split_vcombine.
10987 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
10988 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
10989 (vec_perm<VE>): New.
10990
10991 2012-01-10 Richard Henderson <rth@redhat.com>
10992
10993 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
10994 use it if reload_completed.
10995 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
10996 arm_output_asm_insn, arm_process_output_memory_barrier,
10997 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
10998 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
10999 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
11000 arm_process_output_sync_insn, arm_output_sync_insn,
11001 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
11002 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
11003 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
11004 (emit_unlikely_jump): New.
11005 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
11006 (arm_split_atomic_op): New.
11007 * config/arm/arm-protos.h: Update.
11008 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
11009 (struct arm_sync_generator): Remove.
11010 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
11011 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
11012 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
11013 (VUNSPEC_LL, VUNSPEC_SC): New.
11014 (sync_result, sync_memory, sync_required_value, sync_new_value,
11015 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
11016 (attr length): Don't use arm_sync_loop_insns.
11017 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
11018 (movsfcc, movdfcc): Likewise.
11019 * config/arm/constraints.md (Ua): New.
11020 * config/arm/prediates.md (mem_noofs_operand): New.
11021 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
11022 (sync_clobber, sync_t2_reqd): Remove.
11023 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
11024 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
11025 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
11026 (arm_sync_compare_and_swap<SIDI>): Remove.
11027 (arm_sync_compare_and_swap<NARROW>): Remove.
11028 (arm_sync_lock_test_and_set<SIDI>): Remove.
11029 (arm_sync_lock_test_and_set<NARROW>): Remove.
11030 (arm_sync_new_<syncop><SIDI>): Remove.
11031 (arm_sync_new_<syncop><NARROW>): Remove.
11032 (arm_sync_new_nand<SIDI>): Remove.
11033 (arm_sync_new_nand<NARROW>): Remove.
11034 (arm_sync_old_<syncop><SIDI>): Remove.
11035 (arm_sync_old_<syncop><NARROW>): Remove.
11036 (arm_sync_old_nand<SIDI>): Remove.
11037 (arm_sync_old_nand<NARROW>): Remove.
11038 (*memory_barrier): Merge arm_output_memory_barrier.
11039 (atomic_compare_and_swap<QHSD>): New.
11040 (atomic_compare_and_swap<NARROW>_1): New.
11041 (atomic_compare_and_swap<SIDI>_1): New.
11042 (atomic_exchange<QHSD>): New.
11043 (cas_cmp_operand, cas_cmp_str): New.
11044 (atomic_op_operand, atomic_op_str): New.
11045 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
11046 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
11047 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
11048 (arm_load_exclusive<NARROW>): New.
11049 (arm_load_exclusivesi, arm_load_exclusivedi): New.
11050 (arm_store_exclusive<QHSD>): New.
11051
11052 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
11053
11054 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
11055 reload patterns if -mvsx-scalar-memory.
11056
11057 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
11058 generated, even -mno-vsx-scalar-double was used.
11059 (vsx_xscvdpsp_scalar): Likewise.
11060 (vsx_xscvspdp_scalar2): Likewise.
11061
11062 2012-01-09 Tom de Vries <tom@codesourcery.com>
11063 Andrew Pinski <apinski@cavium.com>
11064
11065 PR debug/51471
11066 * reorg.c (fill_slots_from_thread): Don't speculate
11067 frame-related insns.
11068
11069 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11070
11071 * sched-int.h (bb_note): Move to...
11072 * basic-block.h: ...here.
11073 * haifa-sched.c (bb_note): Move to...
11074 * cfgrtl.c: ...here.
11075 * function.c (next_block_for_reg): New function.
11076 (move_insn_for_shrink_wrap): Likewise.
11077 (prepare_shrink_wrap): Rewrite to use the above.
11078
11079 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
11080
11081 * gimple.c (is_gimple_non_addressable): Remove.
11082 * gimple.h: Remove is_gimple_non_addressable.
11083 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
11084 is_gimple_non_addressable.
11085 * trans-mem.c (expand_assign_tm): Same.
11086
11087 2012-01-09 Richard Guenther <rguenther@suse.de>
11088
11089 PR tree-optimization/51775
11090 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
11091 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
11092
11093 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11094
11095 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
11096 tuning parameters.
11097 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
11098
11099 2012-01-09 Richard Guenther <rguenther@suse.de>
11100
11101 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
11102
11103 2012-01-08 Jan Hubicka <jh@suse.cz>
11104
11105 PR tree-optimize/51680
11106 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
11107 on when known_vals needs to be computed; cleanup.
11108
11109 2012-01-08 Jan Hubicka <jh@suse.cz>
11110
11111 PR tree-optimize/51694
11112 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
11113
11114 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
11115
11116 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
11117 for -std=c++98 and -std=c++11 too.
11118
11119 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
11120
11121 * cfgloop.c (cancel_loop): Add free() of bbs array.
11122
11123 2012-01-07 Jan Hubicka <jh@suse.cz>
11124
11125 PR tree-optimization/51600
11126 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
11127 that benefits small functions.
11128
11129 2012-01-07 Jan Hubicka <jh@suse.cz>
11130
11131 * ipa-inline.c (want_inline_small_function_p): Fix formating.
11132
11133 2012-01-07 Jan Hubicka <jh@suse.cz>
11134
11135 PR tree-optimization/51680
11136 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
11137 whose inlining reduce unit size.
11138
11139 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
11140
11141 PR bootstrap/51725
11142 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
11143 Add canonical node to containing_mem chain after the non-canonical
11144 one, even if there weren't any locs to propagate.
11145 (remove_useless_values): Keep only canonical values.
11146 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
11147 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
11148 canonicalize mem_chain elements that are not discarded.
11149
11150 2012-01-06 Jakub Jelinek <jakub@redhat.com>
11151
11152 PR target/47333
11153 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
11154 before emitting functions.
11155
11156 PR gcov-profile/50127
11157 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
11158 clear_aux_for_blocks.
11159
11160 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
11161
11162 PR debug/51746
11163 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
11164
11165 2012-01-06 Arnaud Charlet <charlet@adacore.com>
11166
11167 * c-decl.c (ext_block): Moved up.
11168 (collect_all_refs, for_each_global_decl): Take ext_block into account.
11169
11170 2012-01-06 Han Shen <shenhan@google.com>
11171
11172 Translate built-in include paths for sysroot.
11173 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
11174 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
11175
11176 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
11177 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
11178
11179 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
11180 control whether sysroot should be prepended to gxx include dir.
11181
11182 * configure: Regenerate.
11183
11184 2012-01-06 Torvald Riegel <triegel@redhat.com>
11185
11186 PR rtl-optimization/51771
11187 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
11188 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
11189
11190 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
11191
11192 PR tree-optimization/51315
11193 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
11194 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
11195
11196 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
11197
11198 PR target/51681
11199 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
11200 for shrp pattern. Correctly handle and fixup shift variable.
11201 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
11202
11203 2012-01-05 Jakub Jelinek <jakub@redhat.com>
11204
11205 PR debug/51762
11206 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
11207 note when !ACCUMULATE_OUTGOING_ARGS.
11208
11209 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
11210
11211 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
11212 condition.
11213 (extract_range_from_unary_expr_1): Avoid useless computations.
11214
11215 2012-01-05 Jakub Jelinek <jakub@redhat.com>
11216
11217 PR rtl-optimization/51767
11218 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
11219 of jump_block and add an extra edge for degenerated asm gotos.
11220
11221 PR middle-end/51768
11222 * stmt.c (check_unique_operand_names): Don't ICE during error
11223 reporting if i is from labels chain.
11224
11225 PR middle-end/44777
11226 * profile.c (branch_prob): Split bbs that have exit edge
11227 and need a fake entry edge too.
11228
11229 2012-01-05 Jan Hubicka <jh@suse.cz>
11230
11231 PR middle-end/49710
11232 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
11233 unlooping loops.
11234
11235 2012-01-05 Richard Guenther <rguenther@suse.de>
11236
11237 PR lto/50490
11238 * tree-streamer-out.c (write_ts_optimization): New function.
11239 (streamer_write_tree_body): Call it.
11240 * tree-streamer-in.c (lto_input_ts_optimization): New function.
11241 (streamer_read_tree_body): Call it.
11242 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
11243
11244 2012-01-05 Jakub Jelinek <jakub@redhat.com>
11245
11246 PR middle-end/51761
11247 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
11248 * gimplify.c (gimplify_cleanup_point_expr): Save and set
11249 in_cleanup_point_expr before gimplify_stmt call and restore it
11250 afterwards.
11251 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
11252 in_cleanup_point_expr is false.
11253
11254 2012-01-05 Richard Guenther <rguenther@suse.de>
11255
11256 PR middle-end/51764
11257 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
11258 to c.opt.
11259 * toplev.c (process_options): Reject combining mudflap and LTO.
11260 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
11261
11262 2012-01-05 Richard Guenther <rguenther@suse.de>
11263
11264 PR tree-optimization/51760
11265 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
11266 not VARYING.
11267 (bit_value_unop): Handle UNDEFINED operands.
11268 (bit_value_binop): Likewise.
11269
11270 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
11271
11272 * config/avr/avr.c (avr_replace_prefix): Remove.
11273 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
11274 (avr_asm_function_rodata_section): Ditto.
11275 (avr_asm_select_section): Ditto.
11276
11277 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11278
11279 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
11280 insertion.
11281
11282 2012-01-05 Jakub Jelinek <jakub@redhat.com>
11283
11284 PR bootstrap/51648
11285 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
11286 calls that have any non-fake successor edges.
11287
11288 PR debug/51746
11289 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
11290
11291 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
11292
11293 PR tree-optimization/51624
11294 * tree-sra.c (build_ref_for_model): When replicating a chain of
11295 COMPONENT_REFs, stop as soon as the offset would become negative.
11296
11297 2012-01-04 Jakub Jelinek <jakub@redhat.com>
11298
11299 PR debug/51695
11300 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
11301 in .debug_loc on the floor.
11302
11303 2012-01-04 Andrew Pinski <apinski@cavium.com>
11304
11305 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
11306
11307 2012-01-04 Andrew Pinski <apinski@cavium.com>
11308 Adam Nemet <anemet@caviumnetworks.com>
11309
11310 * config/mips/mips.md (size): Add SI and DI.
11311 (SIZE): New mode attribute.
11312 (U): New code attribute.
11313 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
11314 (mips_lbux_<mode>): Delete.
11315 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
11316 (mips_lhx): Use gen_mips_lhx_extsi.
11317 (mips_lhx_<mode>): Delete.
11318 (mips_lwx): Delete.
11319 (mips_l<size>x): New expand.
11320 (mips_lwx_<mode>): Delete.
11321 (mips_l<GPR:size>x_<P:mode>): New pattern.
11322 (*mips_lw<u>x_<P:mode>_ext): Likewise.
11323 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
11324 * config/mips/mips.c (mips_lx_address_p): New function.
11325 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
11326 (dsp64): New availability predicate.
11327 (mips_builtins): Add an entry for __builtin_mips_ldx.
11328 * config/mips/mips.h (ISA_HAS_LBX): New define.
11329 (ISA_HAS_LBUX): Likewise.
11330 (ISA_HAS_LHX): Likewise.
11331 (ISA_HAS_LHUX): Likewise.
11332 (ISA_HAS_LWX): Likewise.
11333 (ISA_HAS_LWUX): Likewise.
11334 (ISA_HAS_LDX): Likewise.
11335 * doc/extend.texi (__builtin_mips_ldx): Document.
11336
11337 2012-01-04 Tristan Gingold <gingold@adacore.com>
11338
11339 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
11340 when long pointers are used.
11341 * config.build (*-*-*vms*): Handle all OpenVMS targets.
11342 (alpha64-dec-*vms*, alpha*-dec-*vms*)
11343 (ia64-hp-*vms*): Remove.
11344 * config/vms/xm-vms64.h: Delete.
11345
11346 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
11347
11348 PR middle-end/51472
11349 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
11350
11351 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
11352
11353 * opts.c (finish_options): Remove duplicate sorry.
11354
11355 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
11356
11357 PR middle-end/51696
11358 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
11359 correctly.
11360
11361 2012-01-04 Richard Guenther <rguenther@suse.de>
11362
11363 PR middle-end/51750
11364 * tree.c (size_low_cst): New function.
11365 * tree.h (size_low_cst): Declare.
11366 * fold-const.c (fold_comparison): Use it to extract the low
11367 part of the POINTER_PLUS_EXPR offset.
11368
11369 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
11370
11371 Fix clearing ZERO_REG
11372 * config/avr/avr.md (cc): Add alternative "ldi".
11373 (movqi_insn): Use it in cc attribute.
11374 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
11375 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
11376 (output_reload_insisf): Use ZERO_REG to pre-clear register.
11377
11378 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11379
11380 * configure: Regenerate.
11381
11382 2012-01-04 Richard Guenther <rguenther@suse.de>
11383
11384 PR tree-optimization/49651
11385 * tree-ssa-structalias.c (type_can_have_subvars): New function.
11386 (var_can_have_subvars): Use it.
11387 (get_constraint_for_1): Only consider subfields if there can be any.
11388
11389 2012-01-03 Jakub Jelinek <jakub@redhat.com>
11390
11391 PR bootstrap/51725
11392 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
11393 to its new canonical_cselib_val and the cselib_val was in
11394 first_containing_mem chain, but the canonical_cselib_val was not,
11395 add the latter into the chain.
11396 (cselib_invalidate_mem): Compare canonical_cselib_val of
11397 addr_list chain elt with v.
11398
11399 PR pch/51722
11400 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
11401 dwarf2out_undef): Allocate e.info using ggc_strdup instead
11402 of xstrdup.
11403 (output_macinfo_op): Don't ggc_strdup fd->filename.
11404 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
11405 then ggc_strdup it. Don't free inc->info or cur->info.
11406 (output_macinfo): Don't free ref->info or file->info.
11407
11408 2012-01-03 Ira Rosen <irar@il.ibm.com>
11409
11410 PR tree-optimization/51269
11411 * tree-vect-loop-manip.c (set_prologue_iterations): Make
11412 first_niters a pointer.
11413 (slpeel_tree_peel_loop_to_edge): Likewise.
11414 (vect_do_peeling_for_loop_bound): Update call to
11415 slpeel_tree_peel_loop_to_edge.
11416 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
11417 here. Remove it from the parameters list.
11418 (vect_do_peeling_for_alignment): Update calls and compute
11419 wide_prolog_niters.
11420
11421 2012-01-03 Richard Guenther <rguenther@suse.de>
11422
11423 PR tree-optimization/51070
11424 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
11425 Properly handle calls.
11426
11427 2012-01-03 Richard Guenther <rguenther@suse.de>
11428
11429 PR tree-optimization/51692
11430 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
11431 the LHS of allocation stmts.
11432
11433 2012-01-03 Olivier Hainque <hainque@adacore.com>
11434
11435 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
11436
11437 2012-01-03 Olivier Hainque <hainque@adacore.com>
11438
11439 * collect2.c (main): In AIX specific computations for vector
11440 insertions, use CONST_CAST2 to cast from char ** to const char **.
11441
11442 2012-01-03 Richard Guenther <rguenther@suse.de>
11443
11444 PR debug/51650
11445 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
11446 the context of a limbo DIE when it does not already exist.
11447
11448 2012-01-03 Jakub Jelinek <jakub@redhat.com>
11449
11450 PR tree-optimization/51719
11451 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
11452 but direct call is, clear direct call's lhs and don't add fallthrough
11453 edge from dcall_bb to join_bb and PHIs.
11454
11455 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11456
11457 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
11458 the instructions emitted by the pattern.
11459 ("*TDC_insn_<mode>"): Add comment.
11460
11461 2012-01-03 Richard Guenther <rguenther@suse.de>
11462
11463 PR middle-end/51730
11464 * fold-const.c (fold_comparison): Properly canonicalize
11465 tree offset and HOST_WIDE_INT bit position.
11466
11467 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
11468
11469 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
11470 operands for extzv pattern.
11471
11472 2012-01-02 Jakub Jelinek <jakub@redhat.com>
11473
11474 PR bootstrap/51725
11475 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
11476 on mem_elt first.
11477
11478 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
11479
11480 * doc/invoke.texi (-flto and related options): Copy-edit.
11481
11482 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11483
11484 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
11485
11486 2012-01-02 Jakub Jelinek <jakub@redhat.com>
11487
11488 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
11489 New patterns.
11490
11491 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11492
11493 * expr.h (move_by_pieces_ninsns): Declare.
11494 * expr.c (move_by_pieces_ninsns): Make external.
11495 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
11496 (mips_store_by_pieces_p): Likewise.
11497 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
11498 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
11499 * config/mips/mips.c (mips_move_by_pieces_p): New function.
11500 (mips_store_by_pieces_p): Likewise.
11501
11502 2012-01-02 Jakub Jelinek <jakub@redhat.com>
11503
11504 * passes.c (register_one_dump_file): Free full_name.
11505
11506 * reload1.c (reload): Don't allocate reg_max_ref_width here.
11507 (calculate_elim_costs_all_insns): Free offsets_at and
11508 offsets_known_at at the end and clear the pointers.
11509
11510 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
11511
11512 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
11513 this option introduced in r180739.
11514
11515 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
11516
11517 PR target/51345
11518 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
11519 (tmake_file target=avr): Add avr/t-multilib.
11520
11521 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
11522 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
11523 * config/avr/genmultilib.awk: New file.
11524 * config/avr/t-multilib: New auto-generated file.
11525 * config/avr/multilib.h: New auto-generated file.
11526 * config/avr/t-avr (AVR_MCUS): New variable.
11527 (genopt.sh): Use it.
11528 (s-mlib): Depend on t-multilib.
11529 (t-multilib, multilib.h): New dependencies.
11530 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
11531 (MULTILIB_OPTIONS): Remove.
11532 (MULTILIB_MATCHES): Remove.
11533 (MULTILIB_DIRNAMES): Remove.
11534 (MULTILIB_EXCEPTIONS): Remove:
11535 * config/avr/genopt.sh: Don't use hard coded file name;
11536 pass AVR_MCUS from t-avr instead.
11537
11538 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
11539
11540 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
11541
11542 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
11543
11544 Implement light-weight DImode support.
11545 * config/avr/avr-dimode.md: New file.
11546 * config/avr/avr.md: Include it.
11547 (adjust_len): Add plus64, compare64.
11548 (HIDI): Remove code iterator.
11549 (code_stdname): New code attribute.
11550 (rotx, rotsmode): Remove DI.
11551 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
11552 as code iterator.
11553 * config/avr/avr-protos.h (avr_have_dimode): New.
11554 (avr_out_plus64, avr_out_compare64): New.
11555 * config/avr/avr.c (avr_out_compare): Handle DImode.
11556 (avr_have_dimode): New variable definition and initialization.
11557 (avr_out_compare64, avr_out_plus64): New functions.
11558 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
11559 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
11560 (avr_compare_pattern): Skip DImode comparisons.
11561
11562 2012-01-02 Revital Eres <revital.eres@linaro.org>
11563
11564 * ddg.c (def_has_ccmode_p): New function.
11565 (add_cross_iteration_register_deps,
11566 create_ddg_dep_from_intra_loop_link): Call it.
11567
11568 2012-01-02 Richard Guenther <rguenther@suse.de>
11569
11570 PR other/51679
11571 * invoke.texi (fassociative-math): Remove spurious paranthesis.
11572
11573 2012-01-01 Jakub Jelinek <jakub@redhat.com>
11574
11575 * gcc.c (process_command): Update copyright notice dates.
11576 * gcov.c (print_version): Likewise.
11577 * gcov-dump.c (print_version): Likewise.
11578 * mips-tfile.c (main): Likewise.
11579 * mips-tdump.c (main): Likewise.
11580
11581 2012-01-01 Ira Rosen <irar@il.ibm.com>
11582
11583 PR tree-optimization/51704
11584 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
11585 a use is inside the basic block or loop before accessing its vect info.
11586
11587 2012-01-01 Jan Hubicka <jhjh@suse.cz>
11588
11589 PR rtl-optimization/51069
11590 * cfgloopmanip.c (remove_path): Removing path making irreducible
11591 region unconditional makes BB part of the region.
11592
11593 2012-01-01 Jakub Jelinek <jakub@redhat.com>
11594
11595 PR tree-optimization/51683
11596 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
11597 calls with side-effects.
11598 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11599 \f
11600 Copyright (C) 2012 Free Software Foundation, Inc.
11601
11602 Copying and distribution of this file, with or without modification,
11603 are permitted in any medium without royalty provided the copyright
11604 notice and this notice are preserved.