ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
[gcc.git] / gcc / ChangeLog
1 2011-06-10 Jan Hubicka <jh@suse.cz>
2
3 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
4 (ipcp_initialize_node_lattices): Do not deal with aliases; Do not try to
5 propagate through thunks.
6 (ipcp_change_tops_to_bottom): Do not deal with aliases.
7
8 2011-06-10 Jan Hubicka <jh@suse.cz>
9
10 * ipa-prop.c (ipa_write_node_info): Stream jump functions for indirect
11 calls.
12 (ipa_read_node_info): Likewise.
13
14 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15
16 PR lto/49302
17 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
18 (build_and_insert_call): Likewise.
19 (build_and_insert_ref): New.
20 (gimple_expand_builtin_pow): Minor cleanup.
21 (gimple_expand_builtin_cabs): New.
22 (execute_cse_sincos): Add case for BUILT_IN_CABS.
23
24 2011-06-10 Jan Hubicka <jh@suse.cz>
25
26 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
27 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
28 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
29 (ipcp_propagate_stage): Skip aliases when propagating.
30 (ipcp_need_redirect_p): Skip aliases.
31 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
32 collect_callers_of_node.
33 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
34 for aliases.
35 (ipa_compute_jump_functions): Look through aliases.
36
37 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38
39 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
40
41 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
42
43 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
44 Adjust comments.
45 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
46
47 2011-06-10 Jan Hubicka <jh@suse.cz>
48
49 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
50 Update call of gimple_get_virt_method_for_binfo.
51 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
52 refuse_thunks parameter.
53 (gimple_fold_call): Update.
54 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
55
56 2011-06-10 Jan Hubicka <jh@suse.cz>
57
58 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
59 (not_all_callers_have_enough_arguments_p): ... this one; turn into
60 worker for cgraph_for_node_and_aliases.
61 (convert_callers_for_node): Break out from ...
62 (convert_callers): ... here.
63 (modify_function): Use collect_callers_of_node.
64 (ipa_early_sra): Use cgraph_for_node_and_aliases.
65
66 2011-06-10 Richard Guenther <rguenther@suse.de>
67
68 PR tree-optimization/49361
69 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
70 when not already in gimple form.
71
72 2011-06-10 Richard Guenther <rguenther@suse.de>
73
74 PR bootstrap/49344
75 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
76 FOR_EACH_PHI_OR_STMT_USE.
77
78 2011-06-10 Jan Hubicka <jh@suse.cz>
79
80 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
81 (clone_inlined_nodes): ... here.
82 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
83 to real destination prior inlining.
84 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
85 can_early_inline_edge_p, want_early_inline_function_p,
86 want_early_inline_function_p, want_inline_small_function_p,
87 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
88 edge_badness, update_all_callee_keys, lookup_recursive_calls,
89 add_new_edges_to_heap, inline_small_functions, flatten_function,
90 inline_always_inline_functions, early_inline_small_functions): Use
91 cgraph_function_or_thunk_node.
92 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
93 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
94 (do_estimate_edge_growth_1): Break out from ...
95 (do_estimate_growth) ... here; walk aliases.
96 (inline_generate_summary): Skip aliases.
97
98 2011-06-10 Richard Guenther <rguenther@suse.de>
99
100 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
101 Scan stmts forward when combining, visit inserted stmts when
102 a stmt was changed.
103
104 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
105
106 * tree.h (error_operand_p): Add.
107 * dbxout.c (dbxout_type_fields): Use the latter.
108 * c-decl.c (add_stmt): Likewise.
109 * gimplify.c (omp_add_variable, omp_notice_variable,
110 gimplify_scan_omp_clauses): Likewise.
111
112 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
113
114 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
115 when a value is actually passed in regs.
116
117 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
118 Laurent Rougé <laurent.rouge@menta.fr>
119
120 * doc/invoke.texi (SPARC options): Add -mflat.
121 * config/sparc/sparc.opt: Likewise.
122 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
123 (sparc_flat_expand_prologue): Declare.
124 (sparc_flat_expand_epilogue): Likewise.
125 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
126 (CPP_ENDIAN_SPEC): Replace with...
127 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
128 (CPP_SPEC): Adjust to above change.
129 (EXTRA_SPECS): Likewise.
130 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
131 (INCOMING_REGNO): Likewise.
132 (OUTGOING_REGNO): Likewise.
133 (LOCAL_REGNO): Likewise.
134 (SETUP_FRAME_ADDRESSES): Likewise.
135 (FIXED_REGISTERS): Set 0 for %fp.
136 (CALL_USED_REGISTERS): Likewise.
137 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
138 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
139 (RETURN_ADDR_REGNUM): Define.
140 (RETURN_ADDR_RTX): Use it.
141 (INCOMING_RETURN_ADDR_REGNUM): Define.
142 (INCOMING_RETURN_ADDR_RTX): Use it.
143 (DWARF_FRAME_RETURN_COLUMN): Likewise.
144 (EH_RETURN_REGNUM): Define.
145 (EH_RETURN_STACKADJ_RTX): Use it.
146 (EH_RETURN_HANDLER_RTX): Delete.
147 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
148 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
149 Delete.
150 (struct machine_function): Add frame_size, apparent_frame_size,
151 frame_base_reg, frame_base_offset, n_global_fp_regs and
152 save_local_in_regs_p fields.
153 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
154 sparc_frame_base_offset, sparc_n_global_fp_regs,
155 sparc_save_local_in_regs_p): New macros.
156 (sparc_option_override): Error out if -fcall-saved-REG is specified
157 for Out registers.
158 (eligible_for_restore_insn): Fix formatting.
159 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
160 (eligible_for_sibcall_delay): Likewise.
161 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
162 (sparc_legitimate_address_p): Adjust to above change.
163 (save_global_or_fp_reg_p): New predicate.
164 (return_addr_reg_needed_p): Likewise.
165 (save_local_or_in_reg_p): Likewise.
166 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
167 (SORR_SAVE, SORR_RESTORE): Delete.
168 (sorr_pred_t): New typedef.
169 (sorr_act_t): New enum.
170 (save_or_restore_regs): Rename to...
171 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
172 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
173 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
174 mechanism. Add CFI information for double-word saves in 32-bit mode.
175 (emit_adjust_base_to_offset): New function extracted from...
176 (emit_save_or_restore_regs): ...this. Rename the rest to...
177 (emit_save_or_restore_regs_global_fp_regs): ...this.
178 (emit_save_or_restore_regs_local_in_regs): New function.
179 (gen_create_flat_frame_[123]): New functions.
180 (sparc_expand_prologue): Use SIZE local variable. Adjust.
181 (sparc_flat_expand_prologue): New function.
182 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
183 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
184 (sparc_flat_expand_epilogue): New function.
185 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
186 (output_return): Likewise.
187 (output_sibcall): Likewise.
188 (sparc_output_mi_thunk): Likewise.
189 (sparc_frame_pointer_required): Likewise.
190 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
191 function optimization.
192 * config/sparc/sparc.md (flat): New attribute.
193 (prologue): Add TARGET_FLAT handling.
194 (save_register_window): Disable if TARGET_FLAT.
195 (create_flat_frame_[123]): New patterns.
196 (epilogue): Add TARGET_FLAT handling.
197 (sibcall_epilogue): Likewise.
198 (eh_return): New expander.
199 (eh_return_internal): New insn and splitter.
200 (return_internal): Add TARGET_FLAT handling.
201 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
202 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
203 (nonlocal_goto): Add TARGET_FLAT handling.
204 * config/sparc/t-elf: Add -mflat multilib.
205 * config/sparc/t-leon: Likewise.
206
207 2011-06-10 Jan Hubicka <jh@suse.cz>
208
209 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
210 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
211 (self_recursive_p): Use cgraph_function_node.
212 (propagate_pure_const): Likewise.
213 (propagate_nothrow): Likewise.
214 * ipa-reference.c (ipa_reference_get_not_read_global): Use
215 cgraph_function_node.
216 (propagate_bits): Likewise.
217 (propagate): Likewise.
218
219 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
220 Richard Earnshaw <rearnsha@arm.com>
221
222 * config/arm/arm.c (const_ok_for_op): Check to see
223 if mvn can be used.
224 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
225 (*thumb2_movdi_vfp): Delete.
226 (*arm_movdi_vfp_cortexa8): Delete.
227 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
228 (*movdi_vfp_cortexa8): Likewise.
229
230 2011-06-10 Richard Guenther <rguenther@suse.de>
231
232 * stor-layout.c (initialize_sizetypes): Give names to all
233 sizetype kinds.
234
235 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
236
237 PR tree-optimization/49318
238 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
239 irrelevant pattern statements.
240
241 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
242
243 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
244
245 PR bootstrap/49354
246 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
247 to last assignment.
248
249 2011-06-09 Jan Hubicka <jh@suse.cz>
250
251 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
252 do not recompute reachable flag.
253 (cgraph_finalize_function, cgraph_analyze_functions): Set
254 redefined_extern_inline here.
255
256 2011-06-09 Jan Hubicka <jh@suse.cz>
257
258 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
259 (cgraph_only_called_directly_p): ... this one; bring offline.
260 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
261 varpool_used_from_object_file_p): Drop names from the declaratoin.
262 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
263 collect_callers_of_node): New.
264 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
265 (cgraph_edge_recursive_p): Use cgraph_function_node.
266 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
267 (cgraph_node_cannot_be_local_p_1): Break out from ...
268 (cgraph_node_can_be_local_p): ... here; walk aliases.
269 (cgraph_for_node_thunks_and_aliases): New function.
270 (cgraph_for_node_and_aliases): New function.
271 (cgraph_make_node_local_1): Break out from ...
272 (cgraph_make_node_local) ... here; use cgraph_for_node_thunks_and_aliases.
273 (cgraph_set_nothrow_flag_1): Break out from ...
274 (cgraph_set_nothrow_flag) ... here; use cgraph_for_node_thunks_and_aliases.
275 (cgraph_set_const_flag_1): Break out from ...
276 (cgraph_set_const_flag) ... here; use cgraph_for_node_thunks_and_aliases.
277 (cgraph_set_pure_flag_1): Break out from ...
278 (cgraph_set_pure_flag) ... here; use cgraph_for_node_thunks_and_aliases.
279 (cgraph_propagate_frequency_1): Break out from ...
280 (cgraph_propagate_frequency) ... here; use cgraph_for_node_thunks_and_aliases.
281 (cgraph_used_from_object_file_p): Do not care about aliases.
282 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p): New functions.
283 (collect_callers_of_node_1, collect_callers_of_node): New functions.
284
285 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
286
287 PR rtl-optimization/49154
288 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
289 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
290 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
291 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
292 * config/cris/cris.h (cris_register_move_cost): Remove
293 !TARGET_V32 code. Tweak comments.
294
295 2011-06-09 Jan Hubicka <jh@suse.cz>
296
297 * cgraphbuild.c (record_eh_tables): Mark personality function as having
298 address taken.
299
300 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
301
302 PR rtl-optimization/49154
303 * ira-costs.c (setup_regno_cost_classes_by_mode): If there
304 already is a matching slot in the hashtable, assign it to
305 classes_ptr.
306
307 PR rtl-optimization/49154
308 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
309 register classes.
310 * doc/tm.texi: Regenerate.
311
312 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
313
314 PR target/49307
315 * config/sh/sh.md (UNSPEC_CHKADD): New.
316 (chk_guard_add): New define_insn_and_split.
317 (symGOT_load): Use chk_guard_add instead of blockage.
318
319 2011-06-09 Kai Tietz <ktietz@redhat.com>
320
321 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
322
323 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
324
325 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
326
327 2011-06-09 Wei Guozhi <carrot@google.com>
328
329 PR target/46975
330 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
331 (peephole2 for conditional move): Generate 16 bit instructions.
332
333 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
334
335 * config/i386/i386.md (*movdi_internal_rex64): Merge
336 alternatives 6 and 8.
337
338 2011-06-09 David Li <davidxl@google.com>
339
340 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
341 * passes.c (passr_eq): New function.
342 (create_pass_tab): New function.
343 (pass_traverse): New function.
344 (dump_one_pass): New function.
345 (dump_pass_list): New function.
346 (dump_passes): New function.
347
348 2011-06-09 David Li <davidxl@google.com>
349
350 * tree-complex.c (tree_lower_complex): Gate cleanup.
351 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
352 (execute_optimize_stdarg): Ditto.
353 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
354 (execute_cleanup_eh_1): Ditto.
355 (execute_cleanup_eh): Ditto.
356 * gcse.c (gate_rtl_pre): Ditto.
357 (execute_rtl_pre): Ditto.
358 * except.c (finish_eh_generation): Ditto.
359 (convert_to_eh_region_ranges): Ditto.
360 * cprop.c (one_cprop_pass): Ditto.
361
362 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
363
364 PR target/48673
365 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
366 in all basic blocks.
367
368 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369
370 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
371 (HAVE_ENABLE_EXECUTE_STACK): Define.
372 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
373 (HAVE_ENABLE_EXECUTE_STACK): Define.
374 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
375 (HAVE_ENABLE_EXECUTE_STACK): Define.
376 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
377 (ENABLE_EXECUTE_STACK): Remove.
378 (HAVE_ENABLE_EXECUTE_STACK): Define.
379 [IN_LIBGCC2]: Don't include <windows.h>.
380 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
381 (HAVE_ENABLE_EXECUTE_STACK): Define.
382 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
383 (HAVE_ENABLE_EXECUTE_STACK): Define.
384 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
385 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
386 (HAVE_ENABLE_EXECUTE_STACK): Define.
387 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
388 (HAVE_ENABLE_EXECUTE_STACK): Define.
389 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
390 (HAVE_ENABLE_EXECUTE_STACK): Define.
391 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
392 (HAVE_ENABLE_EXECUTE_STACK): Define.
393 * config/alpha/alpha.c (alpha_trampoline_init): Test
394 HAVE_ENABLE_EXECUTE_STACK.
395 * config/i386/i386.c (ix86_trampoline_init): Likewise.
396 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
397 (sparc64_initialize_trampoline): Likewise.
398 * libgcc2.c [L_enable_execute_stack]: Remove.
399 * system.h (ENABLE_EXECUTE_STACK): Poison.
400 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
401 * doc/tm.texi: Regenerate.
402 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
403
404 2011-06-09 Jakub Jelinek <jakub@redhat.com>
405
406 PR middle-end/49308
407 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
408 variable. After resetting and rescanning insn continue with previous
409 statement.
410
411 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
412
413 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
414 (gcc_cv_ld_hidden): Likewise.
415 * configure: Regenerate.
416 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
417 (ix86_stack_protect_fail): Mark unused.
418 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
419 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
420 [TARGET_MACHO]: Don't define.
421 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
422 (TARGET_STACK_PROTECT_FAIL): Likewise.
423 (rs6000_stack_protect_fail): Mark unused.
424 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
425 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
426
427 2011-06-08 Andi Kleen <ak@linux.intel.com>
428
429 * varasm.c (get_section): Print location of other conflict
430 for section conflicts.
431
432 2011-06-08 Andi Kleen <ak@linux.intel.com>
433
434 * config/i386/driver-i386.c (host_detect_local_cpu):
435 Add model 0x2d Intel CPU.
436
437 2011-06-08 Andi Kleen <ak@linux.intel.com>
438
439 * reginfo.c (global_regs_decl): Add.
440 (globalize_reg): Add decl parameter. Compute location. Pass location
441 to warnings and add inform. Store decl in global_regs_decl.
442 * rtl.h (globalize_reg): Update prototype.
443 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
444
445 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
446
447 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
448
449 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
450
451 PR target/49305
452 * config/sh/predicates.md (general_movsrc_operand): Check
453 mode for memory with indexed address for QI and HImode.
454 (general_movdst_operand): Likewise.
455
456 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
457
458 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
459
460 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
461
462 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
463 (num_ssa_operands): Likewise.
464 (op_iter_init_phiuse): Forward-declare.
465 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
466
467 2011-06-08 Nick Clifton <nickc@redhat.com>
468
469 * doc/invoke.texi (ARM Options): Update description of
470 -mthumb-interwork.
471
472 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
473
474 * config/i386/driver-i386.c (host_detect_local_cpu): Support
475 unknown Intel family 0x6 CPUs.
476
477 2011-06-08 Martin Jambor <mjambor@suse.cz>
478
479 * tree-sra.c (mark_rw_status): Removed.
480 (analyze_access_subtree): New parameter parent instead of
481 mark_read and mark_write, propagate from that.
482
483 2011-06-08 Julian Brown <julian@codesourcery.com>
484
485 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
486 for double-precision helper functions in hard-float mode if only
487 single-precision arithmetic is supported in hardware.
488
489 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
490
491 PR rtl-optimization/49303
492 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
493 code_motion_path_driver returned 0 or 1.
494 (sel_region_finish): Clear h_d_i_d.
495
496 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
497
498 * config/sh/sh.c (prepare_move_operands): Set pic register
499 appropriately for global and local dynamic tls models even
500 if flag_pic is unset.
501
502 2011-06-07 Jason Merrill <jason@redhat.com>
503
504 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
505
506 2011-06-07 Xinliang David Li <davidxl@google.com>
507 * passes.c (enable_disable_pass): Handle assembler name.
508 (is_pass_explicitly_enabled_or_disabled): Ditto.
509
510 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
511
512 PR tree-optimization/48497
513 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
514
515 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
516
517 PR tree-optimization/46728
518 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
519 to use gimple_val_nonnegative_real_p.
520 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
521 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
522
523 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
524
525 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
526
527 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
528
529 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
530 constant vectors.
531
532 2011-06-07 Richard Guenther <rguenther@suse.de>
533
534 * stor-layout.c (initialize_sizetypes): Initialize all
535 sizetypes based on target definitions.
536 (set_sizetype): Remove.
537 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
538 * tree.h (set_sizetype): Remove.
539
540 2011-06-07 Nick Clifton <nickc@redhat.com>
541
542 * config.gcc: Unify V850 architecture options and add support for
543 newer V850 architectures.
544 * config/v850/t-v850e: Delete.
545
546 2011-06-07 Richard Guenther <rguenther@suse.de>
547
548 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
549 Call set_sizetype from here.
550
551 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
552
553 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
554 (*maddhisi4tb, *maddhisi4tt): New define_insns.
555
556 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
557 Andrew Stubbs <ams@codesourcery.com>
558
559 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
560 multiplies.
561 * doc/md.texi (Canonicalization of Instructions): Document widening
562 multiply canonicalization.
563
564 2011-06-07 Jakub Jelinek <jakub@redhat.com>
565
566 PR gcov-profile/49299
567 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
568
569 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
570
571 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
572 a pointer.
573 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
574 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
575 vect_recog_pow_pattern): Likewise.
576 (vect_pattern_recog_1): Remove declaration.
577 (widened_name_p): Remove declaration. Add new argument to specify
578 whether to check that both types are either signed or unsigned.
579 (vect_recog_widen_mult_pattern): Update documentation. Handle
580 unsigned patterns and multiplication by constants.
581 (vect_pattern_recog_1): Update vect_recog_func references. Use
582 statement information from the statement returned from pattern
583 detection functions.
584 (vect_pattern_recog): Update vect_recog_func reference.
585 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
586 multiplication by a constant use the type of the other operand.
587
588 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
589
590 PR rtl-optimization/49145
591 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
592
593 2011-06-06 Jakub Jelinek <jakub@redhat.com>
594
595 PR debug/49262
596 * dwarf2out.c (native_encode_initializer): Decrement count in each
597 iteration.
598
599 PR debug/49294
600 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
601 non-MODE_INT modes.
602
603 PR c++/49264
604 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
605 if stmt folded into nothing.
606 * tree-inline.c (fold_marked_statements): If a builtin at the end of
607 a bb folded into nothing, just update cgraph edges and move to next bb.
608 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
609 to be NULL. Don't compute count and frequency if new_call is NULL.
610
611 2011-06-04 Diego Novillo <dnovillo@google.com>
612
613 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
614 (cgraph.o): Likewise.
615 (cgraphunit.o): Likewise.
616 * cgraphunit.c: Include lto-streamer.h
617 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
618 if LTO is enabled.
619 * lto-streamer-in.c (unpack_value_fields): Call
620 streamer_hooks.unpack_value_fields if set.
621 (lto_materialize_tree): For unhandled nodes, first try to
622 call lto_streamer_hooks.alloc_tree, if it exists.
623 (lto_input_ts_decl_common_tree_pointers): Move reading of
624 DECL_INITIAL to lto_streamer_read_tree.
625 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
626 (lto_streamer_read_tree): New.
627 (lto_reader_init): Rename from lto_init_reader.
628 Move initialization code to lto/lto.c.
629 * lto-streamer-out.c (pack_value_fields): Call
630 streamer_hooks.pack_value_fields if set.
631 (lto_output_tree_ref): For tree nodes that are not normally indexable,
632 call streamer_hooks.indexable_with_decls_p before giving up.
633 (lto_output_ts_decl_common_tree_pointers): Move handling
634 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
635 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
636 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
637 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
638 (lto_streamer_write_tree): New.
639 (lto_output): Call lto_streamer_init directly.
640 (lto_writer_init): Remove.
641 * lto-streamer.c (streamer_hooks): New.
642 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
643 instead of lto_preload_common_nodes.
644 (lto_is_streamable): Move from lto-streamer.h
645 (lto_streamer_hooks_init): New.
646 (streamer_hooks): New.
647 (streamer_hooks_init): New.
648 * lto-streamer.h (struct output_block): Forward declare.
649 (struct lto_input_block): Likewise.
650 (struct data_in): Likewise.
651 (struct bitpack_d): Likewise.
652 (struct streamer_hooks): Declare.
653 (streamer_hooks): Declare.
654 (lto_streamer_hooks_init): Declare.
655 (lto_streamer_write_tree): Declare.
656 (lto_streamer_read_tree): Declare.
657 (streamer_hooks_init): Declare.
658 (lto_is_streamable): Move to lto-streamer.c
659
660 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
661
662 * longlong.h (smul_ppmm): The resulting register pair contains the
663 higher order word first.
664
665 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
666
667 PR tree-optimization/46728
668 * builtins.c (powi_table): Remove.
669 (powi_lookup_cost): Remove.
670 (powi_cost): Remove.
671 (expand_powi_1): Remove.
672 (expand_powi): Remove.
673 (expand_builtin_pow_root): Remove.
674 (expand_builtin_pow): Remove.
675 (expand_builtin_powi): Eliminate handling of constant exponent.
676 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
677
678 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
679
680 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
681
682 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
683
684 * dce.c (reset_unmarked_insns_debug_uses): New.
685 (delete_unmarked_insns): Skip debug insns.
686 (prescan_insns_for_dce): Likewise.
687 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
688 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
689 active reg can be found.
690 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
691 (convert_regs_1): Use it.
692
693 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
694
695 * tree-pretty-print.c (dump_function_header): Add flags.
696 Don't dump decl_uid with nouid.
697 * tree-pretty-print.h (dump_function_header): Adjust.
698 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
699 * passes.c (pass_init_dump_file): Pass dump_flags on.
700 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
701
702 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
703
704 PR bootstrap/49270
705 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
706
707 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
708
709 PR tree-optimization/49243
710 * calls.c (setjmp_call_p): Also check if fndecl has the
711 returns_twice attribute.
712
713 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
714
715 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
716 -ffast-math etc.
717
718 2011-06-06 Richard Henderson <rth@redhat.com>
719 Georg-Johann Lay <avr@gjlay.de>
720
721 PR target/42210
722 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
723 New predicates.
724 * config/avr/avr.md ("insv"): New insn expander.
725 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
726 "*insv.not.io", "*insv.reg"): New insns.
727
728 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
729
730 PR target/49285
731 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
732 to nonimmediate_operand from memory_operand for the operand that is to
733 be forced to memory by the expander. Lose the constraints.
734
735 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
736
737 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
738 EH return when delayed branches are disabled.
739
740 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
741
742 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
743 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
744 calculation.
745 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
746 Simplify MODE_V1DF and MODE_V2SF handling.
747 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
748 Simplify MODE_SF handling.
749
750 2011-06-04 Jan Hubicka <jh@suse.cz>
751
752 PR tree-optimization/48893
753 PR tree-optimization/49091
754 PR tree-optimization/49179
755 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
756 Bounds check.
757
758 2011-06-04 Jan Hubicka <jh@suse.cz>
759
760 PR lto/48954
761 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
762 bitmaps.
763
764 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
765
766 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
767
768 2011-06-04 Jakub Jelinek <jakub@redhat.com>
769
770 PR target/49281
771 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
772 to be strictly smaller than 1 << shiftcount.
773
774 2011-06-04 Jan Hubicka <jh@suse.cz>
775
776 PR tree-optimize/48929
777 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
778 of empty predicate.
779
780 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
781
782 PR debug/48333
783 * calls.c (emit_call_1): Prefer the __builtin declaration of
784 builtin functions.
785
786 2011-06-03 Diego Novillo <dnovillo@google.com>
787
788 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
789 (lto_input_tree_pointers): Likewise.
790 * lto-streamer-out.c (pack_value_fields): Likewise.
791 (lto_output_tree_pointers): Likewise.
792 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
793 and OPTIMIZATION_NODE.
794
795 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
796
797 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
798 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
799 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
800 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
801 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
802 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
803 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
804 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
805 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
806 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
807 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
808 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
809 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
810 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
811 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
812 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
813 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
814 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
815 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
816 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
817 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
818 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
819 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
820 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
821 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
822 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
823 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
824 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
825 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
826 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
827 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
828 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
829 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
830 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
831 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
832 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
833 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
834 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
835 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
836 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
837 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
838 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
839 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
840 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
841 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
842 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
843 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
844 * system.h (MD_UNWIND_SUPPORT): Poison.
845 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
846 * doc/tm.texi: Regenerate.
847 * unwind-dw2.c: Include md-unwind-support.h instead of
848 MD_UNWIND_SUPPORT.
849 * config/ia64/unwind-ia64.c: Likewise.
850 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
851
852 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
853
854 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
855
856 2011-06-03 Richard Henderson <rth@redhat.com>
857 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
858
859 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
860 (sigill_hdlr): Correct insn, insn size.
861 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
862
863 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
864
865 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
866 t-slibgcc-dummy.
867 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
868 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
869 * config/mips/t-iris: Remove.
870 * config/mips/t-irix6: New file.
871 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
872
873 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
874
875 * Makefile.in (LIB2ADDEHDEP): Remove.
876 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
877 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
878 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
879 * config/t-darwin (LIB2ADDEHDEP): Remove.
880 * config/t-freebsd (LIB2ADDEHDEP): Remove.
881 * config/t-linux (LIB2ADDEHDEP): Remove.
882
883 2011-06-03 Diego Novillo <dnovillo@google.com>
884
885 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
886 (lto_register_var_decl_in_symtab): Likewise.
887 (lto_register_function_decl_in_symtab): Likewise.
888 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
889 logic to uniquify_nodes.
890
891 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
892
893 * config/alpha/t-osf5: Remove.
894 * config/alpha/t-osf-pthread: Remove.
895 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
896 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
897
898 2011-06-03 Julian Brown <julian@codesourcery.com>
899
900 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
901 (strongarm1110): Use strongarm tuning.
902 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
903 * config/arm/arm.c (arm_strongarm_tune): New.
904 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
905 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
906 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
907 setting, using previous defaults or 1 for Cortex-A5.
908 (arm_option_override): Set max_insns_skipped from current tuning.
909
910 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
911
912 * doc/install.texi (Options specification): Document --with-specs.
913
914 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
915
916 * config/arm/neon.md (orndi3_neon): Actually split it.
917
918 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
919
920 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
921 * var-tracking.c (reverse_op): Limite recurse depth to 5.
922
923 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
924
925 PR debug/47590
926 * target.def (delay_sched2, delay_vartrack): New.
927 * doc/tm.texi.in: Update.
928 * doc/tm.texi: Rebuild.
929 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
930 * var-tracking.c (gate_handle_var_tracking): Likewise.
931 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
932 (bfin_flag_var_tracking): Drop.
933 (output_file_start): Don't save and override flag_var_tracking.
934 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
935 (bfin_reorg): Test original variables.
936 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
937 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
938 (ia64_flag_var_tracking): Drop.
939 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
940 (ia64_file_start): Don't save and override flag_var_tracking.
941 (ia64_override_options_after_change): Ditto
942 flag_schedule_insns_after_reload.
943 (ia64_reorg): Test original variables.
944 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
945 (picochip_flag_var_tracking): Drop.
946 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
947 (picochip_option_override): Don't save and override
948 flag_schedule_insns_after_reload.
949 (picochip_asm_file_start): Ditto flag_var_tracking.
950 (picochip_reorg): Test original variables.
951 * config/spu/spu.c (spu_flag_var_tracking): Drop.
952 (TARGET_DELAY_VARTRACK): Define.
953 (spu_var_tracking): New.
954 (spu_machine_dependent_reorg): Call it.
955 (asm_file_start): Don't save and override flag_var_tracking.
956
957 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
958
959 PR target/49163
960 * config/sh/predicates.md (general_movsrc_operand): Return 0
961 for memory and memory subreg of which address is an invalid
962 indexed address for QI and HImode.
963 (general_movdst_operand): Likewise.
964
965 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
966
967 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
968 edges only, when there is a non-local label in the function.
969 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
970
971 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
972
973 * config/i386/constraints.md (Y3): New register constraint.
974 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
975 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
976 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
977 *sse2_interleave_lowv2df.
978
979 2011-06-02 Julian Brown <julian@codesourcery.com>
980
981 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
982 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
983 (arm_cortex_a5_tune): New.
984
985 2011-06-02 Julian Brown <julian@codesourcery.com>
986
987 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
988 * config/arm/arm.c (arm_default_branch_cost): New.
989 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
990 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
991 (arm_fa726_tune): Set branch_cost field using
992 arm_default_branch_cost.
993 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
994 current_tune structure.
995 * dojump.c (tm_p.h): Include file.
996
997 2011-06-02 Julian Brown <julian@codesourcery.com>
998
999 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1000 tuning.
1001 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1002 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1003 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1004 field.
1005 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1006 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1007 (arm_fa726te_tune): Add prefer_constant_pool setting.
1008 (arm_v6t2_tune, arm_cortex_tune): New.
1009 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1010 prefer_constant_pool setting.
1011
1012 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1013
1014 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1015 switch statement.
1016 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1017 (*movdf_internal) <case 6,7,8>: Ditto.
1018
1019 * config/i386/constraints.md (Y4): New register constraint.
1020 * config/i386/sse.md (vec_set<mode>_0): Merge with
1021 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1022 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1023 *vec_extractv2di_1_sse.
1024 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1025 and *vec_concatv2di_rex64_sse.
1026
1027 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1028
1029 PR target/48807
1030 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1031 of cgraph_local_info for null before attempting to use it.
1032
1033 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1034
1035 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1036 (current_function_dynamic_alloc_count): Delete.
1037 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1038 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1039 (expand_builtin_update_setjmp_buf): Remove dead code.
1040 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1041 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1042 support.
1043 * function.c (instantiate_virtual_regs): Likewise.
1044 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1045 for a block with a single abnormal incoming edge.
1046 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1047 (SETJMP_VIA_SAVE_AREA): Delete.
1048 * config/sparc/sparc-protos.h (load_got_register): Declare.
1049 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1050 (load_got_register): Make global.
1051 (sparc_frame_pointer_required): Add 'static'.
1052 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1053 (sparc_builtin_setjmp_frame_value): New function.
1054 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1055 (save_stack_nonlocal): New expander.
1056 (restore_stack_nonlocal): Likewise.
1057 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1058 (nonlocal_goto_internal): New insn.
1059 (goto_handler_and_restore): Delete.
1060 (builtin_setjmp_setup): Likewise.
1061 (do_builtin_setjmp_setup): Likewise.
1062 (setjmp): Likewise.
1063 (builtin_setjmp_receiver): New expander.
1064
1065 2011-06-01 David Li <davidxl@google.com>
1066
1067 PR middle-end/49261
1068 * tree-pretty-print.c (dump_function_header): Format cleanup.
1069
1070 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1071
1072 PR target/49238
1073 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1074 needed when original operands are used for msw_skip comparison.
1075
1076 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1077
1078 PR debug/49250
1079 * var-tracking.c (add_uses, add_stores): Don't call
1080 cselib_subst_to_values on ENTRY_VALUE.
1081
1082 2011-06-01 Diego Novillo <dnovillo@google.com>
1083
1084 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1085 output_record_start with LTO_null instead of output_zero.
1086 (lto_output_ts_binfo_tree_pointers): Likewise.
1087 (lto_output_tree): Likewise.
1088 (output_eh_try_list): Likewise.
1089 (output_eh_region): Likewise.
1090 (output_eh_lp): Likewise.
1091 (output_eh_regions): Likewise.
1092 (output_bb): Likewise.
1093 (output_function): Likewise.
1094 (output_unreferenced_globals): Likewise.
1095 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1096 instead of NUM_TREE_CODES.
1097 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1098 (lto_output_int_in_range): Change << to >> when shifting VAL.
1099
1100 2011-06-01 Diego Novillo <dnovillo@google.com>
1101
1102 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1103 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1104
1105 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1106
1107 PR target/45074
1108 * optabs.h (valid_multiword_target_p): Declare.
1109 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1110 doing multi-word operations.
1111 * optabs.c (expand_binop): Likewise.
1112 (expand_doubleword_bswap): Likewise.
1113 (expand_absneg_bit): Likewise.
1114 (expand_unop): Likewise.
1115 (expand_copysign_bit): Likewise.
1116 (multiword_target_p): New function.
1117
1118 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1119
1120 PR rtl-optimization/48830
1121 PR rtl-optimization/48808
1122 PR rtl-optimization/48792
1123 * reload.c (push_reload): Check contains_reg_of_mode.
1124 * reload1.c (strip_paradoxical_subreg): New function.
1125 (gen_reload_chain_without_interm_reg_p): Use it to handle
1126 paradoxical subregs.
1127 (emit_output_reload_insns, gen_reload): Likewise.
1128
1129 2011-06-01 David Li <davidxl@google.com>
1130
1131 * predict.c : Change pass name
1132 * ipa.c: Ditto.
1133 * dce.c: Ditto.
1134 * tree-profile.c: Ditto.
1135 * except.c: Ditto.
1136
1137 2011-06-01 David Li <davidxl@google.com>
1138
1139 * tree-pretty-print.c (dump_function_header): New function.
1140 * final.c (rest_of_clean_state): Use header dumper.
1141 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1142 * passes.c (pass_init_dump_file): Use header dumper.
1143
1144 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1145
1146 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1147 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1148 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1149 New functions.
1150 (mem_loc_descriptor): Use them.
1151
1152 * var-tracking.c (create_entry_value): New function.
1153 (vt_add_function_parameter): Use it.
1154
1155 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1156
1157 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1158 Include <signal.h>, <ucontext.h>.
1159 (sigill_caught): Define.
1160 (sigill_hdlr): New function.
1161 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1162 insns can be executed.
1163 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1164 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1165
1166 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1167
1168 * config/t-slibgcc-darwin: Move to ...
1169 * config/t-slibgcc-dummy: ... this. Clarify comments.
1170 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1171 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1172 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1173 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1174 Remove i386/t-crtstuff from tmake_file.
1175 (i[34567]86-*-solaris2*): Remove t-svr4,
1176 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1177 t-slibgcc-dummy.
1178 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1179 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1180 sparc/t-crtfm from tmake_file.
1181 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1182 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1183 Remove extra_parts.
1184 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1185 * config/i386/t-nwld (SHLIB_LINK): Remove.
1186 * config/i386/t-rtems-i386: Rename to ...
1187 * config/i386/t-rtems: ... this.
1188 ($(T)crti.o, $(T)crtn.o): Remove.
1189 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1190 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1191 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1192 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1193 EXTRA_MULTILIB_PARTS): Remove.
1194 * config/sparc/t-sol2-64: Likewise.
1195 * config/sparc/t-sol2: Remove.
1196 * config/sparc/t-crtin: Remove.
1197 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1198 * config/i386/gmon-sol2.c: Remove.
1199 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1200 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1201 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1202 * config/i386/sol2-gc1.asm: Remove.
1203 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1204 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1205 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1206 * config/t-slibgcc-sld: Remove.
1207
1208 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1209
1210 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1211 base_type_for_mode with op_mode instead of mode.
1212
1213 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1214
1215 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1216 Cortex-A15.
1217 * config/arm/arm-tune.md: Regenerate.
1218 * config/arm/arm-tables.opt: Regenerate.
1219 * config/arm/arm.c (FL_DIV): Rename...
1220 (FL_THUMB_DIV): ... to this.
1221 (FL_ARM_DIV): Define.
1222 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1223 (arm_arch_hwdiv): Remove.
1224 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1225 (arm_issue_rate): Add cortexr5.
1226 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1227 __ARM_ARCH_EXT_IDIV__.
1228 (TARGET_IDIV): Define.
1229 (arm_arch_hwdiv): Remove.
1230 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1231 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1232 (divsi3, udivsi3): New patterns.
1233 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1234 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1235
1236 2011-06-01 Martin Jambor <mjambor@suse.cz>
1237
1238 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1239 * ipa-utils.c (searchc): Set scc_no.
1240
1241 2011-06-01 Martin Jambor <mjambor@suse.cz>
1242
1243 * ipa-utils.c (searchc_env): New field allow_overwritable.
1244 (searchc): do not ignore edges to overwritable nodes if indicated
1245 by env->allow_overwritable.
1246 (ipa_reduced_postorder): Set env.allow_overwritable.
1247
1248 2011-06-01 Richard Guenther <rguenther@suse.de>
1249
1250 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1251 char_type_node.
1252 * lto-streamer.c (lto_record_common_node): Take node pointer,
1253 do not register types.
1254 (lto_preload_common_nodes): Explicitly skip preloading nodes
1255 that differ between frontends.
1256
1257 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1258
1259 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1260 NON_FLOAT_REGS.
1261
1262 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1263
1264 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1265 parameter value for dump. Dump cost on outermost call only.
1266 (rs6000_memory_move_cost): Dump cost on outermost call only.
1267
1268 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1269
1270 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1271 DW_OP_GNU_convert ops.
1272
1273 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1274 cselib_preserve_constants.
1275 (cselib_lookup_1): If cselib_preserve_constants,
1276 a new VALUE is being created for REG and there is a VALUE for the
1277 same register in wider mode, add another loc with lowpart SUBREG of
1278 the wider VALUE.
1279 (cselib_subst_to_values): Handle ENTRY_VALUE.
1280 * var-tracking.c (replace_expr_with_values): Return NULL for
1281 ENTRY_VALUE too.
1282 * dwarf2out.c (convert_descriptor_to_signed): New function.
1283 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1284 instead of two shifts.
1285 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1286 the right mode if needed.
1287 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1288 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1289 convert_descriptor_to_signed.
1290 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1291 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1292
1293 PR target/48688
1294 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1295
1296 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1297
1298 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1299 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1300 (SWI248x): New mode iterator, rename from X87MODEI.
1301 (X87MODEI): Remove mode iterator.
1302 (X87MODEI12): Ditto.
1303 (SSEMODEI24): Ditto.
1304
1305 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1306
1307 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1308 * doc/invoke.texi: Document max-vartrack-expr-depth.
1309 * var-tracking.c (EXPR_DEPTH): New.
1310 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1311
1312 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1313
1314 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1315 * config/i386/sse.md: Add n to negated FMA pattern names.
1316
1317 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1318
1319 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1320
1321 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1322
1323 * gengtype-state.c (read_state_params_structs): Initialize previous.
1324
1325 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1326
1327 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1328 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1329
1330 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1331
1332 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1333 registers. Penalize F*r->o alternative to prevent partial memory
1334 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1335 CONST_DOUBLE immediates when optimizing function for size. Do not move
1336 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1337 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1338 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1339 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1340 alternatives.
1341 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1342
1343 (fp_register_operand splitters): Use fp_register_operand
1344 constraint. Do not use FP_REG_P in insn condition.
1345 (any_fp_register_operand splitters): Use any_fp_register_operand
1346 constraint. Do not use ANY_FP_REG_P in insn condition.
1347
1348 2011-05-31 Jan Hubicka <jh@suse.cz>
1349
1350 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1351 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1352 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1353 (lto_output_edge): Use output_enum and var_len_unsigned.
1354 (lto_output_varpool_node): Likewise.
1355 (input_overwrite_node): Do not take resolution parameter;
1356 extract it from a bitpack.
1357 (input_node): Do not read resolution; use input_enum and
1358 var_len_unsigned.
1359 (input_varpool_node): Likewise.
1360 (input_edge): Likewise.
1361 (input_cgraph_1): Likewise.
1362
1363 2011-05-31 Richard Guenther <rguenther@suse.de>
1364
1365 * gimple.c (gimple_register_canonical_type): Do not register
1366 any types via gimple_register_type.
1367
1368 2011-05-31 Jan Hubicka <jh@suse.cz>
1369
1370 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1371 of thunks.
1372
1373 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1374
1375 PR rtl-optimization/49235
1376 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1377 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1378
1379 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1380
1381 PR tree-optimization/49093
1382 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1383 data references.
1384
1385 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1386
1387 PR debug/49047
1388 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1389 for concrete functions containing the code of cloned functions.
1390
1391 2011-05-31 Richard Guenther <rguenther@suse.de>
1392
1393 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1394 to ...
1395 (forward_propagate_into_comparison_1): ... this.
1396 (forward_propagate_comparison): Rename to ...
1397 (forward_propagate_into_comparison): ... this. Split out
1398 real forward propagation code to ...
1399 (forward_propagate_comparison): ... this.
1400 (forward_propagate_into_gimple_cond): Remove looping.
1401 (forward_propagate_into_cond): Likewise.
1402 (simplify_not_neg_expr): Return whether we have done something.
1403 (simplify_gimple_switch): Likewise.
1404 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1405 (ssa_forward_propagate_and_combine): ... this. Re-structure
1406 to do a forward forward-propagation walk on BBs and a backward
1407 stmt combining walk on BBs. Consistently re-scan changed statements.
1408 (pass_forwprop): Adjust.
1409
1410 2011-05-30 Ian Lance Taylor <iant@google.com>
1411
1412 * godump.c (go_format_type): Correct length of name added to
1413 obstack for anonymous field.
1414
1415 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1416
1417 PR target/49186
1418 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1419 part of the second operand is 0.
1420
1421 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1422
1423 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1424 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1425 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1426 (*movdf_internal_rex64): Do not penalize F->r alternative.
1427 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1428 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1429 when optimizing function for size. Do not move CONST_DOUBLEs
1430 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1431 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1432 SUBREGs. Do not check for MEM_P operands in the insn condition,
1433 check for ANY_FP_REGNO_P instead.
1434 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1435 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1436 function for speed.
1437 * config/i386/i386.c (ix86_option_override_internal): Do not
1438 set TARGET_INTEGER_DFMODE_MOVES here.
1439
1440 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1441
1442 PR target/49168
1443 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1444
1445 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1446
1447 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1448 DW_TAG_rvalue_reference_type even for
1449 -gdwarf-4 -fno-debug-types-section.
1450
1451 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1452
1453 PR tree-optimization/46728
1454 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1455 (build_and_insert_binop): New.
1456 (gimple_expand_builtin_pow): Reorder args for
1457 build_and_insert_call; use build_and_insert_binop; add more
1458 optimizations for fractional exponents.
1459
1460 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1461
1462 PR bootstrap/49190
1463
1464 Revert:
1465 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1466
1467 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1468 tree_common.
1469 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1470 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1471 TS_BASE instead of TS_COMMON.
1472 * varasm.c (assemble_name): Remove assert.
1473
1474 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1475
1476 * config.gcc: Keep obselete list sorted.
1477
1478 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1479 Eric Botcazou <ebotcazou@adacore.com>
1480
1481 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1482 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1483 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1484 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1485 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1486
1487 2011-05-30 Richard Guenther <rguenther@suse.de>
1488
1489 * gimple.c (gimple_types_compatible_p_1): Compare record
1490 and union type members properly.
1491
1492 2011-05-30 Richard Guenther <rguenther@suse.de>
1493
1494 PR tree-optimization/49210
1495 * ipa-split.c (split_function): Care for the case where the call
1496 result is not trivially convertible to the result holding variable.
1497
1498 2011-05-30 Richard Guenther <rguenther@suse.de>
1499
1500 PR tree-optimization/49218
1501 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1502 overflow occured.
1503
1504 2011-05-30 Richard Guenther <rguenther@suse.de>
1505
1506 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1507 New function split out from ...
1508 (forward_propagate_into_gimple_cond): ... here. Adjust.
1509 (forward_propagate_into_cond): Likewise.
1510 (forward_propagate_comparison): Also propagate into
1511 comparisons on assignment RHS. Change return value to
1512 behave similar to forward_propagate_into_cond.
1513 (tree_ssa_forward_propagate_single_use_vars): Handle
1514 strict-overflow warnings properly for forward_propagate_comparison.
1515
1516 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1517
1518 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1519 from plugin linker.
1520 * configure: Regenerate.
1521
1522 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1523
1524 PR tree-optimization/49199
1525 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1526 non-reduction operands are either defined in the loop or by induction.
1527
1528 2011-05-29 Xinliang David Li <davidxl@google.com>
1529
1530 * opts-global.c (handle_common_deferred_options): Handle new options.
1531 * passes.c (register_one_dump_file): Call register_pass_name.
1532 (execute_one_pass): Check explicit enable/disable flag.
1533 (passr_hash): New function.
1534 (passr_eq): Ditto.
1535 (register_pass_name): Ditto.
1536 (get_pass_by_name): Ditto.
1537 (pass_hash): Ditto.
1538 (pass_eq): Ditto.
1539 (enable_pass): Ditto.
1540 (disable_pass): Ditto.
1541 (is_pass_explicitly_enabled_or_disabled): Ditto.
1542
1543 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1544
1545 * config/i386/i386.md (*movoi_internal_avx): Use
1546 standard_sse_constant_opcode for alternative 0.
1547 (*movti_internal_sse): Ditto.
1548 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1549 alternative 2.
1550 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1551 sselog1 type moves.
1552 (*movsi_internal): Ditto.
1553 (*movdi_internal): Ditto. Add ssecvt type moves.
1554
1555 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1556
1557 PR target/48830
1558 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1559
1560 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1561
1562 PR rtl-optimization/49095
1563 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1564 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1565
1566 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1567
1568 PR target/43995
1569 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1570 recurse_p argument. Only follow register copies if it is set,
1571 and prevent mips_find_pic_call_symbol from recursing.
1572 (mips_find_pic_call_symbol): Add a recurse_p argument.
1573 Pass it to mips_pic_call_symbol_from_set.
1574 (mips_annotate_pic_calls): Update accordingly.
1575
1576 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1577
1578 * emit-rtl.c (try_split): Use a loop to search for
1579 NOTE_INSN_CALL_ARG_LOCATIONs.
1580
1581 2011-05-29 Richard Guenther <rguenther@suse.de>
1582
1583 PR tree-optimization/49217
1584 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1585
1586 2011-05-28 Jan Hubicka <jh@suse.cz>
1587
1588 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1589 length.
1590 (string_slot_free): Remove
1591 (create_output_block): Initialize obstack.
1592 (destroy_output_block): Free obstack.
1593 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1594 the string unless it needs to be added into the hash.
1595 (lto_output_string_with_length): Add persistent attribute;
1596 handle NULL strings.
1597 (lto_output_string): Add PERSISTENT parameter.
1598 (output_string_cst, output_identifier): Simplify.
1599 (lto_output_location_bitpack): Update.
1600 (lto_output_builtin_tree): Update.
1601 * lto-streamer.h (struct output_block): Add obstack.
1602 (lto_output_string, lto_output_string_with_length): Remove
1603 declarations; functions are static now.
1604
1605 2011-05-28 Jan Hubicka <jh@suse.cz>
1606
1607 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1608 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1609 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1610 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1611 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1612 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1613 unpack_ts_decl_with_vis_value_fields,
1614 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1615 lto_get_builtin_tree): Use enum and variable length i/o.
1616 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1617 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1618 New functions.
1619 (bp_pack_enum, bp_unpack_enum): New macros.
1620
1621 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1622
1623 * genrecog.c: Remove redundant forward declarations.
1624
1625 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1626
1627 * config.gcc: Deprecate mips*-*-openbsd*.
1628
1629 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1630
1631 PR bootstrap/49195
1632 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1633 for match_op_dup.
1634
1635 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1636
1637 PR middle-end/48981
1638 * gengtype.c (vec_prefix_type): New function.
1639 (note_def_vec): Use vec_prefix_type and change the length
1640 attribute to be based on the prefix.
1641 * vec.c: Include coretypes.h before vec.h.
1642 (struct vec_prefix): Remove.
1643 (vec_gc_p_reserve): Change the offsetof to sizeof.
1644 (vec_gc_p_reserve_exact): Likewise.
1645 (vec_heap_p_reserve): Likewise.
1646 (vec_heap_p_reserve_exact): Likewise.
1647 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1648 (vec_stack_p_reserve): Change the offsetof to sizeof.
1649 (vec_stack_p_reserve_exact): Likewise.
1650 * vec.h (struct vec_prefix): New struct definition.
1651 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1652 (VEC_T_GTY(T,B)): Likewise.
1653 (DEF_VEC_FUNC_P(T)): Use prefix field.
1654 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1655 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1656
1657 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1658
1659 PR tree-optimization/46728
1660 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1661 (powi_as_mults): Add gimple_set_location.
1662 (build_and_insert_call): New.
1663 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1664 0.5, 0.25, 0.75, 1./3., or 1./6.
1665
1666 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1667
1668 * doc/contrib.texi: Update copyright years.
1669 (Contributors): Add Zdenek Sojka.
1670
1671 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1672
1673 * c-decl.c (c_push_function_context): Copy the current statement
1674 list stack.
1675 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1676 (finish_struct): Call building_stmt_list_p instead of checking
1677 cur_stmt_list.
1678 * c-parser.c (c_parser_postfix_expression): Likewise.
1679 * c-typeck.c (c_end_compound_stmt): Likewise.
1680 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1681 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1682 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1683 (free_stmt_list): Likewise.
1684 * tree.h (struct tree_statement_list): Include typed_tree instead
1685 of tree_common.
1686 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1687 as TS_TYPED instead of TS_COMMON.
1688
1689 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1690 Uros Bizjak <ubizjak@gmail.com>
1691
1692 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1693 (HAVE_AS_IX86_TLSGDPTL): Define.
1694 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1695 (HAVE_AS_IX86_TLSLDMPLT): Define.
1696 * configure: Regenerate.
1697 * config.in: Regenerate.
1698 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1699 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1700 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1701 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1702 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1703 @tlsldmplt or @plt.
1704 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1705
1706 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1707
1708 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1709 and reverse_cond.
1710 (INSN_COND, INSN_REVERSE_COND): New macros.
1711 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1712 once.
1713 (sched_get_condition_with_rev): Cache the results, and look them up
1714 if possible.
1715 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1716 are clobbered by the current insn.
1717 * target.def (exposed_pipline): New sched data hook.
1718 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1719 * doc/tm.texi: Regenerate.
1720
1721 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1722
1723 PR tree-optimization/49170
1724 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1725 sincos or cexp.
1726
1727 2011-05-27 Richard Guenther <rguenther@suse.de>
1728
1729 PR middle-end/49189
1730 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1731 of comparisons.
1732
1733 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1734
1735 * haifa-sched.c (sched_scan_info): Remove.
1736 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1737 with NULL args.
1738 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1739 Remove functions.
1740 (sched_scan): Remove.
1741 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1742 static. All callers changed.
1743 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1744 static. All callers changed.
1745 (sched_init_luids): Remove all arguments except the first. All
1746 callers changed. Don't use sched_scan.
1747 (haifa_init_h_i_d): Likewise.
1748 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1749 manually rather than using sched_init_luids. Likewise with
1750 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1751 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1752 rather than sched_init_luids with NULL args.
1753 * sel-sched-ir.c (new_insns): Remove variable.
1754 (sched_scan): New static function, previously in haifa-sched.c. Remove
1755 all arguments but the first two; all callers changed.
1756 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1757 rather than sched_init_luids.
1758 (sel_init_bbs): Remove second argument. All callers changed.
1759 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1760 with NULL arguments.
1761 (create_insn_rtx_from_pattern): Likewise.
1762 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1763 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1764 (sched_init_insn_luid, sched_extend_luids): Declare.
1765 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1766 declarations.
1767
1768 2011-05-27 Richard Guenther <rguenther@suse.de>
1769
1770 PR middle-end/49177
1771 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1772 A CMP B ? (T) true : (T) false for non-integral types T again.
1773
1774 2011-05-27 Jan Hubicka <jh@suse.cz>
1775
1776 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1777 so 0 means NULL string.
1778 (lto_output_string_with_length): ... here.
1779 (lto_output_string, output_string_cst, output_identifier): Update
1780 handling of NULL strings.
1781 (lto_output_location_bitpack): New function.
1782 (lto_output_location): Use it.
1783 (lto_output_tree_ref): Use output_record_start.
1784 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1785 len values.
1786 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1787 values by 1.
1788 (input_string_internal): ... here;
1789 (input_string_cst, input_identifier, lto_input_string): Update handling
1790 of NULL strings.
1791 (lto_input_location_bitpack): New function
1792 (lto_input_location): Use it.
1793 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1794 values.
1795 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1796 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1797 (bp_pack_value): Sanity check the value range.
1798 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1799 New functions.
1800 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1801 New functions.
1802
1803 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1804
1805 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1806 call_arg_location instructions down the floor.
1807
1808 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1809
1810 PR rtl-optimization/49154
1811 * ira.c (setup_pressure_classes): Process class without sublcasses
1812 as a candidate for pressure classes.
1813
1814 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1815
1816 PR rtl-optimization/48575
1817 * genrecog.c (position_type): New enum.
1818 (position): New structure.
1819 (decision): Use position structure instead of a string.
1820 (root_pos, peep2_insn_pos_list): New variables.
1821 (next_position, compare_positions): New functions.
1822 (new_decision): Use position structures instead of strings.
1823 (maybe_both_true): Likewise.
1824 (change_state): Likewise.
1825 (write_tree): Likewise.
1826 (make_insn_sequence): Likewise.
1827
1828 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1829
1830 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1831 TS_BASE instead of TS_COMMON.
1832 (find_decls_types_r): Check for TS_TYPED structure before looking at
1833 TREE_TYPE.
1834 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1835 Add chain field.
1836 (BLOCK_CHAIN): Use new chain field.
1837
1838 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1839
1840 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1841 moves expensive on Power7 also.
1842
1843 2011-05-26 Richard Guenther <rguenther@suse.de>
1844
1845 * fold-const.c (fold_unary_loc): Remove bogus code.
1846
1847 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1848
1849 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1850 tree_common.
1851 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1852 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1853 TS_BASE instead of TS_COMMON.
1854 * varasm.c (assemble_name): Remove assert.
1855
1856 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1857
1858 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1859 substituted first.
1860 * libgcc-std.ver: Delete file.
1861
1862 2011-05-26 Richard Guenther <rguenther@suse.de>
1863
1864 PR tree-optimization/48702
1865 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1866 only when we know the base address is within bounds.
1867 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1868 assume the base address of TARGET_MEM_REFs is in bounds.
1869
1870 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1871
1872 PR target/49099
1873 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1874 declaration in TARGET_SOLARIS.
1875
1876 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1877
1878 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1879 The instruction is then expanded explicitly.
1880 (supported_compare): Callable instruction.
1881 (compare): Likewise.
1882
1883 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR c++/49165
1886 * gimplify.c (shortcut_cond_r): Don't special case
1887 COND_EXPRs if they have void type on one of their arms.
1888
1889 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1890
1891 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1892 to reduce duplication, and to achieve a slightly more logical order
1893 of operations.
1894
1895 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1896
1897 PR tree-optimization/49161
1898 * tree-vrp.c (struct case_info): New type.
1899 (compare_case_labels): Sort case_info structs instead of
1900 trees, and not primarily by CASE_LABEL uids but by
1901 label_for_block indexes.
1902 (find_switch_asserts): Put case labels into struct case_info
1903 array instead of TREE_VEC, adjust sorting, compare label_for_block
1904 values instead of CASE_LABELs.
1905
1906 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1907
1908 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1909 ("orndi3_neon"): Likewise.
1910 ("bic<mode>3_neon"): Likewise.
1911
1912 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1913
1914 PR tree-optimization/49038
1915 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1916 Ensure at least one epilogue iteration if required by data
1917 accesses with gaps.
1918 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1919 to mark loops that require peeling for gaps.
1920 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1921 (vect_get_known_peeling_cost): Take peeling for gaps into
1922 account.
1923 (vect_transform_loop): Generate epilogue if required by data
1924 access with gaps.
1925 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1926 loop as requiring an epilogue if there are gaps in the end of
1927 the strided group.
1928
1929 2011-05-25 Ian Lance Taylor <iant@google.com>
1930
1931 * godump.c (go_format_type): Output the first field with a usable
1932 Go type, if any.
1933
1934 2011-05-25 Ian Lance Taylor <iant@google.com>
1935
1936 * godump.c (go_format_type): Check for invalid type names, pointer
1937 target types, and struct field types.
1938
1939 2011-05-25 Jason Merrill <jason@redhat.com>
1940
1941 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1942
1943 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1944
1945 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1946
1947 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1948
1949 * config/i386/i386.md (*movqi_extv_1)): Put back
1950 "register_operand" check in "type" calculation.
1951 (*movqi_extzv_2): Likewise.
1952
1953 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1954
1955 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1956
1957 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1958
1959 PR bootstrap/49160
1960 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1961 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1962 __divxc3, __divtc3): Wrap definitions in #ifndef.
1963
1964 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1965
1966 PR target/49142
1967 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1968 "register_operand" check and replace q_regs_operand with
1969 QIreg_operand in "type" calculation.
1970 (*movqi_extv_1): Likewise.
1971 (*movqi_extzv_2_rex64): Likewise.
1972 (*movqi_extzv_2): Likewise.
1973
1974 * config/i386/predicates.md (QIreg_operand): New.
1975
1976 2011-05-25 Richard Guenther <rguenther@suse.de>
1977
1978 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1979 type-based offset disambiguation, streamline MEM_REF and
1980 TARGET_MEM_REF handling.
1981
1982 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1985 (bdesc_special_args): Add pause intrinsic.
1986
1987 * config/i386/i386.md (UNSPEC_PAUSE): New.
1988 (pause): Likewise.
1989 (*pause): Likewise.
1990 * config/i386/ia32intrin.h (__pause): Likewise.
1991
1992 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1993 pause intrinsic.
1994
1995 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1996
1997 PR tree-optimization/46728
1998 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1999 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2000
2001 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2002
2003 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2004 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2005 instead of TS_COMMON.
2006
2007 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2008
2009 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2010 LIBGCC2_GNU_PREFIX is defined.
2011 (__N): New macro.
2012 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2013 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2014 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2015 __clz_tab): Define using __N.
2016 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2017 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2018 * target.def (libfunc_gnu_prefix): New hook.
2019 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2020 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2021 * doc/tm.texi: Regenerate.
2022 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2023 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2024 account.
2025 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2026 (init_optabs): Likewise for the bswap libfuncs.
2027 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2028 and divide.
2029 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2030 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2031 * libgcc-std.ver: Remove.
2032 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2033 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2034 libgcc-std.ver.
2035 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2036 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2037 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2038 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2039 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2040 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2041 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2042 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2043 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2044 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2045
2046 2011-05-25 Jan Hubicka <jh@suse.cz>
2047
2048 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2049 (lto_output_tree): Use output_record_start.
2050 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2051 (lto_get_pickled_tree): Use input_record_start.
2052 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2053 (lto_value_range_error): New function.
2054 * lto-streamer.h (lto_value_range_error): Declare.
2055 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2056 (lto_output_enum, lto_input_enum): New macros.
2057
2058 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2059
2060 * common.opt (flag_stack_usage_info): New variable.
2061 (-Wstack-usage): New option.
2062 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2063 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2064 <OPT_fstack_usage>: Likewise.
2065 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2066 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2067 of flag_stack_usage.
2068 (emit_library_call_value_1): Likewise.
2069 * explow.c (allocate_dynamic_stack_space): Likewise.
2070 * function.c (instantiate_virtual_regs ): Likewise.
2071 (prepare_function_start): Likewise.
2072 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2073 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2074 * config/arm/arm.c (arm_expand_prologue): Likewise.
2075 (thumb1_expand_prologue): Likewise.
2076 * config/avr/avr.c (expand_prologue): Likewise.
2077 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2078 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2079 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2080 * config/mips/mips.c (mips_expand_prologue): Likewise.
2081 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2082 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2083 * config/s390/s390.c (s390_emit_prologue): Likewise.
2084 * config/sh/sh.c (sh_expand_prologue): Likewise.
2085 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2086 * config/spu/spu.c (spu_expand_prologue): Likewise.
2087
2088 2011-05-25 Richard Guenther <rguenther@suse.de>
2089
2090 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2091 (gimple_canonical_types_compatible_p): Likewise.
2092
2093 2011-05-25 Jan Hubicka <jh@suse.cz>
2094
2095 PR middle-end/49062
2096 * ipa.c (function_and_variable_visibility): Only add to same
2097 comdat group list if DECL_ONE_ONLY.
2098
2099 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2100
2101 PR rtl-optimization/49014
2102 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2103
2104 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR target/49128
2107 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2108
2109 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2110
2111 PR rtl-optimization/48757
2112 * ira-build.c (loop_with_eh_edge_p): Rename to
2113 loop_with_complex_edge_p, check edges on complexity, make function
2114 conditional.
2115 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2116 conditional.
2117
2118 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2119
2120 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2121 force flag_ira_share_save_slots to 0.
2122
2123 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2124
2125 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2126 (vt_initialize): Set PROLOGUE_BB unconditionally.
2127 Add block comment about CFA_BASE_RTX machinery.
2128 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2129 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2130
2131 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2132
2133 PR objc/48187
2134 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2135 parsing of syntax error in ObjC instance variable lists. In
2136 particular, avoid an infinite loop if there is a stray ']'.
2137 Updated error message.
2138
2139 2011-05-24 Ian Lance Taylor <iant@google.com>
2140
2141 * godump.c (go_define): Don't accept a string immediately after
2142 another operand.
2143
2144 2011-05-24 Ian Lance Taylor <iant@google.com>
2145
2146 * godump.c (struct godump_container): Add invalid_hash field.
2147 (go_format_type): Return false if type is found in invalid_hash.
2148 (go_output_typedef): Add invalid type to invalid_hash.
2149 (go_finish): Create and delete invalid_hash.
2150
2151 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2152
2153 PR tree-optimization/46728
2154 * tree-ssa-math-opts.c (powi_table): New.
2155 (powi_lookup_cost): New.
2156 (powi_cost): New.
2157 (powi_as_mults_1): New.
2158 (powi_as_mults): New.
2159 (gimple_expand_builtin_powi): New.
2160 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2161 (gate_cse_sincos): Remove sincos/cexp restriction.
2162
2163 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2164
2165 PR target/3746
2166 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2167 mips-tdump native.
2168 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2169 * mips-tdump.c: Likewise.
2170
2171 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 PR target/49128
2174 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2175 add -mno-XXX. Handle FMA.
2176
2177 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2178
2179 PR rtl-optimization/48633
2180 * ira-build.c (loop_with_eh_edge_p): New function.
2181 (mark_loops_for_removal): Use it.
2182
2183 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2184
2185 PR rtl-optimization/48971
2186 * ira.c (setup_pressure_classes): Don't check register move cost
2187 for classes with one registers. Don't add pressure class if there
2188 is a pressure class with the same available hard registers.
2189 Check contains_reg_of_mode. Fix a typo in collecting
2190 temp_hard_regset. Ignore hard registers not belonging to a class.
2191
2192 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2193
2194 PR target/49133
2195 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2196
2197 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2198 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2199
2200 PR gcov-profile/48845
2201 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2202
2203 2011-05-24 Richard Guenther <rguenther@suse.de>
2204
2205 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2206 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2207 (gimple_types_compatible_p_1): Adjust.
2208 (iterative_hash_canonical_type): Do not bother about complete vs.
2209 incomplete types.
2210 (gimple_canonical_types_compatible_p): Likewise.
2211
2212 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2213
2214 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2215
2216 2011-05-24 Richard Guenther <rguenther@suse.de>
2217
2218 PR bootstrap/49078
2219 * gimple.c (gimple_register_canonical_type): Revert
2220 previous change.
2221 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2222 does not for a tree for the case where it matters. Cache
2223 pointer-type alias-sets.
2224
2225 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2226
2227 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2228 (OBJS): Remove options.o, opts-common.o and prefix.o.
2229 (OBJS-libcommon-target): New.
2230 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2231 (BACKEND): Include libcommon-target.a.
2232 (MOSTLYCLEANFILES): Include libcommon-target.a.
2233 (libcommon-target.a): New.
2234 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2235 prefix.o.
2236
2237 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2238
2239 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2240 parts of output shared with the driver.
2241 * optc-gen.awk: Don't generate parts of output not shared with the
2242 driver.
2243 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2244 * doc/options.texi (SourcerInclude): Mention options-save.c.
2245 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2246 (OBJS): Add options-save.o.
2247 (options-save.c, options-save.o): New.
2248 (options.o): Update dependencies.
2249 (gcc-options.o): Remove.
2250 (mostlyclean): Remove options-save.c.
2251
2252 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2253
2254 PR debug/49032
2255 * dbxout.c: Include cgraph.h.
2256 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2257 and without value expr, return NULL if no varpool node exists for
2258 it or if it is not needed.
2259 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2260
2261 PR c/49120
2262 * c-decl.c (start_decl): Convert expr to void_type_node.
2263
2264 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2265
2266 PR rtl-optimization/48826
2267 * emit-rtl.c (try_split): When splitting a call that is followed
2268 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2269
2270 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2271
2272 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2273 parameters passed in memory prefer using DECL_INCOMING_RTL over
2274 the pseudos it will be copied into.
2275
2276 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2277
2278 PR target/47315
2279 * config/i386/i386.c (ix86_option_override_internal): Save the
2280 initial options after checking vzeroupper.
2281
2282 2011-05-23 David Li <davidxl@google.com>
2283
2284 PR tree-optimization/48988
2285 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2286 Initialize has_valid_pred for each pred chain.
2287
2288 2011-05-23 Richard Guenther <rguenther@suse.de>
2289
2290 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2291 (iterative_hash_gimple_type): Always hash type names.
2292
2293 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2294
2295 * c-typeck.c (build_function_call_vec): Tweak call to
2296 check_function_arguments.
2297
2298 2011-05-23 Richard Guenther <rguenther@suse.de>
2299
2300 PR tree-optimization/49115
2301 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2302 is not necessarily carried out, do not claim it kills the ref.
2303 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2304
2305 2011-05-23 Richard Guenther <rguenther@suse.de>
2306
2307 PR middle-end/15419
2308 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2309 what pointer types we accept for folding.
2310
2311 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2312
2313 * gthr-gnat.c: Remove.
2314 * gthr-gnat.h: Remove.
2315 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2316 * config/t-freebsd (LIB2ADDEH): Likewise.
2317 * config/t-linux (LIB2ADDEH): Likewise.
2318 * config/t-sol2 (LIB2ADDEH): Likewise.
2319 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2320 * configure.ac (target_thread_file): Remove gnat handling.
2321 * configure: Regenerate.
2322 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2323
2324 2011-05-23 Tristan Gingold <gingold@adacore.com>
2325 Eric Botcazou <ebotcazou@adacore.com>
2326
2327 * gcov.c (create_file_names): If no object directory is specified,
2328 keep the directory of the file.
2329
2330 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2331
2332 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2333 * configure: Regenerate.
2334
2335 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2336
2337 PR middle-end/48973
2338 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2339 failed and the comparison has a single bit signed type, use
2340 constm1_rtx instead of const1_rtx for true value.
2341 (do_store_flag): If ops->type is single bit signed type, disable
2342 signel bit test optimization and pass -1 instead of 1 as last
2343 parameter to emit_store_flag_force.
2344
2345 2011-05-23 Tom de Vries <tom@codesourcery.com>
2346
2347 PR target/45098
2348 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2349 function.
2350 (infer_loop_bounds_from_undefined): Use new function.
2351
2352 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2353
2354 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2355 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2356 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2357 and -O0 otherwise.
2358 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2359
2360 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2361
2362 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2363 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2364 returns true.
2365
2366 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2367
2368 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2369
2370 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2371
2372 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2373 UNSPEC_MOVE_PIC pattern.
2374
2375 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2376
2377 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2378 (sparc-*-rtems*): Likewise.
2379 (sparc64-*-elf*): Likewise.
2380 (sparc64-*-rtems*): Likewise.
2381 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2382 * config/sparc/t-crtin: New file.
2383 * config/sparc/t-sol2 (crti.o): Delete rule.
2384 (crtn.o): Likewise.
2385 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2386 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2387 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2388 (ENDFILE_SPEC): Add crtn.o.
2389
2390 2011-05-22 Tom de Vries <tom@codesourcery.com>
2391
2392 PR middle-end/48689
2393 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2394 CODE_CONTAINS_STRUCT (TS_COMMON).
2395
2396 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2397
2398 PR middle-end/49029
2399 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2400 only after deciding which mode to use.
2401
2402 2011-05-22 Tom de Vries <tom@codesourcery.com>
2403
2404 PR target/45098
2405 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2406 for call to get_shiftadd_cost.
2407
2408 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2409
2410 PR target/49104
2411 * config/i386/cpuid.h (bit_MMXEXT): New define.
2412
2413 2011-05-22 Nick Clifton <nickc@redhat.com>
2414
2415 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2416 initialisation of non-existant args[2] element. Use args[] array
2417 not arg[] array to pass arguments to build_function_type_list.
2418
2419 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2420
2421 PR tree-optimization/49087
2422 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2423
2424 2011-05-21 Jason Merrill <jason@redhat.com>
2425
2426 PR c++/49092
2427 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2428 static storage duration.
2429
2430 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2433 frame pointer.
2434
2435 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2436
2437 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2438 false if there are call-saved registers here...
2439 (sparc_can_use_return_insn_p): ...but here instead.
2440 (save_or_restore_regs): Fix thinko.
2441 (sparc_expand_prologue): Use current_function_is_leaf.
2442 (sparc_frame_pointer_required): Likewise.
2443
2444 2011-05-21 Nick Clifton <nickc@redhat.com>
2445
2446 PR target/49098
2447 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2448
2449 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2450
2451 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2452 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2453
2454 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2455
2456 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2457 * optc-gen.awk: Move common code to opt-read.awk.
2458 * opth-gen.awk: Likewise.
2459 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2460
2461 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2462
2463 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2464
2465 2011-05-20 Tom de Vries <tom@codesourcery.com>
2466
2467 PR target/45098
2468 * tree-ssa-loop-ivopts.c: Include expmed.h.
2469 (get_shiftadd_cost): New function.
2470 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2471
2472 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2473
2474 PR bootstrap/49086
2475 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2476 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2477
2478 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2479
2480 * Makefile.in: Update comment referring to $(OBJS-common).
2481
2482 2011-05-20 Ian Lance Taylor <iant@google.com>
2483
2484 * godump.c (go_output_typedef): Put enum constants in the macro
2485 hash table to avoid duplicate Go const definitions.
2486
2487 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2488
2489 * Makefile.in (LIBDEPS): Add libcommon.a.
2490 (LIBS): Likewise.
2491 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2492 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2493 pretty-print.o and version.o.
2494 (OBJS-libcommon): New.
2495 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2496 (BACKEND): Add libcommon.a.
2497 (MOSTLYCLEANFILES): Likewise.
2498 (libcommon.a): New.
2499 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2500 (cpp$(exeext)): Likewise.
2501 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2502 pretty-print.o and input.o.
2503 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2504 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2505 (errors.o): Remove.
2506 (mips-tfile): Don't explicitly use version.o.
2507 (mips-tdump): Likewise.
2508 (gcov.o): Depend on $(DIAGNOSTIC_H).
2509 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2510 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2511 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2512 * gcov-dump.c: Include intl.h and diagnostic.h.
2513 (main): Initialize diagnostics.
2514 * gcov.c: Include diagnostic.h.
2515 (fnotice): Remove.
2516 (main): Initialize diagnostics.
2517 * lto-wrapper.c: Include diagnostic.h.
2518 (main): Initialize diagnostics.
2519
2520 2011-05-20 Michael Matz <matz@suse.de>
2521
2522 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2523
2524 2011-05-20 Michael Matz <matz@suse.de>
2525 Richard Guenther <rguenther@suse.de>
2526
2527 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2528 use lto_streamer_cache_append directly instead of returning a VEC.
2529 (preload_common_node): Remove.
2530 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2531 track seen nodes.
2532 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2533
2534 2011-05-20 Richard Guenther <rguenther@suse.de>
2535
2536 PR tree-optimization/49079
2537 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2538 MEM_REFs correctly for the trailing array access detection.
2539 Special case constants the same way as decls for overall size
2540 constraining.
2541
2542 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2543
2544 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2545 argument expansion.
2546
2547 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2548
2549 PR tree-optimization/49073
2550 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2551 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2552 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2553
2554 2011-05-20 Richard Guenther <rguenther@suse.de>
2555
2556 PR middle-end/48849
2557 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2558 of pointer types the same way the middle-end does.
2559
2560 2011-05-20 Richard Guenther <rguenther@suse.de>
2561
2562 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2563 or pointer-to chains. Delay all fixup to uniquify_nodes.
2564
2565 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2566
2567 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2568 (fma4_fmaddsub): Likewise
2569
2570 2011-05-19 Jan Hubicka <jh@suse.cz>
2571
2572 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2573 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2574 (type_pair_cache): New static var.
2575 (lookup_type_pair): Use fixed sized custom hash; make inline.
2576 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2577 calls of lookup_type_pair.
2578 (print_gimple_types_stats): Remove cache stats.
2579 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2580 and gtc_ob.
2581
2582 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2583
2584 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2585 when TARGET_RDRND is active.
2586 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2587 Generate dummy SImode target register when target is NULL.
2588
2589 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2590
2591 * config/arm/arm-fpus.def: New.
2592 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2593 arm-fpus.def.
2594 * config/arm/arm-tables.opt: Regenerate.
2595 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2596 (arm_option_override): Don't decode FPU name to string here.
2597 * config/arm/arm.opt (mfpu=): Use Enum.
2598 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2599 Update dependencies.
2600
2601 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2602
2603 * collect2.c: Include diagnostic.h.
2604 (fatal_perror, fatal, error, fancy_abort): Remove.
2605 (main): Set progname. Call xmalloc_set_program_name and
2606 diagnostic_initialize.
2607 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2608 scan_libraries, resolve_lib_name): Call fatal_error instead of
2609 fatal and fatal_perror.
2610 * collect2.h (error, fatal, fatal_perror): Don't declare.
2611 * tlink.c: Include diagnostic-core.h.
2612 (recompile_files): Call fatal_error instead of fatal_perror.
2613 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2614 pretty-print.o and input.o.
2615 (collect2.o, tlink.o): Update dependencies.
2616
2617 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2618
2619 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2620
2621 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2622
2623 PR target/40483
2624 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2625 COMDAT group syntax, both SPARC and x86 variants.
2626 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2627 * configure: Regenerate.
2628 * config/sol2.h (TARGET_SOLARIS): Define.
2629 (PUSHSECTION_FORMAT): Remove.
2630 (SECTION_NAME_FORMAT): Define.
2631 * config/sol2.c: Include hashtab.h.
2632 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2633 expansion, using SECTION_NAME_FORMAT.
2634 (solaris_comdat_htab): New variable.
2635 (struct comdat_entry): Define.
2636 (comdat_hash): New function.
2637 (comdat_eq): New function.
2638 (solaris_elf_asm_comdat_section): New function.
2639 (solaris_define_comdat_signature): New function.
2640 (solaris_code_end): New function.
2641 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2642 (solaris_code_end): Declare.
2643 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2644 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2645 solaris_code_end.
2646 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2647 Remove ATTRIBUTE_UNUSED.
2648 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2649 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2650 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2651 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2652 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2653 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2654 (PUSHSECTION_FORMAT): Remove.
2655 (SECTION_NAME_FORMAT): Redefine.
2656
2657 2011-05-19 Kai Tietz <ktietz@redhat.com>
2658
2659 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2660 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2661 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2662
2663 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2664 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2665
2666 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2667
2668 2011-05-19 Richard Guenther <rguenther@suse.de>
2669
2670 PR middle-end/48985
2671 * tree-object-size.c (addr_object_size): If the pointed-to
2672 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2673
2674 2011-05-19 Richard Guenther <rguenther@suse.de>
2675
2676 * gimple.c (gimple_types_compatible_p_1): Compare names of
2677 the types themselves.
2678 (iterative_hash_gimple_type): And hash them that way.
2679 (gimple_register_type_1): If we register a main variant properly
2680 initialize the leader to ourselves.
2681
2682 2011-05-19 Tom de Vries <tom@codesourcery.com>
2683
2684 PR target/45098
2685 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2686 get_loop_invariant_expr_id.
2687 (get_loop_invariant_expr_id): Use get_expr_id.
2688 (parm_decl_cost): New function.
2689 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2690 Improve bound cost estimation. Use different inv_expr_id for elim and
2691 express cases.
2692
2693 2011-05-19 Tom de Vries <tom@codesourcery.com>
2694
2695 PR target/45098
2696 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2697 cost_base.cost == 0.
2698
2699 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2700
2701 PR target/49002
2702 * config/i386/sse.md
2703 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2704 load cast.
2705
2706 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2707
2708 PR tree-optimization/49039
2709 * tree-vrp.c (extract_range_from_binary_expr): For
2710 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2711 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2712
2713 2011-05-18 Tom de Vries <tom@codesourcery.com>
2714
2715 PR target/45098
2716 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2717
2718 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2719
2720 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2721 (*tls_global_dynamic_64): Ditto.
2722 (*tls_local_dynamic_base_32_gnu): Ditto.
2723 (*tls_local_dynamic_base_64): Ditto.
2724 (tls_initial_exec_64_sun): Ditto.
2725
2726 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2727
2728 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2729 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2730 bf592-none.
2731 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2732 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2733 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2734 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2735 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2736 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2737 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2738
2739 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2740
2741 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2742 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2743 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2744 target_thread_pointer, arm_structure_size_boundary, struct
2745 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2746 struct abi_name, arm_all_abis): Remove.
2747 (arm_option_override) Don't process most enumerated option values here.
2748 Don't process target_fpe_name here. Work with integer not string for
2749 structure size boundary; use separate diagnostics for each case.
2750 * config/arm/arm.h (enum float_abi_type, enum
2751 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2752 to arm-opts.h.
2753 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2754 arm_structure_size_boundary): Remove.
2755 * config/arm/arm.opt (mabi=): Use Enum and Init.
2756 (arm_abi_type): New Enum and EnumValue entries.
2757 (mfloat-abi=): Use Enum and Init.
2758 (float_abi_type): New Enum and EnumValue entries.
2759 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2760 (mfp16-format=): Use Enum and Init.
2761 (arm_fp16_format_type): New Enum and EnumValue entries.
2762 (mstructure-size-boundary=): Use UInteger and Init.
2763 (mtp=): Use Enum and Init.
2764 (arm_tp_type): New Enum and EnumValue entries.
2765
2766 2011-05-18 Richard Guenther <rguenther@suse.de>
2767
2768 PR tree-optimization/49018
2769 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2770 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2771 gimple_has_side_effects.
2772
2773 2011-05-18 Richard Guenther <rguenther@suse.de>
2774
2775 * gimple.c (gimple_register_type_1): New function, split out from ...
2776 (gimple_register_type): ... here. Avoid infinite recursion.
2777
2778 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2779
2780 PR tree-optimization/41881
2781 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2782 reduction_chains along with a macro for its access.
2783 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2784 (destroy_loop_vec_info): Free reduction chains.
2785 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2786 (vect_is_slp_reduction): New function.
2787 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2788 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2789 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2790 definition types for reduction chains.
2791 (vect_supported_load_permutation_p): Don't allow permutations for
2792 reduction chains.
2793 (vect_analyze_slp_instance): Support reduction chains.
2794 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2795 (vect_get_constant_vectors): Handle reduction chains.
2796 (vect_schedule_slp_instance): Mark the first statement of the
2797 reduction chain as reduction.
2798
2799 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2800
2801 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2802 names for group elements access.
2803 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2804 reduction chains as well. Remove data reference and interleaving
2805 related words from the fields names.
2806 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2807 elements access.
2808 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2809 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2810 vect_update_interleaving_chain, vect_same_range_drs,
2811 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2812 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2813 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2814 vect_analyze_group_access, vect_analyze_data_ref_access,
2815 vect_create_data_ref_ptr, vect_transform_strided_load,
2816 vect_record_strided_load_vectors): Likewise.
2817 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2818 vect_model_load_cost, vectorizable_store, vectorizable_load,
2819 vect_remove_stores, new_stmt_vec_info): Likewise.
2820 * tree-vect-slp.c (vect_build_slp_tree,
2821 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2822
2823 2011-05-18 Richard Guenther <rguenther@suse.de>
2824
2825 PR middle-end/48989
2826 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2827 operand verification.
2828 (verify_gimple_assign_binary): Likewise.
2829 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2830 to non-1-precision BOOLEAN_TYPEs.
2831
2832 2011-05-18 Tom de Vries <tom@codesourcery.com>
2833
2834 PR target/45098
2835 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2836
2837 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2838
2839 PR tree-optimization/49000
2840 * tree-ssa.c (execute_update_addresses_taken): Call
2841 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2842 be rewritten and decl has been marked for renaming, reset
2843 the debug stmt.
2844
2845 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2846
2847 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2848 enum_opts_set when testing if attributes have set -mfpmath=.
2849
2850 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2851
2852 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2853
2854 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2855
2856 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2857 info->entry with 0
2858 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2859 id.transform_lang_insert_block with NULL.
2860
2861 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2862
2863 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2864 (output_fp_compare): Change args 3 and 4 to bool.
2865 (ix86_expand_call): Change arg 6 to bool.
2866 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2867 (ix86_attr_length_vex_default): Change arg 3 to bool.
2868 * config/i386/i386.md: Update all uses.
2869 * config/i386/i386.c: Ditto.
2870 (ix86_flags_dependent): Change return type to bool.
2871
2872 2011-05-17 Richard Guenther <rguenther@suse.de>
2873
2874 * gimple.c (type_hash_pair_compare): Fix comparison.
2875
2876 2011-05-17 Richard Guenther <rguenther@suse.de>
2877
2878 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2879 case some more, fix final hash value of the non-singleton case.
2880
2881 2011-05-17 Richard Guenther <rguenther@suse.de>
2882
2883 PR bootstrap/49013
2884 Revert
2885 2011-05-16 Richard Guenther <rguenther@suse.de>
2886
2887 * gimple.c (gimple_types_compatible_p_1): Use names of the
2888 type itself, not its main variant.
2889 (iterative_hash_gimple_type): Likewise.
2890
2891 2011-05-17 Richard Guenther <rguenther@suse.de>
2892
2893 * gimple.c (gimple_register_canonical_type): Use the main-variant
2894 leader for computing the canonical type.
2895
2896 2011-05-17 Nick Clifton <nickc@redhat.com>
2897
2898 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2899 moves.
2900
2901 * config/rx/rx.md: Add peephole to remove redundant extensions
2902 after loads.
2903 (bitset_in_memory): Use rx_restricted_mem_operand.
2904 (bitinvert_in_memory): Likewise.
2905 (bitclr_in_memory): Likewise.
2906
2907 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2908 Nick Clifton <nickc@redhat.com>
2909
2910 * config/rx/rx.md: Add peepholes to match a register move followed
2911 by a comparison of the moved register. Replace these with an
2912 addition of zero that does both actions in one instruction.
2913
2914 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2915
2916 PR target/48986
2917 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2918 predicate to allow CONST_INT.
2919 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2920
2921 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2922
2923 * opts-common.c (opt_enum_arg_to_value): New.
2924 * opts.h (opt_enum_arg_to_value): Declare.
2925 * config/i386/i386.opt (fpmath): Remove.
2926 (mfpmath=): Use Enum, Init and Save.
2927 (fpmath_unit): New Enum and EnumValue entries.
2928 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2929 name for function fpmath state.
2930 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2931 * config/i386/i386.c: Include diagnostic.h.
2932 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2933 (ix86_target_string): Take enum fpmath_unit value instead of string.
2934 (ix86_debug_options): Update call to ix86_target_string.
2935 (ix86_option_override_internal): Don't process fpmath strings here.
2936 (x86_function_specific_save, ix86_function_specific_restore):
2937 Don't handle fpmath state specially.
2938 (ix86_function_specific_print): Pass fpmath state to
2939 ix86_target_string instead of printing in this function.
2940 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2941 Handle enum attributes.
2942 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2943 (ix86_valid_target_attribute_tree): Update option_strings
2944 handling. Handle fpmath as enum option.
2945 (ix86_can_inline_p): Update field names for function fpmath state.
2946 (ix86_expand_builtin): Update call to ix86_target_string.
2947 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2948 (ix86_fpmath): Remove.
2949 * config/i386/t-i386 (i386.o): Update dependencies.
2950
2951 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2952
2953 PR preprocessor/48677
2954 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2955 from decoded_options[0], not from itself.
2956
2957 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2958
2959 * config/i386/constraints.md (z): New constraint.
2960 * config/i386/i386.c (c): New mode attribute.
2961 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2962 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2963 constraint for operand 0.
2964 (*call_vzeroupper): Ditto.
2965 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2966 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2967 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2968 Use "lzm" constraint for operand 0.
2969 (*call_pop_vzeroupper): Ditto.
2970 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2971 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2972 constraint for operand 0.
2973 (*sibcall_vzeroupper): Ditto.
2974 (*sibcall_rex64_ms_sysv): Ditto.
2975 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2976 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2977 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2978 (*sibcall_pop_vzeroupper): Ditto.
2979 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2980 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2981 mode iterator. Use "<c>zm" constraint for operand 1.
2982 (*call_value_vzeroupper): Ditto.
2983 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2984 for operand 1.
2985 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2986 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2987 *call_value_pop_1. Use "lzm" constraint for operand 1.
2988 (*call_value_pop_vzeroupper): Ditto.
2989 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2990 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2991 mode iterator. Use "Uz" constraint for operand 1.
2992 (*sibcall_value_vzeroupper): Ditto.
2993 (*sibcall_value_rex64_ms_sysv): Ditto.
2994 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2995 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2996 constraint for operand 1.
2997 (*sibcall_value_pop_vzeroupper): Ditto.
2998 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2999 and "z" constraint for operand 2.
3000 (*tls_global_dynamic_32_gnu): Ditto.
3001 (*tls_local_dynamic_base_32_gnu): Ditto.
3002 (*tls_local_dynamic_base_64): Ditto.
3003 (*tls_local_dynamic_32_once): Ditto.
3004 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3005 Update all callers.
3006 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3007
3008 2011-05-16 Richard Guenther <rguenther@suse.de>
3009
3010 * gimple.c (gimple_types_compatible_p_1): Use names of the
3011 type itself, not its main variant.
3012 (iterative_hash_gimple_type): Likewise.
3013
3014 2011-05-16 Richard Guenther <rguenther@suse.de>
3015
3016 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3017 always visit pointer target and function result and argument types.
3018
3019 2011-05-16 Jason Merrill <jason@redhat.com>
3020
3021 PR c++/48999
3022 * tree-inline.c (copy_statement_list): Put back recursion.
3023
3024 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3025
3026 PR target/27663
3027 PR target/41076
3028 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3029 * config/avr/avr.md ("*ior<mode>qi.byte0",
3030 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3031
3032 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3033
3034 PR target/45099
3035 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3036 register is needed for a function argument.
3037
3038 2011-05-16 Richard Guenther <rguenther@suse.de>
3039
3040 * gimple.c (struct type_hash_pair): New type.
3041 (type_hash_pair_compare): New function.
3042 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3043
3044 2011-05-16 Revital Eres <revital.eres@linaro.org>
3045
3046 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3047
3048 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3049
3050 * config/i386/i386.md (floating point move splitters): Fix
3051 usage of standard_80387_constant_p.
3052 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3053
3054 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3055
3056 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3057
3058 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3059
3060 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3061 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3062 (tree_ssa_lim_finalize): Likewise.
3063
3064 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3065
3066 * config/i386/constraint.md (Yd, Yx): New register constraints.
3067 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3068 Yd conditional register constraint.
3069 (*movtf_internal): Use standard_sse_constant_opcode.
3070 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3071 Yx conditional register constraint.
3072 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3073 Yd conditional register constraint. Use standard_sse_constant_p to
3074 check for valid SSE constants and call standard_sse_constant_opcode to
3075 output SSE insn.
3076 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3077 constants and call standard_sse_constant_opcode to output SSE insn.
3078 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3079 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3080 optimize_size is set.
3081 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3082
3083 2011-05-14 Tobias Burnus <burnus@net-b.de>
3084
3085 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3086
3087 2011-05-13 Martin Jambor <mjambor@suse.cz>
3088
3089 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3090 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3091 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3092 (evaluate_conditions_for_ipcp_clone): Removed.
3093 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3094 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3095 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3096
3097 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3098
3099 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3100 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3101 lieu of MAY_HAVE_DEBUG_STMTS.
3102 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3103 debug statements if !MAY_HAVE_DEBUG_STMTS.
3104
3105 2011-05-13 Martin Thuresson <martint@google.com>
3106
3107 PR gcov-profile/47793
3108 * libgcov.c (gcov_exit): Support relative profile paths.
3109 * doc/invoke.texi (-fprofile-dir): Update for above change.
3110
3111 2011-05-13 Richard Guenther <rguenther@suse.de>
3112
3113 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3114 type-pair caching, do not compare hashes.
3115
3116 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3117
3118 PR middle-end/48965
3119 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3120 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3121
3122 2011-05-13 Kai Tietz <ktietz@redhat.com>
3123
3124 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3125 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3126 compatible type for TRUTH_NOT_EXPR.
3127
3128 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3129
3130 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3131 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3132 can_create_pseudo_p ().
3133
3134 2011-05-13 Richard Guenther <rguenther@suse.de>
3135
3136 PR lto/48978
3137 * gimple.c (iterative_hash_gimple_type): Revert change in
3138 pointer target and function result and argument hashing.
3139
3140 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3141
3142 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3143 (*movxf_internal_nointeger): Ditto.
3144 (*movdf_internal_rex64): Ditto.
3145 (*movdf_internal): Ditto.
3146 (*movdf_internal_nointeger): Ditto.
3147 (*movsf_internal): Ditto.
3148 (sincos splitters): Use can_create_pseudo ().
3149
3150 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3151
3152 * config/i386/i386-opts.h: New.
3153 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3154 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3155 ix86_section_threshold): Remove.
3156 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3157 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3158 OPT_mbranch_cost_.
3159 (ix86_option_override_internal): Don't decode strings for options
3160 other than -march=, -mtune= and -mfpmath=. Don't allow for
3161 __attribute__ uses in remaining diagnostics for options with
3162 string arguments. Don't check for integer arguments being negative.
3163 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3164 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3165 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3166 ix86_branch_cost, ix86_section_threshold): Remove.
3167 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3168 HeaderInclude.
3169 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3170 but not Var.
3171 (masm=): Use Enum and Init.
3172 (asm_dialect): New Enum and EnumValue entries.
3173 (mbranch-cost=): Use UInteger.
3174 (mlarge-data-threshold=): Use UInteger and Init.
3175 (mcmodel=): Use Enum and Init.
3176 (cmodel): New Enum and EnumValue entries.
3177 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3178 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3179 mregparm=): Use UInteger.
3180 (mstringop-strategy=): Use Enum and Init.
3181 (stringop_alg): New Enum and EnumValue entries.
3182 (mtls-dialect=): Use Enum and Init.
3183 (tls_dialect): New Enum and EnumValue entries.
3184 (mabi=): Use Enum and Init.
3185 (calling_abi): New Enum and EnumValue entries.
3186 (mveclibabi=): Use Enum and Init.
3187 (ix86_veclibabi): New Enum and EnumValue entries.
3188
3189 2011-05-13 Nick Clifton <nickc@redhat.com>
3190
3191 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3192 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3193
3194 2011-05-13 Kai Tietz <ktietz@redhat.com>
3195
3196 PR middle-end/48984
3197 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3198 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3199 (gimple_boolify): Check for cast for boolean_type_node instead for
3200 BOOLEAN_TYPE.
3201
3202 2011-05-13 Richard Guenther <rguenther@suse.de>
3203
3204 PR tree-optimization/48172
3205 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3206 multiplying by number of iterations for equal step.
3207 (vect_create_cond_for_alias_checks): Likewise.
3208
3209 2011-05-13 Andreas Schwab <schwab@redhat.com>
3210
3211 * configure.ac: Use AS_HELP_STRING throughout.
3212 * configure: Regenerate.
3213
3214 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3215
3216 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3217 (ix86_emit_restore_regs_using_mov): Likewise.
3218 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3219
3220 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3221
3222 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3223 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3224 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3225 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3226 RTX_OK_FOR_OLO10_P): ...here.
3227 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3228 SYMBOLIC_CONST.
3229
3230 2011-05-12 Kai Tietz <ktietz@redhat.com>
3231
3232 * gimplify.c (gimple_boolify): Re-boolify expression
3233 arguments even if expression type is of kind BOOLEAN_TYPE.
3234 (gimplify_boolean_expr): Removed.
3235 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3236 and XOR. Additional take care that we keep expression's type.
3237 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3238 of TRUTH_AND|OR|XOR_EXPR.
3239
3240 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3241
3242 PR tree-optimization/48975
3243 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3244 on all bbs here and free and clear ifc_bbs at the end.
3245
3246 2011-05-12 Richard Guenther <rguenther@suse.de>
3247
3248 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3249 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3250 until after simple checks.
3251 (gimple_types_compatible_p): Likewise.
3252 (iterative_hash_gimple_type): Always hash pointer targets
3253 and function return and argument types.
3254 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3255 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3256 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3257 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3258 completely in the simple compare section.
3259 (gimple_register_canonical_type): Query the cache again after
3260 registering.
3261
3262 2011-05-12 Richard Guenther <rguenther@suse.de>
3263
3264 PR tree-optimization/48172
3265 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3266 the number of iterations from the segment size calculation.
3267 (vect_create_cond_for_alias_checks): Adjust.
3268
3269 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3270
3271 PR debug/48967
3272 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3273 if validate_subreg fails.
3274
3275 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3276
3277 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3278 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3279 early.
3280
3281 2011-05-12 DJ Delorie <dj@redhat.com>
3282
3283 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3284 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3285 created builtin into rx_builtins array.
3286 (rx_builtin_decl): New function.
3287 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3288
3289 2011-05-12 DJ Delorie <dj@redhat.com>
3290 Nick Clifton <nickc@redhat.com>
3291
3292 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3293 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3294 (rx_is_legitimate_address): Add pre-decrement and post-increment
3295 addressing in HImode and QImode. Fix test for out of range
3296 REG+INT addressing.
3297 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3298 (rx_align_for_label): Test label before extracting its usage count.
3299 (rx_adjust_insn_lengths): Fix selection of insn codes.
3300 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3301
3302 2011-05-11 Jason Merrill <jason@redhat.com>
3303
3304 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3305
3306 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3307
3308 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3309 reindent the subsequent block.
3310
3311 2011-05-11 Satoru Takabayashi <satorux@google.com>
3312 Paul Pluzhnikov <ppluzhnikov@google.com>
3313
3314 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3315 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3316 * config.in: Add LINKER_HASH_STYLE.
3317 * configure.ac: Add --with-linker-hash-style.
3318 * configure: Regenerate.
3319
3320 2011-05-11 Richard Guenther <rguenther@suse.de>
3321
3322 PR middle-end/48964
3323 * gimple.c (iterative_hash_canonical_type): Fix typo.
3324
3325 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3326
3327 * config/i386/i386.c (legitimize_tls_address)
3328 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3329 expanders directly for TARGET_GNU2_TLS. Determine pic and
3330 __tls_get_addr symbol reference here. Update call to
3331 gen_tls_global_dynamic_{32,64} for added arguments.
3332 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3333 expanders directly for TARGET_GNU2_TLS. Determine
3334 __tls_get_addr symbol reference here. Update call to
3335 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3336 unique UNSPEC REG_EQUIV to libcall block.
3337 (ix86_tls_get_addr): Declare static.
3338 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3339 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3340 Do not determine pic and __tls_get_addr symbol reference here. Do not
3341 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3342 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3343 (tls_global_dynamic_64): Add operand 2. Do not determine
3344 __tls_get_addr symbol reference here. Do not call
3345 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3346 (tls_local_dynamic_base64): Ditto for operand 1.
3347
3348 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3349
3350 * function.c (expand_function_start): Initialize stack_check_probe_note
3351 only if the generic stack checking mechanism is used.
3352
3353 2011-05-11 Richard Guenther <rguenther@suse.de>
3354
3355 PR tree-optimization/15256
3356 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3357 (A & B) | C, combine (A op CST1) op CST2.
3358 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3359 visit assigns that have uses.
3360
3361 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3362
3363 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3364 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3365 (unpack_ts_type_common_value_fields): ...this. Update comment.
3366 (unpack_value_fields): Adjust for renaming.
3367 (lto_input_ts_type_tree_pointers): Split into...
3368 (lto_input_ts_type_common_tree_pointer): ...this and...
3369 (lto_input_ts_type_non_common_tree_pointers): ...this.
3370 (lto_input_tree_pointers): Adjust for above split.
3371 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3372 (pack_ts_type_common_value_fields): ...this. Update comment.
3373 (lto_output_ts_type_tree_pointers): Split into...
3374 (lto_output_ts_type_common_tree_pointers): ...this and...
3375 (lto_output_ts_type_non_common_tree_pointers): ...this.
3376 (lto_output_tree_pointers): Adjust for above split.
3377 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3378 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3379 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3380 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3381 Define.
3382 (struct tree_type): Split into...
3383 (struct tree_type_common: ...this and...
3384 (struct tree_type_with_lang_specific): ...this and...
3385 (struct tree_type_non_common): ...this. Adjust accessor macros
3386 accordingly.
3387 (TYPE_VALUES_RAW): Define.
3388 (union tree_node): Update for above changes.
3389 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3390 TS_TYPE_NON_COMMON.
3391 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3392 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3393 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3394 * treestructu.def (TS_TYPE): Remove.
3395 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3396 Define.
3397
3398 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3399
3400 PR debug/48159
3401 * tree-ssa.c (reset_debug_uses): New function.
3402 * tree-flow.h (reset_debug_uses): New prototype.
3403 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3404 * tree-loop-distribution.c (generate_loops_for_partition): Call
3405 reset_debug_uses on the stmts that will be removed. Keep around
3406 all debug stmts, don't count them as bits in partition bitmap.
3407 (generate_builtin): Don't count debug stmts or labels as bits in
3408 partition bitmap.
3409
3410 2011-05-11 Richard Guenther <rguenther@suse.de>
3411
3412 * gimple.c (gimple_type_hash_1): Merge with ...
3413 (gimple_type_hash): ... this.
3414 (gtc_visit): Remove mode parameter and simplify accordingly.
3415 (gimple_types_compatible_p_1): Likewise.
3416 (gimple_types_compatible_p): Likewise.
3417 (iterative_hash_gimple_type): Likewise.
3418 (visit): Likewise.
3419 (gimple_type_eq): Adjust.
3420
3421 2011-05-11 Revital Eres <revital.eres@linaro.org>
3422
3423 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3424 enters the branch create an anti edge in the opposite direction
3425 to prevent the creation of reg-moves.
3426 * modulo-sched.c: Adjust comment to reflect the fact we are
3427 scheduling closing branch.
3428 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3429 (stage_count): New field in struct partial_schedule.
3430 (calculate_stage_count): New function.
3431 (normalize_sched_times): Rename to reset_sched_times and handle
3432 incrementing the sched time of the nodes by a constant value
3433 passed as parameter.
3434 (duplicate_insns_of_cycles): Skip closing branch.
3435 (sms_schedule_by_order): Schedule closing branch.
3436 (ps_insn_find_column): Handle closing branch.
3437 (sms_schedule): Call reset_sched_times and adjust the code to
3438 support scheduling of the closing branch.
3439 (ps_insert_empty_row): Update calls to normalize_sched_times
3440 and rotate_partial_schedule functions.
3441
3442 2011-05-11 Richard Guenther <rguenther@suse.de>
3443
3444 PR middle-end/48953
3445 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3446
3447 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3448
3449 * opts.c (finish_options): Move warning settings from process_options.
3450 * toplev.c (process_options): Move warning settings to finish_options.
3451
3452 2011-05-11 Richard Guenther <rguenther@suse.de>
3453
3454 PR tree-optimization/18041
3455 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3456 (simplify_bitwise_binary): ... this. Handle operand conversions
3457 by applying them to the result instead.
3458 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3459
3460 2011-05-11 Richard Guenther <rguenther@suse.de>
3461
3462 * gimple.c (gimple_canonical_types_compatible_p): Split out
3463 from gimple_types_compatible_p and friends. Do not recurse
3464 to pointed-to types.
3465 (gimple_canonical_type_eq): Use it.
3466 (iterative_hash_canonical_type): Split out from
3467 iterative_hash_gimple_type and friends. Do not recurse
3468 to pointed-to types.
3469 (gimple_canonical_type_hash): Use it, allocate the hash here.
3470
3471 2011-05-11 Revital Eres <revital.eres@linaro.org>
3472
3473 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3474 recognizing doloop.
3475
3476 2011-05-11 Revital Eres <revital.eres@linaro.org>
3477
3478 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3479 instead of PREV_INSN.
3480
3481 2011-05-11 Revital Eres <revital.eres@linaro.org>
3482
3483 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3484 * loop-doloop.c (doloop_condition_get): Likewise.
3485 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3486 (doloop_end): New.
3487 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3488
3489 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3490
3491 * tree.def (CASE_LABEL_EXPR): Add an operand.
3492 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3493
3494 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3495
3496 * c-decl.c (c_override_global_bindings_to_false): Remove.
3497 (global_bindings_p): Don't check
3498 c_override_global_bindings_to_false.
3499 * c-tree.h (c_override_global_bindings_to_false): Remove.
3500 * c-typeck.c (composite_type): Don't set
3501 c_override_global_bindings_to_false.
3502
3503 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3504
3505 PR target/48857, 48495
3506 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3507 (VSX_MODE): Ditto.
3508 (VSX_MOVE_MODE): Ditto.
3509 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3510 VSX vector types. Add V2DImode.
3511 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3512 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3513 (MODES_TIEABLE_P): Ditto.
3514
3515 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3516 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3517 VSX_VECTOR_MODE.
3518 (init_cumulative_args): Ditto.
3519 (rs6000_function_arg_boundary): Ditto.
3520 (rs6000_function_arg_advance_1): Ditto.
3521 (rs6000_function_arg): Ditto.
3522 (rs6000_function_ok_for_sibcall): Ditto.
3523 (emit_frame_save): Ditto.
3524 (rs6000_function_value): Ditto.
3525 (rs6000_libcall_value): Ditto.
3526
3527 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3528
3529 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3530 i386/darwin-lib.h to $libgcc_tm_file.
3531 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3532
3533 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3534
3535 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3536
3537 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3538
3539 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3540 * config/rs6000/rs6000-tables.opt: New file (generated).
3541 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3542 rs6000/rs6000-tables.opt to extra_options.
3543 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3544 * config/rs6000/rs6000.c (rs6000_select): Remove.
3545 (processor_target_table): Move contents to rs6000-cpus.def.
3546 (darwin_rs6000_override_options): Check
3547 global_options_set.x_rs6000_cpu_index instead of
3548 rs6000_select[1].string.
3549 (rs6000_option_override_internal): Likewise.
3550 (rs6000_handle_option): Don't assert that global structures are in
3551 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3552 (rs6000_default_cpu): New variable.
3553 (rs6000_file_start): Set it instead of local default_cpu. Check
3554 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3555 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3556 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3557 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3558 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3559 rs6000_select): Remove.
3560 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3561 Remove.
3562 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3563 * config/rs6000/t-rs6000
3564 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3565 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3566 global_options_set.x_rs6000_cpu_index instead of
3567 rs6000_select[1].string.
3568 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3569 global_options_set.x_rs6000_cpu_index instead of
3570 rs6000_select[1].string.
3571
3572 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3573
3574 * config.gcc (libgcc_tm_file): Define instead of including files
3575 from ../../libgcc/config/ in tm_file.
3576 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3577 * configure: Regenerate.
3578 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3579 libgcc_tm.h, cs-libgcc_tm.h): New.
3580 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3581 (clean): Remove libgcc_tm.h.
3582 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3583 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3584 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3585
3586 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3587
3588 PR target/48896
3589 * config/avr/avr.c (avr_ret_register): Return unsigned int
3590 instead of int.
3591 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3592 it to avr_libcall_value.
3593 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3594 expand_expr.
3595 (avr_expand_binop_builtin): Ditto.
3596 (avr_expand_unop_builtin): Ditto.
3597
3598 2011-05-10 DJ Delorie <dj@redhat.com>
3599
3600 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3601 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3602 * config/rx/rx.c (rx_align_for_label): Add label and
3603 uses_threshold parameters. Do not align when the label is not
3604 used enough.
3605 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3606
3607 2011-05-10 Richard Guenther <rguenther@suse.de>
3608
3609 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3610 a series of conversions and apply foldings similar to what
3611 fold-const does.
3612 (tree_ssa_forward_propagate_single_use_vars): Call it.
3613
3614 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3615
3616 PR tree-optimization/48611
3617 PR tree-optimization/48794
3618 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3619 referenced from RESX or EH_DISPATCH arguments.
3620
3621 PR debug/48928
3622 * dfp.c (decimal_to_decnumber): Handle conversion from
3623 dconst{1,2,m1,half}.
3624
3625 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3626
3627 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3628 for !flag_prefer_avx128.
3629 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3630
3631 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3632
3633 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3634 (fold_ternary_loc): Use expr_location_or.
3635
3636 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3637
3638 PR debug/48853
3639 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3640 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3641 Pmode and mem_mode is not VOIDmode.
3642
3643 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3644
3645 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3646 TYPE_QUAL_RESTRICT): Convert to enum.
3647
3648 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3649
3650 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3651 (const_pow2_1_to_8_operand): Ditto.
3652 (const_pow2_1_to_128_operand): Ditto.
3653 (const_pow2_1_to_32768_operand): Ditto.
3654 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3655 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3656 in insn constraint to check integer value of operand 3.
3657 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3658
3659 (PINSR_MODE): New mode iterator.
3660 (sse2p4_1): New mode attribute.
3661 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3662 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3663 iterator. Use const_int_operand instead of
3664 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3665 exact_log2 in insn constraint to check integer value of operand 3.
3666
3667 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3668
3669 * config/i386/sse.md (blendbits): Remove mode attribute.
3670 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3671 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3672 Check integer value of operand 3 in insn constraint.
3673
3674 2011-05-09 Richard Guenther <rguenther@suse.de>
3675
3676 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3677 for diagnostics.
3678 (lto_symtab_merge): Likewise. Do not register types here.
3679 (lto_symtab_merge_decls_2): Likewise.
3680 (lto_symtab_merge_decls_1): Likewise.
3681 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3682 * gimple.c (enum gtc_mode): Declare.
3683 (gimple_types_compatible_p): Make static.
3684
3685 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3686
3687 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3688 temporary register to match Pmode.
3689
3690 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3691
3692 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3693 and *vec_concatv4si_1_avx.
3694
3695 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3696
3697 PR rtl-optimization/48927
3698 * ira-conflicts.c (commutative_constraint_p): Use
3699 recog_data.alternative_enabled_p to disable alternatives where
3700 "enabled" attribute is false.
3701 (get_dup_num): Ditto.
3702 * ira-lives.c (single_reg_class): Ditto.
3703 (ira_implicitly_set_insn_hard_regs): Ditto.
3704
3705 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3706
3707 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3708 (dataflow_set_preserve_mem_locs): Likewise.
3709
3710 2011-05-09 Philipp Thomas <pth@suse.de>
3711
3712 * config/mep/mep.c (mep_validate_vliw): Syntax description
3713 should not be translated.
3714
3715 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3716
3717 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3718 * config/mips/mips-tables.opt: New file (generated).
3719 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3720 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3721 MIPS_ARCH_OPTION_NATIVE): Define.
3722 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3723 mips-cpus.def.
3724 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3725 mips_parse_cpu): Remove.
3726 (mips_cpu_info_from_opt, mips_default_arch): New.
3727 (mips_handle_option): Don't assert that global structures are in
3728 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3729 (mips_option_override): Use new variables and functions to set
3730 state of these options. Use strcmp to check for individual CPU names.
3731 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3732 definition.
3733 * config/mips/mips.opt (march=): Use ToLower and Enum.
3734 (mips): Use ToLower, Enum and Var.
3735 (mtune=): Use ToLower and Enum.
3736 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3737
3738 2011-05-08 Jan Hubicka <jh@suse.cz>
3739
3740 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3741 Arrange type pairs to be UID ordered.
3742 (gimple_lookup_type_leader): Make inline.
3743
3744 2011-05-09 Nick Clifton <nickc@redhat.com>
3745
3746 PR target/48899
3747 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3748 PROCESSOR_DEFAULT.
3749
3750 PR target/48897
3751 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3752 variable 's'.
3753
3754 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3755
3756 * combine.c (simplify_comparison): Abstract out parts into...
3757 (simplify_compare_const): ... new function.
3758 (try_combine): Generalize parallel arithmetic/compare combining
3759 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3760
3761 2011-05-08 Jan Hubicka <jh@suse.cz>
3762
3763 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3764 (cgraph_create_virtual_clone): Call hooks once virtual clone
3765 is finished.
3766 * cgraph.h (cgraph_clone_node): Update prototype.
3767 * ipa-cp.c (ipcp_estimate_growth): Use
3768 estimate_ipcp_clone_size_and_time.
3769 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3770 * lto-cgraph.c (input_node): Update.
3771 * ipa-inline.c (recursive_inlining): Update.
3772 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3773 (evaluate_conditions_for_known_args): Break out from ...
3774 (evaluate_conditions_for_edge): ... here.
3775 (evaluate_conditions_for_ipcp_clone): New function.
3776 (inline_node_duplication_hook): Update clone summary based
3777 on parameter map.
3778 (estimate_callee_size_and_time): Rename to ...
3779 (estimate_node_size_and_time): take NODE instead of EDGE;
3780 take POSSIBLE_TRUTHS as argument.
3781 (estimate_callee_size_and_time): Update.
3782 (estimate_ipcp_clone_size_and_time): New function.
3783 (do_estimate_edge_time): Update.
3784
3785 2011-05-08 Richard Guenther <rguenther@suse.de>
3786
3787 PR middle-end/48908
3788 PR middle-end/48905
3789 * expmed.c (expand_shift_1): Compute adjusted constant shift
3790 amount manually.
3791
3792 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3793
3794 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3795
3796 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3797
3798 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3799
3800 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3801
3802 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3803
3804 2011-05-07 Jan Hubicka <jh@suse.cz>
3805
3806 * ipa-inline-transform.c (inline_call): Account when program size
3807 decreases.
3808 * ipa-inline.c (relative_time_benefit): New function.
3809 (edge_badness): Reorganize to be power 2 based; fix thinko when
3810 computing badness for negative growth; update comments to match
3811 reality; better dumps.
3812
3813 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3814
3815 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3816 type to bool and adjust comment.
3817 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3818 (fold_mathfn_compare): Remove calls to global_bindings_p.
3819 (fold_inf_compare): Likewise.
3820 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3821 * c-tree.h (global_bindings_p): Adjust prototype.
3822 * c-decl.c (global_bindings_p): Return bool and simplify.
3823
3824 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3825
3826 PR tree-optimization/48837
3827 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3828 when accumulator transformation is performed.
3829
3830 2011-05-06 Jan Hubicka <jh@suse.cz>
3831
3832 * i386.h (ix86_tune_indices): Add
3833 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3834 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3835 * i386.c (initial_ix86_tune_features): Add
3836 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3837 (software_prefetching_beneficial_p): Remove predicate.
3838 (ix86_option_override_internal): Use new macro.
3839
3840 2011-05-06 Jan Hubicka <jh@suse.cz>
3841
3842 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3843
3844 2011-05-06 Jan Hubicka <jh@suse.cz>
3845
3846 * cgraph.c (cgraph_add_thunk): Create real function node instead
3847 of alias node; finalize it and mark needed/reachale; arrange visibility
3848 to be right and add it into the corresponding same comdat group list.
3849 (dump_cgraph_node): Dump thunks.
3850 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3851 cgraph_function_with_gimple_body_p,
3852 cgraph_first_function_with_gimple_body,
3853 cgraph_next_function_with_gimple_body): New functions.
3854 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3855 New macros.
3856 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3857 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3858 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3859 devirtualization when optimizing.
3860 (verify_cgraph_node): Verify thunks.
3861 (cgraph_analyze_function): Analyze thunks.
3862 (cgraph_mark_functions_to_output): Output thunks only in combination
3863 with function they are assigned to.
3864 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3865 alias into normal node.
3866 (assemble_thunks): New functoin.
3867 (cgraph_expand_function): Use it.
3868 * lto-cgraph.c (lto_output_node): Stream thunks.
3869 (input_overwrite_node): Stream in thunks.
3870 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3871 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3872 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3873 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3874 (inline_analyze_function): Do not care about thunk jump functions.
3875 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3876 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3877 cgraph_function_with_gimple_body_p.
3878 * passes.c (do_per_function_toporder): Use
3879 cgraph_function_with_gimple_body_p.
3880 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3881 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3882 (function_called_by_processed_nodes_p): Likewise.
3883
3884 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3885
3886 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3887 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3888 entries.
3889 (mabi=): Replace with separate entries for mabi=altivec,
3890 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3891 mabi=ieeelongdouble and mabi=ibmlongdouble.
3892 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3893 check for -mabi=spe without SPE ABI support here.
3894 (rs6000_handle_option): Replace OPT_mabi_ handling with
3895 OPT_mabi_altivec and OPT_mabi_spe handling.
3896
3897 2011-05-06 Cary Coutant <ccoutant@google.com>
3898
3899 * dwarf2out.c (contains_subprogram_definition): New function.
3900 (should_move_die_to_comdat): Call it.
3901
3902 2011-05-06 Jeff Law <law@redhat.com>
3903
3904 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3905 remove_ctrl_stmt_and_useless_edges.
3906 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3907 (fixup_template_block, thread_single_edge): Likewise.
3908 (mark_threaded_blocks): Use THREAD_TARGET.
3909
3910 2011-05-06 Alan Modra <amodra@gmail.com>
3911
3912 PR target/48900
3913 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3914 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3915
3916 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3917
3918 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3919 constraint modifier to "r".
3920
3921 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3922
3923 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3924 fall through for OPT_mcmodel_.
3925
3926 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3927
3928 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3929 instruction sizes.
3930 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3931
3932 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3933
3934 PR target/47930
3935 * config/arm/arm.opt (marm): Document it.
3936 (mthumb): Reject negative variant.
3937
3938 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3939
3940 PR target/48898
3941 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3942 Fix typo in "ccvt" variable name.
3943
3944 2011-05-06 Tristan Gingold <gingold@adacore.com>
3945
3946 PR target/48895
3947 * config/vms/vms-ar.c (main): Remove cwd variable.
3948
3949 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3950
3951 PR debug/48902
3952 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3953
3954 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3955
3956 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3957 * gimplify.c (gimplify_switch_expr): Likewise.
3958 * omp-low.c (expand_omp_sections): Likewise.
3959 * tree-eh.c (lower_try_finally_switch): Likewise.
3960 (lower_eh_dispatch): Likewise.
3961 * tree.h (build_case_label): Declare.
3962 * tree.c (build_case_label): Define.
3963
3964 2011-05-05 Jason Merrill <jason@redhat.com>
3965
3966 PR c++/40975
3967 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3968 (copy_statement_list): Don't recurse.
3969 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3970 STATEMENT_LIST.
3971
3972 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3973
3974 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3975 through from -mfpu= handling.
3976 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3977
3978 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3979
3980 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3981 POST_MODIFY.
3982
3983 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3984
3985 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3986 for 11.31.
3987 (hppa[12]*-*-hpux11*): Ditto.
3988 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3989 * config/ia64/hpux-unix2003.h: New.
3990 * config/pa/pa-hpux1131.opt: New.
3991 * config/pa/pa-hpux1131.h: New.
3992 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3993 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3994 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3995
3996 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3997
3998 PR debug/48853
3999 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4000 instead of mode as 3rd argument to recursive call.
4001 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4002 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4003 VOIDmode.
4004 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4005 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4006 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4007 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4008
4009 2011-05-05 Julian Brown <julian@codesourcery.com>
4010
4011 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4012 parenthesis in D-register case.
4013
4014 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4015
4016 * opt-functions.awk (var_type_struct): Handle Enum options.
4017 * optc-gen.awk: Don't check range of variables of character type.
4018 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4019 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4020 rs6000_sdata_name, rs6000_explicit_options): Remove.
4021 (rs6000_option_override_internal): Check for -malign-power here.
4022 Use global_options_set instead of rs6000_explicit_options.
4023 (rs6000_parse_fpu_option): Remove.
4024 (rs6000_handle_option): Access variables via opts and opts_set
4025 pointers. Use error_at and warning_at. Add fall-through
4026 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4027 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4028 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4029 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4030 here. Don't use rs6000_parse_fpu_option.
4031 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4032 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4033 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4034 (mrecip=): Use Var.
4035 (mspe): Use Var and Save.
4036 (mtraceback=): Use Enum and Var.
4037 (rs6000_traceback_type): New Enum and EnumValue entries.
4038 (mfloat-gprs=): Use Enum, Var and Save.
4039 (rs6000_float_gprs): New Enum and EnumValue entries.
4040 (mlong-double-): use Var and Save.
4041 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4042 (malign-): Use Enum and Var.
4043 (rs6000_alignment_flags): New Enum and EnumValue entries.
4044 (mfpu=): Use Enum.
4045 (fpu_type_t): New Enum and EnumValue entries.
4046 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4047 global_options_set instead of rs6000_explicit_options.
4048 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4049 global_options_set instead of rs6000_explicit_options.
4050 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4051 global_options_set instead of rs6000_explicit_options.
4052 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4053 global_options_set instead of rs6000_explicit_options.
4054 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4055 global_options_set instead of rs6000_explicit_options.
4056 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4057 global_options_set instead of rs6000_explicit_options.
4058 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4059 definition.
4060 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4061 global_options_set instead of rs6000_explicit_options.
4062 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4063 (rs6000_cmodel): New Enum and EnumValue entries.
4064 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4065 global_options_set instead of rs6000_explicit_options.
4066 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4067 (mtls-size=): Use Enum and Var.
4068 (rs6000_tls_size): New Enum and EnumValue entries.
4069
4070 2011-05-05 Michael Matz <matz@suse.de>
4071
4072 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4073 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4074 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4075 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4076 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4077 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4078 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4079 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4080 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4081 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4082 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4083 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4084 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4085 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4086 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4087 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4088
4089 2011-05-05 Richard Guenther <rguenther@suse.de>
4090
4091 * expmed.c (expand_variable_shift): Rename to ...
4092 (expand_shift_1): ... this. Take an expanded shift amount.
4093 For rotates recurse directly not building trees for the shift amount.
4094 (expand_variable_shift): Wrap around expand_shift_1.
4095 (expand_shift): Adjust.
4096
4097 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4098
4099 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4100
4101 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4102
4103 * tree.h (get_pending_sizes): Remove prototype.
4104 (put_pending_size): Likewise.
4105 (put_pending_sizes): Likewise.
4106 * stor-layout.c (pending_sizes): Delete.
4107 (get_pending_sizes): Likewise.
4108 (put_pending_size): Likewise.
4109 (put_pending_sizes): Likewise.
4110 (variable_size): Do not call put_pending_size and tidy up.
4111 * function.h (struct function): Remove dont_save_pending_sizes_p.
4112 * lto-streamer-in.c (input_function): Do not stream it.
4113 * lto-streamer-out.c (output_function): Likewise.
4114 * tree-inline.c (initialize_cfun): Do not copy it.
4115 * c-decl.c (store_parm_decls): Do not set it.
4116 * omp-low.c (create_task_copyfn): Likewise.
4117 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4118
4119 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4120
4121 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4122 conditions.
4123 (*movdf_internal): Ditto.
4124 (*movdf_internal_nointeger): Ditto.
4125 (*movsf_internal): Ditto.
4126
4127 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4128
4129 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4130 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4131 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4132 (c_variable_size): Remove.
4133 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4134 call put_pending_sizes.
4135 (get_parm_info): Add parameter expr. Use it to set
4136 arg_info->pending_sizes.
4137 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4138 get_pending_sizes.
4139 * c-parser.c (c_parser_parms_declarator): Update call to
4140 c_parser_parms_list_declarator.
4141 (c_parser_parms_list_declarator): Take parameter expr. Update
4142 call to push_parm_decl. Update recursive call. Don't call
4143 get_pending_sizes. Update calls to get_parm_info.
4144 (c_parser_objc_method_definition): Update calls to
4145 c_parser_objc_method_decl and objc_start_method_definition.
4146 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4147 (c_parser_objc_method_decl): Add parameter expr. Update call to
4148 grokparm.
4149 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4150 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4151 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4152
4153 2011-05-05 Michael Hope <michael.hope@linaro.org>
4154
4155 PR pch/45979
4156 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4157 __ARM_EABI__ hosts.
4158
4159 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4160
4161 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4162 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4163 (spu_output_mi_thunk): New function.
4164
4165 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4166
4167 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4168 targetm.asm_out.print_operand.
4169 * config/sol2.c: Include target.h.
4170
4171 2011-05-04 Jan Hubicka <jh@suse.cz>
4172
4173 * ipa-inline.c (reset_edge_caches): New function.
4174 (update_caller_keys): Add check_inlinablity_for; do not
4175 reset edge caches; remove now unnecesary loop.
4176 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4177 (update_all_callee_keys): Likewise.
4178 (inline_small_functions): Sanity check cache; update code
4179 recomputing it.
4180
4181 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4182
4183 PR rtl-optimization/47612
4184 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4185 as the last insn of the sequence to be moved.
4186
4187 2011-05-04 Tobias Burnus <burnus@net-b.de>
4188
4189 PR fortran/48864
4190 * doc/invoke.texi (Ofast): Document that it
4191 enables Fortran's -fno-protect-parens.
4192
4193 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4194
4195 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4196
4197 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4198
4199 * stor-layout.c (variable_size): Do not issue errors.
4200
4201 2011-05-04 Richard Guenther <rguenther@suse.de>
4202
4203 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4204 for array-ref indices.
4205 (tree_coverage_counter_addr): Likewise.
4206 (build_fn_info_type): Use size_int for index types.
4207 (build_gcov_info): Likewise.
4208
4209 2011-05-04 Richard Guenther <rguenther@suse.de>
4210
4211 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4212 to build_int_cst.
4213 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4214 for constructor indices.
4215 (push_init_level): Likewise.
4216
4217 2011-05-04 Richard Guenther <rguenther@suse.de>
4218
4219 * explow.c (promote_mode): Move variable declarations before code.
4220
4221 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4222
4223 * tree.h (build_function_type_array): Declare.
4224 (build_varargs_function_type_array): Declare.
4225 (build_function_type_vec, build_varargs_function_type_vec): Define.
4226 * tree.c (build_function_type_array_1): New function.
4227 (build_function_type_array): New function.
4228 (build_varargs_function_type_array): New function.
4229
4230 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4231
4232 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4233 before setting STMT_VINFO_TYPE.
4234
4235 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4236
4237 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4238 instead of spu_pass_by_reference.
4239
4240 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4241
4242 * calls.c (emit_library_call_value_1): Invoke
4243 promote_function_mode hook on libcall arguments.
4244 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4245 argument being NULL.
4246 * targhooks.c (default_promote_function_mode): Lisewise.
4247 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4248 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4249
4250 * doc/tm.texi: Document that TYPE argument might be NULL.
4251
4252 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4253
4254 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4255
4256 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4257
4258 From Bernd Schmidt
4259 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4260
4261 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4262
4263 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4264 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4265 Move ...
4266 * mips-tfile.c: ... here.
4267 Don't include coretypes.h, tm.h, filenames.h.
4268 (saber_stop): Remove definition and all calls.
4269 [__SABER__]: Remove.
4270 (__LINE__): Remove default.
4271 (Size_t, Ptrdiff_t): Remove definitions.
4272 Replace by size_t, ptrdiff_t.
4273 [!MIPS_DEBUGGING_INFO]: Remove.
4274 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4275 (progname): Add const.
4276 (STATIC): Remove.
4277 Replace all uses by static.
4278 (ALIGN_SYMTABLE_OFFSET): Remove default.
4279 * mips-tdump.c: Don't include coretypes.h, tm.h.
4280 Remove !MIPS_IS_STAB guard.
4281 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4282 $(TM_H), filenames.h dependencies.
4283 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4284
4285 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4286
4287 From Jie Zhang
4288 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4289 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4290
4291 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4292
4293 From Bernd Schmidt
4294 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4295 account and save/restore RETS.
4296 (PROFILE_BEFORE_PROLOGUE): Define.
4297 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4298 the push insn to use predecrement.
4299
4300 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4301
4302 From Jie Zhang
4303 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4304
4305 2011-05-04 Nick Clifton <nickc@redhat.com>
4306
4307 * config/mn10300/mn10300.c: Include cfgloop.h.
4308 (DUMP): New macro.
4309 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4310 Lcc or a FLcc insn into the instruction stream.
4311 (mn10300_block_contains_call): New function. Returns true if the
4312 given basic block contains a CALL insn.
4313 (mn10300_loop_contains_call_insn): New function. Returns true if
4314 the given loop contains a CALL insn.
4315 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4316 to use the SETLB and Lcc or FLcc insns.
4317 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4318 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4319 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4320 disable the SETLB optimization.
4321 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4322 __SETLB__ or __NO_SETLB__.
4323 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4324 (movsf_internal): Handle MDR register.
4325 (cmpsi): Make visible.
4326 (setlb): New pattern.
4327 (Lcc): New pattern.
4328 (FLcc): New pattern.
4329
4330 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4331
4332 PR target/48860
4333 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4334 for reg<->xmm moves.
4335 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4336 (vec_concatv2di_rex64_sse): Ditto.
4337 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4338 (*vec_extractv2di_1_rex64): Ditto.
4339
4340 Revert:
4341 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4342
4343 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4344 reg<->xmm moves.
4345 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4346
4347 2011-05-04 Richard Guenther <rguenther@suse.de>
4348
4349 * tree.h (int_const_binop): Remove notrunc argument.
4350 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4351 create integer constants that are properly truncated.
4352 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4353 (const_binop): Remove zero notrunc argument to int_const_binop.
4354 (size_binop_loc): Likewise.
4355 (fold_div_compare): Likewise.
4356 (maybe_canonicalize_comparison_1): Likewise.
4357 (fold_comparison): Likewise.
4358 (fold_binary_loc): Likewise.
4359 (multiple_of_p): Likewise.
4360 * expr.c (store_constructor): Likewise.
4361 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4362 (maybe_fold_stmt_addition): Likewise.
4363 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4364 * stor-layout.c (layout_type): Likewise.
4365 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4366 * tree-sra.c (build_ref_for_offset): Likewise.
4367 (build_user_friendly_ref_for_offset): Likewise.
4368 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4369 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4370 * tree-ssa-loop-niter.c (inverse): Likewise.
4371 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4372 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4373 * tree-switch-conversion.c (check_range): Likewise.
4374 (build_constructors): Likewise.
4375 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4376 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4377 (extract_range_from_assert): Likewise.
4378 (vrp_int_const_binop): Likewise.
4379 (extract_range_from_binary_expr): Likewise.
4380 (extract_range_from_unary_expr): Likewise.
4381 (check_array_ref): Likewise.
4382 (find_case_label_range): Likewise.
4383 (simplify_div_or_mod_using_ranges): Likewise.
4384 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4385 comparing case labels for merging.
4386
4387 2011-05-03 Mark Wielaard <mjw@redhat.com>
4388
4389 * dwarf2out.c (debug_str_hash_forced): Removed.
4390 (gen_label_for_indirect_string): Removed.
4391 (get_debug_string_label): Removed.
4392 (AT_string_form): Generate label directly.
4393 (output_indirect_string): Test indirect_string_node for
4394 DW_FORM_strp instead of checking label and refcount.
4395 (prune_indirect_string): Removed.
4396 (prune_unused_types): Don't check debug_str_hash_forced or
4397 call prune_indirect_string.
4398
4399 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4400
4401 PR other/48093
4402 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4403
4404 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4405
4406 PR debug/47994
4407 PR debug/47919
4408 * combine.c (try_combine): Skip debug insns at m_split tests.
4409
4410 2011-04-26 Mark Wielaard <mjw@redhat.com>
4411
4412 PR42288
4413 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4414 when info_section_emitted.
4415
4416 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4417
4418 * config/mips/mips-opts.h: New.
4419 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4420 to mips-opts.h.
4421 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4422 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4423 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4424 via opts pointer.
4425 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4426 mips-opts.h.
4427 (mips_abi, mips_code_readable): Don't declare.
4428 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4429 (mabi=): Use Enum and Var.
4430 (mips_abi): New Enum and EnumValue entries.
4431 (mcode-readable=): Use Enum and Var.
4432 (mips_code_readable_setting): New Enum and EnumValue entries.
4433 (mr10k-cache-barrier=): Use Enum and Var.
4434 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4435
4436 2011-05-03 Jan Hubicka <jh@suse.cz>
4437
4438 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4439 replace hash by pointer map.
4440 (cgraph_node_set_element_def, cgraph_node_set_element,
4441 const_cgraph_node_set_element, varpool_node_set_element_def,
4442 varpool_node_set_element, const_varpool_node_set_element): Remove.
4443 (free_cgraph_node_set, free_varpool_node_set): New function.
4444 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4445 * tree-emutls.c: Free varpool node set.
4446 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4447 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4448 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4449 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4450 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4451 Move here from ipa.c; implement using pointer_map
4452 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4453 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4454 debug_cgraph_node_set, varpool_node_set_new,
4455 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4456 dump_varpool_node_set, debug_varpool_node_set):
4457 Move to ipa-uitls.c.
4458 * passes.c (ipa_write_summaries): Update.
4459
4460 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4461
4462 From Mike Frysinger:
4463 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4464 bf542/bf544/bf547/bf548/bf549.
4465
4466 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4467
4468 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4469
4470 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4471
4472 From Bernd Schmidt:
4473 * config/bfin/bfin.md (MOVCC): New mode_macro.
4474 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4475 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4476 comments from generated assembly.
4477
4478 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4479
4480 From Bernd Schmidt
4481 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4482 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4483 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4484 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4485 * config/bfin/lib1funcs.asm (___muldi3): New function.
4486
4487 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4488
4489 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4490 build_function_type_list instead of build_function_type.
4491 Rearrange initialization of `args' to do so.
4492
4493 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4494
4495 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4496 instead of build_function_type.
4497
4498 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4499
4500 * config/rs6000/rs6000.c (spe_init_builtins): Call
4501 build_function_type_list instead of build_function_type.
4502 (paired_init_builtins, altivec_init_builtins): Likewise.
4503 (builtin_function_type): Likewise.
4504
4505 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4506
4507 * config/sh/sh.c (sh_media_init_builtins): Call
4508 build_function_type_list instead of build_function_type.
4509
4510 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4511
4512 * config/sparc/sparc.c (sparc_file_end): Call
4513 build_function_type_list instead of build_function_type.
4514
4515 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4516
4517 * config/alpha/alpha.c (alpha_init_builtins): Call
4518 build_function_type_list instead of build_function_type.
4519
4520 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4521
4522 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4523 build_function_type_list instead of build_function_type.
4524
4525 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4526
4527 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4528 build_function_type_list instead of build_function_type.
4529 Delete `endlink' variable.
4530
4531 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4532
4533 * config/avr/avr.c (avr_init_builtins): Call
4534 build_function_type_list instead of build_function_type.
4535
4536 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4537
4538 * config/picochip/picochip.c (picochip_init_builtins): Call
4539 build_function_type_list instead of build_function_type.
4540 Delete `endlink' variable.
4541
4542 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4543
4544 * config/bfin/bfin.c (bfin_init_builtins): Call
4545 build_function_type_list instead of build_function_type.
4546
4547 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4548
4549 From Bernd Schmidt
4550 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4551 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4552
4553 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4554
4555 From Jie Zhang:
4556 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4557 libbffastfp overrides libgcc when -mfast-fp.
4558
4559 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4560
4561 Originally from Bernd Schmidt
4562 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4563 * config/bfin/bfin.c (override_options): Test it and error if
4564 TARGET_FDPIC.
4565
4566 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4567
4568 Originally From Bernd Schmidt
4569 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4570 FD-PIC.
4571
4572 2011-05-03 Jeff Law <law@redhat.com>
4573
4574 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4575 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4576 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4577 than accessing AUX field directly. Free the AUX field before
4578 clearing it.
4579 (thread_block, thread_through_loop_header): Likewise.
4580 (thread_single_edge, mark_threaded_blocks): Likewise.
4581 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4582 (register_jump_thread): Do not attempt to thread to a NULL edge.
4583
4584 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4585
4586 * function.c (init_function_start): Call decide_function_section.
4587 * varasm.c (decide_function_section): New function.
4588 (assemble_start_function): When not using
4589 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4590 or first_function_block_is_cold.
4591 * rtl.h (decide_function_section): Declare.
4592
4593 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4594 Jakub Jelinek <jakub@redhat.com>
4595
4596 PR target/48774
4597 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4598 only succeed if req_mode is the same as set_mode.
4599
4600 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4601
4602 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4603 * genemit.c (gen_exp): Handle RETURN.
4604 * emit-rtl.c (verify_rtx_sharing): Likewise.
4605 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4606 * rtl.c (copy_rtx): RETURN is shared.
4607 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4608 (ret_rtx): New.
4609 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4610 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4611 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4612 * config/cris/cris.c (cris_expand_return): Likewise.
4613 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4614 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4615 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4616 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4617 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4618 Likewise.
4619 * config/v850/v850.c (expand_epilogue): Likewise.
4620 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4621 * config/arm/arm.md (epilogue): Likewise.
4622 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4623 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4624 variable to ret_reg.
4625
4626 2011-05-03 Richard Guenther <rguenther@suse.de>
4627
4628 PR lto/48846
4629 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4630 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4631 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4632
4633 2011-05-03 Richard Guenther <rguenther@suse.de>
4634
4635 * c-decl.c (grokdeclarator): Instead of looking at
4636 TREE_OVERFLOW check if the constant fits in the index type.
4637
4638 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4639
4640 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4641 (vec_store_lanes<mode><mode>): Likewise.
4642
4643 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4644
4645 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4646 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4647 convert_optab_index values.
4648 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4649 * genopinit.c (optabs): Initialize the new optabs.
4650 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4651 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4652 (expand_STORE_LANES): New functions.
4653 * tree.h (build_array_type_nelts): Declare.
4654 * tree.c (build_array_type_nelts): New function.
4655 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4656 (vect_model_load_cost): Likewise.
4657 (vect_store_lanes_supported, vect_load_lanes_supported)
4658 (vect_record_strided_load_vectors): Declare.
4659 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4660 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4661 (vect_transform_strided_load): Split out statement recording into...
4662 (vect_record_strided_load_vectors): ...this new function.
4663 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4664 (write_vector_array, create_array_ref): New functions.
4665 (vect_model_store_cost): Add store_lanes_p argument.
4666 (vect_model_load_cost): Add load_lanes_p argument.
4667 (vectorizable_store): Try to use store-lanes functions for
4668 interleaved stores.
4669 (vectorizable_load): Likewise load-lanes and loads.
4670 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4671 to vect_model_store_cost.
4672 (vect_build_slp_tree): Likewise vect_model_load_cost.
4673
4674 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4675
4676 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4677 * hooks.c (hook_bool_mode_uhwi_false): New function.
4678 * target.def (array_mode_supported_p): New hook.
4679 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4680 * doc/tm.texi: Regenerate.
4681 * stor-layout.c (mode_for_array): New function.
4682 (layout_type): Use it.
4683 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4684 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4685
4686 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4687
4688 PR target/48723
4689 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4690 for -fstack-check if the size to allocate is negative.
4691
4692 2011-05-02 Lawrence Crowl <crowl@google.com>
4693
4694 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4695 (timevar_cond_start): New for starting a timer only when it is not
4696 already running.
4697 (timevar_cond_stop): New for stopping a timer when it was not already
4698 running.
4699
4700 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4701 (timevar_cond_start): New as above.
4702 (timevar_cond_stop): New as above.
4703
4704 * timevar.def: Add start/stop timers for compiler phases,
4705 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4706 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4707 and TV_PHASE_FINALIZE.
4708 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4709 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4710 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4711 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4712 Make unused TV_OVERLOAD into a start/stop timer.
4713
4714 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4715 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4716 to indicate that they are start/stop timers.
4717
4718 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4719 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4720 Move initialization to do_compile.
4721 (do_compile): Add initialization from above.
4722 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4723
4724 * c-decl.c (c_write_global_declarations): Add start/stop of
4725 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4726
4727 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4728 or TV_PARSE_INLINE, as appropriate.
4729 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4730 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4731
4732 2011-05-02 Jason Merrill <jason@redhat.com>
4733
4734 PR c++/40975
4735 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4736
4737 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4738
4739 PR c/35445
4740 * c-decl.c (finish_decl): Only create a composite if the types are
4741 compatible.
4742
4743 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4744
4745 * config/fr30/fr30-protos.h (Mmode): Don't define.
4746 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4747 definition where used.
4748 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4749 define. Expand definitions where used.
4750 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4751 Expand definitions where used.
4752 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4753 rx_function_arg, rx_function_arg_advance,
4754 rx_function_arg_boundary): Expand definitions of those macros.
4755 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4756 definition where used.
4757
4758 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4759
4760 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4761 reg<->xmm moves.
4762 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4763 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4764 with *movv2sf_internal_rex64_avx.
4765 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4766 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4767 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4768 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4769 "vex" in "prefix" attribute calculation.
4770 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4771
4772 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4773
4774 PR target/47951
4775 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4776 inputs match the output.
4777
4778 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4779
4780 PR target/47955
4781 * config/m68k/m68k.c (m68k_expand_prologue): Set
4782 current_function_static_stack_size.
4783
4784 2011-05-02 Jan Hubicka <jh@suse.cz>
4785
4786 * lto-streamer.c (lto_streamer_cache_insert_1,
4787 lto_streamer_cache_lookup, lto_streamer_cache_create,
4788 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4789 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4790
4791 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4792
4793 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4794 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4795 config/m68k/t-opts: New files.
4796 * config/m68k/m68k-tables.opt: New file (generated).
4797 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4798 extra_options and m68k/t-opts to tmake_file.
4799 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4800 (all_isas): Initialize using m68k-isas.def.
4801 (all_microarchs): Initialize using m68k-microarchs.def.
4802 (m68k_find_selection): Remove.
4803 (m68k_handle_option): Don't assert that global structures are in
4804 use. Use error_at. Access variables via opts pointer. Don't
4805 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4806 directly for -m68020-40 and -m68020-60.
4807 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4808 m68k_tune_entry here.
4809 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4810 to m68k-opts.h.
4811 (m68k_library_id_string): Remove declaration.
4812 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4813 (m68k_library_id_string): New Variable.
4814 (march=, mcpu=, mtune=): Use Enum and Var.
4815
4816 2011-05-02 Richard Guenther <rguenther@suse.de>
4817
4818 * varasm.c (output_constructor_regular_field): Compute zero-based
4819 index with double-ints. Make sure to ICE instead of producing
4820 wrong code.
4821 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4822 in asserts. Properly use a signed type.
4823
4824 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4825
4826 * config/i386/sse.md (V): New mode iterator.
4827 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4828 TARGET_SSE2.
4829 (V_256): Rename from AVX256MODE.
4830 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4831 condition to all users.
4832 (VF1): Ditto.
4833 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4834 condition to all users.
4835 (VF_128): Make V4SF mode unconditional.
4836 (VF_256): Rename from AVX256MODEF2P.
4837 (VI4F_128): Rename from SSEMODE4S.
4838 (VI8F_128): Rename from SSEMODE2D.
4839 (VI4F_256): Rename from AVX256MODE8P.
4840 (VI8F_256): Rename from AVX256MODE4P.
4841 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4842 (ssescalarmodesuffix): Remove SF and DF modes.
4843 (SSEMODE124): Remove.
4844 (SSEMODE1248): Ditto.
4845 (SSEMODEF2P): Ditto.
4846 (AVXMODEF2P): Ditto.
4847 (AVXMODEFDP): Ditto.
4848 (AVXMODEFSP): Ditto.
4849 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4850 unconditional.
4851 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4852 unconditional.
4853 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4854 xop_pcmov_<mode>256. Use V mode iterator.
4855
4856 Adjust RTX patterns globally for renamed mode attributes.
4857
4858 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4859
4860 * haifa-sched.c (sched_emit_insn): Emit insn before first
4861 non-scheduled insn. Inform back-end about new insn. Add
4862 new insn to scheduled_insns list.
4863
4864 2011-05-02 Richard Guenther <rguenther@suse.de>
4865
4866 PR tree-optimization/48822
4867 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4868 (process_scc): Indicate which iteration we start.
4869
4870 2011-05-02 Jan Hubicka <jh@suse.cz>
4871
4872 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4873 (lto_section_overrun): New.
4874 * lto-section-out.c (append_block): Rename to ...
4875 (lto_append_block): ... this one; export.
4876 (lto_output_1_stream): Move lto lto-streamer.h
4877 (lto_output_data_stream): Update.
4878 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4879 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4880 functions.
4881
4882 2011-05-02 Richard Guenther <rguenther@suse.de>
4883
4884 * tree.c (tree_code_counts): New global array.
4885 (record_node_allocation_statistics): Count individual tree codes.
4886 (dump_tree_statistics): Dump individual code stats.
4887
4888 2011-05-01 Jan Hubicka <jh@suse.cz>
4889
4890 * ipa-inline.c (caller_growth_limits): Fix thinko when
4891 looking for largest stack frame.
4892 * ipa-inline.h (dump_inline_summary): Declare.
4893 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4894 on stack usage.
4895 (dump_inline_summary): Export.
4896 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4897
4898 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4899
4900 * reginfo.c (memory_move_cost): Change rclass argument type form
4901 'enum reg_class' to reg_class_t.
4902 * reload.h (memory_move_cost): Update prototype.
4903 * postreload.c reload_cse_simplify_set): Change type dclass var to
4904 reg_class_t.
4905 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4906 Update prototype.
4907 (ira_allocate_and_set_costs): Change aclass argument type form
4908 'enum reg_class' to reg_class_t.
4909 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4910 Change aclass argument type to reg_class_t.
4911 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4912 to reg_class_t.
4913 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4914 memory_move_cost call.
4915
4916 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4917 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4918 Change type tmp var to reg_class_t.
4919
4920 2011-04-30 Jan Hubicka <jh@suse.cz>
4921
4922 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4923 inlining into function with flatten attribute.
4924 (want_inline_small_function_p): Be more realistic about inlining
4925 cold calls where callee size grows.
4926
4927 2011-04-30 Jan Hubicka <jh@suse.cz>
4928
4929 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4930 flags.
4931
4932 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4933
4934 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4935 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4936 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4937 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4938 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4939 (print_operand): Rename to...
4940 (sparc_print_operand): ...this. Make static. Adjust
4941 sparc_print_operand function call.
4942 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4943 functions.
4944
4945 2011-04-30 Jan Hubicka <jh@suse.cz>
4946
4947 PR middle-end/48752
4948 * ipa-inline.c (early_inliner): Disable when doing late
4949 addition of function.
4950
4951 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4952
4953 * dwarf2out.c (get_address_mode): New inline.
4954 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4955 if not dwarf_strict emit
4956 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4957 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4958 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4959 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4960 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4961 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4962 mem_loc_descriptor callers.
4963 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4964 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4965 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4966 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4967 (base_types): New variable.
4968 (get_base_type_offset, calc_base_type_die_sizes,
4969 base_type_for_mode, mark_base_types, base_type_cmp,
4970 move_marked_base_types): New functions.
4971 (calc_die_sizes): Assert that die_offset is 0 or equal to
4972 next_die_offset.
4973 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4974 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4975 callers. If not dwarf_strict, call mem_loc_descriptor even for
4976 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4977 (gen_subprogram_die): Don't give up on call site parameters
4978 with non-integral or large integral modes. Adjust
4979 mem_loc_descriptor callers.
4980 (prune_unused_types): Call prune_unused_types_mark on base_types
4981 vector entries.
4982 (resolve_addr): Call mark_base_types.
4983 (dwarf2out_finish): Call move_marked_base_types.
4984
4985 PR tree-optimization/48809
4986 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4987 type.
4988 (gen_inbound_check): Don't compute index_expr - range_min in utype
4989 again, instead reuse SSA_NAME initialized in build_arrays.
4990 Remove two useless gsi_for_stmt calls.
4991
4992 2011-04-29 Jeff Law <law@redhat.com>
4993
4994 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4995
4996 2011-04-29 Martin Jambor <mjambor@suse.cz>
4997
4998 * cgraph.h (cgraph_postorder): Remove declaration.
4999 * ipa-utils.h (ipa_free_postorder_info): Declare.
5000 (ipa_reverse_postorder): Likewise.
5001 * cgraphunit.c: Include ipa-utils.h.
5002 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5003 * ipa-inline.c: Include ipa-utils.h.
5004 (ipa_inline): Update call to ipa_reverse_postorder.
5005 * ipa-pure-const.c (propagate_pure_const): Update call to
5006 ipa_reduced_postorder and ipa_print_order. Call
5007 ipa_free_postorder_info to clean up.
5008 (propagate_nothrow): Likewise.
5009 * ipa-reference.c (propagate): Removed a useless call to
5010 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5011 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5012 * ipa.c: Include ipa-utils.h.
5013 (ipa_profile): Update call to ipa_reverse_postorder.
5014 (cgraph_postorder): Moved to...
5015 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5016 (ipa_utils_print_order): Renamed to ipa_print_order.
5017 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5018 comments.
5019 (ipa_free_postorder_info): New function.
5020 * passes.c: Include ipa-utils.h.
5021 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5022 (ipa_write_summaries): Likewise.
5023 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5024 (cgraphunit.o): Likewise.
5025 (ipa.o): Likewise.
5026 (ipa-inline.o): Likewise.
5027
5028 2011-04-29 Jan Hubicka <jh@suse.cz>
5029
5030 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5031 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5032 * ipa-inline.h (clause_t): Turn into unsigned int.
5033 * ipa-inline-analysis.c (add_clause): Do more simplification.
5034 (and_predicates): Shortcut more cases.
5035 (predicates_equal_p): Move forward; check that clauses are properly
5036 ordered.
5037 (or_predicates): Shortcut more cases.
5038 (edge_execution_predicate): Rewrite as...
5039 (set_cond_stmt_execution_predicate): ... this function; handle
5040 __builtin_constant_p.
5041 (set_switch_stmt_execution_predicate): New .
5042 (compute_bb_predicates): New.
5043 (will_be_nonconstant_predicate): Update TODO.
5044 (estimate_function_body_sizes): Use compute_bb_predicates
5045 and free them later, always try to estimate if stmt is constant.
5046 (estimate_time_after_inlining, estimate_size_after_inlining):
5047 Gracefully handle optimized out edges.
5048 (read_predicate): Fix off by one error.
5049
5050 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5051
5052 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5053
5054 2011-04-27 Xinliang David Li <davidxl@google.com>
5055
5056 * tree-profile.c (init_ic_make_global_vars): Set
5057 tls attribute on ic vars.
5058 * coverage.c (coverage_end_function): Initialize
5059 function_list with zero.
5060
5061 2011-04-29 Richard Guenther <rguenther@suse.de>
5062
5063 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5064 for the type of the result.
5065 (fold_builtin_isascii): Likewise.
5066 (fold_builtin_toascii): Use integer_type_node where appropriate.
5067 (fold_builtin_logb): Likewise.
5068 (fold_builtin_frexp): Likewise.
5069 (fold_builtin_strstr): Likewise.
5070 (fold_builtin_strpbrk): Likewise.
5071 (fold_builtin_fputs): Likewise.
5072 (fold_builtin_sprintf): Likewise.
5073 (fold_builtin_snprintf): Likewise.
5074 (fold_builtin_printf): Likewise.
5075 (do_mpfr_remquo): Use a proper type for the assigned constant.
5076 (do_mpfr_lgamma_r): Likewise.
5077 * dwarf2out.c (resolve_one_addr): Use size_int.
5078 * except.c (init_eh): Likewise.
5079 (assign_filter_values): Use integer_type_node for filter values.
5080 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5081 indices.
5082 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5083 for EH region numbers.
5084 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5085 for the shift amount.
5086
5087 2011-04-29 Richard Guenther <rguenther@suse.de>
5088
5089 * expr.h (expand_shift): Rename to ...
5090 (expand_variable_shift): ... this.
5091 (expand_shift): Take a constant shift amount.
5092 * expmed.c (expand_shift): Rename to ...
5093 (expand_variable_shift): ... this.
5094 (expand_shift): New wrapper around expand_variable_shift.
5095 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5096 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5097 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5098 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5099 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5100 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5101 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5102 emit_store_flag_1, emit_store_flag): Likewise.
5103 * builtins.c (expand_builtin_signbit): Likewise.
5104 * calls.c (load_register_parameters): Likewise.
5105 * function.c (assign_parm_setup_block): Likewise.
5106 * lower-subreg.c (resolve_shift_zext): Likewise.
5107 * optabs.c (widen_bswap, expand_abs_nojump,
5108 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5109 * spu/spu.c (spu_expand_extv): Likewise.
5110 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5111
5112 2011-04-29 Richard Guenther <rguenther@suse.de>
5113
5114 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5115 for the remapped region number.
5116 * predict.c (build_predict_expr): Use integer_type_node for the
5117 predict kind.
5118 * fold-const.c (fold_binary_loc): Use integer_type_node for
5119 the shift amount. Use a proper type for the PLUS_EXPR operand.
5120
5121 2011-04-29 Michael Matz <matz@suse.de>
5122
5123 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5124 other trees that just builtins.
5125 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5126
5127 2011-04-29 Richard Guenther <rguenther@suse.de>
5128
5129 * tree-nested.c (get_trampoline_type): Use size_int.
5130 (get_nl_goto_field): Likewise.
5131 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5132 for all indexes.
5133 (lower_eh_constructs_2): Likewise.
5134 (lower_resx): Likewise.
5135 (lower_eh_dispatch): Likewise.
5136 * tree-mudflap.c (mf_build_string): Use size_int.
5137 (mudflap_register_call): Use integer_type_node for the flag.
5138 (mudflap_enqueue_constant): Use size_int.
5139 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5140 instead of rebuilding it.
5141
5142 2011-04-29 Richard Guenther <rguenther@suse.de>
5143
5144 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5145 Handle OBJ_TYPE_REF.
5146 (find_func_aliases_for_call): Use it more consistently.
5147
5148 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5149
5150 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5151 (rank_for_schedule): Use it.
5152 (schedule_block): Set it.
5153
5154 2011-04-28 David Li <davidxl@google.com>
5155
5156 * tree.c (crc32_string): Use crc32_byte.
5157 (crc32_byte): New function.
5158 * tree.h (crc32_byte): New function.
5159 * gcov.c (read_graph_file): Handle new cfg_cksum.
5160 (read_count_file): Ditto.
5161 * profile.c (instrument_values): Ditto.
5162 (get_exec_counts): Ditto.
5163 (read_profile_edge_counts): Ditto.
5164 (compute_branch_probabilities): Ditto.
5165 (compute_value_histograms): Ditto.
5166 (branch_prob): Ditto.
5167 (end_branch_prob): Ditto.
5168 * coverage.c (read_counts_file): Ditto.
5169 (get_coverage_counts): Ditto.
5170 (tree_coverage_counter_addr): Ditto.
5171 (coverage_checksum_string): Ditto.
5172 (coverage_begin_output): Ditto.
5173 (coverage_end_function): Ditto.
5174 (build_fn_info_type): Ditto.
5175 (build_fn_info_value): Ditto.
5176 * libgcov.c (gcov_exit): Ditto.
5177 * gcov-dump.c (tag_function): Ditto.
5178 (compute_checksum): Remove.
5179
5180 2011-04-29 Alan Modra <amodra@gmail.com>
5181
5182 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5183 unspec plus offset. Tidy macho code.
5184
5185 2011-04-29 Martin Jambor <mjambor@suse.cz>
5186
5187 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5188 node instead of a decl. Update all callers.
5189 * cgraph.h: Update declaration.
5190
5191 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5192
5193 PR tree-optimization/48765
5194 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5195 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5196 to indicate if loop aware SLP is being used. Scan the statements
5197 and update the vectorization factor according to the type of
5198 vectorization before statement analysis.
5199 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5200 pass it to vect_analyze_loop_operations.
5201 (vectorizable_reduction): Set number of copies to 1 in case of pure
5202 SLP statement.
5203 * tree-vect-stmts.c (vectorizable_conversion,
5204 vectorizable_assignment, vectorizable_shift,
5205 vectorizable_operation, vectorizable_type_demotion,
5206 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5207 Likewise.
5208 (vectorizable_condition): Move the check that it is not SLP
5209 vectorization before the number of copies check.
5210 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5211 to vectorize the loop using SLP.
5212
5213 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5214
5215 PR middle-end/48597
5216 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5217 inline asm.
5218
5219 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5220
5221 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5222 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5223 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5224 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5225 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5226 linux*.h headers.
5227 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5228 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5229 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5230 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5231 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5232 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5233 REG_NAME.
5234 * config/i386/linux.h (REG_NAME): Don't define.
5235 * config/i386/linux64.h (REG_NAME): Don't define.
5236 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5237 Undefine before defining.
5238
5239 2011-04-28 Jan Hubicka <jh@suse.cz>
5240
5241 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5242 nonconstant_names array.
5243 (estimate_function_body_sizes): Build nonconstant_names array; handle
5244 BUILT_IN_CONSTANT_P.
5245
5246 2011-04-28 Richard Guenther <rguenther@suse.de>
5247
5248 PR bootstrap/48804
5249 Revert
5250 2011-04-28 Richard Guenther <rguenther@suse.de>
5251
5252 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5253 as late as possible.
5254
5255 2011-04-28 Richard Guenther <rguenther@suse.de>
5256
5257 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5258 (debug_constraint): Do it here.
5259 (dump_constraints): And here.
5260 (rewrite_constraints): And here.
5261 (dump_constraint_edge): Remove.
5262 (dump_constraint_graph): Rewrite to produce DOT output.
5263 (solve_constraints): Build succ graph as late as possible.
5264 Dump constraint graphs before and after solving.
5265
5266 2011-04-28 Richard Guenther <rguenther@suse.de>
5267
5268 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5269 New function split out from ...
5270 (find_func_aliases): ... here. Call it.
5271 (find_func_aliases_for_call): Likewise.
5272
5273 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5274
5275 * internal-fn.h (internal_fn_name_array): Declare.
5276 (internal_fn_flags_array): Likewise.
5277
5278 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5279
5280 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5281 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5282 Move from sse.md.
5283 (ssemodefsuffix): Remove.
5284 (ssevecmodesuffix): New mode attribute.
5285 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5286 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5287 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5288 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5289 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5290 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5291 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5292 ssemodesuffix mode attribute.
5293 (float splitters): Use ssevecmodesuffix mode attribute.
5294 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5295 (sseinsmode): Rename from avxvecmode.
5296 (avxsizesuffix): Rename from avxmodesuffix.
5297 (sseintvecmode): Rename from avxpermvecmode.
5298 (ssedoublevecmode): Rename from ssedoublesizemode.
5299 (ssehalfvecmode): Rename from avxhalfvecmode.
5300 (ssescalarmode): Rename from avxscalarmode.
5301 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5302 templates for ssemodesuffix mode attribute.
5303 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5304 mode attribute.
5305
5306 Adjust RTX patterns globally for renamed mode attributes.
5307
5308 2011-04-27 Jan Hubcika <jh@suse.cz>
5309
5310 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5311 * ipa-inline-analysis.c: Include alloc-pool.h.
5312 (edge_predicate_pool): New.
5313 (trye_predicate_p): New function
5314 (false_predicate_p): New function.
5315 (add_clause): Sanity check that false clauses are "optimized";
5316 never add clauses to predicate that is already known to be false.
5317 (and_predicate): Use flase_predicate_p.
5318 (evaulate_predicate): Rename to ...
5319 (evaluate_predicate): ... this one; update all callers; assert
5320 that false is not listed among possible truths.
5321 (dump_predicate): Use true_predicate_p.
5322 (account_size_time): Use false_predicate_p.
5323 (evaulate_conditions_for_edge): Rename to ...
5324 (evaluate_conditions_for_edge) ... this one.
5325 (edge_set_predicate): New function.
5326 (inline_edge_duplication_hook): Duplicate edge predicates.
5327 (inline_edge_removal_hook): Free edge predicates.
5328 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5329 (dump_inline_summary): Update.
5330 (estimate_function_body_sizes): Set edge predicates.
5331 (estimate_calls_size_and_time): Handle predicates.
5332 (estimate_callee_size_and_time): Update.
5333 (remap_predicate): Add toplev_predicate; update comment.
5334 (remap_edge_predicates): New function.
5335 (inline_merge_summary): Compute toplev predicate; update.
5336 (read_predicate): New function.
5337 (read_inline_edge_summary): Use it.
5338 (inline_read_section): Likewise.
5339 (write_predicate): New function.
5340 (write_inline_edge_summary): Use it.
5341 (inline_write_summary): Likewise.
5342 (inline_free_summary): Free alloc pool and edge summary vec.
5343
5344 2011-04-27 Richard Guenther <rguenther@suse.de>
5345
5346 * tree-ssa-structalias.c (changed_count): Remove.
5347 (changed): Use a bitmap.
5348 (unify_nodes): Adjust.
5349 (do_sd_constraint): Likewise.
5350 (do_ds_constraint): Likewise.
5351 (do_complex_constraint): Likewise.
5352 (solve_graph): Likewise.
5353
5354 2011-04-27 Jan Hubicka <jh@suse.cz>
5355
5356 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5357
5358 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5359
5360 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5361 (avx_vperm2f128_*_operand): Ditto.
5362 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5363 Use avx_vpermilp_parallel in insn condition.
5364 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5365 Use avx_vperm2f128_parallel in insn condition.
5366
5367 2011-04-27 Richard Guenther <rguenther@suse.de>
5368
5369 * Makefile.in (tree-ssa-structalias.o): Remove
5370 gt-tree-ssa-structalias.h dependency.
5371 (GTFILES): Remove tree-ssa-structalias.c.
5372 * tree.c (allocate_decl_uid): New function.
5373 (make_node_stat): Use it.
5374 (copy_node_stat): Likewise.
5375 * tree.h (allocate_decl_uid): Declare.
5376 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5377 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5378 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5379 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5380 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5381 (struct heapvar_map): Likewise.
5382 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5383 heapvar_insert): Likewise.
5384 (make_heapvar_for): Rename to ...
5385 (make_heapvar): ... this. Simplify.
5386 (fake_var_decl_obstack): New global var.
5387 (build_fake_var_decl): New function.
5388 (make_constraint_from_heapvar): Adjust.
5389 (handle_lhs_call): Likewise.
5390 (create_function_info_for): Likewise.
5391 (intra_create_variable_infos): Likewise.
5392 (init_alias_vars): Allocate fake_var_decl_obstack.
5393 (init_alias_heapvars, delete_alias_heapvars): Remove.
5394 (compute_points_to_sets): Do not call init_alias_heapvars.
5395 (ipa_pta_execute): Likewise.
5396 (delete_points_to_sets): Free fake_var_decl_obstack.
5397
5398 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5399
5400 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5401 (si_from_UTItype, si_to_UTItype): New functions.
5402 (__udivmodti4): Use them to implement type-punning.
5403 * config/spu/multi3.c (union qword_TItype): New data type.
5404 (si_from_TItype, si_to_TItype): New functions.
5405 (__multi3): Use them to implement type-punning.
5406
5407 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5408
5409 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5410
5411 2011-04-27 Jan Hubicka <jh@suse.cz>
5412
5413 * ipa-prop.c (function_insertion_hook_holder): New holder.
5414 (ipa_add_new_function): New function.
5415 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5416 Register/deregister holder.
5417
5418 2011-04-27 Richard Guenther <rguenther@suse.de>
5419
5420 PR tree-optimization/48772
5421 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5422
5423 2011-04-27 Richard Guenther <rguenther@suse.de>
5424
5425 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5426 TARGET_MEM_REF handling.
5427
5428 2011-04-27 Nick Clifton <nickc@redhat.com>
5429
5430 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5431 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5432 (REG_CLASS_NAMES): Likewise.
5433 (REG_CLASS_CONTENTS): Likewise.
5434 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5435 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5436 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5437 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5438 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5439 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5440 duplicate register classes.
5441 (frv_class_likely_spilled_p): Likewise.
5442 (frv_register_move_cost): Likewise.
5443
5444 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5445 end of the regno_reg_class array.
5446
5447 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5448
5449 PR c/48742
5450 * c-typeck.c (build_binary_op): Don't wrap arguments if
5451 int_operands is true.
5452
5453 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5454
5455 PR target/48767
5456 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5457 targetm.calls.must_pass_in_stack for void type.
5458
5459 2011-04-26 Jan Hubicka <jh@suse.cz>
5460
5461 * cgraphbuild.c (build_cgraph_edges): Update call
5462 of cgraph_create_edge and cgraph_create_indirect_edge.
5463 * cgraph.c (cgraph_create_edge_including_clones,
5464 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5465 cgraph_update_edges_for_call_stmt_node): Do not take nest
5466 argument; do not initialize call_stmt_size/time.
5467 (dump_cgraph_node): Do not dump nest.
5468 (cgraph_clone_edge): Do not take loop_nest argument;
5469 do not propagate it; do not clone call_stmt_size/time.
5470 (cgraph_clone_node): Likewise.
5471 (cgraph_create_virtual_clone): Update.
5472 * cgraph.h (struct cgraph_edge): Remove
5473 call_stmt_size/call_stmt_time/loop_nest.
5474 (cgraph_create_edge, cgraph_create_indirect_edge,
5475 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5476 prototype.
5477 * tree-emutls.c (gen_emutls_addr): Update.
5478 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5479 loop_nest; handle indirect calls, too.
5480 (clone_inlined_nodes): Do not care about updating inline summaries.
5481 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5482 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5483 stream call_stmt_size/call_stmt_time/loop_nest.
5484 * ipa-inline.c (edge_badness): Update.
5485 (ipa_inline): dump summaries after inlining.
5486 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5487 New.
5488 (inline_edge_summary): New function.
5489 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5490 (inline_edge_removal_hook): Handle edge summaries.
5491 (inline_edge_duplication_hook): New hook.
5492 (inline_summary_alloc): Alloc hooks.
5493 (initialize_growth_caches): Do not register removal hooks.
5494 (free_growth_caches); Do not free removal hook.
5495 (dump_inline_edge_summary): New function.
5496 (dump_inline_summary): Use it.
5497 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5498 (inline_update_callee_summaries): New function.
5499 (inline_merge_summary): Use it.
5500 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5501 (read_inline_edge_summary): New function.
5502 (inline_read_section): Use it.
5503 (write_inline_edge_summary): New function.
5504 (inline_write_summary): Use it.
5505 (inline_free_summary): Free edge new holders.
5506 * tree-inline.c (copy_bb): Update.
5507
5508 2011-04-26 Jason Merrill <jason@redhat.com>
5509
5510 * tree-eh.c (lower_try_finally_switch): Create the label along with
5511 the CASE_LABEL_EXPR.
5512
5513 2011-04-26 David S. Miller <davem@davemloft.net>
5514 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5515
5516 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5517 * configure: Regenerate.
5518
5519 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5520
5521 PR target/48258
5522 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5523 reduction.
5524 (VEC_reduc): New code iterator and splitters for vector reduction.
5525 (VEC_reduc_name): Ditto.
5526 (VEC_reduc_rtx): Ditto.
5527 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5528 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5529
5530 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5531 support for extracting SF on VSX.
5532
5533 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5534 generating xscvspdp.
5535 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5536 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5537 double add, minimum, maximum vector reduction.
5538 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5539 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5540 optimize double vector reduction.
5541 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5542
5543 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5544
5545 * config/fr30/fr30.h (inhibit_libc): Don't define.
5546 * config/m32r/m32r-protos.h: Correct comment.
5547 * config/v850/v850.h (GHS_default_section_names,
5548 GHS_current_section_names): Use tree, not union tree_node *.
5549
5550 2011-04-26 Xinliang David Li <davidxl@google.com>
5551
5552 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5553 * c-family/c-opts.c (c_common_handle_option): Set
5554 warn_maybe_uninitialized.
5555 * opts.c (common_handle_option): Ditto.
5556 * common.opt: New option.
5557 * tree-ssa.c (warn_uninit): Add one more parameter.
5558 (warn_uninitialized_var): Pass warning code.
5559 * tree-flow.h: Interface change.
5560
5561 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5562
5563 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5564 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5565 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5566
5567 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5568
5569 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5570 * config/mips/mips.opt (mmips-tfile): Remove.
5571
5572 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5573 mips-tdump reference to ...
5574 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5575 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5576 reference by Tru64 UNIX.
5577
5578 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5579
5580 PR debug/48768
5581 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5582 is error_mark_node, set value to NULL.
5583
5584 PR tree-optimization/48734
5585 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5586 if return value from maybe_fold_*_comparsions isn't something
5587 the code is prepared to handle.
5588
5589 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5590
5591 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5592 mode check.
5593 (ext_QIreg_nomode_operands): Remove.
5594 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5595 (*andsi_1): Ditto.
5596 (*andhi_1): Ditto.
5597
5598 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5599
5600 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5601
5602 2011-04-26 Richard Guenther <rguenther@suse.de>
5603
5604 * c-typeck.c (build_unary_op): Do not expand array-refs via
5605 pointer arithmetic. Only adjust qualifiers for function types.
5606
5607 2011-04-26 Richard Guenther <rguenther@suse.de>
5608
5609 PR middle-end/48694
5610 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5611 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5612 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5613 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5614
5615 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5616
5617 * doc/extend.texi: Document __underlying_type.
5618
5619 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5620
5621 * config/rs6000/titan.md (automata_option "progress"): Remove.
5622
5623 2011-04-25 Jeff Law <law@redhat.com>
5624
5625 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5626
5627 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5628
5629 * system.h (ENUM_BITFIELD): Remove.
5630
5631 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5632 Eric Botcazou <ebotcazou@adacore.com>
5633
5634 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5635 for STORE_FLAG_VALUE==-1 case.
5636
5637 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5638
5639 PR target/43804
5640 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5641 LEGITIMATE_PIC_OPERAND_P.
5642
5643 2011-04-24 Jan Hubicka <jh@suse.cz>
5644
5645 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5646 WPA hack.
5647 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5648 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5649 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5650 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5651 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5652 Sanity check predicate length.
5653 (remap_predicate): Likewise; sanity check jump functions.
5654 (inline_read_section, inline_write_summary): Sanity check
5655 predicate length.
5656
5657 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5658
5659 PR other/48748
5660 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5661 __is_literal_type, and __is_trivial; update throughout about
5662 possibly cv-qualified void types.
5663
5664 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5665
5666 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5667 testsuite and make it version agnostic.
5668
5669 2011-04-22 Jan Hubicka <jh@suse.cz>
5670
5671 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5672
5673 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5674
5675 PR c/48685
5676 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5677 to VOID_TYPE even around MODIFY_EXPR.
5678
5679 2011-04-22 Mike Stump <mikestump@comcast.net>
5680
5681 * gensupport.c (read_md_rtx): Fix typo in comment.
5682 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5683 comment.
5684
5685 2011-04-22 Jan Hubicka <jh@suse.cz>
5686
5687 * gengtype.c (open_base_files): Add ipa-inline.h include.
5688 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5689 ipa-prop.c; update all uses.
5690 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5691 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5692 merge summary of inlined function into former caller.
5693 * ipa-inline.c (max_benefit): Remove.
5694 (edge_badness): Compensate for removal of benefits.
5695 (update_caller_keys): Use
5696 reset_node_growth_cache/reset_edge_growth_cache.
5697 (update_callee_keys): Likewise.
5698 (update_all_callee_keys): Likewise.
5699 (inline_small_functions): Do not collect max_benefit; do not reset
5700 estimated_growth; call free_growth_caches and initialize_growth_caches.
5701 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5702 struct size_time_entry): New structures.
5703 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5704 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5705 and estimated_growth.
5706 (edge_growth_cache_entry): New structure.
5707 (node_growth_cache, edge_growth_cache): New global vars.
5708 (estimate_growth): Turn into inline.
5709 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5710 initialize_growth_caches, free_growth_caches): Declare.
5711 (estimate_edge_growth): Rewrite.
5712 (estimate_edge_time): Implement as inline cache lookup.
5713 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5714 functions.
5715 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5716 (NUM_CONDITIONS): New constant.
5717 (predicate_conditions): New enum.
5718 (IS_NOT_CONSTANT): New constant.
5719 (edge_removal_hook_holder): New var.
5720 (node_growth_cache, edge_growth_cache): New global vars.
5721 (true_predicate, single_cond_predicate, false_predicate,
5722 not_inlined_predicate, add_condition, add_clause, and_predicates,
5723 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5724 dump_clause, dump_predicate, account_size_time,
5725 evaulate_conditions_for_edge): New functions.
5726 (inline_summary_alloc): Move to heap.
5727 (inline_node_removal_hook): Clear condition and entry vectors.
5728 (inline_edge_removal_hook): New function.
5729 (initialize_growth_caches, free_growth_caches): New function.
5730 (dump_inline_summary): Update.
5731 (edge_execution_predicate): New function.
5732 (will_be_nonconstant_predicate): New function.
5733 (estimate_function_body_sizes): Compute BB and constantness predicates.
5734 (compute_inline_parameters): Do not clear estimated_growth.
5735 (estimate_edge_size_and_time): New function.
5736 (estimate_calls_size_and_time): New function.
5737 (estimate_callee_size_and_time): New function.
5738 (remap_predicate): New function.
5739 (inline_merge_summary): New function.
5740 (do_estimate_edge_time): New function based on...
5741 (estimate_edge_time): ... this one.
5742 (do_estimate_edge_growth): New function.
5743 (do_estimate_growth): New function based on....
5744 (estimate_growth): ... this one.
5745 (inline_analyze_function): Analyze after deciding on jump functions.
5746 (inline_read_section): New function.
5747 (inline_read_summary): Use it.
5748 (inline_write_summary): Write all the new data.
5749 * ipa-prop.c (ipa_get_param_decl_index): Export.
5750 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5751 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5752 Declare.
5753 (ipa_get_lattice): Move here from ipa-cp.c
5754 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5755 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5756 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5757 cgraph_edge_inlinable_p): Remove.
5758 * cgraphunit.c: Include ipainline.h
5759 (cgraph_process_new_functions): Update call of
5760 compute_inline_parameters.
5761
5762 2011-04-22 Richard Guenther <rguenther@suse.de>
5763
5764 * tree.c (build_int_cst): Properly create canonicalized integer
5765 constants.
5766 (build_int_cst_type): Remove scary comments.
5767
5768 2011-04-22 Xinliang David Li <davidxl@google.com>
5769
5770 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5771 by default when -Wno-error is not specified.
5772 * opts-global.c (decode_options): Remove call to
5773 control_warning_options.
5774
5775 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5776
5777 PR tree-optimization/48717
5778 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5779 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5780
5781 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5782
5783 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5784 definition where used.
5785
5786 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5787
5788 PR c/48716
5789 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5790 TREE_STATIC variables declared inside of some OpenMP construct.
5791
5792 2011-04-22 Martin Jambor <mjambor@suse.cz>
5793
5794 PR middle-end/48585
5795 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5796
5797 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5798
5799 PR c/36750
5800 * c-typeck.c (pop_init_level): Do not warn about initializing
5801 with ` = {0}'.
5802
5803 2011-04-22 Alan Modra <amodra@gmail.com>
5804
5805 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5806 when returning call_cookie.
5807 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5808 pointers, to functions with no more vector args than the current
5809 function, and some non-local calls for ABI_V4.
5810 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5811 sibcall_nonlocal_aix64): Combine to ..
5812 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5813 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5814 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5815 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5816 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5817 operand.
5818 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5819 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5820 sibcall_value_symbolic_64): Delete.
5821
5822 2011-04-21 Xinliang David Li <davidxl@google.com>
5823
5824 * cgraph.h: Remove pid.
5825 * cgraph.c: Remove pid.
5826 * value-prof.c (init_node_map): New function.
5827 (del_node_map): New function.
5828 (find_func_by_funcdef_no): New function.
5829 (gimple_ic_transform): Call new function.
5830 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5831 * function.c (get_last_funcdef_no): New function.
5832 * function.h (get_last_funcdef_no): New function.
5833 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5834 to libgcov function.
5835 (tree-profiling): Call node map init and delete function.
5836
5837 2011-04-21 Ian Lance Taylor <iant@google.com>
5838
5839 * godump.c (go_format_type): Use exported Go name for anonymous
5840 field name.
5841
5842 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5843
5844 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5845 Call builtin_function_type_list instead of builtin_function_type.
5846 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5847
5848 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5849
5850 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5851 build_function_type_list instead of build_function_type.
5852 Delete variable `endlink'.
5853
5854 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5855
5856 * config/s390/s390.c (s390_init_builtins): Call
5857 build_function_type_list instead of build_function_type.
5858
5859 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5860
5861 * config/ia64/ia64.c (ia64_init_builtins): Call
5862 build_function_type_list instead of builtin_function_type.
5863
5864 2011-04-21 Easwaran Raman <eraman@google.com>
5865
5866 * cfgexpand.c (stack_var): Remove OFFSET...
5867 (add_stack_var): ...and its reference here...
5868 (expand_stack_vars): ...and here.
5869 (stack_var_cmp): Sort by descending order of size.
5870 (partition_stack_vars): Change heuristic.
5871 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5872 (dump_stack_var_partition): Add newline after each partition.
5873
5874 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5875 Jeff Law <law@redhat.com>
5876
5877 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5878 * gengtype.c (matching_file_name_substitute): Likewise.
5879
5880 2011-04-21 Richard Guenther <rguenther@suse.de>
5881
5882 PR lto/48703
5883 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5884
5885 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5886
5887 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5888
5889 2011-04-21 Richard Guenther <rguenther@suse.de>
5890
5891 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5892 file name.
5893
5894 2011-04-21 Richard Guenther <rguenther@suse.de>
5895
5896 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5897 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5898 Use DECL_P, not SSA_VAR_P.
5899 (ptr_derefs_may_alias_p): Likewise.
5900 (ptr_deref_may_alias_ref_p_1): Likewise.
5901 (decl_refs_may_alias_p): Likewise.
5902 (refs_may_alias_p_1): Likewise.
5903 (ref_maybe_used_by_call_p_1): Likewise.
5904 (call_may_clobber_ref_p_1): Likewise.
5905 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5906 are either MEM_REF or TARGET_MEM_REF.
5907 (indirect_refs_may_alias_p): Likewise.
5908 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5909 for MEM_EXPR of indirect calls.
5910
5911 2011-04-21 Tristan Gingold <gingold@adacore.com>
5912
5913 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5914 (dst_file_info_struct): Remove flen field.
5915 (lookup_filename): Remove code that set flen field.
5916
5917 2011-04-21 Tristan Gingold <gingold@adacore.com>
5918
5919 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5920
5921 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5922
5923 PR target/48708
5924 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5925 vec_extract and vec_concat for non-SSE4_1 targets.
5926
5927 2011-04-21 Richard Guenther <rguenther@suse.de>
5928
5929 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5930 return statements.
5931
5932 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5933
5934 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5935 undefine.
5936 (FILE): Don't undefine.
5937
5938 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5939
5940 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5941 struct rtx_def *.
5942 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5943 struct rtx_def *.
5944 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5945 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5946 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5947 rtx_def *.
5948 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5949 definitions where used.
5950 * config/microblaze/microblaze.h (struct microblaze_args): Use
5951 rtx, not struct rtx_def *.
5952 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5953 rtx_def *.
5954 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5955 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5956 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5957 not struct rtx_def *.
5958 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5959 struct rtx_def *.
5960 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5961 rtx_def *.
5962 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5963
5964 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5965
5966 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5967 operand_equal_p to compare DR_BASE_ADDRESSes.
5968 (vect_check_interleaving): Likewise.
5969
5970 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5971
5972 PR target/46329
5973 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5974 for all Neon struct constants.
5975
5976 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5977
5978 * target.def (legitimate_constant_p): New hook.
5979 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5980 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5981 * doc/tm.texi: Regenerate.
5982 * hooks.h (hook_bool_mode_rtx_true): Declare.
5983 * hooks.c (hook_bool_mode_rtx_true): Define.
5984 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5985 * calls.c (precompute_register_parameters): Replace uses of
5986 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5987 (emit_library_call_value_1): Likewise.
5988 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5989 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5990 * ira-costs.c (scan_one_insn): Likewise.
5991 * recog.c (general_operand, immediate_operand): Likewise.
5992 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5993 * reload1.c (init_eliminable_invariants): Likewise.
5994
5995 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5996 mode argument.
5997 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5998 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5999 argument.
6000 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6001 * config/alpha/predicates.md (input_operand): Update call to
6002 alpha_legitimate_constant_p.
6003
6004 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6005 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6006 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6007 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6008 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6009 (arm_legitimate_constant_p): New functions.
6010 (arm_cannot_force_const_mem): Make static.
6011
6012 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6013
6014 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6015 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6016 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6017 instead of bfin_legitimate_constant_p.
6018 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6019 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6020
6021 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6022
6023 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6024
6025 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6026 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6027 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6028 (frv_legitimate_constant_p): Make static. Add a mode argument.
6029
6030 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6031 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6032 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6033
6034 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6035 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6036 * config/i386/i386.c (legitimate_constant_p): Rename to...
6037 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6038 argument.
6039 (ix86_cannot_force_const_mem): Update accordingly.
6040 (ix86_legitimate_address_p): Likewise.
6041 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6042 * config/i386/i386.md: Update commentary.
6043
6044 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6045 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6046 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6047 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6048
6049 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6050
6051 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6052 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6053 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6054 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6055
6056 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6057 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6058 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6059
6060 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6061 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6062 (m32r_legitimate_constant_p): New function.
6063
6064 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6065 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6066 LEGITIMATE_CONSTANT_P.
6067 (LEGITIMATE_CONSTANT_P): Delete.
6068 * config/m68k/m68k.c (m68k_expand_prologue): Call
6069 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6070 (m68k_legitimate_constant_p): New function.
6071 * config/m68k/m68k.md: Update comments.
6072
6073 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6074 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6075 (mcore_legitimate_constant_p): New function.
6076
6077 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6078 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6079 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6080 Add a mode argument.
6081 (mep_legitimate_address): Update accordingly.
6082 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6083
6084 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6085 Delete.
6086 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6087 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6088 static. Check OP's mode for VOIDmode.
6089 (microblaze_legitimate_constant_p): New function.
6090 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6091
6092 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6093 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6094 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6095 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6096 * config/mips/predicates.md: Update comments.
6097
6098 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6099 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6100 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6101 (mmix_legitimate_constant_p): Make static, return a bool, and take
6102 a mode argument.
6103 (mmix_print_operand_address): Update accordingly.
6104
6105 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6106 Delete.
6107 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6108 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6109 static. Add a mode argument.
6110 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6111
6112 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6113
6114 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6115 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6116 (pa_legitimate_constant_p): New function.
6117
6118 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6119
6120 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6121 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6122 (pdp11_legitimate_constant_p): New function.
6123
6124 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6125 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6126 (rs6000_legitimate_constant_p): New function.
6127
6128 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6129 (rx_legitimate_constant_p): ...this.
6130 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6131 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6132 (rx_legitimate_constant_p): ...this.
6133 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6134 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6135
6136 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6137 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6138 * config/s390/s390.c (legitimate_constant_p): Rename to...
6139 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6140 and add a mode argument.
6141 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6142
6143 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6144
6145 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6146 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6147 (sh_legitimate_constant_p): New function.
6148
6149 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6150 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6151 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6152 (legitimate_constant_p): Rename to...
6153 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6154 argument.
6155 (constant_address_p): Update accordingly.
6156
6157 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6158 argument and return a bool.
6159 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6160 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6161 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6162 (spu_rtx_costs): Update accordingly.
6163 * config/spu/predicates.md (vec_imm_operand): Likewise.
6164
6165 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6166
6167 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6168 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6169 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6170
6171 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6172 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6173 * config/vax/vax.c (legitimate_constant_p): Likewise.
6174
6175 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6176 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6177 (xtensa_legitimate_constant_p): New function.
6178
6179 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6180
6181 * target.def (cannot_force_const_mem): Add a mode argument.
6182 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6183 * doc/tm.texi: Regenerate.
6184 * hooks.h (hook_bool_mode_rtx_false): Declare.
6185 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6186 (hook_bool_mode_const_rtx_true): Likewise.
6187 (hook_bool_mode_rtx_false): New function.
6188 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6189 to be non-VOID. Update call to cannot_force_const_mem.
6190 (find_reloads): Update accordingly.
6191 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6192 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6193 argument.
6194 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6195 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6196 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6197 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6198 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6199 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6200 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6201 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6202 (m68k_cannot_force_const_mem): ...this new function.
6203 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6204 argument.
6205 (mips_const_insns, mips_legitimize_const_move): Update calls.
6206 (mips_secondary_reload_class): Likewise.
6207 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6208 (pa_cannot_force_const_mem): ...this new function.
6209 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6210 (rs6000_cannot_force_const_mem): ...this new function.
6211 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6212 argument.
6213 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6214 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6215 to...
6216 (xtensa_cannot_force_const_mem): ...this new function.
6217
6218 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6219
6220 * config/mips/mips.c (mips16_build_function_stub): Call
6221 build_function_type_list instead of build_function_type.
6222 (mips16_build_call_stub): Likewise.
6223
6224 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6225
6226 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6227 instead of build_function_type.
6228
6229 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6230
6231 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6232 instead of build_function_type.
6233
6234 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6235
6236 PR target/48678
6237 * config/i386/i386.md (insv): Change operand 0 constraint to
6238 "register_operand". Change operand 1 and 2 constraint to
6239 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6240 * config/i386/sse.md (sse4_1_pinsrb): Export.
6241 (sse2_pinsrw): Ditto.
6242 (sse4_1_pinsrd): Ditto.
6243 (sse4_1_pinsrq): Ditto.
6244 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6245 * config/i386/i386.c (ix86_expand_pinsr): New.
6246
6247 2011-04-20 Easwaran Raman <eraman@google.com>
6248
6249 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6250 containing union type only with -fstrict-aliasing.
6251
6252 2011-04-20 Jim Meyering <meyering@redhat.com>
6253
6254 Remove useless if-before-free tests.
6255 * calls.c (expand_call, save_area): Likewise.
6256 * cfgcleanup.c (try_forward_edges): Likewise.
6257 * collect2.c (collect_execute): Likewise.
6258 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6259 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6260 * coverage.c (coverage_checksum_string): Likewise.
6261 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6262 * cselib.c (cselib_init): Likewise.
6263 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6264 (df_set_clean_cfg): Likewise.
6265 * function.c (free_after_compilation): Likewise.
6266 * gcc.c (do_spec_1, main): Likewise.
6267 * gcov.c (create_file_names): Likewise.
6268 * gensupport.c (identify_predicable_attribute): Likewise.
6269 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6270 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6271 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6272 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6273 * ipa-pure-const.c (local_pure_const): Likewise.
6274 * ipa-reference.c (propagate): Likewise.
6275 * ira-costs.c (free_ira_costs): Likewise.
6276 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6277 * matrix-reorg.c (mat_free): Likewise.
6278 * prefix.c (get_key_value): Likewise.
6279 * profile.c (compute_value_histograms): Likewise.
6280 * reload1.c (free_reg_equiv): Likewise.
6281 * sched-deps.c (free_deps): Likewise.
6282 * sel-sched-ir.c (fence_clear): Likewise.
6283 * sese.c (set_rename, if_region_set_false_region): Likewise.
6284 * tree-data-ref.c (free_rdg): Likewise.
6285 * tree-eh.c (lower_try_finally): Likewise.
6286 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6287 * tree-ssa-live.c (delete_var_map): Likewise.
6288 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6289 * tree-ssa-pre.c (phi_trans_add): Likewise.
6290
6291 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6292
6293 PR tree-optimization/48611
6294 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6295 beyond ERT_MUST_NOT_THROW region.
6296
6297 2011-04-20 Catherine Moore <clm@codesourcery.com>
6298
6299 * config/mips/mips.opt (mfix-24k): New.
6300 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6301 * config/mips/mips.md (length): Increase by 4 for stores if
6302 fixing 24K errata.
6303 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6304 all noreorder if fixing 24K errata.
6305 * doc/invoke.texi: Document mfix-24k.
6306
6307 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6308
6309 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6310 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6311
6312 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6313
6314 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6315 (const_ok_for_op): ... to here.
6316
6317 2011-04-20 Kai Tietz <ktietz@redhat.com>
6318
6319 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6320 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6321
6322 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6323
6324 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6325
6326 2011-04-20 Richard Guenther <rguenther@suse.de>
6327
6328 PR tree-optimization/47892
6329 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6330 are if-convertible.
6331
6332 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6333
6334 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6335
6336 2011-04-20 Tristan Gingold <gingold@adacore.com>
6337
6338 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6339
6340 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6341
6342 PR target/18145
6343
6344 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6345 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6346 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6347 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6348 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6349
6350 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6351 New prototype.
6352
6353 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6354 (avr_asm_named_section, avr_asm_output_aligned_common,
6355 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6356 New functions to update...
6357 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6358 (avr_asm_init_sections): Overwrite section callbacks for
6359 data_section, bss_section.
6360 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6361 from here to...
6362 (avr_file_end): ...here.
6363
6364 2011-04-20 Richard Guenther <rguenther@suse.de>
6365
6366 PR middle-end/48695
6367 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6368 objects and types here. Adjust for their offset before comparing.
6369
6370 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6371
6372 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6373 statement per copy.
6374
6375 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6376
6377 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6378 (GIMPLE_H): Include $(INTERNAL_FN_H).
6379 (OBJS-common): Add internal-fn.o.
6380 (internal-fn.o): New rule.
6381 * internal-fn.def: New file.
6382 * internal-fn.h: Likewise.
6383 * internal-fn.c: Likewise.
6384 * gimple.h: Include internal-fn.h.
6385 (GF_CALL_INTERNAL): New gf_mask.
6386 (gimple_statement_call): Put fntype into a union with a new
6387 internal_fn field.
6388 (gimple_build_call_internal): Declare.
6389 (gimple_build_call_internal_vec): Likewise.
6390 (gimple_call_same_target_p): Likewise.
6391 (gimple_call_internal_p): New function.
6392 (gimple_call_internal_fn): Likewise.
6393 (gimple_call_fntype): Return null for internal calls.
6394 (gimple_call_set_fntype): Assert that the function is not internal.
6395 (gimple_call_set_fn): Likewise.
6396 (gimple_call_set_fndecl): Likewise.
6397 (gimple_call_set_internal_fn): New function.
6398 (gimple_call_addr_fndecl): Handle null functions.
6399 (gimple_call_return_type): Likewise null types.
6400 * gimple.c (gimple_build_call_internal_1): New function.
6401 (gimple_build_call_internal): Likewise.
6402 (gimple_build_call_internal_vec): Likewise.
6403 (gimple_call_same_target_p): Likewise.
6404 (gimple_call_flags): Handle calls to internal functions.
6405 (gimple_call_fnspec): New function.
6406 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6407 (gimple_has_side_effects): Handle null functions.
6408 (gimple_rhs_has_side_effects): Likewise.
6409 (gimple_call_copy_skip_args): Handle calls to internal functions.
6410 * cfgexpand.c (expand_call_stmt): Likewise.
6411 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6412 * gimple-fold.c (gimple_fold_call): Handle null functions.
6413 (gimple_fold_stmt_to_constant_1): Don't fold
6414 calls to internal functions.
6415 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6416 functions.
6417 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6418 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6419 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6420 (do_warn_unused_result): Likewise.
6421 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6422 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6423 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6424 the target of a call.
6425 (initialize_hash_element): Update accordingly.
6426 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6427 (iterative_hash_hashable_expr): Handle calls to internal functions.
6428 (print_expr_hash_elt): Likewise.
6429 * tree-ssa-pre.c (can_value_number_call): Likewise.
6430 (eliminate): Handle null functions.
6431 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6432 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6433 (find_func_aliases): Likewise.
6434 * value-prof.c (gimple_ic_transform): Likewise.
6435 (gimple_indirect_call_to_profile): Likewise.
6436 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6437 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6438
6439 2011-04-19 Jan Hubicka <jh@suse.cz>
6440
6441 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6442 * ipa-inline.c (inline_small_functions): Compute summaries first,
6443 populate heap later.
6444
6445 2011-04-19 Jan Hubicka <jh@suse.cz>
6446
6447 * cgraph.h (save_inline_function_body): Remove.
6448 * ipa-inline-transform.c: New file, broke out of...
6449 * ipa-inline.c: ... this one; Update toplevel comment.
6450 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6451 make global.
6452 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6453 (cgraph_mark_inline_edge): Rename to inline_call; move to
6454 ipa-inline-transform.c.
6455 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6456 move to ipa-inline-transform.c
6457 (recursive_inlining, inline_small_functions, flatten_function,
6458 ipa_inline, inline_always_inline_functions,
6459 early_inline_small_functions): Update.
6460 (inline_transform): Move to ipa-inline-transform.c.
6461 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6462 Declare.
6463 * Makefile.in (ipa-inline-transform.o): New file.
6464 * cgraphunit.c (save_inline_function_body): Move to
6465 ipa-inline-transform.c
6466
6467 2011-04-19 DJ Delorie <dj@redhat.com>
6468
6469 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6470 registers if we already know there aren't any.
6471 (m32c_emit_epilogue): Don't emit a barrier here.
6472 (m32c_emit_eh_epilogue): Likewise.
6473 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6474 operands at expand time.
6475 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6476 int" wchar type.
6477 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6478 duplicates. Provide aliases instead.
6479 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6480 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6481 the compiler.
6482
6483 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6484
6485 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6486 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6487 (general_or_i64_p, sparc_register_move_cost): New function.
6488
6489 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6490
6491 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6492 Add lynx, mipssde. Sort table.
6493
6494 2011-04-19 Xinliang David Li <davidxl@google.com>
6495
6496 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6497 not negative.
6498
6499 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6500
6501 PR target/48678
6502 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6503 is a SUBREG with non-MODE_INT mode inside of it.
6504
6505 2011-04-19 Martin Jambor <mjambor@suse.cz>
6506
6507 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6508 also according to actual contants.
6509 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6510 (gimple_fold_call): Use it.
6511 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6512
6513 2011-04-19 Martin Jambor <mjambor@suse.cz>
6514
6515 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6516 non-pointer assignments.
6517
6518 2011-04-19 Martin Jambor <mjambor@suse.cz>
6519
6520 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6521 account anc_offset and otr_type from the indirect edge info.
6522 * ipa-prop.c (get_ancestor_addr_info): New function.
6523 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6524 get_ancestor_addr_info, call it.
6525 (ipa_note_param_call): Do not initialize information about polymorphic
6526 calls, return the indirect call graph edge. Remove the last
6527 parameter, adjust all callers.
6528 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6529 parameters. Initialize polymorphic information in the indirect edge.
6530
6531 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6532
6533 PR lto/48148
6534 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6535 the types if they have different enumeration identifiers.
6536
6537 2011-04-19 Jan Hubicka <jh@suse.cz>
6538
6539 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6540 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6541 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6542 (optimize_function_for_size_p) ... here.
6543
6544 2011-04-19 Richard Guenther <rguenther@suse.de>
6545
6546 PR lto/48207
6547 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6548 langhook.
6549
6550 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6551
6552 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6553 if DECL_NO_INLINE_WARNING_P is set on the function.
6554
6555 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6556
6557 PR fortran/47976
6558 * reload1.c (inc_for_reload): Return void. All callers changed.
6559 (emit_input_reload_insns): Don't try to delete previous output
6560 reloads to a register, or record spill_reg_store for autoincs.
6561
6562 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6563
6564 * gengtype.h: Updated copyright year.
6565 (struct input_file_st): Add inpisplugin field.
6566 (type_fileloc): New function.
6567 * gengtype.c
6568 (write_typed_struct_alloc_def): Add gcc_assert.
6569 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6570 (write_typed_alloc_defns): Don't output for plugin files.
6571 (input_file_by_name): Clear inpisplugin field.
6572 (main): Set inpisplugin field for plugin files.
6573
6574 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6575
6576 * gengtype-state.c (string_eq): New.
6577 (read_state): Use string_eq instead of strcmp when creating the
6578 state_ident_tab.
6579
6580 2011-04-19 Wei Guozhi <carrot@google.com>
6581
6582 PR target/47855
6583 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6584 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6585 linkage.
6586 * config/arm/constraints.md (Uu): New constraint.
6587 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6588
6589 2011-04-19 Tristan Gingold <gingold@adacore.com>
6590
6591 * config.gcc (-*-*-*vms): Added.
6592 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6593 definitions moved.
6594 * config/vms/vms-ld.c: New file.
6595 * config/vms/vms-ar.c: New file.
6596 * config/vms/t-vmsnative: New file.
6597
6598 2011-04-18 Xinliang David Li <davidxl@google.com>
6599
6600 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6601
6602 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6603
6604 PR middle-end/48661
6605 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6606 if TREE_TYPE (v) is non-NULL.
6607
6608 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6609 gimple_get_virt_mehtod_for_binfo.
6610 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6611 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6612 callers.
6613 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6614
6615 2011-04-18 Michael Matz <matz@suse.de>
6616 Steve Ellcey <sje@cup.hp.com>
6617
6618 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6619 use its mode as source mode if it isn't VOIDmode.
6620
6621 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6622
6623 * doc/passes.texi: Fill crossref nodes.
6624
6625 2011-04-18 Jim Meyering <meyering@redhat.com>
6626
6627 Fix doubled-word typos in comments and strings
6628 * config/alpha/vms-unwind.h: s/for for/for/
6629 * config/arm/unwind-arm.h: Likewise.
6630 * config/microblaze/microblaze.c: Likewise.
6631 * config/sh/constraints.md: s/in in/in/
6632 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6633
6634 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6635
6636 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6637 (AVX_FLOAT_MODE_P): Ditto.
6638 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6639 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6640 (AVX_VEC_FLOAT_MODE_P): Ditto.
6641 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6642 (UNSPEC_MASKSTORE): Ditto.
6643 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6644 Merge from <sse>_movmsk<ssemodesuffix> and
6645 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6646 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6647 iterator.
6648 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6649 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6650 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6651
6652 2011-04-18 Jan Hubicka <jh@suse.cz>
6653
6654 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6655
6656 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6657 (want_inline_function_called_once_p): Break out the logic from
6658 ipa_inline.
6659 (edge_badness): Ensure that profile is not misupdated.
6660 (lookup_recursive_calls): Prioritize by call frequencies.
6661 (inline_small_functions): Move program size estimates here;
6662 actually process whole queue even when unit growth has been
6663 met. (to properly compute inline_failed reasons and for the
6664 case unit size decrease.) Revisit comments on recursive inlining.
6665 (ipa_inline): Remove unit summary code; first inline hot calls
6666 of functions called once, cold calls next.
6667 (order, nnodes): Remove unused variables.
6668 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6669 (GTFILES): Remove ipa-inline.c
6670 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6671
6672 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6673
6674 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6675
6676 2011-04-18 Jie Zhang <jie@codesourcery.com>
6677 Richard Earnshaw <rearnsha@arm.com>
6678
6679 * arm.c (neon_builtin_type_bits): Remove.
6680 (typedef enum neon_builtin_mode): New.
6681 (T_MAX): Don't define.
6682 (typedef enum neon_builtin_datum): Remove bits, codes[],
6683 num_vars and base_fcode. Add mode, code and fcode.
6684 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6685 VAR10): Change accordingly.
6686 (neon_builtin_data[]): Change accordingly
6687 (arm_init_neon_builtins): Change accordingly.
6688 (neon_builtin_compare): Remove.
6689 (locate_neon_builtin_icode): Remove.
6690 (arm_expand_neon_builtin): Change accordingly.
6691
6692 * arm.h (enum arm_builtins): Move to ...
6693 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6694
6695 * arm.c (arm_builtin_decl): Declare.
6696 (TARGET_BUILTIN_DECL): Define.
6697 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6698 (arm_builtin_decls[]): New.
6699 (arm_init_neon_builtins): Store builtin declarations in
6700 arm_builtin_decls[].
6701 (arm_init_tls_builtins): Likewise.
6702 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6703 (arm_builtin_decl): New.
6704
6705 2011-04-18 Richard Guenther <rguenther@suse.de>
6706
6707 * tree.c (upper_bound_in_type): Build properly canonicalized
6708 INTEGER_CSTs.
6709 (lower_bound_in_type): Likewise.
6710
6711 2011-04-18 Richard Guenther <rguenther@suse.de>
6712
6713 * gimple.h (gimple_call_addr_fndecl): New function.
6714 (gimple_call_fndecl): Use it.
6715 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6716 for direct calls.
6717 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6718 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6719
6720 2011-04-18 Richard Guenther <rguenther@suse.de>
6721
6722 PR middle-end/48650
6723 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6724
6725 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6726
6727 PR lto/48492
6728 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6729 DECL_IN_CONSTANT_POOL without RTL.
6730
6731 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6732 Ira Rosen <ira.rosen@linaro.org>
6733
6734 PR target/48252
6735 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6736 to match neon_vzip/vuzp/vtrn_internal.
6737 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6738 outputs explicitly dependent on both inputs.
6739 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6740
6741 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6742
6743 PR tree-optimization/48616
6744 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6745 whether the shift is by scalar or vector based on whether all SLP
6746 scalar stmts have the same rhs.
6747
6748 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6749
6750 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6751 memory operands.
6752
6753 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6754
6755 PR target/43700
6756 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6757 registers.
6758
6759 2011-04-17 Jan Hubicka <jh@suse.cz>
6760
6761 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6762 * cgrpahunit.c (cgraph_finalize_function): Do not set
6763 finalized_by_frontend.
6764 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6765 finalized_by_frontend.
6766
6767 2011-04-17 Jan Hubicka <jh@suse.cz>
6768
6769 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6770 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6771 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6772 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6773 method.
6774 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6775 gimple-fold.c
6776 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6777
6778 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6779
6780 PR lto/48538
6781 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6782 is non-null before accessing it.
6783 (input_cgraph): Remove trailing spaces.
6784
6785 2011-04-17 Revital Eres <revital.eres@linaro.org>
6786
6787 * params.def (sms-min-sc): New param flag.
6788 * modulo-sched.c (sms_schedule): Use it.
6789 * doc/invoke.texi (sms-min-sc): Document it.
6790
6791 2011-04-17 Jan Hubicka <jh@suse.cz>
6792
6793 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6794 present, also set gimple_call_set_cannot_inline.
6795 * ipa-inline.c: Update toplevel comment.
6796 (MAX_TIME): Remove.
6797 (cgraph_clone_inlined_nodes): Fix linebreaks.
6798 (cgraph_check_inline_limits): Restructure to ...
6799 (caller_growth_limits): ... this one; be more tolerant
6800 on growth in nested inline chains; add explanatory comment;
6801 fix stack accounting thinko introduced by previous patch.
6802 (cgraph_default_inline_p): Remove.
6803 (report_inline_failed_reason): New function.
6804 (can_inline_edge_p): New function.
6805 (can_early_inline_edge_p): New function.
6806 (leaf_node_p): Move upwards in file.
6807 (want_early_inline_function_p): New function.
6808 (want_inline_small_function_p): New function.
6809 (want_inline_self_recursive_call_p): New function.
6810 (cgraph_edge_badness): Rename to ...
6811 (edge_badness) ... this one; fix linebreaks.
6812 (update_edge_key): Update call of edge_baddness; add
6813 detailed dump about queue updates.
6814 (update_caller_keys): Use can_inline_edge_p and
6815 want_inline_small_function_p.
6816 (cgraph_decide_recursive_inlining): Rename to...
6817 (recursive_inlining): Use can_inline_edge_p and
6818 want_inline_self_recursive_call_p; simplify and remove no longer
6819 valid FIXME.
6820 (cgraph_set_inline_failed): Remove.
6821 (add_new_edges_to_heap): Use can_inline_edge_p and
6822 want_inline_small_function_p.
6823 (cgraph_decide_inlining_of_small_functions): Rename to ...
6824 (inline_small_functions): ... this one; cleanup; use
6825 can/want predicates; cleanup debug ouput; work edges till fibheap
6826 is exhausted and do not stop once unit growth is reached; remove
6827 later loop processing remaining edges.
6828 (cgraph_flatten): Rename to ...
6829 (flatten_function): ... this one; use can_inline_edge_p
6830 and can_early_inline_edge_p predicates.
6831 (cgraph_decide_inlining): Rename to ...
6832 (ipa_inline): ... this one; remove unreachable nodes before
6833 inlining functions called once; simplify the pass.
6834 (cgraph_perform_always_inlining): Rename to ...
6835 (inline_always_inline_functions): ... this one; use
6836 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6837 (cgraph_decide_inlining_incrementally): Rename to ...
6838 (early_inline_small_functions): ... this one; simplify
6839 using new predicates; cleanup; make dumps prettier.
6840 (cgraph_early_inlining): Rename to ...
6841 (early_inliner): newer inline regular functions into always-inlines;
6842 fix updating of call stmt summaries.
6843 (pass_early_inline): Update for new names.
6844 (inline_transform): Fix formating.
6845 (gate_cgraph_decide_inlining): Rename to ...
6846 (pass_ipa_inline): ... this one.
6847 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6848 * ipa-inline-analysis.c (dump_inline_summary): Update.
6849 (compute_inline_parameters): Do not compute disregard_inline_limits;
6850 look for mismatching arguments.
6851 (estimate_growth): Fix handlig of non-trivial self recursion.
6852 (inline_read_summary): Do not read info->disregard_inline_limits.
6853 (inline_write_summary): Do not write info->disregard_inline_limits.
6854 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6855 and move all checks into can_inline_edge_p predicate; re-enable code
6856 comparing optimization levels.
6857 (expand_call_inline): Do not test inline_forbidden_into_p.
6858 * Makefile.in (ipa-inline.o): Update arguments.
6859
6860 2011-04-17 Revital Eres <revital.eres@linaro.org>
6861
6862 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6863
6864 2011-04-17 Revital Eres <revital.eres@linaro.org>
6865
6866 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6867
6868 2011-04-17 Michael Matz <matz@suse.de>
6869
6870 PR tree-optimization/48622
6871 PR lto/48645
6872 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6873 in same order as they're written.
6874
6875 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6876
6877 * config/pa/predicates.md: Reorganize and simplify predicates.
6878 Eliminate duplicate code checks.
6879 (arith_operand): Rename to arith14_operand
6880 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6881 * config/pa/pa.md: Use renamed operands.
6882 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6883 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6884 arith11_operand, adddi3_operand, indexed_memory_operand,
6885 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6886 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6887 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6888 move_dest_operand, move_src_operand, prefetch_cc_operand,
6889 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6890 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6891 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6892 div_operand, int5_operand, movb_comparison_operator,
6893 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6894 arith_double_operand, ireg_operand, lhs_lshift_operand,
6895 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6896 integer_store_memory_operand): Likewise.
6897 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6898 (integer_store_memory_operand, read_only_operand,
6899 function_label_operand, borx_reg_operand,
6900 non_hard_reg_operand): Likewise.
6901 (eq_neq_comparison_operator): Delete unused operator.
6902 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6903 function_label_operand.
6904 (emit_move_sequence): Likewise.
6905
6906 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6907
6908 * config/i386/sse.md (sseunpackmode): New mode attribute.
6909 (ssepackmode): Ditto.
6910 (vec_pack_trunc_<mode>): Macroize expander from
6911 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6912 (vec_unpacks_lo_<mode>): Macroize expander from
6913 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6914 (vec_unpacks_hi_<mode>): Macroize expander from
6915 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6916 (vec_unpacku_lo_<mode>): Macroize expander from
6917 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6918 (vec_unpacku_hi_<mode>): Macroize expander from
6919 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6920 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6921 ix86_expand_sse4_unpack.
6922 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6923
6924 2011-04-16 Jan Hubicka <jh@suse.cz>
6925
6926 * cgraphbuild.c: Include ipa-inline.h.
6927 (reset_inline_failed): Use initialize_inline_failed.
6928 * cgraph.c: Include ipa-inline.h.
6929 (cgraph_create_node_1): Do not initialize estimated_growth.
6930 (initialize_inline_failed): More to ipa-inline-analysis.c
6931 (dump_cgraph_node): Do not dump inline flags.
6932 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6933 and disregard_inline_limits flags.
6934 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6935 time, size, estimated_growth.
6936 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6937 Update.
6938 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6939 DECL_DISREGARD_INLINE_LIMITS.
6940 (cgraph_analyze_function): Do not initialize
6941 node->local.disregard_inline_limits.
6942 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6943 inlinable, versionable and disregard_inline_limits.
6944 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6945 cgraph_check_inline_limits, cgraph_default_inline_p,
6946 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6947 add_new_edges_to_heap): Update.
6948 (cgraph_decide_inlining_of_small_function): Update; set
6949 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6950 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6951 cgraph_decide_inlining_incrementally): Update.
6952 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6953 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6954 time, size and estimated_growth parameters.
6955 (estimate_edge_growth): Update.
6956 (initialize_inline_failed): Declare.
6957 * ipa-split.c: Include ipa-inline.h
6958 (execute_split_functions): Update.
6959 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6960 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6961 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6962 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6963 estimated_growth to INT_MIN.
6964 (inline_node_duplication_hook): Likewise.
6965 (dump_inline_summary): Dump new fields.
6966 (compute_inline_parameters): Update.
6967 (estimate_edge_time, estimate_time_after_inlining,
6968 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6969 inline_write_summary):
6970 (initialize_inline_failed): Move here from cgraph.c.
6971 * tree-sra.c: Include ipa-inline.h.
6972 (ipa_sra_preliminary_function_checks): Update.
6973 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6974 ipa-inline.h.
6975
6976 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6977
6978 * config/i386/sse.md (V16): New mode iterator.
6979 (VI1, VI8): Ditto.
6980 (AVXMODEQI, AVXMODEDI): Remove.
6981 (sse2, sse3): New mode attribute.
6982 (mov<mode>): Use V16 mode iterator.
6983 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6984 (push<mode>1): Use V16 mode iterator.
6985 (movmisalign<mode>): Ditto.
6986 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6987 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6988 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6989 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6990 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6991 avx_movdqu<avxmodesuffix>.
6992 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6993 *avx_movdqu<avxmodesuffix>.
6994 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6995 avx_lddqu<avxmodesuffix>.
6996 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6997 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6998 avx_movnt<AVXMODEDI:mode>.
6999 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7000 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7001
7002 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7003
7004 PR target/48629
7005 * haifa-sched.c (prune_ready_list, schedule_block): Use
7006 sched_pressure_p rather than flag_sched_pressure.
7007
7008 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7009
7010 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7011 cgraph_get_node instead of cgraph_get_create_node.
7012
7013 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7014
7015 * cfgexpand.c (expand_debug_expr): Use
7016 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7017
7018 2011-04-15 Michael Matz <matz@suse.de>
7019
7020 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7021 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7022 * function.c (gimplify_parameters): Ditto.
7023 * gimplify.c (gimplify_vla_decl): Ditto.
7024
7025 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7026 (gimple_call_set_alloca_for_var): New inline function.
7027 (gimple_call_alloca_for_var_p): Ditto.
7028 * gimple.c (gimple_build_call_from_tree): Remember
7029 CALL_ALLOCA_FOR_VAR_P state.
7030 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7031
7032 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7033 calls if they were for VLA objects.
7034
7035 2011-04-15 Martin Jambor <mjambor@suse.cz>
7036
7037 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7038 of ADR_EXPRs.
7039
7040 2011-04-15 Martin Jambor <mjambor@suse.cz>
7041
7042 PR middle-end/48601
7043 * tree-emutls.c (lower_emutls_function_body): Call
7044 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7045 result is non-NULL.
7046
7047 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7048
7049 * c-decl.c (detect_field_duplicates): Call
7050 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7051
7052 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7053
7054 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7055 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7056 * ipa-pure-const.c (check_stmt): Call it.
7057 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7058
7059 2011-04-15 Richard Guenther <rguenther@suse.de>
7060
7061 PR tree-optimization/48290
7062 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7063 Properly decide inhibiting propagation based on the valueized
7064 operand. Do loop-closed SSA form preserving here ...
7065 (init_copy_prop): ... not here.
7066
7067 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7068
7069 PR target/48612
7070 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7071 (*ieee_smax<mode>3): Likewise.
7072
7073 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7074
7075 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7076 Replace match_operand with match_dup for the third operand in
7077 these expanders.
7078
7079 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7080
7081 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7082 to track processing of conditionals. Update all callers.
7083 (try_combine, simplify_if_then_else): Update.
7084
7085 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7086
7087 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7088 -fsched-pressure.
7089
7090 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7091
7092 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7093 instead of match_operand for operand 3.
7094
7095 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7096
7097 * recog.h (insn_operand_data): Add an "allows_mem" field.
7098 * genoutput.c (output_operand_data): Initialize it.
7099 * optabs.c (maybe_legitimize_operand_same_code): New function.
7100 (maybe_legitimize_operand): Use it when matching the original
7101 op->value.
7102
7103 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7104
7105 * gimplify.c: Fix issues in comments throughout.
7106 (voidify_wrapper_expr): Fix long line.
7107 (build_stack_save_restore): Likewise.
7108 (gimplify_loop_expr): Likewise.
7109 (gimplify_compound_lval): Likewise.
7110 (gimplify_init_ctor_eval): Likewise.
7111 (gimplify_modify_expr_rhs): Likewise.
7112 (omp_notice_threadprivate_variable): Likewise.
7113
7114 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7115
7116 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7117 original one if this is not a builtin function.
7118
7119 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7120
7121 PR target/48605
7122 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7123 offset it as needed based on top 2 bits in operands[3], change
7124 MEM mode to SFmode and mask those 2 bits away from operands[3].
7125
7126 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7127
7128 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7129 change from objc_declare_protocols() to objc_declare_protocol().
7130
7131 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7132
7133 * config/i386/sse.md (sse4_1): New mode attribute.
7134 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7135 avx_blend<ssemodesuffix><avxmodesuffix> and
7136 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7137 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7138 avx_blendv<ssemodesuffix><avxmodesuffix> and
7139 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7140 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7141 avx_dp<ssemodesuffix><avxmodesuffix> and
7142 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7143 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7144 (sse4_1_packusdw): Merge with *avx_packusdw.
7145 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7146 (sse4_1_pblendw): Merge with *avx_pblendw.
7147 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7148 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7149 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7150 VF mode iterator.
7151 (sse4_1_round<ssescalarmodesuffix>): Merge with
7152 *avx_round<ssescalarmodesuffix>.
7153 (aesenc): Merge with *avx_aesenc.
7154 (aesenclast): Merge with *avx_aesenclast.
7155 (aesdec): Merge with *avx_aesdec.
7156 (aesdeclast): Merge with *avx_aesdeclast.
7157 (pclmulqdq): Merge with *pclmulqdq.
7158 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7159 New predicate.
7160 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7161
7162 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7163
7164 PR middle-end/48608
7165 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7166 (align_local_variable): This. Update DECL_ALIGN.
7167 (add_stack_var): Updated.
7168 (expand_one_stack_var): Likewise.
7169
7170 2011-04-14 Richard Guenther <rguenther@suse.de>
7171
7172 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7173 Remove.
7174 (dse_initialize_block_local_data, dse_leave_block,
7175 record_voperand_set, get_stmt_uid): Likewise.
7176 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7177 (dse_optimize_stmt): Remove voperand set handling code.
7178 Simplify and improve to handle any kind of killing stmt.
7179 (dse_record_phi): Remove.
7180 (dse_enter_block): Simplify.
7181 (tree_ssa_dse): Likewise.
7182 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7183
7184 2011-04-14 Jan Hubicka <jh@suse.cz>
7185
7186 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7187 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7188 (cgraph_local_info): Remove inline_summary.
7189 * ipa-cp.c: Include ipa-inline.h.
7190 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7191 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7192 accesor.
7193 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7194 (input_overwrite_node): Do not set inline summary.
7195 (input_node): Do not stream inline summary.
7196 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7197 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7198 growth; we do not have inline parameters computed for that anyway.
7199 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7200 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7201 (inline_summary_t): New type and VECtor.
7202 (debug_inline_summary, dump_inline_summaries): Declare.
7203 (inline_summary): Use VOCtor.
7204 (estimate_edge_growth): Kill hack computing call stmt size directly.
7205 * lto-section-in.c (lto_section_name): Add inline section.
7206 * ipa-inline-analysis.c: Include lto-streamer.h
7207 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7208 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7209 (inline_summary_vec): Define.
7210 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7211 dump_inline_summaries): New functions.
7212 (estimate_function_body_sizes): Properly compute size/time of outgoing
7213 calls.
7214 (compute_inline_parameters): Alloc inline_summary; do not compute
7215 size/time of incomming calls.
7216 (estimate_edge_time): Avoid missing time summary hack.
7217 (inline_read_summary): Read inline summary info.
7218 (inline_write_summary): Write inline summary info.
7219 (inline_free_summary): Free all hooks and inline summary vector.
7220 * lto-streamer.h: Add LTO_section_inline_summary section.
7221 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7222 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7223
7224 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7225
7226 * tree-vectorizer.h (vect_strided_store_supported): Add a
7227 HOST_WIDE_INT argument.
7228 (vect_strided_load_supported): Likewise.
7229 (vect_permute_store_chain): Return void.
7230 (vect_transform_strided_load): Likewise.
7231 (vect_permute_load_chain): Delete.
7232 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7233 count argument. Check that the count is a power of two.
7234 (vect_strided_load_supported): Likewise.
7235 (vect_permute_store_chain): Return void. Update after above changes.
7236 Assert that the access is supported.
7237 (vect_permute_load_chain): Likewise.
7238 (vect_transform_strided_load): Return void.
7239 * tree-vect-stmts.c (vectorizable_store): Update calls after
7240 above interface changes.
7241 (vectorizable_load): Likewise.
7242 (vect_analyze_stmt): Don't check for strided powers of two here.
7243
7244 2011-04-14 Richard Guenther <rguenther@suse.de>
7245
7246 PR tree-optimization/48590
7247 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7248 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7249 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7250 BUILT_IN_STACK_SAVE.
7251 * tree-ssa-dce.c (propagate_necessity): Handle
7252 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7253
7254 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7255
7256 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7257 objc_declare_class.
7258
7259 2011-04-14 Richard Guenther <rguenther@suse.de>
7260
7261 * tree.h (get_object_alignment_1): Declare.
7262 * builtins.c (get_object_alignment_1): Split out worker from ...
7263 (get_object_alignment): ... here.
7264 * fold-const.c (get_pointer_modulus_and_residue): Use
7265 get_object_alignment_1.
7266
7267 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7268
7269 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7270 type parameter.
7271 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7272 parameter. Generalise code to handle arrays as well as vectors.
7273 (vect_setup_realignment): Update accordingly.
7274 * tree-vect-stmts.c (vectorizable_store): Likewise.
7275 (vectorizable_load): Likewise.
7276
7277 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7278
7279 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7280 within the per-copy loop.
7281
7282 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7283
7284 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7285 in the dump file.
7286
7287 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7288
7289 * doc/options.texi (Negative): Explicitly mention that the
7290 Negative chain must be circular.
7291
7292 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7293
7294 * function.h (block_chainon): Declare.
7295 * function.c (block_chainon): Define.
7296
7297 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7298 Eric Weddington <eric.weddington@atmel.com>
7299 Georg-Johann Lay <avr@gjlay.de>
7300
7301 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7302 New Includes
7303 (avr_init_builtins, avr_expand_builtin,
7304 avr_expand_delay_cycles, avr_expand_unop_builtin,
7305 avr_expand_binop_builtin ): New functions.
7306 (avr_builtin_id): New enum
7307 (struct avr_builtin_description): New struct
7308 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7309 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7310
7311 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7312 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7313 UNSPECV_DELAY_CYCLES): new enumeration values
7314 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7315 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7316 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7317 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7318 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7319 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7320 "fmulsu"): New insns
7321
7322 * config/avr/avr-c.c: fix line endings
7323 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7324 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7325 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7326 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7327 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7328
7329 * doc/extend.texi (AVR Built-in Functions): New node
7330 (Target Builtins): Add documentation of AVR
7331 built-in functions.
7332
7333 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7334
7335 PR target/44643
7336 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7337 alone. Error if non-const data has attribute progmem.
7338
7339 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7340
7341 * tree.h (struct tree_constructor): Include tree_typed instead of
7342 tree_common.
7343 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7344 TS_TYPED instead of TS_COMMON.
7345
7346 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7347
7348 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7349 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7350 (sse2_psadbw): Merge with *avx_psadbw.
7351 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7352 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7353 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7354 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7355 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7356 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7357 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7358 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7359 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7360 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7361 (ssse3_palignrti): Merge with *avx_palignrti.
7362
7363 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7364
7365 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7366 * tree-ssanames.c (fini_ssanames): VEC_free it.
7367 (make_ssa_name_fn): Update for VECness of free_ssanames.
7368 (release_ssa_name, release_dead_ssa_names): Likewise.
7369 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7370 tree_common.
7371 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7372 TS_TYPED instead of TS_COMMON.
7373
7374 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7375
7376 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7377 statistics_counter_event.
7378 * tree-ssa-copyrename.c (stats): Define.
7379 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7380 statistics_counter_event.
7381 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7382 (bswap_stats, widen_mul_stats): Define.
7383 (insert_reciprocals): Increment rdivs_inserted.
7384 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7385 rfuncs_inserted. Add calls to statistics_counter_event.
7386 (execute_cse_sincos_1): Increment inserted.
7387 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7388 statistics_counter_event.
7389 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7390 of bswap_stats. Add calls to statistics_counter_event.
7391 (convert_mult_to_widen): Increment widen_mults_inserted.
7392 (convert_plusminus_to_widen): Increment maccs_inserted.
7393 (convert_mult_to_fma): Increment fmas_inserted.
7394 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7395 calls to statistics_counter_event.
7396
7397 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7398
7399 PR rtl-optimization/48455
7400 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7401 `temp_costs->mem_cost'.
7402
7403 2011-04-13 Jan Hubicka <jh@suse.cz>
7404
7405 * ipa-inline.h: New file.
7406 * ipa-inline-analysis.c: New file. Broken out of ...
7407 * ipa-inline.c: ... this file; update toplevel comment;
7408 include ipa-inline.h
7409 (inline_summary): Move to ipa-inline.h
7410 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7411 ipa-inline-analysis.c.
7412 (cgraph_estimate_time_after_inlining): Rename to
7413 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7414 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7415 to estimate_edge_growth.
7416 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7417 rename to estimate_size_after_inlining.
7418 (cgraph_mark_inline_edge): Update for new naming convention.
7419 (cgraph_check_inline_limits): Likewise.
7420 (cgraph_edge_badness): Likewise.
7421 (cgraph_decide_recursive_inlining): Likewise.
7422 (cgraph_decide_inlining_of_small_functions): Likewise.
7423 (cgraph_decide_inlining_incrementally): Likewise.
7424 (cgraph_estimate_growth): Rename to estimate_growth; move to
7425 ipa-inline-analysis.c.
7426 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7427 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7428 (compute_inline_parameters): Likewise.
7429 (compute_inline_parameters_for_current): Likewise.
7430 (pass_inline_parameters): Likewise.
7431 (inline_indirect_intraprocedural_analysis): Likewise.
7432 (analyze_function): Rename to inline_analyze_function; likewise.
7433 (add_new_function): Move to ipa-inline-analysis.c.
7434 (inline_generate_summary): Likewise.
7435 (inline_read_summary): Likewise.
7436 (inline_write_summary): Likewise.
7437 * Makefile.in (ipa-inline-analysis.c): New file.
7438
7439 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7440
7441 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7442 * configure: Regenerate.
7443
7444 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7445
7446 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7447 instead of tree_common.
7448 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7449 Likewise.
7450 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7451 TS_TYPED rather than TS_COMMON.
7452 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7453
7454 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7455
7456 PR target/45263
7457 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7458 r20 around calls of __tablejump_elpm__
7459
7460 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7461
7462 PR middle-end/48591
7463 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7464 NULL.
7465 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7466
7467 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7468
7469 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7470 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7471 (cfi_vec): New typedef.
7472 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7473 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7474 (cie_cfi_vec): New static variable.
7475 (cie_cfi_head): Delete.
7476 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7477 declaration changed. Use vector rather than list operations.
7478 (new_cfi): Don't initialize the dw_cfi_next field.
7479 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7480 rather than list operations.
7481 (lookup_cfa): Use vector rather than list operations.
7482 (output_cfis): New argument upto. Accept a cfi_vec rather than
7483 a dw_cfi_ref list head as argument. All callers changed.
7484 Iterate over the vector using upto as a maximum index.
7485 (output_all_cfis): New static function.
7486 (output_fde): Use vector rather than list operations. Use the
7487 new upto argument for output_cfis rather than manipulating a
7488 list.
7489 (dwarf2out_begin_prologue): Change initializations to match
7490 new struct members.
7491 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7492 from the vector length rather than searching for the end of a list.
7493 Use output_all_cfis.
7494 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7495
7496 2011-04-13 Nick Clifton <nickc@redhat.com>
7497
7498 * config/rx/rx.md (movmemsi): Do not use this pattern when
7499 volatile pointers are involved.
7500
7501 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7502
7503 * config/i386/sse.md (pinsrbits): Remove.
7504 (sse2_packsswb): Merge with *avx_packsswb.
7505 (sse2_packssdw): Merge with *avx_packssdw.
7506 (sse2_packuswb): Merge with *avx_packuswb.
7507 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7508 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7509 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7510 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7511 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7512 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7513 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7514 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7515 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7516 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7517 (sse2_loadld): Merge with *avx_loadld.
7518 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7519 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7520 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7521 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7522 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7523
7524 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7525
7526 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7527 calling TREE_CHAIN.
7528 * print-tree.c (print_node): Likewise.
7529 * tree-inline.c (copy_tree_r): Likewise.
7530 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7531 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7532 instead of TS_COMMON.
7533 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7534 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7535 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7536 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7537 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7538 ...and these...
7539 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7540 * tree.h: ...here.
7541 (TREE_CHAIN): Check for a TS_COMMON structure.
7542 (TREE_TYPE): Check for a TS_TYPED structure.
7543
7544 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7545
7546 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7547 cgraph_get_create_node instead of cgraph_node.
7548
7549 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7550
7551 * c-parser.c (c_parser_initelt): Updated call to
7552 objc_build_message_expr.
7553 (c_parser_postfix_expression): Likewise.
7554
7555 2011-04-12 Kai Tietz <ktietz@redhat.com>
7556
7557 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7558 MASK_MS_BITFIELD_LAYOUT bit.
7559
7560 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7561
7562 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7563 assert it is always true.
7564 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7565 moves.
7566
7567 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7568
7569 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7570 compiling Objective-C to be more efficient.
7571
7572 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7573
7574 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7575 argv_copied.
7576
7577 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7578
7579 * recog.h, genoutput.c, optabs.c: Revert last patch.
7580
7581 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7582
7583 PR target/48090
7584 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7585
7586 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7587
7588 * recog.h (insn_operand_data): Add an "allows_mem" field.
7589 * genoutput.c (output_operand_data): Initialize it.
7590 * optabs.c (maybe_legitimize_operand_same_code): New function.
7591 (maybe_legitimize_operand): Use it when matching the original
7592 op->value.
7593
7594 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7595
7596 * genpreds.c (process_define_predicate): Move most processing
7597 to gensupport.c. Continue to validate the expression.
7598 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7599 (process_define_predicate): Move processing to gensupport.c.
7600 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7601 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7602 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7603 argument.
7604 (valid_predicate_name_p): New function, split out from old
7605 genpreds.c:process_define_predicate.
7606 (process_define_predicate): New function, combining code from
7607 old genpreds.c and genrecog.c functions.
7608 (process_rtx): Call it for DEFINE_PREDICATE and
7609 DEFINE_SPECIAL_PREDICATE.
7610
7611 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7612
7613 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7614 size of a '%A' memory reference.
7615 (T_DREG, T_QREG): New neon_builtin_type_bits.
7616 (arm_init_neon_builtins): Assert that the load and store operands
7617 are neon_struct_operands.
7618 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7619 (NEON_ARG_MEMORY): New builtin_arg.
7620 (neon_dereference_pointer): New function.
7621 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7622 Handle NEON_ARG_MEMORY.
7623 (arm_expand_neon_builtin): Update after above interface changes.
7624 Use NEON_ARG_MEMORY for loads and stores.
7625 * config/arm/predicates.md (neon_struct_operand): New predicate.
7626 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7627 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7628 (V_four_elem): Tweak formatting.
7629 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7630 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7631 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7632 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7633 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7634 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7635 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7636 Use %A in the output template.
7637 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7638 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7639 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7640 the width of the memory access. Remove post-increment.
7641 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7642
7643 2011-04-12 Nick Clifton <nickc@redhat.com>
7644
7645 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7646 instruction for interrupt handlers if the target is the basic V850
7647 architecture.
7648 (expand_epilogue): Likewise.
7649
7650 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7651
7652 PR rtl-optimization/48549
7653 * combine.c (propagate_for_debug): Also stop after BB_END of
7654 this_basic_block. Process LAST and just stop processing after it.
7655 (combine_instructions): If last_combined_insn has been deleted,
7656 set last_combined_insn to its PREV_INSN.
7657
7658 2011-04-12 Richard Guenther <rguenther@suse.de>
7659
7660 PR tree-optimization/46076
7661 * gimple.h (struct gimple_statement_call): Add fntype field.
7662 (gimple_call_fntype): Adjust.
7663 (gimple_call_set_fntype): New function.
7664 * gimple.c (gimple_build_call_1): Set the call function type.
7665 * gimplify.c (gimplify_call_expr): Preserve the function
7666 type the frontend used for the call.
7667 (gimplify_modify_expr): Likewise.
7668 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7669 function type.
7670 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7671 function type.
7672 * tree-ssa.c (useless_type_conversion_p): Function pointer
7673 conversions are useless.
7674
7675 2011-04-12 Martin Jambor <mjambor@suse.cz>
7676
7677 * cgraph.h (cgraph_node): Remove function declaration.
7678 (cgraph_create_node): Declare.
7679 (cgraph_get_create_node): Likewise.
7680 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7681 Updated all callers.
7682 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7683 the decl does not already exist. Call cgraph_get_create_node instead
7684 of cgraph_node.
7685 (cgraph_get_create_node): New function.
7686 (cgraph_same_body_alias): Update comment.
7687 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7688 assert it does not return NULL.
7689 (cgraph_update_edges_for_call_stmt): Likewise.
7690 (cgraph_clone_edge): Likewise.
7691 (cgraph_create_virtual_clone): Likewise.
7692 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7693 instead of cgraph_node.
7694 (cgraph_add_new_function): Call cgraph_create_node or
7695 cgraph_get_create_node instead of cgraph_node.
7696 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7697 instead of cgraph_node.
7698 (record_eh_tables): Likewise.
7699 (mark_address): Likewise.
7700 (mark_load): Likewise.
7701 (build_cgraph_edges): Call cgraph_get_create_node instead
7702 of cgraph_node.
7703 (rebuild_cgraph_edges): Likewise.
7704 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7705 instead of cgraph_node.
7706 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7707 cgraph_node.
7708 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7709 cgraph_create_node instead of cgraph_node.
7710 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7711 of cgraph_node.
7712 * lto-cgraph.c (input_node): Likewise.
7713 * lto-streamer-in.c (input_function): Likewise.
7714 * varasm.c (mark_decl_referenced): Likewise.
7715 (assemble_alias): Likewise.
7716
7717 2011-04-12 Martin Jambor <mjambor@suse.cz>
7718
7719 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7720 instead of cgraph_node and assert it does not return NULL.
7721 * lto-streamer-in.c (lto_read_body): Likewise.
7722 * omp-low.c (new_omp_context): Likewise.
7723 (create_task_copyfn): Likewise.
7724 * tree-emutls.c (lower_emutls_function_body): Likewise.
7725 * matrix-reorg.c (transform_allocation_sites): Likewise.
7726
7727 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7728
7729 PR c/48552
7730 * c-typeck.c (build_asm_expr): Error out on attempts to use
7731 void type outputs or inputs for constraints that allow reg or
7732 don't allow memory.
7733
7734 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7735 Richard Earnshaw <rearnsha@arm.com>
7736
7737 PR target/48250
7738 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7739 to use sign-magnitude offsets. Reject unsupported unaligned
7740 cases. Add detailed description in comments.
7741 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7742 condition from TARGET_32BIT to TARGET_ARM.
7743
7744 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7745
7746 * tree.h (struct typed_tree): New.
7747 (struct tree_common): Include it instead of tree_base.
7748 (TREE_TYPE): Update for new location of type field.
7749 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7750 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7751 (union tree_node): Add typed field.
7752 * treestruct.def (TS_TYPED): New.
7753 * lto-streamer.c (check_handled_ts_structures): Handle it.
7754 * tree.c (MARK_TS_TYPED): New macro.
7755 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7756
7757 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7758
7759 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7760 (force_nonfallthru): Do not alter the loop nest if no basic block
7761 was created.
7762
7763 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7764
7765 * config/i386/sse.md (VI): New mode iterator.
7766 (SSEMODEI): Remove.
7767 (AVX256MODEI): Ditto.
7768 (AVXMODEF4P): Ditto.
7769 (avxvecpsmode): Ditto.
7770 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7771 (sse2_andnot<mode>3): New expander.
7772 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7773 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7774 (<any_logic:code><mode>3): Use VI mode iterator.
7775 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7776 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7777 (*andnottf3): Handle AVX three-operand constraints.
7778 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7779
7780 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7781 Robert Millan <rmh@gnu.org>
7782
7783 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7784 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7785 GNU_USER_DYNAMIC_LINKER64): Define.
7786 (REG_NAME): Don't undefine.
7787 (MD_UNWIND_SUPPORT): Undefine.
7788 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7789 (REG_NAME): Don't undefine.
7790 (MD_UNWIND_SUPPORT): Undefine.
7791 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7792
7793 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7794
7795 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7796 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7797
7798 2011-04-11 Xinliang David Li <davidxl@google.com>
7799
7800 * value-profile.c (check_ic_target): New function.
7801 (gimple_ic_transform): Sanity check indirect call target.
7802 * gimple-low.c (gimple_check_call_args): Interface change.
7803 (gimple_check_call_matching_types): New function.
7804 * tree-inline.c (tree_can_inline_p): Call new function.
7805
7806 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7807
7808 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7809 tree-pretty-print.h & realmpfr.h.
7810
7811 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7812
7813 PR middle-end/48464
7814 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7815 (setup_allocno_and_important_classes): Ditto.
7816
7817 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7818
7819 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7820 GNU_USER_DYNAMIC_LINKER.
7821 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7823 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7824 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7825 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7826 GNU_USER_TARGET_OS_CPP_BUILTINS.
7827 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7828 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7829 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7830 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7831 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7832 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7833 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7834 GNU_USER_TARGET_OS_CPP_BUILTINS.
7835 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7836 GNU_USER_DYNAMIC_LINKER.
7837 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7838 GNU_USER_TARGET_OS_CPP_BUILTINS.
7839 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7840 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7841 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7842 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7843 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7844 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7845 GNU_USER_DYNAMIC_LINKER64): Remove.
7846 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7847 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7848 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7849 GNU_USER_DYNAMIC_LINKER.
7850 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7851 GNU_USER_TARGET_OS_CPP_BUILTINS.
7852 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7853 GNU_USER_TARGET_OS_CPP_BUILTINS.
7854 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7855 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7856 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7857 GNU_USER_TARGET_OS_CPP_BUILTINS.
7858 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7859 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7860 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7861 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7862 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7863 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7864 GNU_USER_DYNAMIC_LINKER.
7865 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7866 GNU_USER_TARGET_OS_CPP_BUILTINS.
7867 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7868 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7869 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7870 GNU_USER_DYNAMIC_LINKER.
7871 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7872 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7873 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7874 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7875 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7876 GNU_USER_DYNAMIC_LINKER.
7877 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7878 GNU_USER_DYNAMIC_LINKERN32.
7879 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7880 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7881 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7882 GNU_USER_DYNAMIC_LINKER32.
7883 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7884 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7885 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7886 GNU_USER_DYNAMIC_LINKER.
7887 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7888 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7889 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7890 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7891 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7892 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7893 GNU_USER_DYNAMIC_LINKER32.
7894 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7895 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7896 GNU_USER_DYNAMIC_LINKER.
7897 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7899 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7900 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7901 GNU_USER_DYNAMIC_LINKER64.
7902 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7903 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7904 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7905 GNU_USER_DYNAMIC_LINKER.
7906 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7907 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7908 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7909 GNU_USER_DYNAMIC_LINKER.
7910 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7911 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7912 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7913 GNU_USER_DYNAMIC_LINKER32.
7914 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7915 GNU_USER_DYNAMIC_LINKER64.
7916 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7917 GNU_USER_DYNAMIC_LINKER64.
7918 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7919 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7920 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7921 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7922 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7923
7924 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7925
7926 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7927 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7928 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7929 GNU_USER_DYNAMIC_LINKER.
7930 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7931 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7932 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7933 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7934 GNU_USER_DYNAMIC_LINKER64.
7935 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7936 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7937 GNU_USER_LINK_EMULATION.
7938 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7939 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7940 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7941 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7942 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7943 CPP_SPEC, CC1_SPEC): Remove.
7944 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7945 (GNU_USER_DYNAMIC_LINKER): Define.
7946 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7947 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7948 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7949 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7950 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7951 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7952 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7953 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7954 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7955 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7956 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7957 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7958 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7959 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7960 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7961 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7962 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7963 GNU_USER_DYNAMIC_LINKER.
7964 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7965 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7966 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7967 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7968 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7969 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7970 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7971 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7972 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7973 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7974
7975 2011-04-11 Kai Tietz <ktietz@redhat.com>
7976
7977 PR target/9601
7978 PR target/11772
7979 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7980 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7981 comment.
7982 (ix86_is_msabi_thiscall): Removed.
7983 (ix86_is_type_thiscall): Likewise.
7984 (ix86_get_callcvt): New function.
7985 (ix86_comp_type_attributes): Simplify check.
7986 (ix86_function_regparm): Use ix86_get_callcvt for calling
7987 convention attribute checks.
7988 (ix86_return_pops_args): Likewise.
7989 (ix86_static_chain): Likewise.
7990 (x86_this_parameter): Likewise.
7991 (x86_output_mi_thunk): Likewise.
7992 (ix86_function_type_abi): Optimize check for types without attributes.
7993 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7994 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7995 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7996 by flag-values.
7997 (IX86_BASE_CALLCVT): Helper macro.
7998 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7999 Use ix86_get_callcvt for calling convention attribute checks and avoid
8000 symbol-decoration for stdcall in TARGET_RTD case.
8001 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8002 Likewise.
8003 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8004 for declaration.
8005
8006 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8007
8008 * config/i386/sse.md (VI_128): New mode iterator.
8009 (VI12_128): Rename from SSEMODE12.
8010 (VI14_128): Rename from SSEMODE14.
8011 (VI124_128): New mode iterator.
8012 (VI24_128): Rename from SSEMODE248.
8013 (VI248_128): Rename from SSEMODE248.
8014 (SSEMODE124C8): Remove.
8015 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8016 (*sse2_<plusminus_insn><mode>3): Merge with
8017 *avx_<plusminus_insn><mode>3.
8018 (*mulv8hi3): Merge with *avx_mulv8hi3.
8019 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8020 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8021 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8022 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8023 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8024 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8025 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8026 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8027 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8028 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8029 (*<smaxmin:code>v8hi3): Ditto.
8030 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8031 (*<smaxmin:code>v16qi3): Ditto.
8032 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8033 (*sse2_eq<mode>3): Ditto.
8034 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8035 (*sse2_gt<mode>3): Ditto.
8036 (vcondv2di): Split out of vcond<mode>.
8037 (vconduv2di): Split out of vcondu<mode>.
8038
8039 2011-04-11 Richard Guenther <rguenther@suse.de>
8040
8041 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8042 before calling tree_low_cst.
8043
8044 2011-04-11 Richard Guenther <rguenther@suse.de>
8045
8046 * stor-layout.c (layout_type): Compute all array index size operations
8047 in the original type.
8048 (initialize_sizetypes): Add comment.
8049 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8050
8051 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8052
8053 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8054
8055 2011-04-11 Martin Jambor <mjambor@suse.cz>
8056
8057 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8058 of cgraph_node, handle NULL return value.
8059 (cgraph_global_info): Likewise.
8060 (cgraph_rtl_info): Likewise.
8061 * tree-inline.c (estimate_num_insns): Likewise.
8062 * gimplify.c (unshare_body): Likewise.
8063 (unvisit_body): Likewise.
8064 (gimplify_body): Likewise.
8065 * predict.c (optimize_function_for_size_p): Likewise.
8066 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8067 (call_may_clobber_ref_p_1): Likewise.
8068 * varasm.c (function_section_1): Likewise.
8069 (assemble_start_function): Likewise.
8070
8071 2011-04-11 Martin Jambor <mjambor@suse.cz>
8072
8073 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8074 of cgraph_node.
8075 * final.c (rest_of_clean_state): Likewise.
8076 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8077 * passes.c (pass_init_dump_file): Likewise.
8078 (execute_all_ipa_transforms): Likewise.
8079 (function_called_by_processed_nodes_p): Likewise.
8080 * predict.c (maybe_hot_frequency_p): Likewise.
8081 (probably_never_executed_bb_p): Likewise.
8082 (compute_function_frequency): Likewise.
8083 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8084 (unnest_nesting_tree_1): Likewise.
8085 (lower_nested_functions): Likewise.
8086 * tree-optimize.c (execute_fixup_cfg): Likewise.
8087 (tree_rest_of_compilation): Likewise.
8088 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8089 * tree-sra.c (ipa_early_sra): Likewise.
8090 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8091 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8092 * ipa.c (record_cdtor_fn): Likewise.
8093 * ipa-inline.c (cgraph_early_inlining): Likewise.
8094 (compute_inline_parameters_for_current): Likewise.
8095 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8096 * ipa-pure-const.c (local_pure_const): Likewise.
8097 * ipa-split.c (split_function): Likewise.
8098 (execute_split_functions): Likewise.
8099 * cgraphbuild.c (build_cgraph_edges): Likewise.
8100 (rebuild_cgraph_edges): Likewise.
8101 (cgraph_rebuild_references): Likewise.
8102 (remove_cgraph_callee_edges): Likewise.
8103 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8104 (verify_cgraph_node): Likewise.
8105 (cgraph_analyze_functions): Likewise.
8106 (cgraph_preserve_function_body_p): Likewise.
8107 (save_inline_function_body): Likewise.
8108 (save_inline_function_body): Likewise.
8109 * tree-inline.c (copy_bb): Likewise.
8110 (optimize_inline_calls): Likewise.
8111
8112 2011-04-11 Martin Jambor <mjambor@suse.cz>
8113
8114 PR tree-optimization/48195
8115 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8116 ipa_check_create_edge_args.
8117 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8118 ipa_check_create_edge_args.
8119 * ipa-inline.c (inline_generate_summary): Do not call
8120 ipa_check_create_node_params and ipa_check_create_edge_args.
8121 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8122 ipa_check_create_edge_args.
8123
8124 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8125
8126 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8127 instead of loop.
8128 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8129 * function.c (record_hard_reg_sets): Likewise.
8130 * ira.c (compute_regs_asm_clobbered): Likewise.
8131 * sched-deps.c (sched_analyze_1): Likewise.
8132 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8133
8134 2011-04-09 Xinliang David Li <davidxl@google.com>
8135
8136 PR tree-optimization/PR48484
8137 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8138 has_valid_pred lazily
8139
8140 2011-04-09 Duncan Sands <baldrick@free.fr>
8141
8142 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8143
8144 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8145
8146 * combine.c (combine_validate_cost): Adjust comments. Set registered
8147 cost of I0 to zero at the end, if any.
8148
8149 2011-04-08 Xinliang David Li <davidxl@google.com>
8150
8151 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8152 to insane profile data.
8153
8154 2011-04-08 Xinliang David Li <davidxl@google.com>
8155
8156 * ipa-cp.c (ipcp_update_profiling): Correct
8157 negative scale factor due to insane profile data.
8158
8159 2011-04-08 Xinliang David Li <davidxl@google.com>
8160
8161 * final.c (dump_basic_block_info): New function.
8162 (final): Dump basic block.
8163 (final_scan_insn): Remove old dump.
8164
8165 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8166
8167 PR target/47829
8168 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8169 crtbegin/crtend.
8170
8171 2011-04-08 Michael Matz <matz@suse.de>
8172
8173 PR middle-end/48389
8174 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8175 functions.
8176 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8177 * rtl.h (rebuild_jump_labels_chain): Declare.
8178 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8179 insns inserted on edges.
8180
8181 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8182
8183 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8184 * config/arm/arm-arches.def: New.
8185 * config/arm/arm-opts.h: New.
8186 * config/arm/genopt.sh: New.
8187 * config/arm/arm-tables.opt: New (generated).
8188 * config/arm/arm.c (arm_handle_option, arm_target_help,
8189 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8190 (all_architectures): Get most table contents from arm-arches.def.
8191 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8192 arm_selected_tune here.
8193 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8194 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8195 (march=, mcpu=, mtune=): Use Enum and Var.
8196 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8197 (arm.o): Update dependencies.
8198
8199 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8200
8201 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8202 of header_file.
8203 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8204 (write_typed_alloc_defns): Likewise.
8205 (main): Calls write_typed_alloc_defns with output_header.
8206
8207 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8208
8209 PR inline-asm/48435
8210 * ira-color.c (setup_profitable_hard_regs): Add comments.
8211 Don't take prohibited hard regs into account.
8212 (setup_conflict_profitable_regs): Rename to
8213 get_conflict_profitable_regs.
8214 (check_hard_reg_p): Check prohibited hard regs.
8215
8216 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8217
8218 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8219 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8220 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8221
8222 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8223
8224 PR target/48366
8225 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8226 move from floating point to shift amount register.
8227 (emit_move_sequence): Remove secondary reload support for floating
8228 point to shift amount amount register copies.
8229 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8230 amount register copies.
8231 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8232 register, return false if mode isn't a scalar integer mode.
8233 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8234
8235 2011-04-08 Richard Guenther <rguenther@suse.de>
8236
8237 * gimple.c (gimple_call_flags): Remove kludge.
8238
8239 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8240
8241 * sel-sched.c (sel_region_init): Move call to
8242 sel_setup_region_sched_flags after setup_current_loop_nest.
8243
8244 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8245
8246 PR rtl-optimization/48272
8247 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8248 init_insn_reg_pressure_info. Adjust a caller.
8249 * sched-int.h (init_insn_reg_pressure_info): Declare.
8250 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8251 when sched-pressure is enabled.
8252
8253 2011-04-08 Richard Guenther <rguenther@suse.de>
8254
8255 * gimple.c (gimple_set_modified): Do not queue calls to
8256 MODIFIED_NORETURN_CALLS here ...
8257 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8258
8259 2011-04-08 Richard Guenther <rguenther@suse.de>
8260
8261 PR lto/48467
8262 * toplev.c (lang_dependent_init): Do not open asm_out_file
8263 in WPA mode, nor perform debug machinery initialization.
8264 (finalize): Do not unlink asm_out_file in WPA mode.
8265
8266 2011-04-08 Richard Guenther <rguenther@suse.de>
8267
8268 * gimple.h (gimple_call_fntype): New function.
8269 (gimple_call_return_type): Use it.
8270 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8271 * gimple-low.c (gimple_check_call_args): Likewise.
8272 * gimple.c (gimple_call_flags): Likewise.
8273 (gimple_call_arg_flags): Likewise.
8274 (gimple_call_return_flags): Likewise.
8275 * tree-cfg.c (verify_gimple_call): Likewise.
8276 (do_warn_unused_result): Likewise.
8277 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8278 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8279
8280 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8281
8282 PR rtl-optimization/48235
8283 * sel-sched.c (code_motion_process_successors): Recompute the last
8284 insn in basic block if control flow changed.
8285 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8286 Update condition for ilist_remove.
8287
8288 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8289
8290 PR rtl-optimization/48302
8291 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8292 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8293 it to record added preheader blocks.
8294 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8295 on to sel_add_loop_preheaders.
8296 (sel_region_init): Move call to setup_current_loop_nest after
8297 sel_init_bbs.
8298
8299 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8300
8301 PR target/48273
8302 * cfgloop.h (loop_has_exit_edges): New helper.
8303 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8304 non-clonable.
8305 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8306 that have no exit edges.
8307
8308 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8309
8310 PR rtl-optimization/48442
8311 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8312 all callers. Adjust assert.
8313
8314 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8315
8316 PR tree-optimization/48377
8317 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8318 is_packed to true even for types with smaller TYPE_ALIGN than
8319 TYPE_SIZE.
8320
8321 2011-04-08 Richard Guenther <rguenther@suse.de>
8322
8323 PR bootstrap/48513
8324 * doc/tm.texi: Re-generate.
8325
8326 2011-04-08 Wei Guozhi <carrot@google.com>
8327
8328 PR target/47855
8329 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8330 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8331 * config/arm/arm.md (*push_multi): Change the length computation to
8332 call a C function.
8333
8334 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8335
8336 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8337 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8338 * doc/tm.texi: Regenerate.
8339 * system.h (ASM_OUTPUT_BSS): Poison.
8340 * varasm.c (asm_output_bss): Remove function.
8341 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8342
8343 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8344 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8345 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8346 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8347 Likewise.
8348 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8349 Likewise.
8350 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8351 Likewise.
8352 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8353
8354 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8355
8356 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8357 EnumValue lines.
8358
8359 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8360
8361 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8362 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8363 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8364 OPT_mcpu32.
8365 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8366 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8367 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8368 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8369 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8370 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8371 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8372 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8373 options. Don't map other m68k options manually. Don't handle
8374 old-style options as canonical.
8375 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8376 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8377
8378 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8379
8380 * basic-block.h (force_nonfallthru): Move to...
8381 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8382 (force_nonfallthru): ...here.
8383 * cfghooks.c (force_nonfallthru): New function.
8384 * cfgrtl.c (force_nonfallthru): Rename into...
8385 (rtl_force_nonfallthru): ...this.
8386 (commit_one_edge_insertion): Do not set AUX field.
8387 (commit_edge_insertions): Do not discover new basic blocks.
8388 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8389 (cfg_layout_rtl_cfg_hooks): Likewise.
8390 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8391 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8392 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8393
8394 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8395
8396 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8397 Remove macros.
8398
8399 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8400
8401 * config/i386/sse.md: Update copyright year.
8402 (avxcvtvecmode): Remove.
8403 (sse_movhlps): Merge with *avx_movhlps.
8404 (sse_movlhps): Merge with *avx_movlhps.
8405 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8406 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8407 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8408 (sse_loadhps): Merge with *avx_loadhps.
8409 (sse_storelps): Merge with *avx_storelps.
8410 (sse_loadlps): Merge with *avx_loadlps.
8411 (sse_movss): Merge with *avx_movss.
8412 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8413 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8414 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8415 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8416 (vec_set<mode>_0): Ditto.
8417 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8418 (sse4_1_insertps): Merge with *avx_insertps.
8419 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8420 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8421 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8422 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8423 (sse2_storehpd): Merge with *avx_storehpd.
8424 (sse2_loadhpd): Merge with *avx_loadhpd.
8425 (sse2_loadlpd): Merge with *avx_loadlpd.
8426 (sse2_movsd): Merge with *avx_movsd.
8427 (*vec_concatv2df): Merge with *vec_concatv2df.
8428
8429 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8430
8431 PR debug/48343
8432 * combine.c (combine_instructions): Add last_combined_insn,
8433 update it if insn is after it, pass it to all try_combine calls.
8434 (try_combine): Add last_combined_insn parameter, pass it instead of
8435 i3 to propagate_for_debug.
8436
8437 2011-04-07 Nick Clifton <nickc@redhat.com>
8438
8439 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8440 to handle MDR <-> data register transfers.
8441 (movhi_internal): Likewise.
8442
8443 2011-04-07 Alan Modra <amodra@gmail.com>
8444
8445 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8446 previous stack info.
8447
8448 2011-04-07 Tom de Vries <tom@codesourcery.com>
8449
8450 PR target/43920
8451 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8452 flow_find_cross_jump. Swap variables to implement backward replacement.
8453 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8454
8455 2011-04-07 Tom de Vries <tom@codesourcery.com>
8456
8457 PR target/43920
8458 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8459 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8460 and bb2.
8461 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8462 src1 or src2. Redirect edges to the last basic block. Update
8463 frequency and count on multiple basic blocks in case of fallthru.
8464
8465 2011-04-07 Tom de Vries <tom@codesourcery.com>
8466
8467 PR target/43920
8468 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8469 function.
8470 (old_insns_match_p): Change return type. Replace return false/true
8471 with return dir_none/dir_both. Use can_replace_by.
8472 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8473 direction from dir_p. Register replacement direction in dir, last_dir
8474 and afterlast_dir. Handle new return type of old_insns_match_p using
8475 merge_dir. Return replacement direction in dir_p.
8476 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8477 return type of old_insns_match_p.
8478 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8479 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8480 flow_find_cross_jump.
8481 * basic-block.h (enum replace_direction): New type.
8482 (flow_find_cross_jump): Add parameter to declaration.
8483
8484 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8485
8486 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8487 (AVXMODEDCVTPS2DQ): Ditto.
8488 (VEC_FLOAT_MODE): Ditto.
8489 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8490 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8491 (<any_logic:code><mode>3): Use VF mode iterator.
8492 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8493 Use VF mode iterator.
8494 (copysign<mode>3): Use VF mode iterator.
8495 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8496 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8497 (*<any_logic:code><MODEF:mode>3): Merge with
8498 *avx_<any_logic:code><MODEF:mode>3.
8499 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8500 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8501 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8502 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8503 (sse2_cvtdq2ps): Use %v modifier.
8504 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8505 (avx_cvtps2dq<avxmodesuffix>): Remove.
8506 (sse2_cvtps2dq): Use %v modifier.
8507 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8508 (avx_cvttps2dq<avxmodesuffix>): Remove.
8509 (sse2_cvttps2dq): Use %v modifier.
8510 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8511 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8512 (sse2_cvtsd2siq): Fix insn template.
8513 (sse2_cvtsd2siq_2): Ditto.
8514 (sse2_cvttsd2siq): Ditto.
8515 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8516 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8517
8518 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8519
8520 * gcov-io.c: Use GCC Runtime Library Exception.
8521
8522 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8523
8524 PR debug/48466
8525 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8526 as base_reg whatever register reg has been eliminated to, instead
8527 of hardcoding STACK_POINTER_REGNUM.
8528
8529 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8530
8531 * doc/tm.texi.in: Document C target hooks as separate from general
8532 target hooks.
8533 * doc/tm.texi: Regenerate.
8534 * genhooks.c (struct hook_desc): Add docname field.
8535 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8536 docname field.
8537 (hook_array): Include c-target.def.
8538 (emit_documentation): Use docname field in output.
8539 (emit_init_macros): Take docname argument. Only emit definitions
8540 for hooks matching docname.
8541 (main): Expect additional arguments in all cases. Pass argument
8542 to emit_init_macros.
8543 * target.def: Move initial macro definitions and comments to
8544 target-hooks-macros.h.
8545 (gcc_targetcm): Move to c-family/c-target.def.
8546 * target.h (targetcm): Move declaration to c-family/c-target.h.
8547 * targhooks.c (default_handle_c_option): Move to
8548 c-family/c-opts.c.
8549 * targhooks.h (default_handle_c_option): Move declaration to
8550 c-family/c-common.h.
8551 * target-hooks-macros.h: New file.
8552 * config.gcc (target_has_targetcm): Define and use to add to
8553 c_target_objs and cxx_target_objs.
8554 * config/default-c.c: New file.
8555 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8556 of target.h and target-def.h.
8557 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8558 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8559 darwin_check_cfstring_format_arg): Make static.
8560 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8561 TARGET_STRING_OBJECT_REF_TYPE_P,
8562 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8563 * config/darwin-protos.h (darwin_objc_construct_string,
8564 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8565 declare.
8566 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8567 TARGET_STRING_OBJECT_REF_TYPE_P,
8568 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8569 * config/t-darwin (darwin-c.o): Update dependencies.
8570 * system.h (TARGET_HAS_TARGETCM): Poison.
8571 * Makefile.in (TARGET_H): Update.
8572 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8573 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8574 (default-c.o): New target.
8575 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8576 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8577 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8578 c-target.def.
8579 (build/genhooks.o): Update dependencies.
8580
8581 2011-04-06 Richard Guenther <rguenther@suse.de>
8582
8583 * ipa-inline.c (enum inlining_mode): Remove.
8584 (cgraph_flatten): Use some other token.
8585 (cgraph_edge_early_inlinable_p): New function, split out from ...
8586 (cgraph_perform_always_inlining): New function, split out from ...
8587 (cgraph_decide_inlining_incrementally): ... here.
8588 (cgraph_mark_inline_edge): Adjust.
8589 (cgraph_early_inlining): Re-structure.
8590 (pass_early_inline): Require SSA form.
8591
8592 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8593 Julian Brown <julian@codesourcery.com>
8594 Mark Shinwell <shinwell@codesourcery.com>
8595
8596 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8597 LO_REGS only for Thumb-1.
8598 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8599 be used in short instructions when optimising for size on Thumb-2.
8600
8601 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8602
8603 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8604 associated with user returns to be preserved.
8605
8606 2011-04-06 Tristan Gingold <gingold@adacore.com>
8607
8608 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8609 symbol_queue_size, DBXOUT_DECR_NESTING,
8610 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8611 if XCOFF_DEBUGGING_INFO.
8612
8613 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8614
8615 * config/i386/i386.md (attribute isa): New.
8616 (attribute enabled): New.
8617 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8618 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8619 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8620 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8621 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8622 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8623 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8624 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8625
8626 * config/i386/sse.md (VF): New mode iterator.
8627 (VF1): Ditto.
8628 (VF2): Ditto.
8629 (VF_128): Ditto.
8630 (SSEMODEF4): Remove.
8631 (attribute sse): Handle V8SF and V4DF modes.
8632 (<absneg:code><mode>2): Use VF mode iterator.
8633 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8634 mode iterator.
8635 (<plusminus_insn><mode>3): Use VF mode iterator.
8636 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8637 Use VF mode iterator.
8638 (<sse>_vm<plusminus_insn><mode>3): Merge with
8639 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8640 (mul<mode>3): Use VF mode iterator.
8641 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8642 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8643 mode iterator.
8644 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8645 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8646 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8647 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8648 mode iterator.
8649 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8650 Use VF1 mode iterator.
8651 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8652 (sqrt<VF2:mode>2): New expander.
8653 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8654 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8655 and sqrtv2df2. Use VF mode iterator.
8656 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8657 mode iterator.
8658 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8659 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8660 Use VF1 mode iterator.
8661 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8662 (<smaxmin:code><mode>3): Use VF mode iterator.
8663 (*<smaxmin:code><mode>3_finite): Merge with
8664 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8665 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8666 (<sse>_vm<smaxmin:code><mode>2): Merge with
8667 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8668 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8669 mode iterator.
8670 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8671 mode iterator.
8672 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8673 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8674 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8675 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8676 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8677 VF mode iterator.
8678 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8679 Use VF_128 mode iterator.
8680 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8681 mode iterator.
8682 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8683 VF_128 mode iterator.
8684 (vcond<mode>): Use VF mode iterator.
8685 * config/i386/predicates.md (sse_comparison_operator): Merge with
8686 avx_comparison_float_operator. Do not declare as special_predicate.
8687 * config/i386/i386.c (struct builtin_description): Update for renamed
8688 compare patterns.
8689 (ix86_expand_args_builtin): Ditto.
8690 (ix86_expand_sse_compare_mask): Ditto.
8691
8692 2011-04-06 Richard Guenther <rguenther@suse.de>
8693
8694 * tree-inline.c (estimate_num_insns): For calls simply account
8695 for all passed arguments and a used return value.
8696
8697 2011-04-06 Richard Guenther <rguenther@suse.de>
8698
8699 PR tree-optimization/47663
8700 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8701 call_stmt_time fields.
8702 (cgraph_edge_inlinable_p): Declare.
8703 (cgraph_edge_recursive_p): New inline function.
8704 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8705 (cgraph_clone_edge): Copy it.
8706 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8707 Account for call stmt time.
8708 (cgraph_estimate_time_after_inlining): Take edge argument.
8709 (cgraph_estimate_edge_growth): Account call stmt size.
8710 (cgraph_estimate_size_after_inlining): Take edge argument.
8711 (cgraph_mark_inline_edge): Adjust.
8712 (cgraph_check_inline_limits): Likewise.
8713 (cgraph_recursive_inlining_p): Remove.
8714 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8715 (cgraph_decide_recursive_inlining): Take edge argument and
8716 adjust.
8717 (cgraph_decide_inlining_of_small_functions): Do not avoid
8718 diags for recursive inlining here.
8719 (cgraph_flatten): Adjust.
8720 (cgraph_decide_inlining_incrementally): Likewise.
8721 (estimate_function_body_sizes): Remove call cost handling.
8722 (compute_inline_parameters): Initialize caller edge call costs.
8723 (cgraph_estimate_edge_growth): New function.
8724 (cgraph_estimate_growth): Use it.
8725 (cgraph_edge_badness): Likewise.
8726 (cgraph_check_inline_limits): Take an edge argument.
8727 (cgraph_decide_inlining_of_small_functions): Adjust.
8728 (cgraph_decide_inlining): Likewise.
8729 * tree-inline.c (estimate_num_insns): Only account for call
8730 return value if it is used.
8731 (expand_call_inline): Avoid diagnostics on recursive inline
8732 functions here.
8733 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8734 (input_edge): Input edge call costs.
8735
8736 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8737
8738 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8739
8740 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8741
8742 * doc/invoke.texi (Spec Files): Fix typo.
8743
8744 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8745
8746 * profile.c (branch_prob): Move declaration of local variable. Remove
8747 obsolete ??? comment. Expand the location explicitly instead of using
8748 the LOCATION_FILE and LOCATION_LINE macros.
8749
8750 2011-04-06 Wei Guozhi <carrot@google.com>
8751
8752 PR target/47855
8753 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8754 (arm_cond_branch): Likewise.
8755 (arm_cond_branch_reversed): Likewise.
8756 (arm_jump): Likewise.
8757 (push_multi): Likewise.
8758 * config/arm/constraints.md (Py): New constraint.
8759
8760 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8761
8762 PR bootstrap/48471
8763 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8764 Move these...
8765 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8766 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8767 #ifdef DBX_DEBUGGING_INFO.
8768
8769 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8770
8771 PR bootstrap/48403
8772 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8773 if old and new states differ.
8774
8775 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8776
8777 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8778 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8779 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8780 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8781 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8782 mcfv4e): Use Alias.
8783 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8784 ColdFire options to -mcpu= options.
8785
8786 2011-04-05 Jeff Law <law@redhat.com>
8787
8788 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8789 check if BB is a successor of LOOP->header and return
8790 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8791
8792 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8793
8794 * cprop.c (struct reg_use): Remove.
8795 (reg_use_table): Make an array of RTX.
8796 (find_used_regs, constprop_register, local_cprop_pass,
8797 bypass_block): Simplify users of reg_use_table.
8798 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8799 on one of the uses found by find_used_regs.
8800
8801 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8802
8803 PR bootstrap/48469
8804 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8805 declaration.
8806
8807 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8808
8809 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8810 as an rtx.
8811 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8812
8813 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8814
8815 PR middle-end/48441
8816 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8817
8818 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8819
8820 * combine.c: Include obstack.h.
8821 (struct insn_link): Define.
8822 (uid_log_links): Adjust type.
8823 (FOR_EACH_LOG_LINK): New macro.
8824 (insn_link_obstack): Declare.
8825 (alloc_insn_link): Define.
8826 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8827 type of link variables.
8828 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8829 (try_combine, record_promoted_values, distribute_notes): Likewise.
8830 (distribute_links): Likewise. Tweak prototype.
8831 (clear_log_links): Delete.
8832 (adjust_for_new_dest): Call alloc_insn_link.
8833 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8834
8835 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8836
8837 * gcse.c (modify_mem_list): Convert to an array of VECs.
8838 (canon_modify_mem_list, compute_transp): Tweak formatting.
8839 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8840 (load_killed_in_block_p): Likewise.
8841 (record_last_mem_set_info): Likewise.
8842 (clear_modify_mem_tables): Likewise.
8843
8844 2011-04-05 Tom de Vries <tom@codesourcery.com>
8845
8846 PR middle-end/48461
8847 * function.c (emit_use_return_register_into_block): Only define if
8848 HAVE_return.
8849
8850 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8851
8852 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8853
8854 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8855
8856 * config/rx/rx-opts.h: New.
8857 * config/rx/rx.c (rx_cpu_type): Remove.
8858 (rx_handle_option): Don't assert that global structures are in
8859 use. Access variables via opts pointer. Defer most handling of
8860 OPT_mint_register_. Use error_at.
8861 (rx_option_override): Handle deferred OPT_mint_register_ here.
8862 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8863 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8864 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8865 (rx_cpu_types): New Enum and EnumValue entries.
8866 (mint-register=): Use Defer and use Var accordingly.
8867
8868 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8869
8870 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8871 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8872 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8873 Move these...
8874 (debug_free_queue, debug_nesting, symbol_queue_index):
8875 ...and these...
8876 * dbxout.c: ...to here. Make static.
8877
8878 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8879
8880 * gcse.c (modify_pair): Define. Define a VEC of it.
8881 (canon_modify_mem_list): Convert to an array of VECs.
8882 (free_insn_expr_list_list): Delete.
8883 (clear_modify_mem_tables): Call VEC_free instead.
8884 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8885 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8886 (canon_list_insert, compute_transp): Likewise.
8887
8888 2011-04-05 Tom de Vries <tom@codesourcery.com>
8889
8890 PR target/43920
8891 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8892 for size.
8893
8894 2011-04-05 Tom de Vries <tom@codesourcery.com>
8895
8896 PR target/43920
8897 * function.c (emit_use_return_register_into_block): New function.
8898 (thread_prologue_and_epilogue_insns): Use
8899 emit_use_return_register_into_block.
8900
8901 2011-04-05 Tom de Vries <tom@codesourcery.com>
8902
8903 PR target/43920
8904 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8905 insn.
8906
8907 2011-04-05 Tom de Vries <tom@codesourcery.com>
8908
8909 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8910
8911 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8912
8913 * config/arm/arm.md (define_constants for unspec): Replace with
8914 define_c_enum.
8915 (define_constants for unspecv): Replace with define_c_enum.
8916 * config/arm/neon.md (define_constants for unspec): Replace with
8917 define_c_enum.
8918
8919 2011-04-04 Richard Henderson <rth@redhat.com>
8920
8921 PR bootstrap/48400
8922 * dwarf2out.c (output_line_info): Always emit line info from
8923 at least one section.
8924 (dwarf2out_init): Create text_section_line_info here ...
8925 (set_cur_line_info_table): ... not here.
8926
8927 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8928
8929 PR target/48380
8930 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8931 not called.
8932
8933 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8934
8935 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8936
8937 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8938 (expr_equiv_p): Remove.
8939 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8940 (hash_scan_set): Update call to insert_set_in_table.
8941 (dump_hash_table): Dump <dest, src> pair.
8942 (lookup_set): Simplify. Lookup <dest, src> pair.
8943 (compute_transp): Remove, fold heavily simplified code into...
8944 (compute_local_properties): ...here. Expect COMP and TRANSP
8945 unconditionally.
8946 (find_avail_set): Take set directly from struct expr.
8947 (find_bypass-set): Likewise.
8948 (bypass_block): Likewise.
8949 (cprop_insn): Likewise. Remove redundant INSN_P test.
8950
8951 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8952 checks on form of COND from find_implicit_sets to here.
8953 (find_implicit_sets): Cleanup control flow. Split critical edges
8954 if it exposes implicit sets. Allocate/resize implicit_sets as
8955 necessary.
8956 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8957 changed something. Run df_analyze after find_implicit_sets if any
8958 edges were split. Do not allocate implicit_sets here.
8959
8960 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8961 (gcse_obstack): Renamed to cprop_obstack.
8962 (GNEW, GNEWVEC, GNEWVAR): Remove.
8963 (gmalloc): Remove.
8964 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8965 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8966 (gcse_alloc): Likewise, and rename to cprop_alloc.
8967 (alloc_gcse_men, free_gcse_mem): Remove.
8968 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8969 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8970 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8971
8972 * cprop.c (oprs_not_set_p): Remove.
8973 (mark_set, mark_clobber): Remove.
8974 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8975 (reg_not_set_p): New function.
8976 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8977 (cprop_insn): Likewise.
8978 (cprop_jump): Use FOR_EACH_EDGE.
8979
8980 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8981
8982 PR bootstrap/48403
8983 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8984 (rank_for_schedule): Use scheduled_insns vector instead of
8985 last_scheduled_insn.
8986 (ok_for_early_queue_removal): Likewise.
8987 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8988 we have a dbg_cnt.
8989 (choose_ready): Likewise.
8990 (commit_schedule): Use VEC_iterate.
8991 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8992 a dbg_cnt, use it and ensure the first insn is in the ready list.
8993 (haifa_sched_init): Allocate scheduled_insns.
8994 (sched_extend_ready_list): Don't allocate it; reserve space.
8995 (haifa_sched_finish): Free it.
8996
8997 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8998
8999 * optc-gen.awk: Always remove type from Variable entry before
9000 recording in var_seen.
9001
9002 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9003
9004 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9005 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9006 call to tidy_fallthru_edges.
9007
9008 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9009
9010 * doc/options.texi (ToLower): Document.
9011 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9012 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9013 * opts.h (cl_option): Add cl_tolower field.
9014 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9015 arguments with lowercase strings.
9016 * config/rx/rx.opt (mcpu=): Add ToLower.
9017 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9018 argument.
9019
9020 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9021
9022 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9023
9024 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9025
9026 * config/vax/vax.c: Include reload.h.
9027
9028 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9029
9030 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9031 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9032 (sparc_preferred_reload_class): New function.
9033
9034 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9035
9036 PR debug/48401
9037 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9038 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9039
9040 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9041
9042 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9043 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9044
9045 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9046
9047 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9048 (ASM_OUTPUT_ALIGNED_BSS): Define.
9049
9050 2011-04-03 Michael Matz <matz@suse.de>
9051
9052 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9053 and next_slot members.
9054 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9055 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9056 (lto_streamer_cache_append): Declare.
9057 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9058 unsigned index, remove offset parameter, ensure that we append
9059 or update existing entries.
9060 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9061 parameter, update next_slot for append.
9062 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9063 parameter.
9064 (lto_streamer_cache_insert_at): Likewise.
9065 (lto_streamer_cache_append): New function.
9066 (lto_streamer_cache_lookup): Use unsigned index.
9067 (lto_streamer_cache_get): Likewise.
9068 (lto_record_common_node): Don't test tree_node_can_be_shared.
9069 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9070 (lto_streamer_cache_delete): Don't free offsets member.
9071 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9072 (lto_output_string_with_length): Use lto_output_data_stream.
9073 (lto_output_tree_header): Remove ix parameter, don't write it.
9074 (lto_output_builtin_tree): Likewise.
9075 (lto_write_tree): Adjust callers to above, don't track and write
9076 offset, write unsigned index.
9077 (output_unreferenced_globals): Don't emit all global vars.
9078 (write_global_references): Use unsigned indices.
9079 (lto_output_decl_state_refs): Likewise.
9080 (write_symbol): Likewise.
9081 * lto-streamer-in.c (lto_input_chain): Move earlier.
9082 (input_function): Use unsigned index.
9083 (input_alias_pairs): Don't read and then ignore all global vars.
9084 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9085 don't pass it back, use lto_streamer_cache_append.
9086 (lto_register_var_decl_in_symtab): Use unsigned index.
9087 (lto_register_function_decl_in_symtab): Likewise.
9088 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9089 index.
9090 (lto_get_builtin_tree): Don't read index, use
9091 lto_streamer_cache_append.
9092 (lto_read_tree): Adjust call to lto_materialize_tree.
9093
9094 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9095 don't use function calls in arguments to MIN.
9096
9097 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9098 twice.
9099
9100 * gimple.c (gimple_type_leader_entry): Mark deletable.
9101
9102 2011-04-03 Alan Modra <amodra@gmail.com>
9103
9104 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9105
9106 2011-04-03 Michael Matz <matz@suse.de>
9107
9108 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9109 an integer.
9110 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9111
9112 2011-04-03 Michael Matz <matz@suse.de>
9113
9114 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9115 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9116 without function context.
9117 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9118 current_function_decl and cfun.
9119
9120 2011-04-03 Michael Matz <matz@suse.de>
9121
9122 * tree.c (decl_init_priority_insert): Don't create entry for
9123 default priority.
9124 (decl_fini_priority_insert): Ditto.
9125 (fields_compatible_p, find_compatible_field): Remove.
9126 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9127 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9128
9129 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9130
9131 * combine.c (try_combine): Remove useless local variable.
9132
9133 2011-04-03 Richard Guenther <rguenther@suse.de>
9134 Ira Rosen <ira.rosen@linaro.org>
9135
9136 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9137 non-variable offsets and compare the remaining bases of the two
9138 accesses instead of looking for exact same data-ref.
9139
9140 2011-04-02 Kai Tietz <ktietz@redhat.com>
9141
9142 PR target/48416
9143 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9144
9145 * i386.c (ix86_is_msabi_thiscall): New helper function.
9146 (ix86_is_type_thiscall): New helper function.
9147 (ix86_comp_type_attributes): Handle thiscall for method-functions
9148 special.
9149 (init_cumulative_args): Likewise.
9150 (find_drap_reg): Likewise.
9151 (ix86_static_chain): Likewise.
9152 (x86_this_parameter): Likewise.
9153 (x86_output_mi_thunk): Likewise.
9154
9155 2011-04-01 Olivier Hainque <hainque@adacore.com>
9156 Nicolas Setton <setton@adacore.com>
9157 Eric Botcazou <ebotcazou@adacore.com>
9158
9159 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9160 (add_gnat_descriptive_type_attribute): New function.
9161 (gen_array_type_die): Call it.
9162 (gen_enumeration_type_die): Likewise.
9163 (gen_struct_or_union_type_die): Likewise.
9164 (modified_type_die): Likewise.
9165 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9166 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9167 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9168
9169 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9170
9171 PR bootstrap/48148
9172 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9173 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9174
9175 Revert:
9176 2011-03-17 Richard Guenther <rguenther@suse.de>
9177
9178 PR bootstrap/48148
9179 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9180 origin for decls in other ltrans units.
9181 (input_varpool_node): Likewise.
9182
9183 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9184
9185 PR middle-end/48335
9186 * expr.c (expand_assignment): Handle all possibilities
9187 if TO_RTX is CONCAT.
9188 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9189 (store_split_bit_field): If SUBREG_REG (op0) or
9190 op0 itself has smaller mode than word, return it
9191 for offset 0 and const0_rtx for out-of-bounds stores.
9192 If word is const0_rtx, skip it.
9193
9194 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9195
9196 * config/h8300/h8300.c (print_operand_address): Rename to...
9197 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9198 Call h8300_print_operand and h8300_print_operand_address instead of
9199 print_operand and print_operand_address. Declare.
9200 (print_operand): Renake to...
9201 (h8300_print_operand): ...this. Make static. Adjust comments.
9202 Call h8300_print_operand instead of print_operand. Declare.
9203 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9204 (h8300_register_move_cost): Likewise.
9205 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9206 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9207 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9208 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9209 * config/h8300/h8300-protos.h (print_operand): Delete.
9210 (print_operand_address): Delete.
9211
9212 2011-04-01 Richard Henderson <rth@redhat.com>
9213
9214 PR 48400
9215 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9216 in strict mode before dwarf4. Re-order tests to early out
9217 before switching sections.
9218
9219 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9220
9221 * config/h8300/constraints.md: New file.
9222 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9223 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9224 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9225 * config/h8300/predicates.md (bit_operand): Likewise.
9226 (incdec_operand): Use satisfies_constraint_M and
9227 satisfies_constraint_O. Don't use C code block.
9228 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9229 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9230 (compute_mov_length): Use satisfies_constraint_G.
9231 (fix_bit_operand): Use satisfies_constraint_U.
9232 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9233 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9234 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9235 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9236 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9237 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9238 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9239 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9240 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9241 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9242 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9243 (EXTRA_MEMORY_CONSTRAINT): Delete.
9244
9245 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9246 Michael Meissner <meissner@linux.vnet.ibm.com>
9247
9248 PR target/48262
9249 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9250 operands, as per the specifications.
9251
9252 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9253 (vec_extract_evenv4sf): Ditto.
9254 (vec_extract_evenv8hi): Ditto.
9255 (vec_extract_evenv16qi): Ditto.
9256 (vec_extract_oddv4si): Ditto.
9257
9258 2011-03-31 Mark Wielaard <mjw@redhat.com>
9259
9260 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9261 high_pc attribute if the CU has no associated code. Only output
9262 DW_AT_entry_pc for CU if not generating strict dwarf and
9263 dwarf_version < 4.
9264
9265 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9266
9267 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9268 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9269 out of ...
9270 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9271 * final.c (final_start_function): Call the new function rather
9272 than using a NULL argument for dwarf2out_frame_debug.
9273
9274 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9275 that contains the prologue.
9276
9277 * haifa-sched.c (queue_insn): New arg REASON. All callers
9278 changed. Print it in debugging output.
9279
9280 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9281
9282 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9283 Split most of the code into...
9284 (begin_move_insn): ... here. New function.
9285 (ebb_sched_info): Add a pointer to it.
9286 * haifa-sched.c (scheduled_insns): New static variable.
9287 (sched_extend_ready_list): Allocate it.
9288 (schedule_block): Use it to record the order of scheduled insns.
9289 Perform RTL changes to move insns only after all scheduling
9290 decisions have been made.
9291 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9292 begin_move_insn field.
9293 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9294 * sched-int.h (struct haifa_sched_info): Remove second argument
9295 from begin_schedule_ready hook. Add new member begin_move_insn.
9296 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9297 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9298
9299 * haifa-sched.c (prune_ready_list): New function, broken out of
9300 schedule_block.
9301 (schedule_block): Use it.
9302
9303 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9304
9305 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9306
9307 2011-04-01 Kai Tietz <ktietz@redhat.com>
9308
9309 * config.gcc (*-*-mingw*): Allow as option the
9310 posix threading model.
9311 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9312 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9313 definition.
9314 (CPP_SPEC): Add pthread/no-pthread handling.
9315 (LIB_SPEC): Likewise.
9316 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9317 (LIB_SPEC): Likewise.
9318 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9319 flag to pass -pthread option for shared libgcc build.
9320 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9321 for shared libgcc build.
9322 * config/i386/t-mingw-pthread: New file.
9323 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9324 New define to enable use of library pthread by default.
9325 * config/i386/mingw.opt (pthread): New driver option.
9326 (no-pthread): New driver option.
9327 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9328 * config/i386/mingw-w64.opt: Likewise.
9329
9330 2011-04-01 Gary Funck <gary@intrepid.com>
9331
9332 * c-decl.c (grokdeclarator): Fix formatting.
9333
9334 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9335
9336 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9337 instead of n_operands.
9338 (set_storage_via_setmem): Likewise.
9339 * optabs.c (maybe_gen_insn): Likewise.
9340 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9341 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9342 (mips_expand_builtin_direct): Likewise.
9343 * config/spu/spu.c (expand_builtin_args): Likewise.
9344
9345 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9346
9347 * recog.h (insn_data_d): Add n_generator_args.
9348 * genoutput.c (data): Likewise.
9349 (output_insn_data): Print it.
9350 (max_opno, num_dups): Delete.
9351 (scan_operands): Just fill in "d->operand[...]".
9352 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9353
9354 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9355
9356 * gensupport.h (pattern_stats): New structure.
9357 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9358 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9359 (max_operand_1, max_operand_vec): Delete.
9360 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9361
9362 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9363
9364 * emit-rtl.c (emit_pattern_after_setloc): New function.
9365 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9366 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9367 (emit_pattern_after): New function.
9368 (emit_insn_after, emit_jump_insn_after): Call it.
9369 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9370 (emit_pattern_before_setloc): New function.
9371 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9372 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9373 Likewise.
9374 (emit_pattern_before): New function.
9375 (emit_insn_before, emit_jump_insn_before): Call it.
9376 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9377
9378 2011-03-31 Richard Henderson <rth@redhat.com>
9379
9380 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9381 (dw_separate_line_info_entry): Remove.
9382 (enum dw_line_info_opcode): New.
9383 (dw_line_info_entry): Use it.
9384 (dw_line_info_table, dw_line_info_table_p): New.
9385 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9386 (line_info_table, line_info_label_num): Remove.
9387 (line_info_table_in_use): Remove.
9388 (separate_line_info_table): Remove.
9389 (separate_line_info_table_allocated): Remove.
9390 (separate_line_info_table_in_use): Remove.
9391 (LINE_INFO_TABLE_INCREMENT): Remove.
9392 (line_info_label_num): New.
9393 (cur_line_info_table): New.
9394 (text_section_line_info, cold_text_section_line_info): New.
9395 (separate_line_info): New.
9396 (SEPARATE_LINE_CODE_LABEL): Remove.
9397 (print_dwarf_line_table): Remove.
9398 (debug_dwarf): Don't dump it.
9399 (output_one_line_info_table): New.
9400 (output_line_info): Use it.
9401 (new_line_info_table): New.
9402 (set_cur_line_info_table): New.
9403 (dwarf2out_switch_text_section): Use it.
9404 (dwarf2out_begin_function): Likewise.
9405 (push_dw_line_info_entry): New.
9406 (dwarf2out_source_line): Rewrite for new line info tables.
9407 (dwarf2out_init): Remove dead initailizations.
9408
9409 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9410
9411 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9412 various flags.
9413 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9414 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9415 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9416 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9417 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9418 * opt-functions.awk (flag_init, switch_bit_fields): New.
9419 (switch_flags): Don't handle flags moved to bit-fields. Don't
9420 generate CL_MISSING_OK or CL_SAVE.
9421 * optc-gen.awk: Update to generate bit-field output as well as
9422 flags field.
9423 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9424 bit-field instead of CL_REJECT_DRIVER flag.
9425 * opts-common.c (generate_canonical_option,
9426 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9427 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9428 instead of CL_REJECT_NEGATIVE flag.
9429 * toplev.c (print_switch_values): Use cl_report bit-field instead
9430 of CL_REPORT flag.
9431
9432 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9433
9434 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9435 a zero minimum index only if it is redundant.
9436
9437 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9438
9439 PR rtl-optimization/48381
9440 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9441 instead of ira_class_hard_reg_index for calculating conflicting
9442 hard registers.
9443
9444 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9445
9446 * cprop.c: Clean up hash table building.
9447 (reg_avail_info): Remove.
9448 (oprs_available_p): Remove.
9449 (record_last_reg_set_info): Remove.
9450 (record_last_set_info): Remove.
9451 (reg_available_p): New function.
9452 (gcse_constant_p): Do not treat unfolded conditions as constants.
9453 (make_set_regs_unavailable): New function.
9454 (hash_scan_set): Simplify with new reg_available_p.
9455 (compute_hash_table_work): Traverse insns stream only once.
9456 Do not compute reg_avail_info. Traverse insns in reverse order.
9457 Record implicit sets after recording explicit sets from the block.
9458
9459 2011-03-31 Michael Matz <matz@suse.de>
9460
9461 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9462
9463 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9464
9465 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9466 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9467 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9468 (h8300_mode_dependent_address_p): New function.
9469 (h8300_get_index): Make static.
9470
9471 2011-03-31 Jeff Law <law@redhat.com>
9472
9473 * reload1.c (elimination_effects): Fix typo in recent change.
9474
9475 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9476 typo potentially leading to null pointer dereference.
9477
9478 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9479 (setup_save_areas): Corresponding changes to avoid useless
9480 assignments.
9481
9482 * jump.c (reversed_comparison_code_parts): Avoid successive return
9483 statements when REVERSE_CONDITION is defined.
9484
9485 * expr.c (expand_assignment): Avoid useless assignments.
9486 (expand_expr_real_1): Likewise.
9487 (expand_expr_real_2): Avoid useless statements.
9488
9489 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9490
9491 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9492
9493 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9494 statements.
9495
9496 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9497
9498 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9499
9500 PR target/47109
9501 * doc/tm.texi.in (TARGET_VERSION): Remove.
9502 * doc/tm.texi: Regenerate.
9503 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9504 * collect2.c (main): Don't use TARGET_VERSION.
9505 * mips-tdump.c (main): Don't use TARGET_VERSION.
9506 * mips-tfile.c (main): Don't use TARGET_VERSION.
9507 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9508 * config/rs6000/vxworksae.h: Remove.
9509 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9510 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9511 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9512 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9513 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9514 * config/arm/arm.h (TARGET_VERSION): Remove.
9515 * config/arm/coff.h (TARGET_VERSION): Remove.
9516 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9517 * config/arm/elf.h (TARGET_VERSION): Remove.
9518 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9519 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9520 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9521 * config/arm/pe.h (TARGET_VERSION): Remove.
9522 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9523 * config/arm/semi.h (TARGET_VERSION): Remove.
9524 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9525 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9526 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9527 * config/avr/avr.h (TARGET_VERSION): Remove.
9528 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9529 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9530 * config/frv/frv.h (TARGET_VERSION): Remove.
9531 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9532 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9533 * config/i386/darwin.h (TARGET_VERSION): Remove.
9534 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9535 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9536 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9537 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9538 * config/i386/gnu.h (TARGET_VERSION): Remove.
9539 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9540 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9541 * config/i386/linux.h (TARGET_VERSION): Remove.
9542 * config/i386/linux64.h (TARGET_VERSION): Remove.
9543 * config/i386/lynx.h (TARGET_VERSION): Remove.
9544 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9545 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9546 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9547 * config/i386/netware.h (TARGET_VERSION): Remove.
9548 * config/i386/nto.h (TARGET_VERSION): Remove.
9549 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9550 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9551 * config/ia64/elf.h (TARGET_VERSION): Remove.
9552 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9553 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9554 * config/ia64/linux.h (TARGET_VERSION): Remove.
9555 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9556 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9557 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9558 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9559 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9560 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9561 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9562 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9563 * config/m68k/linux.h (TARGET_VERSION): Remove.
9564 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9565 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9566 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9567 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9568 * config/mep/mep.h (TARGET_VERSION): Remove.
9569 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9570 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9571 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9572 * config/mips/linux.h (TARGET_VERSION): Remove.
9573 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9574 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9575 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9576 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9577 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9578 * config/pa/pa.h (TARGET_VERSION): Remove.
9579 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9580 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9581 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9582 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9583 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9584 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9585 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9586 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9587 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9588 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9589 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9590 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9591 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9592 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9593 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9594 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9595 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9596 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9597 * config/s390/linux.h (TARGET_VERSION): Remove.
9598 * config/s390/s390.h (TARGET_VERSION): Remove.
9599 * config/s390/tpf.h (TARGET_VERSION): Remove.
9600 * config/score/score.h (TARGET_VERSION): Remove.
9601 * config/sh/linux.h (TARGET_VERSION): Remove.
9602 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9603 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9604 * config/sh/sh.h (TARGET_VERSION): Remove.
9605 * config/sh/sh64.h (TARGET_VERSION): Remove.
9606 * config/sh/superh.h (TARGET_VERSION): Remove.
9607 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9608 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9609 * config/sparc/linux.h (TARGET_VERSION): Remove.
9610 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9611 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9612 TARGET_NAME32, TARGET_NAME): Remove.
9613 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9614 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9615 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9616 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9617 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9618 * config/spu/spu.h (TARGET_VERSION): Remove.
9619 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9620 * config/v850/v850.h (TARGET_VERSION): Remove.
9621 * config/vax/linux.h (TARGET_VERSION): Remove.
9622 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9623 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9624 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9625
9626 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9627
9628 PR target/48142
9629 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9630 frame-related from frame-unrelated adjustments to the stack pointer.
9631
9632 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9633
9634 * common.opt (fdebug-types-section): Move earlier.
9635 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9636
9637 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9638
9639 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9640 var.
9641
9642 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9643
9644 * tree.h (CASE_CHAIN): Define.
9645 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9646 (gimple_redirect_edge_and_branch): Likewise.
9647
9648 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9649
9650 PR middle-end/48367
9651 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9652 calculation.
9653
9654 2011-03-30 Jeff Law <law@redhat.com>
9655
9656 * PR bootstrap/48371
9657 * reload1.c (reload): Fix botch in last change.
9658
9659 * reload.h (struct reload): Fix typo introduced in last change.
9660
9661 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9662
9663 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9664 Undocumented. Remove help text.
9665 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9666 -mhard-float.
9667
9668 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9669
9670 * doc/options.texi (NegativeAlias): Document.
9671 (Alias): Mention NegativeAlias.
9672 * opt-functions.awk: Handle NegativeAlias.
9673 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9674 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9675 * opts.h (CL_NEGATIVE_ALIAS): Define.
9676 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9677 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9678 OPT_mspe_.
9679 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9680 Alias entries.
9681 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9682 mno-spe and mno-isel instead of mspe=no and -misel=no.
9683
9684 2011-03-29 Mark Wielaard <mjw@redhat.com>
9685
9686 * common.opt (fdebug-types-section): New flag.
9687 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9688 * dwarf2out.c (use_debug_types): New define.
9689 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9690 (print_die): Guard output of type unit signatures using
9691 use_debug_types.
9692 (build_abbrev_table): Replace assert of dwarf_version >= 4
9693 with assert on use_debug_types.
9694 (size_of_die): Likewise.
9695 (unmark_dies): Likewise.
9696 (value_format): Decide AT_ref_external form on use_debug_types.
9697 (output_die): Replace dwarf_version version check guard with
9698 use_debug_types where appropriate.
9699 (modified_type_die): Likewise.
9700 (gen_reference_type_die): Likewise.
9701 (dwarf2out_start_source_file): Likewise.
9702 (dwarf2out_end_source_file): Likewise.
9703 (prune_unused_types_walk_attribs): Likewise.
9704 (dwarf2out_finish): Likewise.
9705
9706 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9707
9708 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9709
9710 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9711
9712 PR rtl-optimization/48332
9713 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9714 mode of input operand N and modeN to its actual mode.
9715
9716 2011-03-30 Jeff Law <law@redhat.com>
9717
9718 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9719 define accessor macro.
9720 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9721 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9722 (reg_equiv_init): Likewise.
9723 (reg_equivs_size): New variable.
9724 (reg_equiv_init_size): Remove.
9725 (allocate_initial_values): Move prototype to here from....
9726 * integrate.h (allocate_initial_values): Remove prototype.
9727 * integrate.c: Include reload.h.
9728 (allocate_initial_values): Corresponding changes.
9729 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9730 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9731 (update_equiv_regs): Corresponding changes.
9732 (ira): Corresponding changes.
9733 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9734 (push_secondary_reload): Corresponding changes.
9735 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9736 (make_memloc, find_reloads_address): Corresponding changes.
9737 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9738 (find_reloads_address_1): Corresponding changes.
9739 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9740 (refers_to_regno_for_reload_p): Corresponding changes.
9741 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9742 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9743 * reload1.c: Include ggc.h.
9744 (grow_reg_equivs): New function.
9745 (replace_pseudos_in, reload): Corresponding changes.
9746 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9747 (eliminate_regs_1, elimination_effects): Corresponding changes.
9748 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9749 (delete_output_reload): Likewise.
9750 * caller-save.c (mark_referenced_regs): Corresponding changes.
9751 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9752 * frv/predicates.md (frv_load_operand): Corresponding changes.
9753 * microblaze/microblaze.c (double_memory_operand): Corresponding
9754 changes.
9755 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9756 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9757 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9758 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9759 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9760 changes.
9761 * pa/pa.c (emit_move_sequence): Corresponding changes.
9762 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9763
9764 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9765
9766 PR target/47551
9767 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9768 structure modes. Don't check neon_vector_mem_operand for
9769 vector or structure modes.
9770
9771 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9772 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9773
9774 PR target/43590
9775 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9776 operand 1 and reshuffle the operands to match.
9777 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9778
9779 2011-03-30 Christian SchĂĽler <cschueler@gmx.de>
9780
9781 PR driver/48208
9782 * config/c.opt (F): Added 'Driver' to -F option.
9783
9784 PR driver/48260
9785 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9786 handler function.
9787 * config/darwin.opt: Added '-arch' option.
9788
9789 2011-03-30 Nick Clifton <nickc@redhat.com>
9790
9791 * config/rx/rx.md: Add peepholes and patterns to combine
9792 extending loads and simple arithmetic instructions.
9793 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9794 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9795 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9796 modes to use pre-decrement and post-increment addressing.
9797 (rx_is_restricted_memory_address): Add range checking of REG+INT
9798 addresses.
9799 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9800 (rx_memory_move_cost): Adjust cost of stores.
9801 (rx_adjust_insn_length): New function.
9802
9803 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9804
9805 PR c/48305
9806 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9807 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9808 matching arg00/arg01 types.
9809
9810 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9811
9812 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9813 last_location to UNKNOWN_LOCATION.
9814
9815 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9816
9817 PR target/48349
9818 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9819 FLOAT_SSE_REGS.
9820
9821 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9822 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9823
9824 PR bootstrap/48337
9825 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9826 Init(PROCESSOR_V7).
9827 (sparc_cpu): Likewise.
9828 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9829 PROCESSOR_V7.
9830
9831 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9832
9833 PR target/48336
9834 PR middle-end/48342
9835 PR rtl-optimization/48345
9836 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9837 hard regs for given mode from profitable regs when doing secondary
9838 allocation.
9839
9840 2011-03-29 Jeff Law <law@redhat.com>
9841
9842 PR bootstrap/48327
9843 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9844 do_not_duplicate field.
9845 (lookup_redirection_data): Corresponding changes.
9846 (create_duplicates): Always create a template block.
9847 (redirect_edges): Remove code which reused the original block
9848 when it was going to become unreachable code.
9849 (thread_block): Don't set do_not_duplicate field.
9850
9851 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9852
9853 * lto-opts.c (register_user_option_p, lto_register_user_option):
9854 Make type argument unsigned.
9855 * lto-streamer.h (lto_register_user_option): Make type argument
9856 unsigned.
9857 * opth-gen.awk: Make CL_* macros unsigned.
9858 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9859 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9860 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9861 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9862 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9863 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9864 (find_opt): Make lang_mask argument unsigned.
9865
9866 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9867
9868 PR rtl-optimization/48331
9869 PR rtl-optimization/48334
9870 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9871 for any used algorithm.
9872
9873 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9874
9875 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9876 to parent_max.
9877
9878 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9879
9880 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9881 (alpha_option_override): Don't set alpha_sr_alias_set.
9882 (emit_frame_store_1): Use gen_frame_mem rather than calling
9883 set_mem_alias_set.
9884 (alpha_expand_epilogue): Ditto.
9885
9886 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9887
9888 PR tree-optimization/48290
9889 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9890 vectorization, check that relevant phis in the basic block after
9891 the inner loop are really inner loop's exit phis.
9892
9893 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9894
9895 PR debug/48190
9896 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9897 (cached_dw_loc_list_def): New structure.
9898 (cached_dw_loc_list): New typedef.
9899 (cached_dw_loc_list_table): New variable.
9900 (cached_dw_loc_list_table_hash): New function.
9901 (cached_dw_loc_list_table_eq): Likewise.
9902 (add_location_or_const_value_attribute): Take a bool cache_p.
9903 Cache the list when the parameter is true.
9904 (gen_formal_parameter_die): Update caller.
9905 (gen_variable_die): Likewise.
9906 (dwarf2out_finish): Likewise.
9907 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9908 while generating debug info for the decl.
9909 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9910 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9911 (resolve_addr): Cache the result of resolving a chain of
9912 location lists.
9913
9914 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9915
9916 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9917 conflict object hard regset nodes have intersecting hard reg sets.
9918
9919 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9920 after regstat_init_n_sets_and_refs.
9921
9922 * ira.c: Add more comments at the top.
9923 (setup_stack_reg_pressure_class, setup_pressure_classes):
9924 Add comments how we compute the register pressure classes.
9925 (setup_allocno_and_important_classes): Add more comments.
9926 (setup_class_translate_array, reorder_important_classes)
9927 (setup_reg_class_relations): Add comments.
9928
9929 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9930 start of the file.
9931
9932 * ira-color.c: Add 2011 to the Copyright line.
9933 (assign_hard_reg): Add more comments.
9934 (improve_allocation): Ditto.
9935
9936 * ira-costs.c: Add 2011 to the Copyright line.
9937 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9938 comments.
9939 (setup_regno_cost_classes_by_mode): Ditto.
9940
9941 Initial patches from ira-improv branch:
9942
9943 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9944
9945 * ira-build.c (ira_create_object): Remove initialization of
9946 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9947 (ira_create_allocno): Remove initialization of
9948 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9949 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9950 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9951 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9952 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9953 Initialize ALLOCNO_ADD_DATA.
9954 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9955 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9956 ALLOCNO_REG.
9957 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9958 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9959
9960 * ira.c (ira_reallocate): Remove.
9961 (setup_pressure_classes): Call
9962 ira_init_register_move_cost_if_necessary. Use
9963 ira_register_move_cost instead of ira_get_register_move_cost.
9964 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9965 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9966
9967 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9968 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9969 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9970 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9971 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9972 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9973 Fix formatting.
9974 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9975 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9976 (struct allocno_color_data): New.
9977 (allocno_color_data_t): New typedef.
9978 (allocno_color_data): New definition.
9979 (ALLOCNO_COLOR_DATA): New macro.
9980 (struct object_color_data): New.
9981 (object_color_data_t): New typedef.
9982 (object_color_data): New definition.
9983 (OBJECT_COLOR_DATA): New macro.
9984 (update_copy_costs, calculate_allocno_spill_cost): Call
9985 ira_init_register_move_cost_if_necessary. Use
9986 ira_register_move_cost instead of ira_get_register_move_cost.
9987 (move_spill_restore, update_curr_costs): Ditto.
9988 (allocno_spill_priority): Make it inline.
9989 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9990 (struct coalesce_data, coalesce_data_t): New.
9991 (allocno_coalesce_data): New definition.
9992 (ALLOCNO_COALESCE_DATA): New macro.
9993 (merge_allocnos, coalesced_allocno_conflict_p): Use
9994 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9995 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9996 (coalesce_allocnos): Ditto.
9997 (setup_coalesced_allocno_costs_and_nums): Ditto.
9998 (collect_spilled_coalesced_allocnos): Ditto.
9999 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10000 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10001 (coalesce_spill_slots): Ditto.
10002 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10003 free allocno_coalesce_data.
10004
10005 * ira-conflicts.c: Fix formatting.
10006 (process_regs_for_copy): Call
10007 ira_init_register_move_cost_if_necessary. Use
10008 ira_register_move_cost instead of ira_get_register_move_cost.
10009 (build_object_conflicts): Optimize.
10010
10011 * ira-costs.c (record_reg_classes): Optimize. Call
10012 ira_init_register_move_cost_if_necessary. Use
10013 ira_register_move_cost, ira_may_move_in_cost, and
10014 ira_may_move_out_cost instead of ira_get_register_move_cost and
10015 ira_get_may_move_cost.
10016 (record_address_regs): Ditto.
10017 (scan_one_insn): Optimize.
10018 (find_costs_and_classes): Optimize.
10019 (process_bb_node_for_hard_reg_moves): Call
10020 ira_init_register_move_cost_if_necessary. Use
10021 ira_register_move_cost instead of ira_get_register_move_cost.
10022
10023 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10024 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10025 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10026 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10027 definitions.
10028 (ira_initiate_emit_data, ira_finish_emit_data)
10029 (create_new_allocno): New functions.
10030 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10031 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10032 Use ira_register_move_cost instead of ira_get_register_move_cost.
10033
10034 * ira-int.h: Fix some comments.
10035 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10036 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10037 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10038 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10039 add_data.
10040 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10041 bitfield after mode. Make hard_regno a short int. Make
10042 hard_regno short. Remove first_coalesced_allocno and
10043 next_coalesced_allocno. Move mem_optimized_dest_p,
10044 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10045 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10046 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10047 temp, colorable_p. Add new member add_data.
10048 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10049 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10050 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10051 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10052 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10053 (ALLOCNO_ADD_DATA): New macro.
10054 (ira_emit_data_t): New typedef.
10055 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10056 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10057 from struct ira_allocno.
10058 (ALLOCNO_EMIT_DATA): New macro.
10059 (ira_allocno_emit_data, allocno_emit_reg): New.
10060 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10061 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10062 (OBJECT_ADD_DATA): New macro.
10063 (ira_reallocate): Remove.
10064 (ira_initiate_emit_data, ira_finish_emit_data): New.
10065 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10066 (ira_init_register_move_cost_if_necessary): New.
10067 (ira_object_conflict_iter_next): Merge into
10068 ira_object_conflict_iter_cond.
10069 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10070
10071 * ira-live.c (process_single_reg_class_operands): Call
10072 ira_init_register_move_cost_if_necessary. Use
10073 ira_register_move_cost instead of ira_get_register_move_cost.
10074
10075 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10076
10077 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10078
10079 * ira-costs.c: Fix formatting.
10080 (cost_classes, cost_classes_num): Remove.
10081 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10082 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10083 (cost_classes_del, cost_classes_htab): New.
10084 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10085 (initiate_regno_cost_classes, setup_cost_classes): New.
10086 (setup_regno_cost_classes_by_aclass): New.
10087 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10088 (record_reg_classes): Use regno_cost_classes instead of
10089 cost_classes. Move checking opposite operand up.
10090 (record_address_regs): Use regno_cost_classes
10091 instead of cost_classes.
10092 (scan_one_insn): Ditto. Use always general register.
10093 (print_allocno_costs): Use regno_cost_classes instead of
10094 cost_classes.
10095 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10096 (find_costs_and_classes): Set up cost classes for each registers.
10097 Use also their mode for this. Use regno_cost_classes instead of
10098 cost_classes.
10099 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10100 cost_classes.
10101 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10102 (ira_costs, ira_set_pseudo_classes): Call
10103 initiate_regno_cost_classes and finish_regno_cost_classes.
10104
10105 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10106
10107 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10108
10109 * target.def (ira_cover_classes): Remove.
10110
10111 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10112
10113 * doc/tm.texi.in: Ditto.
10114
10115 * ira-conflicts.c: Remove mentioning cover classes from the file.
10116 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10117 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10118
10119 * targhooks.c (default_ira_cover_classes): Remove.
10120
10121 * targhooks.h (default_ira_cover_classes): Ditto.
10122
10123 * haifa-sched.c: Remove mentioning cover classes from the file.
10124 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10125 ira_pressure_classes and ira_pressure_classes_num instead of
10126 ira_reg_class_cover_size and ira_reg_class_cover. Use
10127 sched_regno_pressure_class instead of sched_regno_cover_class.
10128 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10129 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10130
10131 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10132 classes from the file.
10133 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10134 (struct object_hard_regs, struct object_hard_regs_node): New.
10135 (struct ira_object): New members profitable_hard_regs,
10136 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10137 (struct ira_allocno): Rename cover_class to aclass. Rename
10138 cover_class_cost and updated_cover_class_cost to class_cost and
10139 updated_class_cost. Remove splay_removed_p and
10140 left_conflict_size. Add new members colorable_p.
10141 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10142 (ALLOCNO_COLORABLE_P): New macro.
10143 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10144 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10145 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10146 (OBJECT_...): Rename parameter C to O.
10147 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10148 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10149 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10150 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10151 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10152 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10153 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10154 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10155 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10156 x_ira_reg_class_subunion.
10157 (ira_max_memory_move_cost, ira_max_register_move_cost)
10158 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10159 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10160 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10161 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10162 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10163 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10164 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10165 (ira_tune_allocno_costs_and_cover_classes): Rename to
10166 ira_tune_allocno_costs.
10167 (ira_debug_hard_regs_forest): New.
10168 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10169 (ira_object_conflict_iter_next): Fix comments.
10170 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10171 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10172 cover_class to aclass.
10173 (ira_allocate_and_accumulate_costs): Ditto.
10174 (ira_allocate_and_set_or_copy_costs): Ditto.
10175
10176 * opts.c (decode_options): Remove ira_cover_class check.
10177
10178 * ira-color.c: Remove mentioning cover classes from the file. Use
10179 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10180 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10181 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10182 (splay-tree.h): Remove include.
10183 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10184 before copy_freq_compare_func.
10185 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10186 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10187 New definitions.
10188 (hard_regs_roots, hard_regs_node_vec): Ditto.
10189 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10190 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10191 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10192 (create_new_object_hard_regs_node): Ditto.
10193 (add_new_object_hard_regs_node_to_forest): Ditto.
10194 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10195 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10196 Ditto.
10197 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10198 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10199 (remove_unused_object_hard_regs_nodes): Ditto.
10200 (enumerate_object_hard_regs_nodes): Ditto.
10201 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10202 (object_hard_regs_subnode_t): Ditto.
10203 (struct object_hard_regs_subnode): Ditto.
10204 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10205 (setup_object_hard_regs_subnode_index): Ditto.
10206 (get_object_hard_regs_subnodes_num): Ditto.
10207 (form_object_hard_regs_nodes_forest): Ditto.
10208 (finish_object_hard_regs_nodes_tree): Ditto.
10209 (finish_object_hard_regs_nodes_forest): Ditto.
10210 (allocnos_have_intersected_live_ranges_p): Rename to
10211 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10212 (pseudos_have_intersected_live_ranges_p): Rename to
10213 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10214 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10215 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10216 (update_copy_costs): Remove assert. Skip cost update if the hard
10217 reg does not belong the class.
10218 (assign_hard_reg): Process only profitable hard regs.
10219 (uncolorable_allocnos_num): Make it scalar.
10220 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10221 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10222 and ira_reg_class_max_nregs.
10223 (bucket_allocno_compare_func): Check frequency first.
10224 (sort_bucket): Add compare function as a parameter.
10225 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10226 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10227 (push_allocno_to_stack): Rewrite for checking new allocno
10228 colorability.
10229 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10230 (push_only_colorable): Pass new parameter to sort_bucket.
10231 (push_allocno_to_spill): Remove.
10232 (allocno_spill_priority_compare): Make it inline and rewrite.
10233 (splay_tree_allocate, splay_tree_free): Remove.
10234 (allocno_spill_sort_compare): New function.
10235 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10236 build and use splay tree. Choose first allocno in uncolorable
10237 allocno bucket to spill. Remove setting spill cost.
10238 (all_conflicting_hard_regs): Remove.
10239 (setup_allocno_available_regs_num): Check only profitable hard
10240 regs. Print info about hard regs nodes.
10241 (setup_allocno_left_conflicts_size): Remove.
10242 (put_allocno_into_bucket): Don't call
10243 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10244 (improve_allocation): New.
10245 (color_allocnos): Call setup_profitable_hard_regs,
10246 form_object_hard_regs_nodes_forest, improve_allocation,
10247 finish_object_hard_regs_nodes_forest. Setup spill cost.
10248 (print_loop_title): Use pressure classes.
10249 (color_allocnso): Ditto.
10250 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10251 and allocnos_for_spilling.
10252 (ira_sort_regnos_for_alter_reg): Don't setup members
10253 {first,next}_coalesced_allocno.
10254 (color): Remove allocating and freeing removed_splay_allocno_vec.
10255 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10256 prohibited_class_mode_regs.
10257
10258 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10259 formatting.
10260 (update_allocno_pressure_excess_length): Use pressure classes.
10261 (inc_register_pressure, dec_register_pressure): Check for pressure
10262 class.
10263 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10264 pressure class. Use ira_reg_class_nregs instead of
10265 ira_reg_class_max_nregs.
10266 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10267 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10268 (single_reg_class): Use ira_reg_class_nregs instead of
10269 ira_reg_class_max_nregs.
10270 (process_bb_node_lives): Use pressure classes.
10271
10272 * ira-emit.c: Remove mentioning cover classes from the file. Use
10273 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10274 (change_loop): Use pressure classes.
10275 (modify_move_list): Call ira_set_allocno_class instead of
10276 ira_set_allocno_cover_class.
10277
10278 * ira-build.c: Remove mentioning cover classes from the file. Use
10279 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10280 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10281 ALLOCNO_UPDATED_CLASS_COST instead of
10282 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10283 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10284 (ira_create_allocno): Remove initialization of
10285 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10286 ALLOCNO_COLORABLE_P.
10287 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10288 Update conflict regs for the objects.
10289 (create_cap_allocno): Remove assert. Don't propagate
10290 ALLOCNO_AVAILABLE_REGS_NUM.
10291 (ira_free_allocno_costs): New function.
10292 (finish_allocno): Change a part of code into call of
10293 ira_free_allocno_costs.
10294 (low_pressure_loop_node_p): Use pressure classes.
10295 (object_range_compare_func): Don't compare classes.
10296 (setup_min_max_conflict_allocno_ids): Ditto.
10297
10298 * loop-invariant.c: Remove mentioning cover classes from the file.
10299 Use ira_pressure_classes and ira_pressure_classes_num instead of
10300 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10301 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10302 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10303 Use reg_allocno_class instead of reg_cover_class.
10304 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10305 STACK_REG_COVER_CLASS.
10306 (get_regno_cover_class): Rename to get_regno_pressure_class.
10307 (move_loop_invariants): Initialize and finalize regstat.
10308
10309 * ira.c: Remove mentioning cover classes from the file. Add
10310 comments about coloring without cover classes. Use ALLOCNO_CLASS
10311 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10312 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10313 setup_class_subset_and_memory_move_costs.
10314 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10315 (setup_cover_and_important_classes): Rename to
10316 setup_allocno_and_important_classes.
10317 (setup_class_translate_array): New.
10318 (setup_class_translate): Call it for allocno and pressure classes.
10319 (cover_class_order): Rename to allocno_class_order.
10320 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10321 of ira_class_translate.
10322 (reorder_important_classes): Set up ira_important_class_nums.
10323 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10324 (print_class_cover): Rename to print_classes. Add parameter.
10325 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10326 Print pressure classes too.
10327 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10328 setup_reg_subclasses.
10329 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10330 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10331 (setup_prohibited_class_mode_regs): Use
10332 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10333 (clarify_prohibited_class_mode_regs): New function.
10334 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10335 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10336 (ira_init_once): Initialize them.
10337 (free_register_move_costs): Process them.
10338 (ira_init): Move calls of find_reg_classes and
10339 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10340 Call clarify_prohibited_class_mode_regs.
10341 (ira_no_alloc_reg): Remove.
10342 (too_high_register_pressure_p): Use pressure classes.
10343
10344 * sched-deps.c: Remove mentioning cover classes from the file.
10345 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10346 ira_pressure_classes and ira_pressure_classes_num instead of
10347 ira_reg_class_cover_size and ira_reg_class_cover.
10348 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10349 sched_regno_pressure_class instead of sched_regno_cover_class.
10350 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10351 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10352
10353 * ira.h: Add 2010 to Copyright.
10354 (ira_no_alloc_reg): Remove external.
10355 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10356 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10357 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10358 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10359 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10360 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10361 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10362 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10363 x_ira_no_alloc_regs.
10364 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10365 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10366 ira_allocno_classes_num and ira_allocno_classes.
10367 (ira_class_translate): Rename to ira_allocno_class_translate.
10368 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10369 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10370 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10371 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10372 (ira_no_alloc_regs): New.
10373
10374 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10375 classes from the file. Use ALLOCNO_CLASS instead of
10376 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10377 ALLOCNO_COVER_CLASS_COST.
10378 (regno_cover_class): Rename to regno_aclass.
10379 (record_reg_classes): Use ira_reg_class_subunion instead of
10380 ira_reg_class_union.
10381 (record_address_regs): Check overflow.
10382 (scan_one_insn): Ditto.
10383 (print_allocno_costs): Print total mem cost fore regional allocation.
10384 (print_pseudo_costs): Use REG_N_REFS.
10385 (find_costs_and_classes): Use classes intersected with them on the
10386 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10387 ira_reg_class_union. Use ira_allocno_class_translate and
10388 regno_aclass instead of ira_class_translate and regno_cover_class.
10389 Modify code for finding regno_aclass. Setup preferred classes for
10390 the next pass.
10391 (setup_allocno_cover_class_and_costs): Rename to
10392 setup_allocno_class_and_costs. Use regno_aclass instead of
10393 regno_cover_class. Use ira_set_allocno_class instead of
10394 ira_set_allocno_cover_class.
10395 (init_costs, finish_costs): Use regno_aclass instead of
10396 regno_cover_class.
10397 (ira_costs): Use setup_allocno_class_and_costs instead of
10398 setup_allocno_cover_class_and_costs.
10399 (ira_tune_allocno_costs_and_cover_classes): Rename to
10400 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10401 by processing objects. Use ira_reg_class_max_nregs instead of
10402 ira_reg_class_nregs.
10403
10404 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10405
10406 * sched-int.h: Remove mentioning cover classes from the file.
10407 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10408
10409 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10410 classes from the file.
10411 (struct reg_pref): Rename coverclass into allocnoclass.
10412 (reg_cover_class): Rename to reg_allocno_class.
10413
10414 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10415
10416 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10417
10418 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10419
10420 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10421
10422 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10423
10424 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10425
10426 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10427
10428 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10429
10430 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10431
10432 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10433
10434 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10435 (i386_ira_cover_classes): Ditto.
10436
10437 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10438
10439 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10440
10441 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10442
10443 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10444
10445 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10446
10447 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10448
10449 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10450 (mips_ira_cover_classes): Ditto.
10451
10452 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10453
10454 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10455
10456 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10457
10458 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10459
10460 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10461
10462 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10463 (IRA_COVER_CLASSES_VSX): Ditto.
10464
10465 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10466 (rs6000_ira_cover_classes): Ditto.
10467
10468 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10469
10470 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10471
10472 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10473
10474 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10475
10476 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10477
10478 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10479
10480 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10481
10482 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10483
10484 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10485
10486 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10487
10488 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10489
10490 PR debug/48253
10491 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10492 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10493 dw_fde_unlikely_section_end_label, cold_in_std_section,
10494 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10495 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10496 fields.
10497 (output_fde): Use dw_fde_second_{begin,end} if second is
10498 true, otherwise dw_fde_{begin,end}.
10499 (output_call_frame_info): Test dw_fde_second_begin != NULL
10500 instead of dw_fde_switched_sections.
10501 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10502 fields, initialize new fields. Initialize in_std_section
10503 unconditionally from the first partition.
10504 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10505 dw_fde_second_begin is non-NULL.
10506 (dwarf2out_switch_text_section): Stop initializing removed
10507 dw_fde_struct fields, initialize new fields, initialize
10508 also dw_fde_end here. Set dw_fde_switch_cfi even when
10509 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10510 (struct var_loc_list_def): Add last_before_switch field.
10511 (arange_table, arange_table_allocated, arange_table_in_use,
10512 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10513 (size_of_aranges): Count !in_std_section and !second_in_std_section
10514 hunks in fdes, instead of looking at arange_table_in_use.
10515 (output_aranges): Add aranges_length argument, don't call
10516 size_of_aranges here. Instead of using aranges_table*
10517 emit ranges for fdes when !in_std_section resp.
10518 !second_in_std_section.
10519 (dw_loc_list): Break ranges crossing section switch.
10520 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10521 use dw_fde_second_end instead of dw_fde_end as end of last range.
10522 (gen_subprogram_die): Don't call add_arange. Use
10523 dw_fde_{begin,end} for first partition and if switched
10524 section dw_fde_second_{begin,end} for the second.
10525 (var_location_switch_text_section_1,
10526 var_location_switch_text_section): New functions.
10527 (dwarf2out_begin_function): Initialize cold_text_section even
10528 when function_section () isn't text_section.
10529 (prune_unused_types): Don't walk arange_table.
10530 (dwarf2out_finish): Don't needlessly test
10531 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10532 If info_section_emitted, call size_of_aranges and if it indicates
10533 non-empty .debug_aranges, call output_aranges with the computed
10534 size. Stop using removed dw_fde_struct fields, use
10535 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10536 for second.
10537
10538 PR debug/48203
10539 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10540 create ENTRY_VALUE if incoming or address of incoming's MEM
10541 is a hard REG.
10542 * dwarf2out.c (mem_loc_descriptor): Don't emit
10543 DW_OP_GNU_entry_value of DW_OP_fbreg.
10544 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10545 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10546 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10547 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10548 ENTRY_VALUE_EXPs.
10549 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10550 is a REG_P or MEM_P with REG_P address, compute hash directly
10551 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10552 (preserve_only_constants): Don't clear VALUES forwaring
10553 ENTRY_VALUE to some other VALUE.
10554
10555 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10556
10557 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10558 instead of GEN_INT.
10559
10560 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10561
10562 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10563 block before expanding the statement.
10564 (expand_gimple_stmt_1): Likewise. Set them here...
10565 (expand_gimple_stmt): ...and not here. Tidy.
10566 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10567 unknown.
10568
10569 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10570
10571 * Makefile.in: New rule for cprop.o.
10572 * gcse.c: Move constant/copy propagation to cprop.c.
10573 (compute_local_properties): Only handle expression tables.
10574 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10575 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10576 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10577 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10578 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10579 compute_cprop_data, find_used_regs, try_replace_reg,
10580 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10581 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10582 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10583 find_bypass_set, reg_killed_on_edge, bypass_block,
10584 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10585 execute_rtl_cprop, pass_rtl_cprop): Move to...
10586 * cprop.c: ...here. New file, constant/copy propagation for RTL
10587 moved from gcse.c to here with minor cleanups in duplicated code.
10588
10589 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10590
10591 * config/i386/i386.c (flag_opts): Fix a typo in
10592 -mavx256-split-unaligned-store.
10593
10594 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10595
10596 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10597 LIBCALL_VALUE): Remove macros.
10598 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10599 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10600 (h8300_function_value, h8300_libcall_value,
10601 h8300_function_value_regno_p): New functions.
10602
10603 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10604
10605 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10606
10607 2011-03-28 Jeff Law <law@redhat.com>
10608
10609 * tree-ssa-threadupdate.c (redirect_edges): Call
10610 create_edge_and_update_destination_phis as needed.
10611 (create_edge_and_update_destination_phis): Accept new BB argument.
10612 All callers updated.
10613 (thread_block): Do not update the profile when threading around
10614 intermediate blocks.
10615 (thread_single_edge): Likewise.
10616 (determine_bb_domination_status): If BB is not a successor of the
10617 loop header, return NONDOMINATING.
10618 (register_jump_thread): Note when we register a jump thread around
10619 an intermediate block.
10620 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10621 (thread_across_edge): Use it.
10622
10623 2011-03-28 Tristan Gingold <gingold@adacore.com>
10624
10625 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10626 when for_return is 2.
10627
10628 2011-03-28 Jeff Law <law@redhat.com>
10629
10630 * var-tracking.c (canonicalize_values_mark): Delete unused
10631 lhs assignment.
10632 (canonicalize_values_star, set_variable_part): Likewise.
10633 (clobber_variable_part, delete_variable_part): Likewise.
10634
10635 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10636
10637 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10638
10639 2011-03-28 Martin Jambor <mjambor@suse.cz>
10640
10641 * tree-inline.c (expand_call_inline): Do not check that destination
10642 node is analyzed.
10643 (optimize_inline_calls): Assert that destination node is analyzed.
10644 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10645 not call tree_lowering_passes.
10646 * cgraph.h (cgraph_analyze_function): Declare.
10647 * cgraphunit.c (cgraph_analyze_function): Make public.
10648
10649 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10650
10651 * config/sparc/sparc-opts.h: New.
10652 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10653 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10654 (sparc_option_override): Store processor_type enumeration rather
10655 than string in cpu_default. Remove name and enumeration from
10656 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10657 without using sparc_select. Use target_flags_explicit instead of
10658 fpu_option_set.
10659 * config/sparc/sparc.h (enum processor_type): Move to
10660 sparc-opts.h.
10661 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10662 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10663 HeaderInclude entry.
10664 (mcpu=, mtune=): Use Var and Enum.
10665 (sparc_processor_type): New Enum and EnumValue entries.
10666
10667 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10668 Iain Sandoe <iains@gcc.gnu.org>
10669
10670 PR target/48245
10671 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10672
10673 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10674
10675 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10676 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10677 Insert new statements at it in lieu of STMT.
10678 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10679 * tree-vect-stmts.c (vectorizable_store): Likewise.
10680 (vectorizable_load): Likewise.
10681
10682 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10683
10684 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10685 (divtf3): Ditto.
10686 (multf3): Ditto.
10687 (subtf3): Ditto.
10688
10689 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10690
10691 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10692 unaligned 256bit load/store.
10693 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10694 (*avx_movdqu<avxmodesuffix>): Likewise.
10695
10696 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10697
10698 PR target/48288
10699 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10700 * config/pa/pa.md (iordi3): Use new predicate in expander.
10701 (iorsi3): Likewise.
10702
10703 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10704
10705 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10706 FUNCTION_VALUE_REGNO_P): Remove macros.
10707 * config/mips/mips-protos.h (mips_function_value): Remove.
10708 * config/mips/mips.c (mips_function_value): Rename to...
10709 (mips_function_value_1): ... this. Make static. Handle receiving
10710 the function type in 'fn_decl_or_type' argument.
10711 (mips_function_value, mips_libcall_value,
10712 mips_function_value_regno_p): New function.
10713 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10714 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10715
10716 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10717
10718 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10719 and -mavx256-split-unaligned-store.
10720 (ix86_option_override_internal): Split 32-byte AVX unaligned
10721 load/store by default.
10722 (ix86_avx256_split_vector_move_misalign): New.
10723 (ix86_expand_vector_move_misalign): Use it.
10724
10725 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10726 -mavx256-split-unaligned-store.
10727
10728 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10729 256bit load/store. Generate unaligned store on misaligned memory
10730 operand.
10731 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10732 256bit load/store.
10733 (*avx_movdqu<avxmodesuffix>): Likewise.
10734
10735 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10736 -mavx256-split-unaligned-store.
10737
10738 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10739
10740 PR target/38598
10741 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10742 Update commentary.
10743
10744 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10745
10746 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10747 opno arguments with an expand_operand. Use create_input_operand.
10748 (mips_prepare_builtin_target): Delete.
10749 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10750 functions.
10751 (mips_expand_builtin_direct): Use create_output_operand and
10752 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10753 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10754 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10755
10756 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10757
10758 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10759 function.
10760 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10761
10762 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10763
10764 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10765 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10766 basic blocks and call commit_edge_insertions directly.
10767 (fixup_abnormal_edges): Move from here to...
10768 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10769 on the edges and return whether some have actually been inserted.
10770 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10771 compensation code.
10772
10773 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10774
10775 PR rtl-optimization/48144
10776 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10777 (merge_expr_data): ... here.
10778 (av_set_intersect): Rename to av_set_code_motion_filter.
10779 Update all callers. Call merge_history_vect when an expression
10780 is found in both sets.
10781 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10782
10783 2011-03-26 Alan Modra <amodra@gmail.com>
10784
10785 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10786 cmodel medium addresses.
10787 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10788 64-bit gpr loads and stores.
10789 (rs6000_secondary_reload_ppc64): New function.
10790 * config/rs6000/rs6000-protos.h: Declare it.
10791 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10792
10793 2011-03-26 Alan Modra <amodra@gmail.com>
10794
10795 PR target/47487
10796 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10797 GNU Go in traceback table.
10798
10799 2011-03-25 Richard Henderson <rth@redhat.com>
10800
10801 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10802 if there are exactly 6 operands.
10803 (set_storage_via_setmem): Similarly.
10804
10805 2011-03-25 Kai Tietz <ktietz@redhat.com>
10806
10807 * collect2.c (write_c_file_stat): Handle backslash
10808 as right-hand directory separator.
10809 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10810 checking just for slash.
10811 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10812 instead of checking for trailing slash.
10813 * gcc.c (record_temp_file): Use filename_cmp instead
10814 of strcmp.
10815 (do_spec_1): Likewise.
10816 (replace_outfile_spec_function): Likewise.
10817 (is_directory): Use filename_ncmp instead of strncmp.
10818 (print_multilib_info): Likewise.
10819 * gcov.c (find_source): Use filename_cmp instead
10820 instead of strcmp.
10821 (make_gcov_file_name): Fix order of slash/backslash
10822 checks.
10823 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10824 (add_standard_paths): Likewise.
10825 * mips-tfile.c (saber_stop): Handle backslash.
10826 * prefix.c (update_path): Use filename_ncmp instead of
10827 strncmp.
10828 * profile.c (output_location): Use filename_cmp instead
10829 of strcmp.
10830 * read-md.c (handle_toplevel_file): Handle backslash.
10831 * tlink.c (frob_extension): Likewise.
10832 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10833 strcmp.
10834 * tree-dump.c (dequeue_and_dump): Handle backslash.
10835 * tree.c (get_file_function_name): Likewise.
10836 * gengtype.c (read_input_list): Likewise.
10837 (get_file_realbasename): Likewise.
10838 (get_output_file_with_visibility): Use filename_cmp
10839 instead of strcmp.
10840
10841 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10842
10843 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10844 case to VFPv1.
10845
10846 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10847
10848 * fold-const.c (expr_location_or): New function.
10849 (fold_truth_not_expr): Call it.
10850
10851 2011-03-25 Jeff Law <law@redhat.com>
10852
10853 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10854 va_end.
10855 * c-family/c-common.c (def_fn_type): Likewise.
10856 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10857 * emit-rtl.c (gen_rtvec): Likewise.
10858 * lto/lto-lang.c (def_fn_type): Likewise.
10859
10860 2011-03-25 Richard Guenther <rguenther@suse.de>
10861
10862 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10863 also generate copies.
10864 (fini_copy_prop): Handle constant values properly.
10865
10866 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10867
10868 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10869 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10870 (hash_loc_operands, compare_loc_operands): Handle
10871 DW_OP_GNU_entry_value.
10872
10873 2011-03-25 Kai Tietz <ktietz@redhat.com>
10874
10875 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10876 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10877 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10878 comment and use macro TARGET_64BIT_MS_ABI instead.
10879 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10880 and change default behavior for 32-bit MS_ABI.
10881 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10882 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10883 32-bit, too.
10884 (ix86_cfun_abi): Likewise.
10885 (ix86_maybe_switch_abi): Adjust comment.
10886 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10887 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10888 instead of checking for SYSV_ABI.
10889 (ix86_nsaved_sseregs): Likewise.
10890 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10891 to 16 bytes.
10892 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10893 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10894 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10895 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10896 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10897
10898 2011-03-25 Richard Guenther <rguenther@suse.de>
10899
10900 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10901 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10902 (verify_gimple): Remove.
10903 * tree-cfg.c (verify_gimple_call): Merge verification
10904 from verify_stmts.
10905 (verify_gimple_phi): Merge verification from verify_stmts.
10906 (verify_gimple_label): New function.
10907 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10908 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10909 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10910 (verify_stmts): Rename to verify_gimple_in_cfg.
10911 (verify_gimple_in_cfg): New function.
10912 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10913 * tree-ssa.c (verify_ssa): Likewise.
10914 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10915
10916 2011-03-25 Richard Guenther <rguenther@suse.de>
10917
10918 * passes.c (init_optimization_passes): Add FRE pass after
10919 early SRA.
10920
10921 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10922 Andrew Stubbs <ams@codesourcery.com>
10923
10924 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10925 for Cortex-A8.
10926 (arm_movdi_vfp_cortexa8): New pattern.
10927 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10928 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10929 instructions when tuning for Cortex-A8. Set attribute "arch".
10930 * config/arm/arm.md: Move include arm-tune.md up a bit.
10931 (define_attr "arch"): Add "onlya8" and "nota8" values.
10932 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10933
10934 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10935
10936 PR bootstrap/48282
10937 Revert:
10938 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10939
10940 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10941 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10942 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10943 * passes.c (init_optimization_passes): Move
10944 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10945
10946 2011-03-25 Kai Tietz <ktietz@redhat.com>
10947
10948 * c-typeck.c (comptypes_internal): Replace target
10949 hook call of comp_type_attributes by version in tree.c file.
10950 * gimple.c (gimple_types_compatible_p_1): Likewise.
10951 * tree-ssa.c (useless_type_conversion_p): Likewise.
10952 * tree.c (build_type_attribute_qual_variant): Likewise.
10953 (attribute_value_equal): New static helper function.
10954 (comp_type_attributes): New function.
10955 (merge_attributes): Use attribute_value_equal for comparison.
10956 (attribute_list_contained): Likewise.
10957 * tree.h (comp_type_attributes): New prototype.
10958
10959 2011-03-25 Richard Guenther <rguenther@suse.de>
10960
10961 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10962 of complex types at -O0.
10963 (verify_gimple_assign_binary): Likewise.
10964 (verify_gimple_assign_ternary): Likewise.
10965
10966 2011-03-24 Mark Wielaard <mjw@redhat.com>
10967
10968 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10969 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10970
10971 2011-03-24 Mark Wielaard <mjw@redhat.com>
10972
10973 PR debug/48041
10974 * dwarf2out.c (output_abbrev_section): Only write table when
10975 abbrev_die_table_in_use > 1.
10976
10977 2011-02-24 Richard Henderson <rth@redhat.com>
10978
10979 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10980 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10981 (alpha_expand_unaligned_load_words): Use extql.
10982 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10983 (emit_insxl): Handle all modes for consistency.
10984
10985 2011-02-24 Richard Henderson <rth@redhat.com>
10986
10987 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10988 (alpha_expand_unaligned_load): Likewise.
10989 (alpha_expand_unaligned_store): Likewise.
10990 (alpha_expand_unaligned_load_words): Likewise.
10991 (alpha_expand_unaligned_store_words): Likewise.
10992 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10993 (alpha_split_lock_test_and_set_12): Likewise.
10994 (print_operand, alpha_fold_builtin_extxx): Likewise.
10995 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10996 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10997 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10998 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10999 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11000 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11001 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11002 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11003 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11004 (extwl, extll, extql): Similarly.
11005 (inswh, inslh, insqh): Similarly.
11006 (mskbl, mskwl, mskll, mskql): Similarly.
11007 (mskwh, msklh, mskqh): Similarly.
11008
11009 2011-02-24 Richard Henderson <rth@redhat.com>
11010
11011 * config/alpha/alpha.md (attribute isa): Add er, ner.
11012 (attribute enabled): Handle them.
11013 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11014
11015 2011-02-24 Richard Henderson <rth@redhat.com>
11016
11017 * config/alpha/alpha.md (attribute isa): Add vms.
11018 (attribute enabled): Handle it.
11019 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11020 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11021 (*movtf): Rename from *movtf_internal for consistency.
11022 (*movsi): Merge with *movsi_nt_vms.
11023 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11024 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11025 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11026 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11027
11028 2011-02-24 Richard Henderson <rth@redhat.com>
11029
11030 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11031 (extendqisi2, extendhisi2): Likewise.
11032 (extendqidi2): Simplify BWX/non-BWX expansions.
11033 (extendhidi2): Similarly.
11034
11035 2011-02-24 Richard Henderson <rth@redhat.com>
11036
11037 * config/alpha/alpha.md (attribute isa): New.
11038 (attribute enabled): New.
11039 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11040 (zero_extendqisi2, zero_extendqidi2): Similarly.
11041 (zero_extendhisi2, zero_extendhidi2): Similarly.
11042 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11043
11044 2011-02-24 Richard Henderson <rth@redhat.com>
11045
11046 * config/alpha/predicates.md (input_operand): Revert last change;
11047 update comment to mention 32-bit VMS rather than Windows.
11048
11049 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11050
11051 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11052 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11053 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11054 * passes.c (init_optimization_passes): Move
11055 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11056
11057 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11058
11059 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11060
11061 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11062
11063 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11064 correctly.
11065
11066 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11067
11068 PR debug/48204
11069 * simplify-rtx.c (simplify_const_unary_operation): Call
11070 real_convert when changing mode class with FLOAT_EXTEND.
11071
11072 2011-03-24 Nick Clifton <nickc@redhat.com>
11073
11074 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11075 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11076 * config/rx/rx.c (rx_option_override): Set align_jumps,
11077 align_loops and align_labels if not set by the user.
11078 (rx_align_for_label): New function.
11079 (rx_max_skip_for_label): New function.
11080 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11081 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11082 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11083 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11084 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11085
11086 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11087
11088 PR rtl-optimization/48263
11089 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11090 and original commutative_p handling. Use maybe_gen_insn.
11091
11092 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11093
11094 * reload.c (find_reloads_subreg_address): Add address_reloaded
11095 parameter and return true there if the full address has been
11096 reloaded.
11097 (find_reloads_toplev): Pass address_reloaded flag.
11098 (find_reloads_address_1): Don't use address_reloaded parameter.
11099
11100 2011-03-24 Jeff Law <law@redhat.com>
11101
11102 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11103 unused variable "ann".
11104 (remove_unused_locals): Likewise.
11105
11106 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11107 statement.
11108
11109 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11110 after it is freed.
11111
11112 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11113
11114 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11115 for invalid symbolic addresses.
11116 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11117 larl operands.
11118
11119 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11120
11121 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11122 the argument in calls to fold_truth_not_expr.
11123
11124 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11125
11126 * tree.c (record_node_allocation_statistics): New function.
11127 (make_node_stat, copy_node_stat, build_string): Call it.
11128 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11129 (build1_stat, build_omp_clause): Likewise.
11130
11131 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11132
11133 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11134 last commit.
11135
11136 2011-03-24 Richard Guenther <rguenther@suse.de>
11137
11138 PR tree-optimization/48271
11139 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11140 blocks that still exist.
11141
11142 2011-03-24 Richard Guenther <rguenther@suse.de>
11143
11144 PR tree-optimization/48270
11145 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11146 not free datarefs before ddrs.
11147
11148 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11149
11150 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11151 from the address built for a reference with variable offset.
11152
11153 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11154
11155 PR target/48237
11156 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11157 alternatives that can be handled with movq or movabsq insn.
11158 (*movdf_internal): Disable for !TARGET_64BIT.
11159 (*movdf_internal_nointeger): Ditto.
11160 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11161
11162 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11163
11164 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11165 (FUNCTION_ARG_ADVANCE): Likewise.
11166 * tm.texi.in: Change references to them to hook references.
11167 * tm.texi: Regenerate.
11168 * targhooks.c (default_function_arg): Eliminate check for target macro.
11169 (default_function_incoming_arg): Likewise.
11170 (default_function_arg_advance): Likewise.
11171 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11172 (function_arg_advance): Likewise.
11173 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11174
11175 2011-03-24 Richard Guenther <rguenther@suse.de>
11176
11177 PR middle-end/48269
11178 * tree-object-size.c (addr_object_size): Do not double-account
11179 for MEM_REF offsets.
11180
11181 2011-03-24 Diego Novillo <dnovillo@google.com>
11182
11183 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11184 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11185 (lto_input_data_block): Move from lto-opts.c. Make extern.
11186 Update all users.
11187 (lto_input_string): Rename from input_string. Make extern.
11188 Update all users.
11189 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11190 output_string_with_length.
11191 Output 0 to indicate a non-NULL string. Update all callers to
11192 not emit 0.
11193 (lto_output_string): Rename from output_string. Make extern.
11194 Update all users.
11195 (lto_output_decl_state_streams): Make extern.
11196 (lto_output_decl_state_refs): Make extern.
11197 * lto-streamer.h (lto_input_string): Declare.
11198 (lto_input_data_block): Declare.
11199 (lto_output_string): Declare.
11200 (lto_output_string_with_length): Declare.
11201 (lto_output_decl_state_streams): Declare.
11202 (lto_output_decl_state_refs): Declare.
11203
11204 2011-03-24 Richard Guenther <rguenther@suse.de>
11205
11206 PR tree-optimization/46562
11207 * tree.c (build_invariant_address): New function.
11208 * tree.h (build_invariant_address): Declare.
11209 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11210 a renamed function moved ...
11211 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11212 Take valueization callback parameter.
11213 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11214 * gimple-fold.h: New file.
11215 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11216 (ccp_fold, fold_const_aggregate_ref,
11217 fold_ctor_reference, fold_nonarray_ctor_reference,
11218 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11219 get_base_constructor): Move ...
11220 * gimple-fold.c: ... here.
11221 (gimple_fold_stmt_to_constant_1): New function
11222 split out from ccp_fold. Take a valueization callback parameter.
11223 Valueize all operands.
11224 (gimple_fold_stmt_to_constant): New wrapper function.
11225 (fold_const_aggregate_ref_1): New function split out from
11226 fold_const_aggregate_ref. Take a valueization callback parameter.
11227 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11228 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11229 invariant POINTER_PLUS_EXPRs to invariant form.
11230 (vn_valueize): New function.
11231 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11232 * tree-vrp.c (vrp_valueize): New function.
11233 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11234 to fold statements to constants.
11235 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11236 function declarations.
11237 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11238 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11239
11240 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11241
11242 * config/h8300/predicates.md (jump_address_operand): Fix register
11243 mode check.
11244
11245 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11246
11247 * doc/invoke.texi (max-stores-to-sink): Document.
11248 * params.h (MAX_STORES_TO_SINK): Define.
11249 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11250 if either vectorization or if-conversion is disabled.
11251 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11252 tree-vect-data-refs.c vect_equal_offsets.
11253 (dr_equal_offsets_p): New function.
11254 (find_data_references_in_bb): Remove static.
11255 * tree-data-ref.h (find_data_references_in_bb): Declare.
11256 (dr_equal_offsets_p): Likewise.
11257 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11258 (vect_drs_dependent_in_basic_block): Update calls to
11259 vect_equal_offsets.
11260 (vect_check_interleaving): Likewise.
11261 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11262 (cond_if_else_store_replacement): Rename to...
11263 (cond_if_else_store_replacement_1): ... this. Change arguments and
11264 documentation.
11265 (cond_if_else_store_replacement): New function.
11266 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11267 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11268
11269 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11270
11271 PR target/46934
11272 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11273 to subtract lower bound instead of GEN_INT().
11274
11275 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11276
11277 PR other/48179
11278 PR other/48221
11279 PR other/48234
11280 * doc/extend.texi (Alignment): Move section to match order in TOC.
11281 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11282 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11283
11284 2011-03-23 Jeff Law <law@redhat.com>
11285
11286 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11287 before removing the edge.
11288
11289 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11290 it may have been freed by redirect_branch_edge or
11291 redirect_edge_succ_nodup.
11292
11293 2011-03-23 Richard Guenther <rguenther@suse.de>
11294
11295 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11296 (check_va_list_escapes): Likewise.
11297 (check_all_va_list_escapes): Likewise.
11298
11299 2011-03-23 Richard Guenther <rguenther@suse.de>
11300
11301 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11302 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11303 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11304 (alias.o): Likewise.
11305 (ipa-type-escape.o): Remove.
11306 (ipa-struct-reorg.o): Likewise.
11307 (GTFILES): Remove ipa-struct-reorg.c.
11308 * alias.c: Do not include ipa-type-escape.h.
11309 * tree-ssa-alias.c: Likewise.
11310 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11311 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11312 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11313 and ipa-type-escape passes.
11314 * tree-pass.h (pass_ipa_type_escape): Remove.
11315 (pass_ipa_struct_reorg): Likewise.
11316 * ipa-struct-reorg.h: Remove.
11317 * ipa-struct-reorg.c: Likewise.
11318 * ipa-type-escape.h: Likewise.
11319 * ipa-type-escape.c: Likewise.
11320 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11321 (--param struct-reorg-cold-struct-ratio): Likewise.
11322 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11323 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11324 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11325
11326 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11327
11328 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11329 cpu attribute value.
11330 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11331 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11332 * config/s390/s390.c (processor_flags_table): New constant array.
11333 (s390_handle_arch_option): Remove.
11334 (s390_handle_option): Remove s390_handle_arch_option invocations
11335 and OPT_mwarn_framesize_ handling.
11336 (s390_option_override): Remove s390_handle_arch_option invocation.
11337 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11338 warnings.
11339 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11340 * config/s390/s390.opt (s390_tune, s390_arch)
11341 (march=): Replace s390_arch_option enum and values with
11342 processor_type. Set variable name to s390_arch. Set
11343 initialization value.
11344 (mtune=): Replace s390_arch_option with processor_type. Set
11345 variable name to s390_tune. Set initialization value.
11346
11347 2011-03-23 Julian Brown <julian@codesourcery.com>
11348
11349 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11350 accesses which are not naturally aligned.
11351
11352 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11353
11354 PR target/47553
11355 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11356
11357 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11358
11359 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11360 parameter from "int" to "enum insn_code".
11361 (expand_operand_type): New enum.
11362 (expand_operand): New structure.
11363 (create_expand_operand): New function.
11364 (create_fixed_operand, create_output_operand): Likewise
11365 (create_input_operand, create_convert_operand_to): Likewise.
11366 (create_convert_operand_from, create_address_operand): Likewise.
11367 (create_integer_operand): Likewise.
11368 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11369 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11370 (expand_insn, expand_jump_insn): Likewise.
11371 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11372 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11373 (expand_movstr, expand_builtin___clear_cache): Likewise.
11374 (expand_builtin_lock_release): Likewise.
11375 * explow.c (allocate_dynamic_stack_space): Likewise.
11376 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11377 and use the default handling in that case.
11378 * expmed.c (check_predicate_volatile_ok): Delete.
11379 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11380 (emit_cstore): Likewise.
11381 * expr.c (emit_block_move_via_movmem): Likewise.
11382 (set_storage_via_setmem, expand_assignment): Likewise.
11383 (emit_storent_insn, try_casesi): Likewise.
11384 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11385 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11386 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11387 (expand_twoval_unop, expand_twoval_binop): Likewise.
11388 (expand_unop_direct, emit_indirect_jump): Likewise.
11389 (emit_conditional_move, vector_compare_rtx): Likewise.
11390 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11391 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11392 (expand_sync_lock_test_and_set): Likewise.
11393 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11394 (emit_unop_insn): Likewise.
11395 (expand_copysign_absneg): Change icode to an insn_code.
11396 (create_convert_operand_from_type): New function.
11397 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11398 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11399 (expand_insn, expand_jump_insn): Likewise.
11400 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11401 than const_int_operand for operand 2.
11402
11403 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11404
11405 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11406 if possible.
11407
11408 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11409
11410 * emit-rtl.c (emit_pattern_before_noloc): New function.
11411 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11412 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11413 (emit_pattern_after_noloc): New function.
11414 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11415 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11416
11417 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11418
11419 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11420 (__ffsDI2): Likewise.
11421
11422 2011-03-22 Richard Henderson <rth@redhat.com>
11423
11424 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11425 of !TARGET_ABI_OPEN_VMS.
11426 (alpha_trampoline_init, alpha_start_function): Likewise.
11427 (alpha_expand_epilogue, alpha_file_start): Likewise.
11428 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11429 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11430 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11431 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11432 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11433
11434 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11435
11436 * config/s390/s390-opts.h: New.
11437 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11438 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11439 s390_stack_guard): Remove.
11440 (s390_handle_arch_option): Return void. Take enum
11441 s390_arch_option value instead of string and searching array.
11442 (s390_handle_option): Don't assert that global structures are in
11443 use. Access variables via opts pointer. Use error_at. Don't use
11444 sscanf for -mstack-guard= or -mstack-size=. Update call to
11445 s390_handle_arch_option.
11446 (s390_option_override): Update call to s390_handle_arch_option.
11447 (s390_emit_prologue): Use %d format for s390_stack_size in
11448 diagnostic. Use %wd for HOST_WIDE_INT.
11449 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11450 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11451 * config/s390/s390.opt (config/s390/s390-opts.h): New
11452 HeaderInclude entry.
11453 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11454 s390_arch_flags, s390_warn_framesize): New Variable entries.
11455 (s390_arch_option): New Enum and EnumValue entries.
11456 (march=): Use Enum instead of Var.
11457 (mstack-guard=, mstack-size=): Use UInteger and Var.
11458 (mtune=): Use Enum.
11459
11460 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11461
11462 * config/score/score.c (score_handle_option): Don't assert that
11463 global structures are in use. Access target_flags via opts
11464 pointer. Use value of -march= option to determine target_flags
11465 settings.
11466 * config/score/score.opt (march=): Use Enum.
11467 (score_arch): New Enum and EnumValue entries.
11468
11469 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11470
11471 * config/mep/mep.c (option_mtiny_specified): Remove.
11472 (mep_option_override): Move register handling for -mivc2 from
11473 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11474 instead of option_mtiny_specified.
11475 (mep_handle_option): Access target_flags via opts pointer. Don't
11476 assert that global structures are in use. Defer part of -mivc2
11477 handling and move it to mep_option_override.
11478 * config/mep/mep.opt (IVC2): New Mask entry.
11479 (mivc2): Use Var and Defer instead of Mask.
11480
11481 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11482
11483 * config/v850/v850-opts.h: New.
11484 * config/v850/v850.c (small_memory): Replace with
11485 small_memory_physical_max array. Make that array static const.
11486 (v850_handle_memory_option): Take integer value of argument. Take
11487 gcc_options pointer, option text and location. Return void.
11488 Update for changes to small memory structures.
11489 (v850_handle_option): Access target_flags via opts pointer. Don't
11490 assert that global structures are in use. Update calls to
11491 v850_handle_memory_option.
11492 (v850_encode_data_area): Update references to small memory settings.
11493 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11494 (enum small_memory_type): Move to v850-opts.h.
11495 * config/v850/v850.opt (config/v850/v850-opts.h): New
11496 HeaderInclude entry.
11497 (small_memory_max): New Variable entry.
11498 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11499 (mtda, mzda): Likewise.
11500
11501 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11502
11503 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11504 pointer. Don't assert that global structures are in use.
11505
11506 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11507
11508 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11509 via opts pointer. Don't assert that global structures are in use.
11510
11511 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11512
11513 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11514 (munix=93): Use Var.
11515 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11516 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11517 * config/pa/pa-opts.h: New.
11518 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11519 (pa_handle_option): Don't assert that global structures are in
11520 use. Access target_flags via opts pointer. Don't handle
11521 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11522 OPT_munix_98 here.
11523 (pa_option_override): Handle deferred OPT_mfixed_range_.
11524
11525 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11526
11527 * config/mn10300/mn10300-opts.h: New.
11528 * config/mn10300/mn10300.c (mn10300_processor,
11529 mn10300_tune_string): Remove.
11530 (mn10300_handle_option): Don't assert that global structures are
11531 in use. Access mn10300_processor via opts pointer. Don't handle
11532 OPT_mtune_ here.
11533 * config/mn10300/mn10300.h (enum processor_type): Move to
11534 mn10300-opts.h.
11535 (mn10300_processor): Remove.
11536 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11537 HeaderInclude entry.
11538 (mn10300_processor): New Variable entry.
11539 (mtune=): Use Var.
11540
11541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11542
11543 * config/microblaze/microblaze.c: Don't include opts.h.
11544 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11545 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11546 (mno-clearbss): Use Var and Warn.
11547
11548 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11549
11550 * config/m32r/m32r-opts.h: New.
11551 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11552 (m32r_handle_option): Don't assert that global structures are in
11553 use. Access target_flags and m32r_cache_flush_func via opts
11554 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11555 OPT_mno_flush_trap here.
11556 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11557 include of m32r-opts.h.
11558 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11559 HeaderInclude entry.
11560 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11561 (mmodel=): Use Enum and Var.
11562 (m32r_model): New Enum and EnumValue entries.
11563 (mno-flush-trap): Use Var.
11564 (msdata=): Use Enum and Var.
11565 (m32r_sdata): New Enum and EnumValue entries.
11566
11567 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11568
11569 * config/m32c/m32c.c: Don't include opts.h.
11570 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11571 m32c_handle_option): Remove.
11572 (m32c_option_override): Check global_options_set.x_target_memregs
11573 instead of target_memregs_set.
11574 * config/m32c/m32c.h (target_memregs): Remove.
11575 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11576 variable.
11577
11578 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11579
11580 * config/iq2000/iq2000-opts.h: New.
11581 * config/iq2000/iq2000.c: Don't include opts.h.
11582 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11583 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11584 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11585 HeaderInclude entry.
11586 (iq2000_tune): New Variable entry.
11587 (march=): Add comment. Use Enum.
11588 (iq2000_arch): New Enum and EnumValue entries.
11589 (mcpu=): Use Enum and Var.
11590 (iq2000_tune): New Enum and EnumValue entries.
11591
11592 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11593
11594 * config/ia64/ia64-opts.h: New.
11595 * config/ia64/ia64.c (ia64_tune): Remove.
11596 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11597 here. Use error_at.
11598 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11599 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11600 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11601 HeaderInclude entry.
11602 (ia64_tune): New Variable entry.
11603 (mfixed-range=): Use Defer and Var.
11604 (mtune=): Use Enum and Var.
11605 (ia64_tune): New Enum and EnumValue entries.
11606
11607 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11608
11609 * config/frv/frv-opts.h: New.
11610 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11611 frv-opts.h.
11612 (frv_cpu_type): Remove.
11613 * config/frv/frv.c: Don't include opts.h.
11614 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11615 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11616 (frv_cpu_type): New Variable entry.
11617 (frv_cpu): New Enum and EnumValue entries.
11618
11619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11620
11621 * config/cris/cris.c (cris_handle_option): Access target_flags via
11622 opts pointer. Don't assert that global structures are in use.
11623 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11624 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11625
11626 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11627
11628 * config/bfin/bfin-opts.h: New.
11629 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11630 bfin_si_revision, bfin_workarounds): Remove.
11631 (bfin_cpus): Make static const.
11632 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11633 not bfin_lib_id_given.
11634 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11635 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11636 pointer. Use error_at. Don't assert that global structures are in use.
11637 * config/bfin/bfin.h: Include bfin-opts.h.
11638 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11639 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11640 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11641 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11642 entries.
11643
11644 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11645
11646 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11647 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11648 or -msoft-float here.
11649 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11650 -msoft-float and -mhard-float.
11651 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11652 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11653 msoft-float.
11654 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11655 -msoft-float.
11656 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11657 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11658 not mhard-float.
11659 (LIBGCC_SPEC): Don't handle -msoft-float.
11660 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11661 -mhard-float.
11662 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11663 msoft-float.
11664 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11665 -mfloat-abi=*, not -msoft-float and -mhard-float.
11666 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11667 -msoft-float.
11668 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11669 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11670 mhard-float and msoft-float.
11671 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11672 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11673 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11674 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11675 mhard-float.
11676 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11677 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11678 msoft-float.
11679 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11680 not mhard-float.
11681 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11682 not msoft-float.
11683
11684 2011-03-22 Richard Henderson <rth@redhat.com>
11685
11686 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11687 TARGET_ABI_WINDOWS_NT.
11688 (alpha_output_function_end_prologue): Likewise.
11689 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11690 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11691 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11692 (trap, *movsi_nt_vms): Likewise.
11693 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11694 (*tablejump_osf_nt_internal): Remove.
11695 * config/alpha/predicates.md (input_operand): Only test Pmode.
11696
11697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11698
11699 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11700 via opts pointer. Use error_at. Don't assert that global
11701 structures are in use.
11702
11703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11704
11705 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11706 (ix86_handle_option): Access ix86_isa_flags and
11707 ix86_isa_flags_explicit via opts pointer. Don't assert that
11708 global structures are in use.
11709 (ix86_function_specific_save, ix86_function_specific_restore):
11710 Update ix86_isa_flags_explicit field name.
11711 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11712 (ix86_isa_flags_explicit): Rename TargetSave entry to
11713 x_ix86_isa_flags_explicit.
11714
11715 2011-03-22 Richard Henderson <rth@redhat.com>
11716
11717 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11718 (alpha_option_override, direct_return): Likewise.
11719 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11720 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11721 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11722 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11723 (alpha_expand_epilogue, alpha_end_function): Likewise.
11724 (alpha_init_libfuncs): Likewise.
11725 (struct machine_function): Remove unicosmk members.
11726 (print_operand) ['t']: Remove.
11727 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11728 unicosmk_output_module_name, unicosmk_output_common,
11729 current_section_align, unicosmk_output_text_section_asm_op,
11730 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11731 unicosmk_section_type_flags, unicosmk_unique_section,
11732 unicosmk_asm_named_section, unicosmk_insert_attributes,
11733 unicosmk_output_align, unicosmk_defer_case_vector,
11734 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11735 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11736 unicosmk_output_ssib, unicosmk_add_call_info_word,
11737 unicosmk_extern_head, unicosmk_output_default_externs,
11738 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11739 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11740 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11741 * config/alpha/alpha-protos.h: Update.
11742 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11743 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11744 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11745 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11746 (*mulsi_se, mulvsi3): Likewise.
11747 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11748 (*divmodsi_internal, call, call_value, realign): Likewise.
11749 (moddi3, umoddi3): Likewise; remove duplicate expander.
11750 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11751 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11752 (*movdi_nofix): Remove r/U alternative.
11753 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11754 * config/alpha/constraints.md ("U"): Remove.
11755 * config/alpha/predicates.md (call_operand"): Don't test
11756 TARGET_ABI_UNICOSMK.
11757
11758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11759
11760 * target.def (handle_option): Take gcc_options and
11761 cl_decoded_option pointers and location_t.
11762 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11763 * doc/tm.texi: Regenerate.
11764 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11765 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11766 * lto-opts.c (lto_reissue_options): Generate option structure for
11767 targetm.handle_option call.
11768 * opts.c (target_handle_option): Update call to
11769 targetm.handle_option. Remove assertions about values now passed
11770 down to hook.
11771 * targhooks.c (default_target_handle_option): New.
11772 * targhooks.h (default_target_handle_option): Declare.
11773 * config/alpha/alpha.c: Include opts.h.
11774 (alpha_handle_option): Update to new hook interface.
11775 * config/arm/arm.c: Include opts.h.
11776 (arm_handle_option): Update to new hook interface.
11777 * config/arm/t-arm (arm.o): Update dependencies.
11778 * config/bfin/bfin.c: Include opts.h.
11779 (bfin_handle_option): Update to new hook interface.
11780 * config/cris/cris.c: Include opts.h.
11781 (cris_handle_option): Update to new hook interface.
11782 * config/frv/frv.c: Include opts.h.
11783 (frv_handle_option): Update to new hook interface.
11784 * config/i386/i386.c: Include opts.h.
11785 (ix86_handle_option): Update to new hook interface.
11786 (ix86_valid_target_attribute_inner_p): Generate option structure
11787 for call to ix86_handle_option.
11788 * config/i386/t-i386 (i386.o): Update dependencies.
11789 * config/ia64/ia64.c: Include opts.h.
11790 (ia64_handle_option): Update to new hook interface.
11791 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11792 * config/iq2000/iq2000.c: Include opts.h.
11793 (iq2000_handle_option): Update to new hook interface.
11794 * config/m32c/m32c.c: Include opts.h.
11795 (m32c_handle_option): Update to new hook interface.
11796 * config/m32r/m32r.c: Include opts.h.
11797 (m32r_handle_option): Update to new hook interface.
11798 * config/m68k/m68k.c: Include opts.h.
11799 (m68k_handle_option): Update to new hook interface.
11800 * config/mep/mep.c: Include opts.h.
11801 (mep_handle_option): Update to new hook interface.
11802 * config/microblaze/microblaze.c: Include opts.h.
11803 (microblaze_handle_option): Update to new hook interface.
11804 * config/mips/mips.c: Include opts.h.
11805 (mips_handle_option): Update to new hook interface.
11806 * config/mn10300/mn10300.c: Include opts.h.
11807 (mn10300_handle_option): Update to new hook interface.
11808 * config/pa/pa.c: Include opts.h.
11809 (pa_handle_option): Update to new hook interface.
11810 * config/pdp11/pdp11.c: Include opts.h.
11811 (pdp11_handle_option): Update to new hook interface.
11812 * config/rs6000/rs6000.c: Include opts.h.
11813 (rs6000_handle_option): Update to new hook interface.
11814 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11815 * config/rx/rx.c: Include opts.h.
11816 (rx_handle_option): Update to new hook interface.
11817 * config/s390/s390.c: Include opts.h.
11818 (s390_handle_option): Update to new hook interface.
11819 * config/score/score.c: Include opts.h.
11820 (score_handle_option): Update to new hook interface.
11821 * config/sh/sh.c: Include opts.h.
11822 (sh_handle_option): Update to new hook interface.
11823 * config/sparc/sparc.c: Include opts.h.
11824 (sparc_handle_option): Update to new hook interface.
11825 * config/v850/v850.c: Include opts.h.
11826 (v850_handle_option): Update to new hook interface.
11827
11828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11829
11830 * gcc.c (driver_unknown_option_callback): Only permit and save
11831 unknown -Wno- options.
11832 (driver_wrong_lang_callback): Save options directly instead of via
11833 driver_unknown_option_callback.
11834
11835 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11836
11837 * combine.c (simplify_set): Try harder to find the best CC mode when
11838 simplifying a nested COMPARE on the RHS.
11839
11840 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11841
11842 * config/alpha/gnu.h: Remove.
11843 * config/arc: Remove directory.
11844 * config/arm/netbsd.h: Remove.
11845 * config/arm/t-pe: Remove.
11846 * config/crx: Remove directory.
11847 * config/i386/netbsd.h: Remove.
11848 * config/m68hc11: Remove directory.
11849 * config/m68k/uclinux-oldabi.h: Remove.
11850 * config/mcore/mcore-pe.h: Remove.
11851 * config/mcore/t-mcore-pe: Remove.
11852 * config/netbsd-aout.h: Remove.
11853 * config/rs6000/gnu.h: Remove.
11854 * config/sh/sh-symbian.h: Remove.
11855 * config/sh/symbian-base.c: Remove.
11856 * config/sh/symbian-c.c: Remove.
11857 * config/sh/symbian-cxx.c: Remove.
11858 * config/sh/symbian-post.h: Remove.
11859 * config/sh/symbian-pre.h: Remove.
11860 * config/sh/t-symbian: Remove.
11861 * config/svr3.h: Remove.
11862 * config/vax/netbsd.h: Remove.
11863 * config.build: Don't handle i[34567]86-*-pe.
11864 * config.gcc: Remove handling of deprecations for most deprecated
11865 targets.
11866 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11867 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11868 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11869 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11870 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11871 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11872 Remove cases.
11873 * config.host: Don't handle i[34567]86-*-pe.
11874 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11875 (ASM_SPEC32): Don't handle -mcall-gnu.
11876 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11877 -mcall-gnu.
11878 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11879 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11880 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11881 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11882 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11883 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11884 conditional on SYMBIAN.
11885 * configure.ac: Don't handle powerpc*-*-gnu*.
11886 * configure: Regenerate.
11887 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11888 * doc/install-old.texi (m6811, m6812): Don't mention.
11889 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11890 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11891 (m68k-uclinuxoldabi): Don't mention.
11892 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11893 Remove.
11894 (-mcall-gnu): Remove.
11895 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11896 families): Remove constraint documentation.
11897
11898 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11899
11900 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11901 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11902 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11903
11904 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11905
11906 PR target/48226
11907 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11908 vector when peeking at the next token for vector, don't expand the
11909 keywords.
11910
11911 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11912
11913 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11914 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11915 * config/avr/avr.c (init_cumulative_args)
11916 (avr_function_arg_advance): Use it.
11917 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11918 sibcall epilogues.
11919 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11920 (avr_function_ok_for_sibcall): ...this new function.
11921 (avr_lookup_function_attribute1): New static Function.
11922 (avr_naked_function_p, interrupt_function_p)
11923 (signal_function_p, avr_OS_task_function_p)
11924 (avr_OS_main_function_p): Use it.
11925 * config/avr/avr.md ("sibcall", "sibcall_value")
11926 ("sibcall_epilogue"): New expander.
11927 ("*call_insn", "*call_value_insn"): New insn.
11928 ("call_insn", "call_value_insn"): Remove
11929 ("call", "call_value", "epilogue"): Change expander to handle
11930 sibling calls.
11931
11932 2011-03-21 Nick Clifton <nickc@redhat.com>
11933
11934 * doc/invoke.texi (Overall Options): Move closing brace to end of
11935 options list.
11936 (Optimization Options): Add missing @gol.
11937 (Directory Options): Likewise.
11938 (i386 and x86-64 Options): Likewise.
11939 (RS6000 and PowerPC Options): Likewise.
11940 (i386 and x86-64 Windows Options): Likewise.
11941 (V850 Options): Add text missing from descriptions.
11942
11943 2011-03-22 Richard Henderson <rth@redhat.com>
11944
11945 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11946 (avr_incoming_return_addr_rtx): New.
11947 (emit_push_byte): New.
11948 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11949 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11950 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11951 (emit_pop_byte): New.
11952 (expand_epilogue): Use it. Pop frame pointer by bytes.
11953 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11954 (INCOMING_RETURN_ADDR_RTX): New.
11955 (INCOMING_FRAME_SP_OFFSET): New.
11956 (ARG_POINTER_CFA_OFFSET): New.
11957 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11958 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11959 (pophi): Remove.
11960
11961 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11962
11963 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11964
11965 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11966 (FUNCTION_ARG_ADVANCE): Likewise.
11967 * tm.texi.in: Change references to them to hook references.
11968 * tm.texi: Regenerate.
11969 * targhooks.c (default_function_arg): Eliminate check for target
11970 macro.
11971 (default_function_incoming_arg): Likewise.
11972 (default_function_arg_advance): Likewise.
11973 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11974 (function_arg_advance): Likewise.
11975 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11976
11977 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11978
11979 * tree.c (build_call_1): New function.
11980 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11981
11982 2011-03-22 Richard Guenther <rguenther@suse.de>
11983
11984 PR tree-optimization/48228
11985 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11986 for single-arg PHIs.
11987
11988 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11989
11990 PR rtl-optimization/48143
11991 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11992 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11993 sse2_cvtps2pd): Likewise.
11994
11995 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11996
11997 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11998
11999 2011-03-22 Richard Guenther <rguenther@suse.de>
12000
12001 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12002 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12003 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12004 and REALIGN_LOAD_EXPR.
12005 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12006 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12007 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12008 DOT_PROD_EXPR case ...
12009 (expand_expr_real_2): ... here.
12010 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12011 and REALIGN_LOAD_EXPR.
12012 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12013 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12014 (vect_create_epilog_for_reduction): Likewise.
12015 (vectorizable_reduction): Likewise.
12016 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12017 * tree-vect-stmts.c (vectorizable_load): Likewise.
12018
12019 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12020
12021 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12022
12023 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12024
12025 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12026 handling for PLTOFF/GOTOFF.
12027
12028 2011-03-22 Nick Clifton <nickc@redhat.com>
12029
12030 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12031 trailing backslash from the end of the macro definition.
12032
12033 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12034
12035 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12036 and PLT unspecs.
12037
12038 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12039
12040 * expr.h (prepare_operand): Move to...
12041 * optabs.h (prepare_operand): ...here and change the insn code
12042 parameter from "int" to "enum insn_code".
12043 (insn_operand_matches): Declare.
12044 * expr.c (init_expr_target): Use insn_operand_matches.
12045 (compress_float_constant): Likewise.
12046 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12047 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12048 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12049 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12050 Likewise.
12051 (gen_cond_trap): Likewise.
12052 (prepare_operand): Likewise. Change icode to an insn_code.
12053 (insn_operand_matches): New function.
12054 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12055 * reload1.c (gen_reload): Likewise.
12056 * targhooks.c (default_secondary_reload): Likewise.
12057
12058 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12059
12060 * config/alpha/alpha.md (unspec): New define_c_enum.
12061 (unspecv): Ditto.
12062
12063 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12064
12065 PR debug/48214
12066 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12067 between a call and its CALL_ARG_LOCATION note.
12068
12069 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12070
12071 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12072
12073 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12074
12075 PR c/42544
12076 PR c/48197
12077 * c-common.c (shorten_compare): If primopN is first sign-extended
12078 to opN and then zero-extended to result type, set primopN to opN.
12079
12080 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12081
12082 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12083 for barrier handlers.
12084
12085 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12086
12087 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12088 UNSPEC constants to be in the unspec enumeration, and redefine
12089 all UNSPECV constants to be in the unspecv enumeration, so that
12090 dumps print which unspec/unspec_volatile this is.
12091 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12092 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12093 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12094 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12095 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12096
12097 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12098 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12099 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12100 * config/rs6000/sync.md (isync, lwsync): Ditto.
12101
12102 2011-03-21 Richard Guenther <rguenther@suse.de>
12103
12104 * params.def (lto-min-partition): Fix typo.
12105
12106 2011-03-21 Richard Guenther <rguenther@suse.de>
12107
12108 PR c/47939
12109 * c-decl.c (grokdeclarator): Drop to the main variant only
12110 for array types. Drop flag_gen_aux_info check.
12111
12112 2011-03-21 Richard Guenther <rguenther@suse.de>
12113
12114 PR translation/47911
12115 * params.def (lto-partitions): Fix typo.
12116 (lto-min-partition): Fix wording.
12117
12118 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12119
12120 * config/rs6000/t-freebsd: Remove duplication from file.
12121
12122 2011-03-21 Richard Guenther <rguenther@suse.de>
12123
12124 PR middle-end/47661
12125 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12126
12127 2011-03-21 Richard Guenther <rguenther@suse.de>
12128
12129 PR lto/48210
12130 * params.def (lto-partitions): Require at least 1 partition.
12131
12132 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12133
12134 * gthr-solaris.h: Remove.
12135 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12136 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12137 (LIB_SPEC): Likewise.
12138 * config/sol2.opt (threads): Remove.
12139 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12140 (sparc*-*-solaris2*): Likewise.
12141 * configure.ac (enable_threads): Enable solaris support.
12142 * configure: Regenerate.
12143 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12144 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12145 solaris.
12146
12147 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12148
12149 * config.gcc: Obsolete *-*-solaris2.8*.
12150 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12151
12152 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12153
12154 PR bootstrap/48135
12155 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12156 reference. Solaris 8 perl works.
12157
12158 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12159
12160 PR bootstrap/48135
12161 * doc/install.texi (Prerequisites): Move jar etc. up.
12162 Explain support library version requirements.
12163
12164 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12165
12166 PR bootstrap/48135
12167 * doc/install.texi (Prerequisites): Move Perl to build
12168 requirements. Always necessary on Solaris 2 with Sun ld.
12169
12170 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12171
12172 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12173 binutils 2.21.
12174 (Specific, i?86-*-solaris2.[89]): Likewise.
12175 (Specific, i?86-*-solaris2.10): Likewise.
12176 (Specific, mips-sgi-irix6): Likewise.
12177 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12178 Update for binutils 2.21.
12179
12180 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12181
12182 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12183 Allow -fuse-linker-plugin for non-default plugin linker.
12184 * configure: Regenerate.
12185
12186 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12187
12188 PR bootstrap/48167
12189 * gengtype.c (files_rules): Added rule for cp/parser.h.
12190
12191 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12192
12193 PR target/48213
12194 * config/s390/s390.c (s390_delegitimize_address): Don't call
12195 lowpart_subreg if orig_x has BLKmode.
12196
12197 2011-03-21 Kai Tietz <ktietz@redhat.com>
12198
12199 PR target/12171
12200 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12201 * tree.h (attribute_spec): Add new member affects_type_identity.
12202 * attribs.c (empty_attribute_table): Adjust attribute_spec
12203 initializers.
12204 * config/alpha/alpha.c: Likewise.
12205 * config/arc/arc.c: Likewise.
12206 * config/arm/arm.c: Likewise.
12207 * config/avr/avr.c: Likewise.
12208 * config/bfin/bfin.c: Likewise.
12209 * config/crx/crx.c: Likewise.
12210 * config/darwin.h: Likewise.
12211 * config/h8300/h8300.c: Likewise.
12212 * config/i386/cygming.h: Likewise.
12213 * config/i386/i386.c: Likewise.
12214 * config/ia64/ia64.c: Likewise.
12215 * config/m32c/m32c.c: Likewise.
12216 * config/m32r/m32r.c: Likewise.
12217 * config/m68hc11/m68hc11.c: Likewise.
12218 * config/m68k/m68k.c: Likewise.
12219 * config/mcore/mcore.c: Likewise.
12220 * config/mep/mep.c: Likewise.
12221 * config/microblaze/microblaze.c: Likewise.
12222 * config/mips/mips.c: Likewise.
12223 * config/rs6000/rs6000.c: Likewise.
12224 * config/rx/rx.c: Likewise.
12225 * config/sh/sh.c: Likewise.
12226 * config/sol2.h: Likewise.
12227 * config/sparc/sparc.c: Likewise.
12228 * config/spu/spu.c: Likewise.
12229 * config/stormy16/stormy16.c: Likewise.
12230 * config/v850/v850.c: Likewise.
12231
12232 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12233
12234 * simplify-rtx.c (simplify_binary_operation_1): Handle
12235 (xor (and A B) C) case when B and C are both constants.
12236
12237 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12238
12239 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12240
12241 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12242
12243 PR bootstrap/48168
12244 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12245
12246 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12247
12248 PR rtl-optimization/48156
12249 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12250 assume df and df_lr are not NULL.
12251
12252 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12253
12254 PR debug/48023
12255 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12256 between a call and its CALL_ARG_LOCATION note.
12257
12258 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12259
12260 PR debug/48178
12261 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12262 between a call and its corresponding CALL_ARG_LOCATION note.
12263
12264 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12265
12266 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12267 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12268 * haifa-sched.c (setup_ref_regs): Ditto.
12269 * caller-save.c (add_used_regs_1): Ditto.
12270 * dse.c (look_for_hardregs): Ditto.
12271 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12272 * sched-rgn.c (check_live_1): Ditto.
12273
12274 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12275
12276 * c-decl.c (diagnose_mismatched_decls): Give an error for
12277 redefining a typedef with variably modified type.
12278
12279 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12280
12281 * c-decl.c (grokfield): Don't allow typedefs for structures or
12282 unions with no tag by default.
12283 * doc/extend.texi (Unnamed Fields): Update.
12284
12285 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12286
12287 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12288 Rewrite using indirect functions.
12289 (lwp_slwpcb): Ditto.
12290 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12291 (avx_vinsertf128<mode>): Ditto.
12292
12293 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12294
12295 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12296 unspecs.
12297
12298 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12299
12300 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12301 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12302
12303 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12304
12305 PR rtl-optimization/48170
12306 * gcse.c (hoist_code): Remove bogus asserts.
12307
12308 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12309
12310 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12311 computation for prologue/epilogue.
12312
12313 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12314
12315 * Makefile.in (check-consistency): Remove.
12316
12317 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12318
12319 PR debug/48176
12320 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12321 arange_table_in_use is 0, but either text_section_used or
12322 cold_text_section_used is true. Don't call it if
12323 !info_section_emitted.
12324
12325 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12326
12327 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12328 FUNCTION_VALUE_REGNO_P): Remove.
12329 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12330 Remove.
12331 * config/avr/avr.c (avr_ret_register): Make static inline.
12332 (avr_function_value_regno_p): New function.
12333 (avr_libcall_value): Make static. Add 'func' argument.
12334 (avr_function_value): Make static. Rename 'func' argument to
12335 'fn_decl_or_type', forward it to avr_libcall_value. Call
12336 avr_ret_register function instead of RET_REGISTER macro.
12337 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12338
12339 2011-03-18 Jason Merrill <jason@redhat.com>
12340
12341 PR c++/23372
12342 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12343
12344 2011-03-18 Richard Guenther <rguenther@suse.de>
12345
12346 * doc/install.texi (--enable-gold): Remove.
12347 (--with-plugin-ld): Document.
12348 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12349
12350 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12351
12352 PR middle-end/47790
12353 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12354 again after expansion changes.
12355
12356 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12357
12358 * combine.c (try_combine): Do simplification only call of
12359 subst() on i2 even when i1 is present. Update comments.
12360
12361 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12362
12363 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12364 and UNSPEC_PCREL_SYMOFF.
12365
12366 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12367
12368 * config/s390/s390.md: Use define_c_enum for the unspec constant
12369 definitions.
12370
12371 2011-03-18 Richard Henderson <rth@redhat.com>
12372 Jakub Jelinek <jakub@redhat.com>
12373
12374 PR bootstrap/48161
12375 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12376 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12377
12378 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12379
12380 PR middle-end/47725
12381 * combine.c (cant_combine_insn_p): Don't check zero/sign
12382 extended hard registers.
12383
12384 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12385
12386 PR middle-end/47725
12387 * combine.c (cant_combine_insn_p): Check zero/sign extended
12388 hard registers.
12389
12390 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12391
12392 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12393 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12394 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12395 Change return type to bool.
12396 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12397
12398 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12399
12400 PR debug/48163
12401 * var-tracking.c (prepare_call_arguments): If CALL target
12402 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12403 pc instead of looking it up using cselib_lookup and use
12404 Pmode for it if x has VOIDmode.
12405 * dwarf2out.c (gen_subprogram_die): If also both first and
12406 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12407
12408 PR debug/48163
12409 * function.c (assign_parms): For data.passed_pointer parms
12410 use MEM of data.entry_parm instead of data.entry_parm itself
12411 as DECL_INCOMING_RTL.
12412 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12413 also when passed and declared mode is the same, DECL_RTL
12414 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12415 a MEM too.
12416
12417 2011-03-16 Jeff Law <law@redhat.com>
12418
12419 PR rtl-optimization/37273
12420 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12421 handle them like argument loads from stack slots. Do not double
12422 count memory for memory constants and argument loads from stack slots.
12423
12424 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12425
12426 PR debug/48160
12427 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12428
12429 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12430
12431 PR target/48171
12432 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12433
12434 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12435
12436 PR bootstrap/48153
12437 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12438 if dwarf_strict.
12439 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12440 Clear call_arg_locations and call_arg_loc_last always.
12441
12442 PR middle-end/48152
12443 * var-tracking.c (prepare_call_arguments): If argument needs to be
12444 passed by reference, adjust argtype and mode.
12445
12446 2011-03-17 Richard Guenther <rguenther@suse.de>
12447
12448 PR middle-end/48134
12449 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12450 a value make sure to fold the statement.
12451
12452 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12453
12454 PR target/43872
12455 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12456 return condition with !cfun->calls_alloca.
12457
12458 2011-03-17 Richard Guenther <rguenther@suse.de>
12459
12460 PR bootstrap/48148
12461 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12462 origin for decls in other ltrans units.
12463 (input_varpool_node): Likewise.
12464
12465 2011-03-17 Richard Guenther <rguenther@suse.de>
12466
12467 PR middle-end/48165
12468 * tree-object-size.c (compute_object_offset): Properly return
12469 the offset operand of MEM_REFs as sizetype.
12470
12471 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12472
12473 PR rtl-optimization/48141
12474 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12475 * dse.c: Include params.h.
12476 (active_local_stores_len): New variable.
12477 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12478 to NULL.
12479 (record_store, check_mem_read_rtx): Decrease it when removing
12480 from the chain.
12481 (scan_insn): Likewise. Increase it when adding to chain, if it
12482 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12483 set active_local_stores to NULL before the addition.
12484 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12485
12486 PR rtl-optimization/48141
12487 * dse.c (record_store): If no positions are needed in an insn
12488 that cannot be deleted, at least unchain it from active_local_stores.
12489
12490 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12491
12492 PR debug/47510
12493 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12494 (lookup_type_die_strip_naming_typedef): ... here.
12495 (get_context_die): Use it.
12496 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12497 the anonymous struct named by the naming typedef.
12498
12499 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12500
12501 PR target/48154
12502 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12503 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12504
12505 2011-03-16 Jeff Law <law@redhat.com>
12506
12507 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12508 check for operands of conditional. Allow type to be a pointer.
12509
12510 2011-03-16 Richard Guenther <rguenther@suse.de>
12511
12512 PR tree-optimization/48149
12513 * fold-const.c (fold_binary_loc): Fold
12514 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12515
12516 2011-03-16 Richard Guenther <rguenther@suse.de>
12517
12518 PR tree-optimization/26134
12519 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12520 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12521 (non_rewritable_mem_ref_base): Handle complex type component
12522 accesses, constrain offsets for vector and complex extracts
12523 more properly.
12524
12525 2011-03-16 Richard Guenther <rguenther@suse.de>
12526
12527 PR tree-optimization/48146
12528 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12529 operands avoiding the need for renaming.
12530
12531 2011-03-16 Richard Guenther <rguenther@suse.de>
12532
12533 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12534 constant folding. Move MEM_REF canonicalization first.
12535 Rely on fold_const_aggregate_ref for initializer folding.
12536 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12537
12538 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12539
12540 PR middle-end/48136
12541 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12542 arg0/arg1 or their arguments are always fold converted to matching
12543 types.
12544
12545 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12546 to nargs.
12547
12548 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12549
12550 PR lto/46944
12551 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12552 Handle in-tree gold.
12553 (ld_vers): Extract binutils version for gold.
12554 (gcc_cv_ld_hidden): Handle gold here.
12555 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12556 * configure: Regenerate.
12557 * config.in: Regenerate.
12558 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12559 -fuse-linker-plugin otherwise.
12560 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12561 (LINK_COMMAND_SPEC): Use it.
12562 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12563
12564 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12565
12566 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12567 * calls.c: Remove debug.h include.
12568 (emit_call_1): Don't call virtual_call_token debug hook.
12569 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12570 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12571 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12572 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12573 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12574 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12575 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12576 dwarf2out_virtual_call): Remove.
12577 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12578 copy_call_info and virtual_call hooks.
12579 (dwarf2out_init): Don't initialize vcall_insn_table,
12580 debug_dcall_section and debug_vcall_section.
12581 (prune_unused_types): Don't mark nodes from dcall_table.
12582 (dwarf2out_finish): Don't output dcall or vcall tables.
12583 * final.c (final_scan_insn): Don't call direct_call or
12584 virtual_call debug hooks.
12585 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12586 virtual_call_token, copy_call_info and virtual_call hooks.
12587 (debug_nothing_uid): Remove prototype.
12588 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12589 copy_call_info and virtual_call hooks.
12590 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12591 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12592 * debug.c (do_nothing_debug_hooks): Likewise.
12593 (debug_nothing_uid): Remove.
12594 * doc/invoke.texi (-fenable-icf-debug): Remove.
12595 * common.opt (-fenable-icf-debug): Likewise.
12596
12597 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12598 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12599 call's MEM. Handle functions returning aggregate through a hidden
12600 first pointer. For virtual calls add clobbered pc to call arguments
12601 chain.
12602 * dwarf2out.c (gen_subprogram_die): Emit
12603 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12604 can't be emitted.
12605
12606 PR debug/45882
12607 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12608 * rtl.h (ENTRY_VALUE_EXP): Define.
12609 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12610 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12611 * print-rtl.c (print_rtx): Likewise.
12612 * gengtype.c (adjust_field_rtx_def): Likewise.
12613 * var-tracking.c (vt_add_function_parameter): Adjust
12614 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12615 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12616 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12617 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12618 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12619
12620 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12621 Call var_location debug hook even on CALL_INSNs.
12622 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12623 * rtl.def (ENTRY_VALUE): New.
12624 * dwarf2out.c: Include cfglayout.h.
12625 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12626 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12627 (struct call_arg_loc_node): New type.
12628 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12629 tail_call_site_count): New variables.
12630 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12631 DW_TAG_GNU_call_site_parameter.
12632 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12633 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12634 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12635 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12636 and DW_AT_GNU_all_source_call_sites.
12637 (mem_loc_descriptor): Handle ENTRY_VALUE.
12638 (add_src_coords_attributes): Don't add enything if
12639 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12640 (dwarf2out_abstract_function): Save and clear call_arg_location,
12641 call_site_count and tail_call_site_count around dwarf2out_decl call.
12642 (gen_call_site_die): New function.
12643 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12644 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12645 (dwarf2out_function_decl): Clear call_arg_locations,
12646 call_arg_loc_last, set call_site_count and tail_call_site_count
12647 to -1 and free block_map.
12648 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12649 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12650 followed by any real instructions.
12651 (dwarf2out_begin_function): Set call_site_count and
12652 tail_call_site_count to 0.
12653 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12654 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12655 attempt to force a DIE for it and worst case remove the attribute.
12656 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12657 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12658 the decl itself.
12659 * var-tracking.c: Include tm_p.h.
12660 (vt_stack_adjustments): For calls call note_register_arguments.
12661 (argument_reg_set): New variable.
12662 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12663 ensure the VALUE is resolved.
12664 (call_arguments): New variable.
12665 (prepare_call_arguments): New function.
12666 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12667 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12668 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12669 always use the best expression.
12670 (vt_expand_loc): Add ignore_cur_loc argument.
12671 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12672 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12673 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12674 note for all calls.
12675 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12676 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12677 argument. Don't call cselib_preserve_only_values and
12678 cselib_reset_table.
12679 (note_register_arguments): New function.
12680 (vt_initialize): Compute argument_reg_set. Call
12681 vt_add_function_parameters before processing basic blocks instead of
12682 afterwards. For calls call prepare_call_arguments before calling
12683 cselib_process_insn.
12684 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12685 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12686 (var-tracking.o): Depend on $(TM_P_H).
12687 * cfglayout.h (insn_scope): New prototype.
12688 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12689 * cfglayout.c (insn_scope): No longer static.
12690 * insn-notes.def (CALL_ARG_LOCATION): New.
12691 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12692 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12693 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12694 nothing for DECL_EXTERNAL BLOCK_VARS.
12695
12696 2011-03-16 Alan Modra <amodra@gmail.com>
12697
12698 PR target/45844
12699 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12700 create invalid offset address for vsx splat insn.
12701 * config/rs6000/predicates.md (splat_input_operand): New.
12702 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12703
12704 2011-03-15 Xinliang David Li <davidxl@google.com>
12705
12706 PR c/47837
12707 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12708 (normalize_preds): New function.
12709 (is_use_properly_guarded): Normalize def predicates.
12710
12711 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12712
12713 PR target/46788
12714 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12715 in the output template.
12716
12717 2011-03-15 Richard Guenther <rguenther@suse.de>
12718
12719 PR middle-end/47650
12720 * tree-pretty-print.c (dump_function_declaration): Properly
12721 dump unprototyped and varargs function types.
12722
12723 2011-03-15 Richard Guenther <rguenther@suse.de>
12724
12725 PR tree-optimization/13954
12726 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12727 and friends.
12728
12729 2011-03-15 Richard Guenther <rguenther@suse.de>
12730
12731 PR tree-optimization/48037
12732 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12733 selects into BIT_FIELD_REFs.
12734 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12735 vector select.
12736
12737 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12738
12739 PR tree-optimization/48129
12740 * builtins.c (fold_builtin_snprintf): Convert to type of
12741 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12742 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12743
12744 2011-03-15 Richard Guenther <rguenther@suse.de>
12745
12746 PR tree-optimization/41490
12747 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12748 value but with VUSE.
12749 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12750 return statements.
12751 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12752 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12753 * tree-tailcall.c (find_tail_calls): Ignore returns.
12754
12755 2011-03-15 Richard Guenther <rguenther@suse.de>
12756
12757 PR middle-end/48031
12758 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12759 or variable-indexed array accesses when in gimple form.
12760
12761 2011-03-15 Richard Guenther <rguenther@suse.de>
12762
12763 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12764
12765 2011-03-15 Alan Modra <amodra@gmail.com>
12766
12767 PR target/48032
12768 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12769 presume symbol_refs without a symbol_ref_decl are suitably
12770 aligned, nor other trees we may see here. Handle anchor symbols.
12771 (legitimate_constant_pool_address_p): Comment. Add mode param.
12772 Check cmodel=medium addresses. Adjust all calls.
12773 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12774 creating cmodel=medium optimized access to locals.
12775 * config/rs6000/constraints.md (R): Pass QImode to
12776 legitimate_constant_pool_address_p.
12777 * config/rs6000/predicates.md (input_operand): Pass mode to
12778 legitimate_constant_pool_address_p.
12779 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12780 Update prototype.
12781
12782 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12783
12784 PR target/48053
12785 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12786 64-bit constants being loaded into registers other than GPRs such
12787 as loading 0 into a VSX register.
12788
12789 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12790
12791 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12792
12793 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12794
12795 PR middle-end/47917
12796 * builtins.c (fold_builtin_snprintf): New function.
12797 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12798 (fold_builtin_4): Likewise.
12799
12800 PR middle-end/38878
12801 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12802 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12803 and C - X == X also strip nops from +/-/p+ operand.
12804 When optimizing -X == C, fold C to arg0's type.
12805
12806 PR debug/47946
12807 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12808 emit it as add_AT_int instead of add_AT_unsigned.
12809
12810 2011-03-14 Tom Tromey <tromey@redhat.com>
12811
12812 * unwind-dw2.c: Include sys/sdt.h if it exists.
12813 (_Unwind_DebugHook): Use STAP_PROBE2.
12814 * config.in, configure: Rebuild.
12815 * configure.ac: Check for sys/sdt.h.
12816
12817 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12818
12819 * config/i386/i386.md (ROUND_FLOOR): New constant.
12820 (ROUND_CEIL): Ditto.
12821 (ROUND_TRUNC): Ditto.
12822 (ROUND_MXCSR): Ditto.
12823 (ROUND_NO_EXC): Ditto.
12824 (rint<mode>2): Use new defines instead of numerical constants.
12825 (floor<mode>2): Ditto.
12826 (ceil<mode>2): Ditto.
12827 (btrunc<mode>2): Ditto.
12828 * config/i386/i386-builtin-types.def: Define ROUND function type
12829 aliases.
12830 * config/i386/i386.c (enum ix86_builtins): Add
12831 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12832 (struct builtin_description): Add
12833 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12834 (ix86_expand_sse_round): New static function.
12835 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12836 function types.
12837 (ix86_builtin_vectorized_function): Handle
12838 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12839
12840 2011-03-14 Tom Tromey <tromey@redhat.com>
12841
12842 * c-parser.c (c_parser_asm_string_literal): Clear
12843 warn_overlength_strings.
12844
12845 2011-03-14 Tom Tromey <tromey@redhat.com>
12846
12847 * c-parser.c (disable_extension_diagnostics): Save
12848 warn_overlength_strings.
12849 (restore_extension_diagnostics): Restore warn_overlength_strings.
12850
12851 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12852
12853 * BASE-VER: Change to 4.7.0.
12854
12855 2011-03-14 Richard Guenther <rguenther@suse.de>
12856
12857 PR middle-end/48098
12858 * tree.c (build_vector_from_val): Adjust assert to requirements
12859 and reality.
12860
12861 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12862
12863 PR bootstrap/48102
12864 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12865
12866 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12867
12868 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12869 terms of target_flags_explicit. Adjust copyright year.
12870
12871 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12872 * config/rs6000/t-freebsd: New file. Add override for
12873 LIB2FUNCS_EXTRA.
12874
12875 2011-03-13 Chris Demetriou <cgd@google.com>
12876
12877 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12878 (-fno-diagnostics-show-option): this, to reflect current default.
12879 (-Werror=): Update text about -fno-diagnostics-show-option.
12880
12881 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12882
12883 PR target/48053
12884 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12885 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12886 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12887 mode is not V2DImode or V2DFmode.
12888 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12889 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12890 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12891 registers to 0.
12892 (movdi_internal64): Likewise.
12893
12894 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12895
12896 PR tree-optimization/47127
12897 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12898 parameter.
12899 (set_cloog_options): Same.
12900 (scop_to_clast): Same.
12901 (print_clast_stmt): Do not call cloog_state_malloc and
12902 cloog_state_free.
12903 (print_generated_program): Same.
12904 (gloog): Same.
12905 * graphite-clast-to-gimple.h (cloog_state): Declared.
12906 (scop_to_clast): Adjust declaration.
12907 * graphite.c (cloog_state): Defined here.
12908 (graphite_initialize): Call cloog_state_malloc.
12909 (graphite_finalize): Call cloog_state_free.
12910
12911 2011-03-11 Jason Merrill <jason@redhat.com>
12912
12913 * attribs.c (lookup_attribute_spec): Take const_tree.
12914 * tree.h: Adjust.
12915
12916 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12917
12918 * config/sparc/sparc.c (sparc_option_override): Use
12919 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12920
12921 2011-03-11 Richard Guenther <rguenther@suse.de>
12922
12923 PR tree-optimization/48067
12924 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12925 multiplication result will be only used once on the target
12926 stmt.
12927
12928 2011-03-11 Richard Guenther <rguenther@suse.de>
12929
12930 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12931
12932 2011-03-11 Richard Guenther <rguenther@suse.de>
12933
12934 PR lto/48073
12935 * tree.c (find_decls_types_r): Do not walk types only reachable
12936 from IDENTIFIER_NODEs.
12937
12938 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12939
12940 PR middle-end/48044
12941 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12942 all vnode->force_output nodes as needed.
12943
12944 2011-03-11 Jason Merrill <jason@redhat.com>
12945
12946 PR c++/48069
12947 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12948 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12949
12950 2011-03-11 Martin Jambor <mjambor@suse.cz>
12951
12952 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12953 cgraph_node.
12954
12955 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12956
12957 PR tree-optimization/48063
12958 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12959 inline functions called once if !tree_can_inline_p (node->callers).
12960
12961 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12962
12963 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12964 extra_objs.
12965 * config/score/score3.c: Delete.
12966 * config/score/score3.h: Delete.
12967 * config/score/mul-div.S: Delete.
12968 * config/score/sfp-machine.h: Add new file.
12969 * config/score/constraints.md: Add new file.
12970 * config/score/t-score-softfp: Add new file.
12971 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12972 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12973 (score7_extra_constraint): Delete.
12974 (score7_option_override): Remove unused code.
12975 * config/score/score.c: Remove score3 and score5 define and code.
12976 * config/score/score.h: Remove score3 and score5 define and code.
12977 * config/score/score.md: Remove score3 template and unusual insn.
12978 * config/score/score.opt: Remove score3 and score5 options.
12979
12980 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12981
12982 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12983 when _HPUX_SOURCE is defined.
12984 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12985
12986 2011-03-10 Jason Merrill <jason@redhat.com>
12987
12988 PR c++/48029
12989 * stor-layout.c (layout_type): Don't set structural equality
12990 on arrays of incomplete type.
12991 * tree.c (type_hash_eq): Handle comparing them properly.
12992
12993 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12994
12995 PR debug/48043
12996 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12997 result mode matches original rtl mode.
12998
12999 2011-03-10 Nick Clifton <nickc@redhat.com>
13000
13001 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13002 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13003
13004 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13005
13006 PR rtl-optimization/47866
13007 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13008 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13009 if target wasn't scalar.
13010 * function.c (assign_stack_temp_for_type): Assert that neither
13011 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13012 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13013 macro.
13014 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13015
13016 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13017
13018 * config/s390/s390-protos.h (s390_label_align): New prototype.
13019 * config/s390/s390.c (s390_label_align): New function.
13020 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13021
13022 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13023
13024 PR target/47755
13025 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13026 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13027 (output_vec_const_move): Ditto.
13028
13029 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13030
13031 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13032 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13033 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13034 Change 'rclass' argument and result type to reg_class_t.
13035 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13036
13037 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13038
13039 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13040 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13041 (TARGET_MEMORY_MOVE_COST): Define.
13042 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13043
13044 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13045
13046 PR debug/47881
13047 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13048 removed anything.
13049
13050 PR tree-optimization/48022
13051 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13052 for EQ/NE_EXPR.
13053
13054 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13055
13056 PR debug/47991
13057 * var-tracking.c (find_use_val): Return NULL for
13058 cui->sets && cui->store_p BLKmode MEMs.
13059
13060 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13061
13062 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13063 Remove.
13064 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13065 xstormy16_print_operand_address): Remove.
13066 * config/stormy16/stormy16.c (xstormy16_print_operand,
13067 xstormy16_print_operand_address): Make static.
13068 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13069
13070 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13071
13072 PR target/47862
13073 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13074 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13075 before definition.
13076
13077 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13078
13079 PR bootstrap/48000
13080 * cfgloopmanip.c (fix_bb_placements): Return immediately
13081 if FROM is BASE_LOOP's header.
13082
13083 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13084
13085 * gimplify.c (gimplify_function_tree): Fix building calls
13086 to __builtin_return_address.
13087
13088 2011-03-07 Alan Modra <amodra@gmail.com>
13089
13090 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13091 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13092 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13093 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13094 return_mode args.
13095 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13096 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13097 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13098 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13099 * config/rs6000/rs6000.c
13100 (rs6000_elf_end_indicate_exec_stack): Rename to..
13101 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13102 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13103 (rs6000_file_start): ..here.
13104 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13105 file scope variables.
13106 (call_ABI_of_interest): New function.
13107 (init_cumulative_args): Set above vars when function return value
13108 is a float, vector, or small struct.
13109 (rs6000_function_arg_advance_1): Likewise for function args.
13110 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13111 references float args.
13112
13113 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13114
13115 * doc/cfg.texi: Remove "See" before @ref.
13116 * doc/invoke.texi: Likewise.
13117
13118 2011-03-05 Jason Merrill <jason@redhat.com>
13119
13120 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13121
13122 2011-03-05 Anthony Green <green@moxielogic.com>
13123
13124 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13125
13126 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13127
13128 PR rtl-optimization/47899
13129 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13130 to flow_loop_nested_p when moving the loop upward.
13131
13132 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13133
13134 PR target/47719
13135 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13136
13137 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13138
13139 PR tree-optimization/47967
13140 * ipa-cp.c (build_const_val): Return NULL instead of creating
13141 VIEW_CONVERT_EXPR for mismatching sizes.
13142 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13143 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13144 give up on versioning.
13145
13146 2011-03-05 Alan Modra <amodra@gmail.com>
13147
13148 PR target/47986
13149 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13150 full cmodel medium/large lo_sum + high addresses.
13151
13152 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13153
13154 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13155 pool references in UNSPEC_LTREL_OFFSET.
13156
13157 2011-03-04 Jan Hubicka <jh@suse.cz>
13158
13159 PR lto/47497
13160 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13161 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13162 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13163 Add node pointers.
13164 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13165 cgraph_add_thunk): Add node pointers.
13166 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13167 associated to right node.
13168 (input_node): Update use of cgraph_same_body_alias
13169 and cgraph_add_thunk.
13170
13171 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13172
13173 * config/i386/i386.opt (mprefer-avx128): New flag.
13174 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13175 modes when the flag -mprefer-avx128 is on.
13176
13177 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13178
13179 * dwarf2out.c (compare_loc_operands): Fix address handling.
13180
13181 2011-03-04 Alan Modra <amodra@gmail.com>
13182
13183 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13184
13185 2011-03-04 Richard Guenther <rguenther@suse.de>
13186
13187 PR middle-end/47968
13188 * expmed.c (extract_bit_field_1): Prefer vector modes that
13189 vec_extract patterns can handle.
13190
13191 2011-03-04 Richard Guenther <rguenther@suse.de>
13192
13193 PR middle-end/47975
13194 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13195
13196 2011-03-04 Richard Henderson <rth@redhat.com>
13197
13198 * explow.c (emit_stack_save): Remove 'after' parameter.
13199 (emit_stack_restore): Likewise.
13200 * expr.h: Update to match.
13201 * builtins.c, calls.c, stmt.c: Likewise.
13202 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13203 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13204 * function.c (expand_function_end): Insert the emit_stack_save
13205 sequence before parm_birth_insn instead of after.
13206
13207 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13208
13209 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13210 (ssse3_pmaddubsw128): Ditto.
13211 (ssse3_pmaddubsw): Ditto.
13212
13213 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13214
13215 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13216
13217 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13218
13219 PR c/47963
13220 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13221 on TYPE_SIZE_UNIT if it is a DECL.
13222
13223 PR debug/47283
13224 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13225 first operand is not is_gimple_mem_ref_addr, try to fold it.
13226 If the operand still isn't is_gimple_mem_ref_addr, clear
13227 MEM_EXPR on op0.
13228
13229 2011-03-03 Richard Guenther <rguenther@suse.de>
13230
13231 PR middle-end/47283
13232 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13233 match comment.
13234 (refs_may_alias_p_1): For release branches return true if
13235 we are confused by our input.
13236
13237 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13238
13239 * config/s390/s390.c (s390_function_value): Rename to ...
13240 (s390_function_and_libcall_value): ... this.
13241 (s390_function_value): New function.
13242 (s390_libcall_value): New function.
13243 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13244 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13245 target macro definitions.
13246 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13247
13248 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13249
13250 * config/i386/freebsd64.h (CC1_SPEC): Define.
13251 * config/i386/linux64.h (CC1_SPEC): Define.
13252 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13253
13254 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13255
13256 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13257 Remove.
13258 * config/stormy16/stormy16.c: Include reload.h.
13259 (xstormy16_memory_move_cost): New function.
13260 (TARGET_MEMORY_MOVE_COST): Define.
13261
13262 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13263
13264 PR rtl-optimization/47925
13265 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13266 with side effects. Remove the more-specific check for volatile asms.
13267
13268 2011-03-02 Alan Modra <amodra@gmail.com>
13269
13270 PR target/47935
13271 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13272 toc relative addresses for valid offsets.
13273
13274 2011-03-01 Richard Guenther <rguenther@suse.de>
13275
13276 PR tree-optimization/47890
13277 * tree-vect-loop.c (get_initial_def_for_induction): Set
13278 related stmt properly.
13279
13280 2011-03-01 Richard Guenther <rguenther@suse.de>
13281
13282 PR lto/47924
13283 * lto-streamer.c (lto_record_common_node): Also register
13284 the canonical type.
13285
13286 2011-03-01 Richard Guenther <rguenther@suse.de>
13287
13288 PR lto/46911
13289 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13290 Do not stream DECL_ABSTRACT_ORIGIN.
13291 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13292 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13293 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13294 Do not stream DECL_ABSTRACT_ORIGIN.
13295 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13296 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13297
13298 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13299
13300 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13301 FUNCTION_VALUE_REGNO_P): Remove.
13302 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13303 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13304 Add 'outgoing' argument.
13305 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13306 function.
13307 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13308 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13309
13310 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13311
13312 PR debug/28047
13313 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13314 (lookup_filename): Likewise.
13315 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13316
13317 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13318 Jakub Jelinek <jakub@redhat.com>
13319
13320 PR middle-end/47893
13321 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13322 (assign_stack_local_1): Change last argument type to int.
13323 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13324 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13325 don't record padding space into frame_space_list nor use those areas.
13326 (assign_stack_local): Adjust caller.
13327 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13328 of assign_stack_local, pass 0 as last argument.
13329 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13330 callers.
13331
13332 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13333
13334 PR debug/47283
13335 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13336 Use target address_mode and pointer_mode hooks instead of hardcoded
13337 Pmode and ptr_mode. Handle some simple cases of extending if
13338 POINTERS_EXTEND_UNSIGNED < 0.
13339 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13340 Call convert_debug_memory_address.
13341 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13342 convert_debug_memory_address.
13343
13344 PR middle-end/46790
13345 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13346 * configure: Regenerated.
13347 * config.in: Regenerated.
13348 * varasm.c (default_function_section): Return NULL
13349 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13350
13351 2011-02-28 Martin Jambor <mjambor@suse.cz>
13352
13353 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13354 the description to match the printed values.
13355
13356 2011-02-28 Richard Guenther <rguenther@suse.de>
13357
13358 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13359 of the copied scope tree.
13360
13361 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13362
13363 * doc/extend.texi (Function Attributes): Avoid deeply (and
13364 wrongly) nested tables.
13365
13366 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13367
13368 PR middle-end/47903
13369 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13370 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13371 r isn't op0 nor op1.
13372
13373 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13374
13375 * config/avr/avr.md: Remove magic comment for emacs.
13376
13377 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13378
13379 PR target/45261
13380 * config/avr/avr.c (avr_option_override): Use error on bad options.
13381 (avr_help): New function.
13382 (TARGET_HELP): Define.
13383
13384 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13385
13386 PR target/42240
13387 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13388 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13389
13390 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13391
13392 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13393 (ARM Options): Ditto.
13394 (i386 and x86-64 Options): Ditto.
13395 (RX Options): Ditto.
13396 (SPARC Options): Ditto.
13397
13398 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13399
13400 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13401 FreeBSD 6 and later. Generally use cpu generic.
13402
13403 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13404
13405 * doc/cpp.texi: Update copyright years.
13406
13407 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13408
13409 PR target/46898
13410 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13411
13412 2011-02-25 Jon Beniston <jon@beniston.com>
13413
13414 PR target/46898
13415 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13416 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13417 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13418 (lm32_block_move_inline): Add type cast to remove warning.
13419 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13420 (gen_int_relational): Move declarations to start of function.
13421
13422 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13423
13424 PR tree-optimization/45470
13425 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13426 can throw internally only.
13427 * tree-vect-stmts.c (vectorizable_call): Likewise.
13428
13429 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13430
13431 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13432 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13433 * config/stormy16/stormy16-protos.h
13434 (xstormy16_preferred_reload_class): Remove.
13435 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13436 static. Change 'rclass' argument and return type to reg_class_t.
13437 (TARGET_PREFERRED_RELOAD_CLASS,
13438 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13439
13440 2011-02-24 Richard Guenther <rguenther@suse.de>
13441
13442 * lto-streamer-in.c (input_bb): Do not find referenced vars
13443 in debug statements.
13444
13445 2011-02-23 Jason Merrill <jason@redhat.com>
13446
13447 * common.opt (fabi-version): Document v5 and v6.
13448
13449 2011-02-23 Richard Guenther <rguenther@suse.de>
13450
13451 PR tree-optimization/47849
13452 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13453
13454 2011-02-23 Jie Zhang <jie@codesourcery.com>
13455
13456 * opts-common.c (decode_cmdline_option): Print empty string
13457 argument as "" in decoded->orig_option_with_args_text.
13458 * gcc.c (execute): Print empty string argument as ""
13459 in the verbose output.
13460 (do_spec_1): Keep empty string argument.
13461
13462 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13463
13464 * config.gcc: Declare score-* and crx-* obsolete.
13465
13466 2011-02-23 Jie Zhang <jie@codesourcery.com>
13467
13468 PR rtl-optimization/47763
13469 * web.c (web_main): Ignore naked clobber when replacing register.
13470
13471 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13472
13473 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13474 Remove.
13475
13476 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13477
13478 PR doc/47848
13479 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13480
13481 2011-02-22 Mike Stump <mikestump@comcast.net>
13482
13483 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13484 assembler.
13485 * configure: Regenerate.
13486
13487 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13488
13489 PR rtl-optimization/46002
13490 * ira-color.c (update_copy_costs): Change class intersection
13491 test to reg_class_contents[] test of 'hard_regno'.
13492
13493 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13494
13495 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13496 than Driver option.
13497 * config/hpux11.opt (mt): Likewise.
13498 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13499 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13500 * config/vax/elf.opt (mno-asm-pic): Likewise.
13501 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13502
13503 2011-02-21 Mike Stump <mikestump@comcast.net>
13504
13505 PR target/47822
13506 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13507 tree so we can get save the type.
13508 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13509 for CFString instead of trying to use past the end of the builtins.
13510 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13511 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13512 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13513 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13514 Rename to darwin_builtin_cfstring.
13515 (darwin_init_cfstring_builtins): Return the built type.
13516
13517 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13518
13519 PR target/47840
13520 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13521 (_mm256_insert_epi64): Use _mm_insert_epi64.
13522
13523 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13524
13525 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13526 * config/stormy16/stormy16-protos.h
13527 (xstormy16_mode_dependent_address_p): Remove.
13528 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13529 Make static. Change return type to bool. Change argument type to
13530 const_rtx. Remove dead code.
13531 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13532
13533 2011-02-21 Richard Guenther <rguenther@suse.de>
13534
13535 PR lto/47820
13536 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13537 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13538 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13539 TUs context.
13540 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13541 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13542
13543 2011-02-20 Richard Guenther <rguenther@suse.de>
13544
13545 PR lto/47822
13546 * tree.c (free_lang_data_in_decl): Clean builtins from
13547 the TU decl BLOCK_VARS.
13548
13549 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13550
13551 PR debug/47620
13552 PR debug/47630
13553 * haifa-sched.c (fix_tick_ready): Skip tick computation
13554 for debug insns.
13555
13556 2011-02-19 Richard Guenther <rguenther@suse.de>
13557
13558 PR lto/47647
13559 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13560 Remove lazy BLOCK_VARS streaming.
13561 (lto_input_ts_block_tree_pointers): Likewise.
13562 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13563
13564 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13565
13566 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13567
13568 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13569
13570 * config/i386/biarch32.h, config/i386/mach.h,
13571 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13572
13573 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13574
13575 PR target/47800
13576 * config/i386/i386.md (peephole2 for shift and plus): Use
13577 operands[1] original mode in the first insn.
13578
13579 2011-02-18 Mike Stump <mikestump@comcast.net>
13580
13581 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13582
13583 2011-02-18 Jan Hubicka <jh@suse.cz>
13584
13585 PR middle-end/47788
13586 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13587 to zero when the function is not inlinable at all.
13588
13589 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13590
13591 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13592 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13593 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13594 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13595 * config/pa/t-pa64: Likewise.
13596 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13597
13598 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13599
13600 PR driver/47787
13601 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13602
13603 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13604
13605 PR target/47792
13606 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13607
13608 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13609
13610 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13611 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13612 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13613 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13614 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13615 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13616 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13617 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13618 m32r_legitimate_address_p): New functions.
13619 * config/m32r/constraints.md (constraint "S"): Don't use
13620 STORE_PREINC_PREDEC_P.
13621 (constraint "U"): Don't use LOAD_POSTINC_P.
13622
13623 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13624
13625 PR rtl-optimization/46178
13626 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13627 compute ira_hard_regno_cover_class[].
13628
13629 2011-02-18 Richard Guenther <rguenther@suse.de>
13630
13631 PR lto/47798
13632 * lto-streamer.h (lto_global_var_decls): Declare.
13633 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13634 statics for global var processing.
13635
13636 2011-02-18 Richard Guenther <rguenther@suse.de>
13637
13638 PR tree-optimization/47737
13639 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13640 edge dominance check.
13641
13642 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13643
13644 PR debug/47780
13645 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13646 avoid invalid rtx sharing.
13647
13648 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13649
13650 * doc/cpp.texi (Obsolete Features): Add background on the
13651 origin of assertions.
13652
13653 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13654
13655 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13656 objc_abi == 2.
13657 * config/darwin.c (output_objc_section_asm_op): Added support for
13658 ABI v1 and v2.
13659 (is_objc_metadata): New.
13660 (darwin_objc2_section): New.
13661 (darwin_objc1_section): New.
13662 (machopic_select_section): Added support for ABI v1 and v2.
13663 (darwin_emit_objc_zeroed): New.
13664 (darwin_output_aligned_bss): Detect objc metadata and treat it
13665 appropriately.
13666 (darwin_asm_output_aligned_decl_common): Same.
13667 (darwin_asm_output_aligned_decl_local): Same.
13668 * config/darwin-sections.def: Updated for ABI v1 and v2.
13669 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13670 compiling Objective-C code for the NeXT runtime, default to using
13671 ABI version 0 for 32-bit, and version 2 for 64-bit.
13672
13673 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13674
13675 * common.opt (optimize_fast): New Variable.
13676 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13677 instead of local variable ofast.
13678
13679 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13680
13681 * doc/invoke.texi (fobjc-abi-version): Documented.
13682 (fobjc-nilcheck): Documented.
13683 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13684 version.
13685
13686 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13687
13688 PR driver/47390
13689 * common.opt (export-dynamic): New Driver option.
13690 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13691
13692 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13693
13694 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13695
13696 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13697 Jan Hubicka <jh@suse.cz>
13698
13699 PR debug/47106
13700 PR debug/47402
13701 * cfgexpand.c (account_used_vars_for_block): Remove.
13702 (estimated_stack_frame_size): Use referenced vars.
13703 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13704 that were referenced in the original function. Test src_fn
13705 rather than cfun. Drop redundant get_var_ann.
13706 (setup_one_parameter): Drop redundant get_var_ann.
13707 (declare_return_variable): Likewise.
13708 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13709 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13710 * ipa-inline.c (compute_inline_parameters): Do not compute
13711 disregard_inline_limits here.
13712 (compute_inlinable_for_current, pass_inlinable): New.
13713 (pass_inline_parameters): Require PROP_referenced_vars.
13714 * cgraphunit.c (cgraph_process_new_functions): Don't run
13715 compute_inline_parameters explicitly unless function is in SSA form.
13716 (cgraph_analyze_function): Set .disregard_inline_limits.
13717 * tree-sra.c (convert_callers): Compute inliner parameters
13718 only for functions already in SSA form.
13719
13720 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13721
13722 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13723 -mlittle-endian-data.
13724
13725 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13726
13727 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13728 -mno-fpu, not -fpu and -no-fpu.
13729 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13730 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13731
13732 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13733
13734 PR target/43653
13735 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13736 input reload with PLUS RTX.
13737
13738 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13739
13740 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13741 of InverseVar(MDMX).
13742
13743 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13744
13745 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13746 --m4-340.
13747
13748 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13749
13750 * config/mn10300/mn10300.opt (mno-crt0): New.
13751
13752 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13753
13754 * config/m68k/uclinux.opt (static-libc): New Driver option.
13755
13756 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13757
13758 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13759
13760 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13761
13762 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13763 %{muser-extend-enabled}.
13764
13765 2011-02-16 Richard Guenther <rguenther@suse.de>
13766
13767 PR tree-optimization/47738
13768 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13769 the TODO from tree_predictive_commoning.
13770
13771 2011-02-15 Jeff Law <law@redhat.com>
13772
13773 Revert
13774 2011-01-25 Jeff Law <law@redhat.com>
13775
13776 PR rtl-optimization/37273
13777 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13778 handle them like argument loads from stack slots. Do not double
13779 count memory for memory constants and argument loads from stack slots.
13780
13781 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13782
13783 PR middle-end/47725
13784 * combine.c (cant_combine_insn_p): Revert the last change.
13785
13786 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13787
13788 PR target/47755
13789 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13790 mode for vector constants. Remove code that checks for TImode.
13791
13792 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13793
13794 PR debug/47106
13795 PR debug/47402
13796 * cgraph.h (compute_inline_parameters): Return void.
13797 * ipa-inline.c (compute_inline_parameters): Adjust.
13798
13799 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13800
13801 PR debug/47106
13802 PR debug/47402
13803 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13804 rather than decl.
13805 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13806 * ipa-inline.c (compute_inline_parameters): Adjust.
13807
13808 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13809
13810 PR debug/47106
13811 PR debug/47402
13812 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13813 Adjust all users. Pass FN to...
13814 * tree-flow-inline.h (first_referenced_var): ... this. Add
13815 fn argument.
13816 * ipa-struct-reorg.c: Adjust.
13817 * tree-dfa.c: Adjust.
13818 * tree-into-ssa.c: Adjust.
13819 * tree-sra.c: Adjust.
13820 * tree-ssa-alias.c: Adjust.
13821 * tree-ssa-live.c: Adjust.
13822 * tree-ssa.c: Adjust.
13823 * tree-ssanames.c: Adjust.
13824 * tree-tailcall.c: Adjust.
13825
13826 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13827
13828 PR debug/47106
13829 PR debug/47402
13830 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13831 Adjust all callers.
13832 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13833 * tree-flow-inline.h: Adjust.
13834 * gimple-pretty-print.c: Adjust.
13835 * tree-into-ssa.c: Adjust.
13836 * tree-ssa.c: Adjust.
13837 * cfgexpand.c: Adjust.
13838
13839 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13840
13841 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13842 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13843 (EXTRA_CONSTRAINT): Delete.
13844 * config/iq2000/constraints.md: New file.
13845 * config/iq2000/iq2000.md: Include it.
13846 (define_insn ""): Delete.
13847 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13848 unsupported constraint letters from patterns.
13849 (call_value, call_value_internal1): Likewise.
13850 (call_value_multiple_internal1): Likewise.
13851
13852 2011-02-15 Nick Clifton <nickc@redhat.com>
13853
13854 * config/mn10300/mn10300.c: Include tm-constrs.h.
13855 (struct liw_data): New data structure describing an LIW candidate
13856 instruction.
13857 (extract_bundle): Use struct liw_data. Allow small integer
13858 operands for some instructions.
13859 (check_liw_constraints): Use struct liw_data. Remove swapped
13860 parameter. Add comments describing the checks. Fix bug when
13861 assigning the source of liw1 to the source of liw2.
13862 (liw_candidate): Delete. Code moved into extract_bundle.
13863 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13864 before swapping.
13865 * config/mn10300/predicates.md (liw_operand): New predicate.
13866 Allows registers and small integer constants.
13867 * config/mn10300/constraints.md (O): New constraint. Accetps
13868 integers in the range -8 to +7 inclusive.
13869 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13870 for moving a small integer into a register. Give this alternative
13871 LIW attributes.
13872 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13873 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13874 using the J,K,L and M constraints,
13875 (liw): Remove SI mode on second operands to allow for HI and QI
13876 mode values.
13877 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13878 instruction.
13879
13880 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13881
13882 PR middle-end/47725
13883 * combine.c (cant_combine_insn_p): Check zero/sign extended
13884 hard registers.
13885
13886 2011-02-15 Richard Guenther <rguenther@suse.de>
13887
13888 PR tree-optimization/47743
13889 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13890 for a non-type-compatible VN lookup bail out.
13891
13892 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13893
13894 * config/fr30/constraints.md: New file.
13895 * config/fr30/fr30.md: Include it.
13896 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13897 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13898 (EXTRA_CONSTRAINT): Delete.
13899
13900 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13901
13902 * config/frv/constraints.md: New file.
13903 * config/frv/predicates.md: Include it.
13904 * config/frv/frv.c (reg_class_from_letter): Delete.
13905 (frv_option_override): Don't initialize it.
13906 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13907 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13908 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13909 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13910 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13911 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13912 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13913 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13914 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13915 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13916 (REG_CLASS_FROM_CONSTRAINT): Delete.
13917
13918 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13919
13920 PR middle-end/47581
13921 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13922 if frame size is 0 in a leaf function.
13923
13924 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13925
13926 PR pch/14940
13927 * config/alpha/host-osf.c: New file.
13928 * config/alpha/x-osf: New file.
13929 * config.host (alpha*-dec-osf*): Use it.
13930
13931 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13932
13933 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13934 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13935 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13936 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13937 type to const_rtx.
13938 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13939
13940 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13941
13942 * config/stormy16/constraints.md: New file.
13943 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13944 Use satisfies_constraint_Q and satisfies_constraint_R.
13945 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13946 Delete.
13947 (xstormy16_legitiamte_address_p): Declare.
13948 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13949 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13950 (EXTRA_CONSTRAINT): Delete.
13951 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13952 Un-staticize.
13953 (xstormy16_extra_constraint_p): Delete.
13954
13955 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13956
13957 PR tree-optimization/46494
13958 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13959 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13960 (pass_rtl_loop_done): Add TODO_verify_flow.
13961 * fwprop.c (pass_rtl_fwprop): Likewise.
13962 * modulo-sched.c (pass_sms): Likewise.
13963 * tree-ssa-dom.c (pass_dominator): Likewise.
13964 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13965 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13966 (pass_tree_loop_done): Likewise.
13967 * tree-ssa-pre.c (execute_pre): Likewise.
13968 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13969 * tree-ssa-sink.c (pass_sink_code): Likewise.
13970 * tree-vrp.c (pass_vrp): Likewise.
13971
13972 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13973
13974 * config/v850/constraints.md: New file.
13975 * config/v850/v850.md: Include it.
13976 * config/v850/predicates.md (reg_or_0_operand): Use
13977 satisfies_constraint_G.
13978 (special_symbolref_operand): Use satisfies_constraint_K.
13979 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13980 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13981 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13982 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13983 (EXTRA_CONSTRAINT): Delete.
13984 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13985 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13986 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13987
13988 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13989
13990 PR target/47696
13991 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13992 description.
13993
13994 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13995
13996 * config/mcore/constraints.md: New file.
13997 * config/mcore/mcore.md: Include it.
13998 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13999 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14000 (REG_CLASS_FROM_LETTER): Delete.
14001 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14002 insn_const_int_ok_for_constraint.
14003 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14004 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14005 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14006 (EXTRA_CONSTRAINT): Delete.
14007
14008 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14009
14010 PR ada/41929
14011 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14012 (IS_SIGHANDLER): Define.
14013 (sparc64_is_sighandler): New function, split off from
14014 sparc64_fallback_frame_state.
14015 (sparc_is_sighandler): New function, split off from
14016 sparc_fallback_frame_state.
14017 (sparc64_fallback_frame_state): Merge with ...
14018 (sparc_fallback_frame_state): ... this into ...
14019 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14020 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14021 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14022 stack instead of hardcoded offsets.
14023
14024 2011-02-14 Andriy Gapon <avg@freebsd.org>
14025
14026 PR target/45808
14027 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14028
14029 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14030
14031 * configure: Regenerate.
14032
14033 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14034
14035 PR driver/45731
14036 * gcc.c (asm_options): Correct spec matching --target-help.
14037
14038 2011-02-12 Martin Jambor <mjambor@suse.cz>
14039
14040 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14041 to gimple call error.
14042
14043 2011-02-12 Mike Stump <mikestump@comcast.net>
14044
14045 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14046 comments in backslash regions.
14047
14048 2011-02-12 Mike Stump <mikestump@comcast.net>
14049 Jakub Jelinek <jakub@redhat.com>
14050 Iain Sandoe <iains@gcc.gnu.org>
14051
14052 PR target/47324
14053 * dwarf2out.c (output_cfa_loc): When required, apply the
14054 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14055 (output_loc_sequence): Likewise.
14056 (output_loc_operands_raw): Likewise.
14057 (output_loc_sequence_raw): Likewise.
14058 (output_cfa_loc): Likewise.
14059 (output_loc_list): Suppress register number adjustment when
14060 calling output_loc_sequence()
14061 (output_die): Likewise.
14062
14063 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14064
14065 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14066 Remove macros.
14067 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14068 xtensa_memory_move_cost): New functions.
14069 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14070
14071 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14072
14073 PR lto/47225
14074 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14075 in the current directory.
14076 * configure: Rebuilt.
14077
14078 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14079
14080 * config/darwin.c (darwin_override_options): Add a hunk missed
14081 from the commit of r168571. Trim comment line lengths and
14082 correct indents of the preceding block.
14083
14084 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14085
14086 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14087 the switch.
14088
14089 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14090
14091 * common.opt (nostartfiles): New Driver option.
14092
14093 2011-02-11 Xinliang David Li <davidxl@google.com>
14094
14095 PR tree-optimization/47707
14096 * tree-chrec.c (convert_affine_scev): Keep type precision.
14097
14098 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14099
14100 PR tree-optimization/47420
14101 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14102
14103 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14104
14105 PR rtl-optimization/47614
14106 * rtl.h (check_for_inc_dec): Declare.
14107 * dse.c (check_for_inc_dec): Externalize...
14108 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14109 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14110
14111 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14112
14113 PR driver/47678
14114 * gcc.c (main): Do not compile inputs if there were errors in
14115 option handling.
14116 * opts-common.c (read_cmdline_option): Check for wrong language
14117 after other error checks.
14118
14119 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14120
14121 * cgraph.c: Fix comment typos.
14122 * cgraph.h: Likewise.
14123 * cgraphunit.c: Likewise.
14124 * ipa-cp.c: Likewise.
14125 * ipa-inline.c: Likewise.
14126 * ipa-prop.c: Likewise.
14127 * ipa-pure-const.c: Likewise.
14128 * ipa-ref.c: Likewise.
14129 * ipa-reference.c: Likewise.
14130
14131 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14132
14133 PR debug/47684
14134 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14135
14136 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14137
14138 PR testsuite/47400
14139 * doc/sourcebuild.texi (Require Support): Document
14140 dg-require-ascii-locale.
14141
14142 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14143
14144 * doc/lto.texi (Write summary): Fix missing parentheses.
14145
14146 2011-02-10 DJ Delorie <dj@redhat.com>
14147
14148 * config/m32c/m32c.c (m32c_option_override): Disable
14149 -fcombine-stack-adjustments until flag value tracking and compare
14150 optimization can be rewritten.
14151
14152 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14153
14154 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14155 PROCESSOR_POWER7.
14156 (PROCESSOR_DEFAULT64): Likewise.
14157
14158 2011-02-10 Richard Henderson <rth@redhat.com>
14159
14160 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14161 change from 2011-02-03.
14162 * config/rx/rx.c (flags_from_code): Likewise.
14163 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14164 is valid, n/pz otherwise.
14165 (rx_select_cc_mode): Return CCmode if Y is not zero.
14166
14167 2011-02-10 Richard Guenther <rguenther@suse.de>
14168
14169 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14170
14171 2011-02-10 Richard Guenther <rguenther@suse.de>
14172
14173 PR tree-optimization/47677
14174 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14175
14176 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14177
14178 PR target/47665
14179 * combine.c (make_compound_operation): Only change shifts into
14180 multiplication for SCALAR_INT_MODE_P.
14181
14182 2011-02-10 Jie Zhang <jie@codesourcery.com>
14183
14184 PR testsuite/47622
14185 Revert
14186 2011-02-05 Jie Zhang <jie@codesourcery.com>
14187 PR debug/42631
14188 * web.c (entry_register): Don't clobber the number of the
14189 first uninitialized reference in used[].
14190
14191 2011-02-09 Richard Guenther <rguenther@suse.de>
14192
14193 PR tree-optimization/47664
14194 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14195 all edges again.
14196
14197 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14198
14199 PR target/46481
14200 PR target/47032
14201 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14202 PROCESSOR_POWER7.
14203 (PROCESSOR_DEFAULT64): Same.
14204 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14205
14206 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14207
14208 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14209
14210 2011-02-09 Martin Jambor <mjambor@suse.cz>
14211
14212 PR middle-end/45505
14213 * tree-sra.c (struct access): New flags grp_scalar_read and
14214 grp_scalar_write. Changed description of assignment read and write
14215 flags.
14216 (dump_access): Dump new flags, reorder all of them.
14217 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14218 to detect multiple scalar reads.
14219 (analyze_access_subtree): Use the new scalar read write flags instead
14220 of the old flags. Adjusted comments.
14221
14222 2011-02-08 DJ Delorie <dj@redhat.com>
14223
14224 PR target/47548
14225 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14226 patterns.
14227
14228 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14229
14230 * config/m68k/uclinux.opt: New.
14231 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14232
14233 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14234
14235 * config/cris/elf.opt (sim): New Driver option.
14236
14237 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14238
14239 * config/xtensa/elf.opt: New.
14240 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14241
14242 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14243
14244 * config/vax/elf.opt: New.
14245 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14246
14247 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14248
14249 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14250
14251 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14252
14253 * config/gnu-user.opt: New.
14254 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14255 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14256 *-*-uclinux*): Use gnu-user.opt.
14257
14258 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14259
14260 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14261 * config/i386/gnu.h (CPP_SPEC): Likewise.
14262
14263 2011-02-08 Ian Lance Taylor <iant@google.com>
14264
14265 * common.opt (fcx-limited-range): Add SetByCombined flag.
14266 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14267 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14268 (fassociative-math, freciprocal-math): Likewise.
14269 (funsafe-math-optimizations): Likewise.
14270 * opth-gen.awk: Handle SetByCombined.
14271 * optc-gen.awk: Likewise.
14272 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14273 (set_unsafe_math_optimizations_flags): Likewise.
14274 * doc/options.texi (Option properties): Document SetByCombined.
14275
14276 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14277
14278 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14279 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14280 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14281 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14282 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14283
14284 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14285
14286 PR tree-optimization/46834
14287 PR tree-optimization/46994
14288 PR tree-optimization/46995
14289 * graphite-sese-to-poly.c (used_outside_reduction): New.
14290 (detect_commutative_reduction): Call used_outside_reduction.
14291 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14292 translate_scalar_reduction_to_array only when at least one
14293 loop-phi/close-phi tuple has been detected.
14294
14295 2011-02-08 Richard Guenther <rguenther@suse.de>
14296
14297 PR middle-end/47639
14298 * tree-vect-generic.c (expand_vector_operations_1): Update
14299 stmts here ...
14300 (expand_vector_operations): ... not here. Cleanup EH info
14301 and the CFG if required.
14302
14303 2011-02-08 Richard Guenther <rguenther@suse.de>
14304
14305 PR tree-optimization/47641
14306 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14307 require type compatibility.
14308
14309 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14310
14311 * gimple-low.c (lower_function_body): Don't remove the location of
14312 the return statement here.
14313 (lower_gimple_return): Do it here instead but only if the return
14314 statement is actually used twice.
14315
14316 2011-02-08 Richard Guenther <rguenther@suse.de>
14317
14318 PR tree-optimization/47632
14319 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14320 unused up_to_stmt parameter, return whether cfg-cleanup is
14321 necessary, remove EH info properly.
14322 (forward_propagate_into_gimple_cond): Adjust caller.
14323 (forward_propagate_into_cond): Likewise.
14324 (forward_propagate_comparison): Likewise.
14325 (tree_ssa_forward_propagate_single_use_vars): Make
14326 forward_propagate_comparison case similar to the two others.
14327
14328 2011-02-08 Nick Clifton <nickc@redhat.com>
14329
14330 * config/mn10300/mn10300.opt (mliw): New command line option.
14331 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14332 (liw_bundling): New automaton.
14333 (liw): New attribute.
14334 (liw_op): New attribute.
14335 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14336 (movsi_internal): Add LIW attributes.
14337 (andsi3): Likewise.
14338 (iorsi3): Likewise.
14339 (xorsi3): Likewise.
14340 (addsi3): Separate register and immediate alternatives.
14341 Add LIW attributes.
14342 (subsi3): Likewise.
14343 (cmpsi): Likewise.
14344 (aslsi3): Likewise.
14345 (lshrsi3): Likewise.
14346 (ashrsi3): Likewise.
14347 (liw): New pattern.
14348 * config/mn10300/mn10300.c (liw_op_names): New
14349 (mn10300_print_operand): Handle 'W' operand descriptor.
14350 (extract_bundle): New function.
14351 (check_liw_constraints): New function.
14352 (liw_candidate): New function.
14353 (mn10300_bundle_liw): New function.
14354 (mn10300_reorg): New function.
14355 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14356 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14357 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14358 __LIW__ or __NO_LIW__.
14359 * doc/invoke.texi: Describe the -mliw command line option.
14360
14361 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14362
14363 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14364 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14365 pthread_mutex_unlock): Remove.
14366 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14367 * config/pa/t-pa64: Likewise.
14368 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14369 shared libc if not linking against libpthread.
14370 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14371
14372 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14373
14374 PR target/47558
14375 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14376 on 10.6 and later to ensure that we always use the unwinder from
14377 the system. Only add -no_compact_unwind when tarteting darwin
14378 10.6 or later.
14379
14380 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14381
14382 PR target/46997
14383 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14384 (vec_interleave_lowv2sf): Ditto.
14385 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14386 (vec_extract_oddv2sf): Ditto.
14387
14388 2011-02-07 Mike Stump <mikestump@comcast.net>
14389
14390 PR target/42333
14391 Add __ieee_divdc3 entry point.
14392 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14393 entry point.
14394 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14395 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14396 * config/darwin.c (darwin_rename_builtins): Add.
14397 * config/darwin-protos.h (darwin_rename_builtins): Add.
14398
14399 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14400
14401 PR target/47636
14402 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14403 for the condition.
14404
14405 2011-02-07 Mike Stump <mikestump@comcast.net>
14406
14407 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14408
14409 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14410
14411 PR target/47534
14412 * config/avr/libgcc.S (exit): Move .endfunc
14413
14414 2011-02-07 Richard Guenther <rguenther@suse.de>
14415
14416 PR tree-optimization/47615
14417 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14418 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14419 (run_scc_vn): Initialize it.
14420 (visit_reference_op_load): Use it.
14421 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14422
14423 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14424
14425 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14426 DImode trapping arithmetic libfuncs.
14427
14428 2011-02-07 Richard Guenther <rguenther@suse.de>
14429
14430 PR tree-optimization/47621
14431 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14432 two duplicates ...
14433 (execute_update_addresses_taken): ... here. Make it more
14434 conservative in what we accept.
14435
14436 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14437
14438 * config/sparc/freebsd.h (ASM_SPEC): Define.
14439 * config/sparc/vxworks.h (ASM_SPEC): Define.
14440
14441 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14442
14443 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14444
14445 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14446
14447 * doc/invoke.texi: Remove reference to compiler internals from
14448 user documentation.
14449
14450 * reg-notes.def: Remove REG_VALUE_PROFILE.
14451 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14452
14453 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14454
14455 PR middle-end/47610
14456 * varasm.c (default_section_type_flags): If decl is NULL,
14457 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14458
14459 2011-02-05 Jie Zhang <jie@codesourcery.com>
14460
14461 PR debug/42631
14462 * web.c (entry_register): Don't clobber the number of the
14463 first uninitialized reference in used[].
14464
14465 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14466
14467 PR tree-optimization/46194
14468 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14469 (build_classic_dist_vector_1): Do not represent classic distance
14470 vectors when the access functions are variating in different loops.
14471
14472 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14473
14474 * config/mips/iris6.opt: New.
14475 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14476
14477 2011-02-04 Richard Henderson <rth@redhat.com>
14478 Steve Ellcey <sje@cup.hp.com>
14479
14480 PR target/46997
14481 * config/ia64/predicates.md (mux1_brcst_element): New.
14482 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14483 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14484 (ia64_unpack_sign): New.
14485 (ia64_expand_unpack): Rewrite using new routines.
14486 (ia64_expand_widen_sum): Ditto.
14487 (ia64_expand_dot_prod_v8qi): Ditto.
14488 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14489 routines, add endian check.
14490 (pmpy2_even): Rename from pmpy2_r, add endian check.
14491 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14492 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14493 (vec_widen_smult_hi_v4hi): Ditto.
14494 (vec_widen_umult_lo_v4hi): Ditto.
14495 (vec_widen_umult_hi_v4hi): Ditto.
14496 (mulv2si3): Change endian checks.
14497 (sdot_prodv4hi): Rewrite with new calls.
14498 (udot_prodv4hi): New.
14499 (vec_pack_ssat_v4hi): Add endian check.
14500 (vec_pack_usat_v4hi): Ditto.
14501 (vec_pack_ssat_v2si): Ditto.
14502 (max1_even): Rename from max1_r, add endian check.
14503 (max1_odd): Rename from max1_l, add endian check.
14504 (*mux1_rev): Format change.
14505 (*mux1_mix): Ditto.
14506 (*mux1_shuf): Ditto.
14507 (*mux1_alt): Ditto.
14508 (*mux1_brcst_v8qi): Use new predicate.
14509 (vec_extract_evenv8qi): Remove endian check.
14510 (vec_extract_oddv8qi): Ditto.
14511 (vec_interleave_lowv4hi): Format change.
14512 (vec_interleave_highv4hi): Ditto.
14513 (mix2_even): Rename from mix2_r, add endian check.
14514 (mix2_odd): Rename from mux2_l, add endian check.
14515 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14516 (vec_extract_evenodd_helper): Format change.
14517 (vec_extract_evenv4hi): Remove endian check.
14518 (vec_extract_oddv4hi): Remove endian check.
14519 (vec_interleave_lowv2si): Format change.
14520 (vec_interleave_highv2si): Format change.
14521 (vec_initv2si): Remove endian check.
14522 (vecinit_v2si): Add endian check.
14523 (reduc_splus_v2sf): Add endian check.
14524 (reduc_smax_v2sf): Ditto.
14525 (reduc_smin_v2sf): Ditto.
14526 (vec_initv2sf): Remove endian check.
14527 (fpack): Add endian check.
14528 (fswap): Add endian check.
14529 (vec_interleave_highv2sf): Add endian check.
14530 (vec_interleave_lowv2sf): Add endian check.
14531 (fmix_lr): Add endian check.
14532 (vec_setv2sf): Format change.
14533 (*vec_extractv2sf_0_be): Use shift to extract operand.
14534 (*vec_extractv2sf_1_be): New.
14535 (vec_pack_trunc_v4hi): Add endian check.
14536 (vec_pack_trunc_v2si): Format change.
14537
14538 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14539
14540 PR inline-asm/23200
14541 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14542 do bb, locus and block comparison and disallow loads if it is not set.
14543 (stmt_is_replaceable_p): New function.
14544 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14545 callers.
14546 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14547 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14548 SSA_NAME_DEF_STMT.
14549 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14550
14551 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14552
14553 * config/rs6000/xilinx.opt: New.
14554 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14555
14556 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14557
14558 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14559
14560 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14561
14562 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14563 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14564 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14565 secondary_reload_info, xtensa_secondary_reload): Remove.
14566 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14567 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14568 (xtensa_preferred_reload_class): Make static. Change return and
14569 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14570 Use CONST_DOUBLE_P predicate.
14571 (xtensa_preferred_output_reload_class): New function.
14572 (xtensa_secondary_reload): Make static.
14573
14574 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14575
14576 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14577 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14578 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14579
14580 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14581
14582 PR middle-end/31490
14583 * output.h (SECTION_RELRO): Define.
14584 (SECTION_MACH_DEP): Adjust.
14585 (get_variable_section): New prototype.
14586 * varpool.c (varpool_finalize_named_section_flags): New function.
14587 (varpool_assemble_pending_decls): Call it.
14588 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14589 * cgraphunit.c (cgraph_output_in_order): Call
14590 varpool_finalize_named_section_flags.
14591 * varasm.c (get_section): Allow section flags conflicts between
14592 relro and read-only sections if the section hasn't been declared yet.
14593 Set SECTION_OVERRIDE after diagnosing section type conflict.
14594 (get_variable_section): No longer static.
14595 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14596 readonly sections that need relocations.
14597 (decl_readonly_section_1): New function.
14598 (decl_readonly_section): Use it.
14599
14600 Revert:
14601 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14602 Steve Ellcey <sje@cup.hp.com>
14603
14604 PR middle-end/31490
14605 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14606 if section attribute used.
14607
14608 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14609
14610 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14611 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14612 (darwin_init_sections): Remove assertion.
14613
14614 2011-02-03 Nick Clifton <nickc@redhat.com>
14615
14616 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14617 lt and ge.
14618 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14619 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14620 instead of "n" and "pz".
14621 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14622 CC_FLAG_S.
14623
14624 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14625
14626 PR target/47312
14627 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14628 fma, expand FMA_EXPR as fma{,f,l} call.
14629
14630 PR lto/47274
14631 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14632 copy them into a unsigned char variable and pass address of it to
14633 lto_output_data_stream.
14634
14635 PR target/47564
14636 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14637 around backend_init_target and lang_dependent_init_target calls.
14638 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14639 (verify_cgraph_node): Don't call set_cfun here. Use
14640 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14641 Set error_found for incorrectly represented calls to thunks.
14642
14643 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14644
14645 PR debug/43092
14646 PR rtl-optimization/43494
14647 * rtl.h (for_each_inc_dec_fn): New type.
14648 (for_each_inc_dec): Declare.
14649 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14650 (for_each_inc_dec_find_inc_dec): New fn.
14651 (for_each_inc_dec_find_mem): New fn.
14652 (for_each_inc_dec): New fn.
14653 * dse.c (struct insn_size): Remove.
14654 (replace_inc_dec, replace_inc_dec_mem): Remove.
14655 (emit_inc_dec_insn_before): New fn.
14656 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14657 (canon_address): Pass mem modes to cselib_lookup.
14658 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14659 (cselib_lookup_from_insn): Likewise.
14660 (cselib_subst_to_values): Likewise.
14661 * cselib.c (find_slot_memmode): New var.
14662 (cselib_find_slot): New fn. Use it instead of
14663 htab_find_slot_with_hash everywhere.
14664 (entry_and_rtx_equal_p): Use find_slot_memmode.
14665 (autoinc_split): New fn.
14666 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14667 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14668 Deal with autoinc. Special-case recursion into MEMs.
14669 (cselib_hash_rtx): Likewise.
14670 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14671 address and MEM modes.
14672 (cselib_subst_to_values): Add memmode, pass it on.
14673 Deal with autoinc.
14674 (cselib_lookup): Add memmode argument, pass it on.
14675 (cselib_lookup_from_insn): Add memmode.
14676 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14677 (struct cselib_record_autoinc_data): New.
14678 (cselib_record_autoinc_cb): New fn.
14679 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14680 mode to cselib_lookup. Reset autoinced REGs here instead of...
14681 (cselib_process_insn): ... here.
14682 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14683 to cselib_lookup.
14684 (add_uses): Likewise, also to cselib_subst_to_values.
14685 (add_stores): Likewise.
14686 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14687 cselib_subst_to_values.
14688 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14689 * gcse.c (do_local_cprop): Adjusted.
14690 * postreload.c (reload_cse_simplify_set): Adjusted.
14691 (reload_cse_simplify_operands): Adjusted.
14692 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14693
14694 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14695
14696 PR tree-optimization/45122
14697 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14698 unsafe assumptions when there's more than one loop exit.
14699
14700 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14701
14702 PR target/47272
14703 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14704 Document using vector double with the load/store builtins, and
14705 that the load/store builtins always use Altivec instructions.
14706
14707 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14708 to use altivec memory instructions, even on VSX.
14709 (vector_altivec_store_<mode>): Ditto.
14710
14711 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14712 function.
14713
14714 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14715 V2DF, V2DI support to load/store overloaded builtins.
14716
14717 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14718 altivec load/store builtins for V2DF/V2DI types.
14719
14720 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14721 set avoid indexed addresses on power6 if -maltivec.
14722 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14723 vector_altivec_load/vector_altivec_store builtins.
14724 (altivec_expand_st_builtin): Ditto.
14725 (altivec_expand_builtin): Add VSX memory builtins.
14726 (rs6000_init_builtins): Add V2DI types to internal types.
14727 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14728 load/store builtins.
14729 (rs6000_address_for_altivec): Insure memory address is appropriate
14730 for Altivec.
14731
14732 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14733 vec_vsx_ld and vec_vsx_st.
14734 (vsx_store_<mode>): Ditto.
14735
14736 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14737 variables to hold long long types for VSX vector memory builtins.
14738 (RS6000_BTI_unsigned_long_long): Ditto.
14739 (long_long_integer_type_internal_node): Ditti.
14740 (long_long_unsigned_type_internal_node): Ditti.
14741
14742 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14743 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14744 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14745
14746 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14747 short cuts.
14748 (vec_vsx_st): Ditto.
14749
14750 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14751
14752 * config/pa/pa-hpux10.opt: New.
14753 * config/hpux11.opt (pthread): New Driver option.
14754 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14755 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14756
14757 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14758
14759 * config/ia64/vms.opt: New.
14760 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14761
14762 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14763
14764 PR target/47580
14765 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14766 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14767 generator functions.
14768 (vsx_floatuns<VSi><mode>2): Ditto.
14769 (vsx_fix_trunc<mode><VSi>2): Ditto.
14770 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14771
14772 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14773
14774 * config/i386/djgpp.opt (posix): New Driver option.
14775
14776 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14777
14778 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14779 Move to the unsupported targets list.
14780
14781 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14782
14783 PR rtl-optimization/47525
14784 * df-scan.c: Update copyright years.
14785 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14786 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14787
14788 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14789
14790 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14791 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14792 (ASM_OUTPUT_ASCII): Remove.
14793 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14794
14795 2011-02-02 Jeff Law <law@redhat.com>
14796
14797 PR middle-end/47543
14798 * reload.c (find_reloads_address): Handle reg+d address where both
14799 components are invalid by reloading the entire address.
14800
14801 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14802 Richard Guenther <rguenther@suse.de>
14803
14804 PR tree-optimization/40979
14805 PR bootstrap/47044
14806 * passes.c (init_optimization_passes): After LIM call copy_prop
14807 and DCE to clean up.
14808 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14809
14810 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14811
14812 PR tree-optimization/47576
14813 PR tree-optimization/47555
14814 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14815 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14816 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14817 * tree-scalar-evolution.c (follow_ssa_edge): Use
14818 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14819
14820 2011-02-02 Richard Guenther <rguenther@suse.de>
14821
14822 PR tree-optimization/47566
14823 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14824
14825 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14826
14827 PR debug/47106
14828 PR debug/47402
14829 * tree-inline.c (declare_return_variable): Remove unused caller
14830 variable.
14831
14832 PR debug/47106
14833 PR debug/47402
14834 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14835 * cfgexpand.c (account_used_vars_for_block): Use them.
14836 * tree-nrv.c (tree_nrv): Likewise.
14837 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14838 (dump_scope_block): Likewise.
14839 (remove_unused_locals): Likewise.
14840
14841 PR debug/47106
14842 PR debug/47402
14843 * tree-inline.c (declare_return_variable): Add result decl to
14844 local decls only once.
14845 * gimple-low.c (record_vars_into): Mark newly-created variables
14846 as referenced.
14847
14848 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14849
14850 PR debug/47498
14851 PR debug/47501
14852 PR debug/45136
14853 PR debug/45130
14854 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14855 debug insns.
14856 (no_real_insns_p, schedule_block, set_priorities): Drop special
14857 treatment of boundary debug insns.
14858 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14859 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14860 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14861 (BOUNDARY_DEBUG_INSN_P): Likewise.
14862 (SCHEDULE_DEBUG_INSN_P): Likewise.
14863 * sched-rgn.c (init_ready_list): Drop special treatment of
14864 boundary debug insns.
14865 * final.c (rest_of_clean_state): Clear notes' BB.
14866
14867 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14868
14869 * config/openbsd.opt (assert=): New Driver option.
14870
14871 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14872
14873 * config/i386/nto.opt: New.
14874 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14875
14876 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14877
14878 * config/i386/netware.opt: New.
14879 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14880
14881 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14882
14883 * config/interix.opt (posix): New Driver option.
14884
14885 2011-02-01 DJ Delorie <dj@redhat.com>
14886
14887 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14888
14889 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14890 class for A0/A1.
14891
14892 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14893
14894 PR tree-optimization/47561
14895 * toplev.c (process_options): Print the Graphite flags. Add
14896 flag_loop_flatten to the list of options requiring Graphite.
14897
14898 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14899
14900 * config/i386/cygming.opt (posix): New Driver option.
14901
14902 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14903
14904 * config/arm/vxworks.opt: New.
14905 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14906
14907 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14908
14909 * config/alpha/elf.opt: New.
14910 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14911 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14912
14913 2011-02-01 Richard Guenther <rguenther@suse.de>
14914
14915 PR tree-optimization/47559
14916 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14917 store-motion on references that can throw.
14918
14919 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14920
14921 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14922 * tree-pass.h (TDF_CSELIB): New macro.
14923 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14924 cselib_lookup): Check for it rather than for TDF_DETAILS.
14925
14926 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14927
14928 PR driver/47547
14929 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14930 is HOST_BIT_BUCKET.
14931
14932 * opts.c (finish_options): Don't add x_aux_base_name if it is
14933 HOST_BIT_BUCKET.
14934
14935 2011-02-01 Richard Guenther <rguenther@suse.de>
14936
14937 PR tree-optimization/47555
14938 Revert
14939 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14940
14941 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14942
14943 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14944
14945 PR gcc/46692
14946 * config/lm32/t-lm32: Add multilib for all CPU options.
14947
14948 2011-02-01 Richard Guenther <rguenther@suse.de>
14949
14950 PR tree-optimization/47541
14951 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14952 sure to have a field at offset zero.
14953
14954 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14955
14956 * config/arc/arc.opt (EB, EL): New Driver options.
14957
14958 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14959
14960 * config/alpha/osf5.opt: New.
14961 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14962
14963 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14964
14965 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14966
14967 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14968
14969 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14970 -floop-interchange.
14971 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14972 is an alias of -floop-interchange and that it requires the
14973 Graphite infrastructure.
14974 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14975 flag_loop_interchange based on the value of flag_tree_loop_linear.
14976
14977 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14978 Richard Guenther <rguenther@suse.de>
14979
14980 PR tree-optimization/47538
14981 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14982 type instead of r1type, except for comparisons. For right
14983 shifts and comparisons punt if there are mismatches in
14984 sizetype vs. non-sizetype types.
14985
14986 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14987
14988 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14989 avx_runtime.
14990
14991 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14992
14993 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14994 version number.
14995 * configure: Regenerate.
14996
14997 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14998
14999 * configure.ac (gcc_cv_ld_static_option): Define.
15000 (gcc_cv_ld_dynamic_option): Define.
15001 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15002 instead.
15003 (HAVE_LD_STATIC_DYNAMIC): Update message.
15004 (LD_STATIC_OPTION): Define.
15005 (LD_DYNAMIC_OPTION): Define.
15006 * configure: Regenerate.
15007 * config.in: Regenerate.
15008 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15009 HAVE_LD_STATIC_DYNAMIC]: Use them.
15010
15011 2011-01-31 Nick Clifton <nickc@redhat.com>
15012
15013 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15014 registers inside interrupt handlers if the handler is not a leaf
15015 function.
15016
15017 2011-01-31 Nick Clifton <nickc@redhat.com>
15018
15019 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15020 reg_renumber returning an INVALID_REGNUM.
15021
15022 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15023
15024 PR libgcj/44341
15025 * doc/install.texi: Document host options discarded when cross
15026 configuring target libraries.
15027
15028 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15029
15030 Reverted:
15031 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15032 PR debug/45136
15033 PR debug/45130
15034 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15035 debug insns.
15036 (no_real_insns_p, schedule_block, set_priorities): Drop special
15037 treatment of boundary debug insns.
15038 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15039 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15040 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15041 (BOUNDARY_DEBUG_INSN_P): Likewise.
15042 (SCHEDULE_DEBUG_INSN_P): Likewise.
15043 * sched-rgn.c (init_ready_list): Drop special treatment of
15044 boundary debug insns.
15045 * final.c (rest_of_clean-state): Clear notes' BB.
15046
15047 2011-01-31 Alan Modra <amodra@gmail.com>
15048
15049 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15050 toc relative expressions as we do in print_operand_address.
15051
15052 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15053
15054 * doc/extend.texi: Follow spelling conventions.
15055 * doc/invoke.texi: Fix a typo.
15056
15057 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15058
15059 * config/hpux11.opt: New.
15060 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15061 ia64*-*-hpux*): Use hpux11.opt.
15062
15063 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15064
15065 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15066 to tmake_file.
15067
15068 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15069
15070 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15071 support sites.
15072
15073 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15074
15075 * doc/install.texi (Binaries): Remove outdated reference for
15076 Motorola 68HC11/68HC12 downloads.
15077
15078 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15079
15080 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15081 Drepper's paper.
15082
15083 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15084
15085 PR bootstrap/47147
15086 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15087 used by NetBSD.
15088
15089 2011-01-28 Ahmad Sharif <asharif@google.com>
15090
15091 * value-prof.c (check_counter): Corrected error message.
15092
15093 2011-01-29 Jie Zhang <jie@codesourcery.com>
15094
15095 * config/arm/arm.c (arm_legitimize_reload_address): New.
15096 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15097 arm_legitimize_reload_address.
15098 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15099
15100 2011-01-28 Ian Lance Taylor <iant@google.com>
15101
15102 * godump.c (go_define): Ignore macros whose definitions include
15103 two adjacent operands.
15104
15105 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15106
15107 PR target/42894
15108 * varasm.c (force_const_mem): Store copy of x in desc->constant
15109 instead of x itself.
15110 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15111 itself into REG_EQUAL note.
15112
15113 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15114
15115 * config/freebsd.opt (posix, rdynamic): New Driver options.
15116
15117 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15118
15119 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15120 -Bstatic/-Bdynamic.
15121 * configure: Regenerate.
15122
15123 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15124
15125 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15126 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15127
15128 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15129
15130 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15131 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15132 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15133 (s390_preferred_reload_class): Make static. Change return and
15134 'rclass' argument type to reg_class_t.
15135
15136 2011-01-27 Jan Hubicka <jh@suse.cz>
15137
15138 PR middle-end/46949
15139 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15140 (process_function_and_variable_attributes): Check defined weakrefs.
15141
15142 2011-01-27 Martin Jambor <mjambor@suse.cz>
15143
15144 PR tree-optimization/47228
15145 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15146 build_ref_for_offset.
15147
15148 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15149
15150 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15151
15152 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15153
15154 PR rtl-optimization/46856
15155 * postreload.c (reload_combine_recognize_const_pattern): Do not
15156 separate cc0 setter and user on cc0 targets.
15157
15158 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15159
15160 PR c/43082
15161 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15162 passed a VOID_TYPE expression, immediately emit an error and
15163 return error_mark_node.
15164
15165 2011-01-26 Jeff Law <law@redhat.com>
15166
15167 PR rtl-optimization/47464
15168 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15169 rather than may_trap_p as needed.
15170
15171 2011-01-26 DJ Delorie <dj@redhat.com>
15172
15173 PR rtl-optimization/46878
15174 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15175 setter/user dependency as well.
15176
15177 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15178
15179 PR rtl-optimization/44469
15180 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15181 after removing trivially dead basic blocks.
15182
15183 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15184
15185 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15186 * config/frv/frv.h (LINK_SPEC): Likewise.
15187 * config/i386/netware.h (LINK_SPEC): Likewise.
15188 * config/m68k/linux.h (ASM_SPEC): Likewise.
15189 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15190 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15191 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15192 * config/sparc/linux.h (ASM_SPEC): Likewise.
15193 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15194 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15195
15196 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15197
15198 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15199 * config/frv/frv.h (ASM_SPEC): Likewise.
15200 * config/m68k/linux.h (ASM_SPEC): Likewise.
15201 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15202 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15203 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15204 * config/sparc/linux.h (ASM_SPEC): Likewise.
15205 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15206 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15207
15208 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15209
15210 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15211 * config/frv/frv.h (LINK_SPEC): Likewise.
15212 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15213
15214 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15215
15216 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15217 * config/frv/frv.h (ASM_SPEC): Likewise.
15218 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15219 * config/m68k/linux.h (ASM_SPEC): Likewise.
15220 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15221 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15222 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15223 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15224 * config/sparc/linux.h (ASM_SPEC): Likewise.
15225 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15226 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15227 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15228
15229 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15230
15231 PR target/46997
15232 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15233 (*mux2): Ditto.
15234 (vec_extract_evenodd_help): Ditto.
15235 (vec_extract_evenv4hi): Ditto.
15236 (vec_extract_oddv4hi): Ditto.
15237 (vec_interleave_lowv2si): Ditto.
15238 (vec_interleave_highv2si): Ditto.
15239 (vec_extract_evenv2si): Ditto.
15240 (vec_extract_oddv2si: Ditto.
15241 (vec_pack_trunc_v2si): Ditto.
15242
15243 2011-01-22 Jan Hubicka <jh@suse.cz>
15244
15245 PR target/47237
15246 * cgraph.h (cgraph_local_info): New field can_change_signature.
15247 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15248 signature can change.
15249 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15250 can change.
15251 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15252 (cgraph_function_versioning): We can not change signature of functions
15253 that don't allow that.
15254 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15255 (lto_input_node): Likewise.
15256 * ipa-inline.c (compute_inline_parameters): Compute
15257 local.can_change_signature.
15258 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15259 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15260 functions that can not change signature.
15261 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15262 init_cumulative_args): Do not use local calling conventions
15263 for functions that can not change signature.
15264
15265 2011-01-22 Jan Hubicka <jh@suse.cz>
15266
15267 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15268
15269 2011-01-26 Richard Guenther <rguenther@suse.de>
15270
15271 PR tree-optimization/47190
15272 * cgraphunit.c (process_common_attributes): New function.
15273 (process_function_and_variable_attributes): Use it.
15274
15275 2011-01-26 Richard Guenther <rguenther@suse.de>
15276
15277 PR lto/47423
15278 * cgraphbuild.c (record_eh_tables): Record reference to personality
15279 function.
15280
15281 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15282
15283 PR debug/45454
15284 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15285 non-debug insns from moving up.
15286
15287 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15288
15289 PR target/40125
15290 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15291 t-dlldir{,-x} fragment for build and add it to tmake_file.
15292 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15293 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15294 * config/i386/t-dlldir: New file.
15295 (SHLIB_DLLDIR): Define.
15296 * config/i386/t-dlldir-x: New file.
15297 (SHLIB_DLLDIR): Define.
15298 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15299 (SHLIB_INSTALL): Use it.
15300
15301 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15302
15303 PR target/47246
15304 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15305 lower bound of the allowed Thumb-2 coprocessor load/store
15306 index range to -256. Add explaining comment.
15307
15308 2011-01-25 Ian Lance Taylor <iant@google.com>
15309
15310 * godump.c (go_define): Improve lexing of macro expansion to only
15311 accept expressions which match Go spec.
15312
15313 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15314
15315 PR c++/43601
15316 * tree.c (handle_dll_attribute): Handle it.
15317 * doc/extend.texi (@item dllexport): Mention it.
15318 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15319
15320 2011-01-25 Ian Lance Taylor <iant@google.com>
15321
15322 PR tree-optimization/26854
15323 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15324 (decl_jump_unsafe): Move higher in file, with no other change.
15325 (bind): Set has_jump_unsafe_decl if appropriate.
15326 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15327 (check_earlier_gotos): Likewise.
15328 (c_check_switch_jump_warnings): Likewise.
15329
15330 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15331
15332 * doc/invoke.texi (Warning Options): Add missing hyphen.
15333 (-fprofile-dir): Minor grammatical fixes.
15334 (-fbranch-probabilities): Likewise.
15335
15336 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15337
15338 PR debug/45136
15339 PR debug/45130
15340 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15341 debug insns.
15342 (no_real_insns_p, schedule_block, set_priorities): Drop special
15343 treatment of boundary debug insns.
15344 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15345 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15346 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15347 (BOUNDARY_DEBUG_INSN_P): Likewise.
15348 (SCHEDULE_DEBUG_INSN_P): Likewise.
15349 * sched-rgn.c (init_ready_list): Drop special treatment of
15350 boundary debug insns.
15351 * final.c (rest_of_clean-state): Clear notes' BB.
15352
15353 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15354
15355 * Makefile.in (LAMBDA_H): Removed.
15356 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15357 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15358 lambda-trans.o, and tree-loop-linear.o.
15359 (lto-symtab.o): Remove dependence on LAMBDA_H.
15360 (tree-loop-linear.o): Remove rule.
15361 (lambda-mat.o): Same.
15362 (lambda-trans.o): Same.
15363 (lambda-code.o): Same.
15364 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15365 (tree-vect-slp.o): Same.
15366 * hwint.h (gcd): Moved here.
15367 (least_common_multiple): Same.
15368 * lambda-code.c: Removed.
15369 * lambda-mat.c: Removed.
15370 * lambda-trans.c: Removed.
15371 * lambda.h: Removed.
15372 * tree-loop-linear.c: Removed.
15373 * lto-symtab.c: Do not include lambda.h.
15374 * omega.c (gcd): Removed.
15375 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15376 * tree-data-ref.c (print_lambda_vector): Moved here.
15377 (lambda_vector_copy): Same.
15378 (lambda_matrix_copy): Same.
15379 (lambda_matrix_id): Same.
15380 (lambda_vector_first_nz): Same.
15381 (lambda_matrix_row_add): Same.
15382 (lambda_matrix_row_exchange): Same.
15383 (lambda_vector_mult_const): Same.
15384 (lambda_vector_negate): Same.
15385 (lambda_matrix_row_negate): Same.
15386 (lambda_vector_equal): Same.
15387 (lambda_matrix_right_hermite): Same.
15388 * tree-data-ref.h: Do not include lambda.h.
15389 (lambda_vector): Moved here.
15390 (lambda_matrix): Same.
15391 (dependence_level): Same.
15392 (lambda_transform_legal_p): Removed declaration.
15393 (lambda_collect_parameters): Same.
15394 (lambda_compute_access_matrices): Same.
15395 (lambda_vector_gcd): Same.
15396 (lambda_vector_new): Same.
15397 (lambda_vector_clear): Same.
15398 (lambda_vector_lexico_pos): Same.
15399 (lambda_vector_zerop): Same.
15400 (lambda_matrix_new): Same.
15401 * tree-flow.h (least_common_multiple): Removed declaration.
15402 * tree-parloops.c (lambda_trans_matrix): Moved here.
15403 (LTM_MATRIX): Same.
15404 (LTM_ROWSIZE): Same.
15405 (LTM_COLSIZE): Same.
15406 (LTM_DENOMINATOR): Same.
15407 (lambda_trans_matrix_new): Same.
15408 (lambda_matrix_vector_mult): Same.
15409 (lambda_transform_legal_p): Same.
15410 * tree-pass.h (pass_linear_transform): Removed declaration.
15411 * tree-ssa-loop.c (tree_linear_transform): Removed.
15412 (gate_tree_linear_transform): Removed.
15413 (pass_linear_transform): Removed.
15414 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15415 flag_loop_interchange.
15416
15417 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15418
15419 PR tree-optimization/47265
15420 PR tree-optimization/47443
15421 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15422 if name still has some uses.
15423
15424 2011-01-25 Martin Jambor <mjambor@suse.cz>
15425
15426 PR tree-optimization/47382
15427 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15428 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15429
15430 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15431
15432 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15433 sjlj_except_unwind_info.
15434
15435 2011-01-25 Richard Guenther <rguenther@suse.de>
15436
15437 PR tree-optimization/47426
15438 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15439 visible functions results escape.
15440
15441 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15442
15443 PR target/45701
15444 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15445 (arm_get_frame_offsets): Use it.
15446
15447 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15448 Jakub Jelinek <jakub@redhat.com>
15449
15450 PR tree-optimization/47271
15451 * tree-if-conv.c (bb_postdominates_preds): New.
15452 (if_convertible_bb_p): Call bb_postdominates_preds.
15453 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15454 (predicate_scalar_phi): Call bb_postdominates_preds.
15455
15456 2011-01-25 Nick Clifton <nickc@redhat.com>
15457
15458 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15459 * config/rx/rx.c (rx_function_value): Likewise.
15460 (rx_promote_function_mode): Likewise.
15461 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15462 in order to make it legitimate.
15463 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15464 make sure that the first operand is the same as the result register.
15465 (addsi3_unspec): Delete.
15466 (subdi3): Do not accept immediate operands.
15467 (subdi3_internal): Likewise.
15468
15469 2011-01-25 Jeff Law <law@redhat.com>
15470
15471 PR rtl-optimization/37273
15472 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15473 handle them like argument loads from stack slots. Do not double
15474 count memory for memory constants and argument loads from stack slots.
15475
15476 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15477
15478 PR tree-optimization/47427
15479 PR tree-optimization/47428
15480 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15481 coalesce if the new root var would be TREE_READONLY.
15482
15483 2011-01-25 Richard Guenther <rguenther@suse.de>
15484
15485 PR middle-end/47414
15486 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15487 correct type for TBAA.
15488
15489 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15490
15491 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15492 (close_phi_written_to_memory): Call for_each_index with
15493 dr_indices_valid_in_loop.
15494
15495 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15496
15497 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15498 when it is initialized.
15499
15500 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15501
15502 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15503 call to graphite_find_data_references_in_stmt.
15504 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15505 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15506 call to graphite_find_data_references_in_stmt.
15507 (analyze_drs_in_stmts): Same.
15508 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15509 in which the scalar analysis of indices is performed.
15510 (create_data_ref): Same. Update call to dr_analyze_indices.
15511 (find_data_references_in_stmt): Update call to create_data_ref.
15512 (graphite_find_data_references_in_stmt): Same.
15513 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15514 declaration.
15515 (create_data_ref): Same.
15516 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15517 call to create_data_ref.
15518
15519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15520
15521 * graphite-sese-to-poly.c (build_poly_scop): Move
15522 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15523
15524 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15525
15526 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15527 VAR_DECL, PARM_DECL, and RESULT_DECL.
15528
15529 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15530
15531 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15532 in a reduction PBB.
15533 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15534 that have already been marked as PBB_IS_REDUCTION.
15535
15536 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15537
15538 * graphite-scop-detection.c (same_close_phi_node): New.
15539 (remove_duplicate_close_phi): New.
15540 (make_close_phi_nodes_unique): New.
15541 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15542
15543 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15544
15545 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15546 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15547 of both data references to be the same.
15548
15549 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15550
15551 * graphite-dependences.c (build_lexicographical_constraint): Remove
15552 the gdim parameter.
15553 (build_lexicographical_constraint): Adjust call to
15554 ppl_powerset_is_empty.
15555 (dependence_polyhedron): Same.
15556 (graphite_legal_transform_dr): Same.
15557 (graphite_carried_dependence_level_k): Same.
15558 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15559 parameter.
15560 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15561
15562 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15563
15564 * graphite-sese-to-poly.c
15565 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15566 (close_phi_written_to_memory): New.
15567 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15568 and unshare_expr.
15569
15570 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15571
15572 * doc/install.texi: Update the expected version number of PPL to 0.11.
15573 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15574 #if PPL_VERSION_MINOR < 11.
15575
15576 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15577
15578 * graphite-dependences.c: Include graphite-cloog-util.h.
15579 (new_poly_ddr): Inlined into dependence_polyhedron.
15580 (free_poly_ddr): Moved close by new_poly_ddr.
15581 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15582 Early return NULL when ppl_powerset_is_empty returns true.
15583 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15584 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15585 (graphite_legal_transform_dr): Call new_poly_ddr.
15586 (graphite_carried_dependence_level_k): Same.
15587 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15588 (dot_transformed_deps_stmt_1): Removed.
15589 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15590 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15591 (dot_deps_1): Call dot_deps_2.
15592 * Makefile.in (graphite-dependences.o): Add missing dependence on
15593 graphite-cloog-util.h.
15594
15595 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15596
15597 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15598 (build_lexicographical_constraint): Same.
15599 (dependence_polyhedron_1): Same.
15600 (graphite_legal_transform_dr): Same.
15601 (graphite_carried_dependence_level_k): Same.
15602 * graphite-ppl.c (ppl_powerset_is_empty): New.
15603 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15604 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15605
15606 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15607
15608 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15609 the "a followed by b" relation and document it.
15610
15611 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15612
15613 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15614 iteration when the bag of constraints is empty.
15615
15616 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15617
15618 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15619
15620 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15621
15622 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15623 nest and two loop depths as parameters.
15624 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15625 lst_perfect_nestify.
15626
15627 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15628
15629 * graphite-dependences.c (print_pddr): Call
15630 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15631
15632 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15633
15634 * graphite-ppl.c (debug_gmp_value): New.
15635 * graphite-ppl.h (debug_gmp_value): Declared.
15636
15637 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15638
15639 * doc/install.texi: Document availability of cloog-0.16.
15640
15641 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15642
15643 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15644 invalid postdominance info.
15645
15646 2011-01-24 Jan Hubicka <jh@suse.cz>
15647
15648 PR c/21659
15649 * doc/extend.texi (weak pragma): Drop claim that it must
15650 appear before definition.
15651 * varasm.c (merge_weak, declare_weak): Only sanity check
15652 that DECL is not output at a time it is declared weak.
15653
15654 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15655
15656 * machmode.def: Fixed comments.
15657
15658 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15659
15660 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15661
15662 2011-01-24 Paul Koning <ni1d@arrl.net>
15663
15664 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15665 WORDS_BIG_ENDIAN.
15666
15667 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15668
15669 PR target/46519
15670 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15671 (block_info): Add scanned and prev.
15672 (move_or_delete_vzeroupper_2): Return if the basic block
15673 has been scanned and the upper 128bit state is unchanged
15674 from the last scan.
15675 (move_or_delete_vzeroupper_1): Return true if the exit
15676 state is changed.
15677 (move_or_delete_vzeroupper): Visit basic blocks using the
15678 work-list based algorithm based on vt_find_locations in
15679 var-tracking.c.
15680
15681 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15682
15683 2011-01-24 Nick Clifton <nickc@redhat.com>
15684
15685 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15686 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15687 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15688 then define __v850e1__.
15689 * doc/invoke.texi: Document -mv850es.
15690
15691 2011-01-24 Richard Henderson <rth@redhat.com>
15692
15693 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15694 compound unordered comparisons.
15695 * config/rx/rx.c (rx_split_fp_compare): Remove.
15696 * config/rx/rx-protos.h: Update.
15697 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15698 (cbranchsf4): Don't call rx_split_fp_compare.
15699 (*cbranchsf4): Use rx_split_cbranch.
15700 (*cmpsf): Don't accept "i" constraint.
15701 (*conditional_branch): Only valid after reload.
15702 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15703
15704 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15705
15706 PR target/47385
15707 * config/rs6000/altivec.md (vector constant splitters): Add
15708 support for creating vector single precision constants if -mvsx is
15709 used and we would create the constant using Altivec primitives.
15710
15711 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15712 Richard Sandiford <rdsandiford@googlemail.com>
15713
15714 PR rtl-optimization/47166
15715 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15716 mechanism for PRE_MODIFY and POST_MODIFY.
15717 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15718 reloadreg.
15719
15720 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15721
15722 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15723
15724 2011-01-22 Jan Hubicka <jh@suse.cz>
15725
15726 PR lto/47333
15727 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15728
15729 2011-01-22 Jan Hubicka <jh@suse.cz>
15730
15731 PR tree-optimization/43884
15732 PR lto/44334
15733 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15734 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15735
15736 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15737
15738 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15739 * config/s390/s390.c (s390_register_move_cost,
15740 s390_memory_move_cost): New.
15741 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15742
15743 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15744
15745 PR middle-end/47401
15746 * except.c (sjlj_assign_call_site_values): Move setting the
15747 crtl->uses_eh_lsda flag to ...
15748 (sjlj_mark_call_sites): ... here.
15749 (sjlj_emit_function_enter): Support NULL dispatch label.
15750 (sjlj_build_landing_pads): In a function with no landing pads
15751 that still has must-not-throw regions, generate code to register
15752 a personality function with empty LSDA.
15753
15754 2011-01-21 Richard Henderson <rth@redhat.com>
15755
15756 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15757
15758 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15759
15760 * compare-elim.c: New file.
15761 * Makefile.in (OBJS-common): Add it.
15762 (compare-elim.o): New.
15763 * common.opt (fcompare-elim): New.
15764 * opts.c (default_options_table): Add OPT_fcompare_elim.
15765 * tree-pass.h (pass_compare_elim_after_reload): New.
15766 * passes.c (init_optimization_passes): Add it.
15767 * recog.h: Protect against re-inclusion.
15768 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15769 * doc/invoke.texi (-fcompare-elim): Document it.
15770 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15771 * doc/tm.texi: Rebuild.
15772
15773 2011-01-22 Nick Clifton <nickc@redhat.com>
15774
15775 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15776 rx_split_fp_compare.
15777
15778 2011-01-22 Nick Clifton <nickc@redhat.com>
15779
15780 * config/rx/rx.md (UNSPEC_CONST): New.
15781 (deallocate_and_return): Wrap the amount popped off the stack in
15782 an UNSPEC_CONST in order to stop it being rejected by
15783 -mmax-constant-size.
15784 (pop_and_return): Add a "(return)" rtx.
15785 (call): Drop the immediate operand.
15786 (call_internal): Likewise.
15787 (call_value): Likewise.
15788 (call_value_internal): Likewise.
15789 (sibcall_internal): Likewise.
15790 (sibcall_value_internal): Likewise.
15791 (sibcall): Likewise. Generate an explicit call using
15792 sibcall_internal.
15793 (sibcall_value): Likewise.
15794 (mov<>): FAIL if a constant operand is not legitimate.
15795 (addsi3_unpsec): New pattern.
15796
15797 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15798 (ok_for_max_constant): New function.
15799 (gen_safe_add): New function.
15800 (rx_expand_prologue): Use gen_safe_add.
15801 (rx_expand_epilogue): Likewise.
15802 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15803 UNSPEC CONSTs.
15804
15805 2011-01-21 Jeff Law <law@redhat.com>
15806
15807 PR tree-optimization/47053
15808 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15809 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15810 statements are deleted.
15811 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15812 is nonempty, then purge dead edges and cleanup the CFG.
15813
15814 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15815
15816 PR debug/47402
15817 Temporarily revert:
15818 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15819 PR debug/47106
15820 * tree-dfa.c (create_var_ann): Mark variable as used.
15821
15822 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15823
15824 PR middle-end/45566
15825 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15826 notes from other section in hot/cold partitioning even if
15827 last_action is -3. Increment call_site_base.
15828
15829 PR rtl-optimization/47366
15830 * fwprop.c (forward_propagate_into): Return bool. If
15831 any changes are made, -fnon-call-exceptions is used and
15832 REG_EH_REGION note is present, call purge_dead_edges
15833 and return true if it purged anything.
15834 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15835 any EH edges were purged.
15836
15837 2011-01-21 Jeff Law <law@redhat.com>
15838
15839 PR rtl-optimization/41619
15840 * caller-save.c (setup_save_areas): Break out code to determine
15841 which hard regs are live across calls by examining the reload chains
15842 so that it is always used.
15843 Eliminate code which checked REG_N_CALLS_CROSSED.
15844
15845 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15846
15847 PR tree-optimization/47355
15848 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15849 NOP has non-debug uses beyond PHIs in new_bb.
15850
15851 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15852
15853 PR debug/47106
15854 * cfgexpand.c (account_used_vars_for_block): Only account vars
15855 that are annotated as used.
15856 (estimated_stack_frame_size): Don't set TREE_USED.
15857 * tree-dfa.c (create_var_ann): Mark variable as used.
15858
15859 2011-01-21 Richard Guenther <rguenther@suse.de>
15860
15861 PR middle-end/47395
15862 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15863
15864 2011-01-21 Richard Guenther <rguenther@suse.de>
15865
15866 PR tree-optimization/47365
15867 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15868 (vn_reference_lookup_pieces): Adjust.
15869 (vn_reference_lookup): Likewise.
15870 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15871 (vn_reference_lookup_3): Only look through kills if in
15872 VN_WALKREWRITE mode.
15873 (vn_reference_lookup_pieces): Adjust.
15874 (vn_reference_lookup): Likewise.
15875 (visit_reference_op_load): Likewise.
15876 (visit_reference_op_store): Likewise.
15877 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15878 (compute_avail): Likewise.
15879 (eliminate): Likewise.
15880
15881 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15882
15883 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15884 DECL_IGNORED_P non-reg vars if they are used.
15885
15886 PR tree-optimization/47391
15887 * varpool.c (const_value_known_p): Return false if
15888 decl is volatile.
15889
15890 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15891
15892 PR bootstrap/47215
15893 * config/i386/i386.c (ix86_local_alignment): Handle
15894 case for va_list_type_node is nil.
15895 (ix86_canonical_va_list_type): Likewise.
15896
15897 2011-01-21 Alan Modra <amodra@gmail.com>
15898
15899 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15900 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15901
15902 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15903
15904 * config/arm/arm.md (define_attr type): Rename f_load
15905 and f_store to f_fpa_load and f_fpa_store. Update.
15906 (write_conflict): Deal with rename fallout.
15907 (*push_fp_multi): Likewise.
15908 * config/arm/fpa.md (f_load): Use f_fpa_load.
15909 (f_store): Use f_fpa_store.
15910 (*movsf_fpa): Likewise.
15911 (*movdf_fpa): Likewise.
15912 (*movxf_fpa): Likewise.
15913 (*thumb2_movsf_fpa): Likewise.
15914 (*thumb2_movdf_fpa): Likewise.
15915 (*thumb2_movxf_fpa): Likewise.
15916 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15917 f_loadd and f_stored.
15918 (*thumb2_movdi_vfp): Likewise.
15919 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15920 (*thumb2_movsi_vfp): Likewise.
15921 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15922 Use f_loads instead of f_load.
15923 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15924
15925 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15926
15927 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15928 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15929 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15930 (xtensa_mode_dependent_address_p): New function.
15931 (constantpool_address_p): Make static. Change return type to bool.
15932 Change argument type to const_rtx. Use CONST_INT_P predicate.
15933
15934 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15935
15936 PR debug/46583
15937 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15938
15939 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15940
15941 PR debug/47283
15942 * cfgexpand.c (expand_debug_expr): Instead of generating
15943 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15944 etc. handling.
15945
15946 2011-01-20 Richard Guenther <rguenther@suse.de>
15947
15948 PR middle-end/47370
15949 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15950 the pointer operand of MEM_REFs.
15951
15952 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15953
15954 PR tree-optimization/46130
15955 * ipa-split.c (consider_split): If return_bb contains non-virtual
15956 PHIs other than for retval or if split_function would not adjust it,
15957 refuse to split.
15958
15959 2011-01-20 Richard Guenther <rguenther@suse.de>
15960
15961 PR tree-optimization/47167
15962 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15963 Revert previous change, only avoid enumeral type changes.
15964
15965 2011-01-19 Mike Stump <mikestump@comcast.net>
15966
15967 * doc/tm.texi.in (BRANCH_COST): Englishify.
15968 * doc/tm.texi (BRANCH_COST): Likewise.
15969
15970 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15971
15972 PR c++/47291
15973 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15974 (gen_scheduled_generic_parms_dies): New functions.
15975 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15976 generation for the end of CU compilation.
15977 (dwarf2out_finish): Generate template parameters DIEs here.
15978
15979 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15980
15981 PR debug/46240
15982 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15983 debug bind stmt on merge edges.
15984
15985 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15986
15987 PR debug/47079
15988 PR debug/46724
15989 * function.c (instantiate_expr): Instantiate incoming rtl of
15990 implicit arguments, and recurse on VALUE_EXPRs.
15991 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15992 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15993
15994 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15995
15996 * c-parser.c (c_parser_for_statement): Initialize
15997 collection_expression.
15998
15999 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16000
16001 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16002
16003 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16004
16005 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16006 (LINK_SHLIB_SPEC): Don't use %(link_path).
16007 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16008
16009 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16010
16011 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16012 (NO_SHARED_LIB_SUPPORT): Remove.
16013 (LINK_SHLIB_SPEC): Remove one conditional definition.
16014
16015 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16016
16017 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16018 %{call_shared}.
16019 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16020 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16021 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16022 %{call_shared} and conditionals on these options not being passed.
16023 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16024 %{call_shared}.
16025
16026 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16027
16028 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16029 simplify.
16030
16031 * ipa-split.c: Spelling fixes.
16032
16033 2011-01-19 Richard Henderson <rth@redhat.com>
16034
16035 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16036 (*mulsi3): Likewise.
16037
16038 * longlong.h [__mn10300__] (count_leading_zeros): New.
16039 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16040 [__mn10300__] (add_ssaaaa, subddmmss): New.
16041 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16042 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16043
16044 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16045
16046 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16047
16048 2011-01-19 Richard Henderson <rth@redhat.com>
16049
16050 * config/mn10300/mn10300.md (addsi3_flags): New.
16051 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16052 (subsi3_flags, subc_internal, subdi3): New.
16053 (subdi3_internal, *subdi3_degenerate): New.
16054 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16055
16056 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16057 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16058 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16059 * config/mn10300/mn10300-protos.h: Update.
16060 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16061 (return_ret): Likewise. Rename from return_internal_regs.
16062 (return_internal): Remove.
16063
16064 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16065 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16066 (mn10300_legitimate_constant_p): Likewise.
16067 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16068 (mn10300_frame_size): New.
16069 (mn10300_expand_prologue): Use it.
16070 (mn10300_expand_epilogue): Likewise.
16071 (mn10300_initial_offset): Likewise.
16072 * config/mn10300/mn10300-protos.h: Update.
16073 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16074 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16075 (prologue, epilogue, return_internal): Tidy output code.
16076 (mn10300_store_multiple_operation, return): Likewise.
16077 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16078 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16079 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16080 (load_pic, am33_load_pic): New.
16081 (mn10300_load_pic0, mn10300_load_pic1): New.
16082
16083 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16084 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16085 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16086 (cc_flags_for_mode, cc_flags_for_code): New.
16087 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16088 overflow flag is not valid. Validate that the flags we need
16089 for the comparison are valid.
16090 (mn10300_output_cmp): Remove.
16091 (mn10300_output_add): New.
16092 (mn10300_select_cc_mode): Use cc_flags_for_code.
16093 (mn10300_split_cbranch): New.
16094 (mn10300_match_ccmode): New.
16095 (mn10300_split_and_operand_count): New.
16096 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16097 to the function.
16098 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16099 (addsi3): ... here. Use mn10300_output_add.
16100 (*addsi3_flags): New.
16101 (*am33_subsi3, *mn10300_subsi3): Merge...
16102 (subsi3): ... here. Use attribute isa.
16103 (*subsi3_flags): New.
16104 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16105 when possible.
16106 (*am33_andsi3, *mn10300_andsi3): Merge...
16107 (andsi3): ... here.
16108 (*andsi3_flags): New.
16109 (andsi3 splitters): New.
16110 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16111 (iorsi3): ... here.
16112 (*iorsi3_flags): New.
16113 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16114 (xorsi3): ... here.
16115 (*xorsi3_flags): New.
16116 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16117 (one_cmplsi2): ... here.
16118 (*one_cmplsi2_flags): New.
16119 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16120 instead of "dax" in constraints. Use mn10300_split_cbranch.
16121 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16122 use matching constraints to eliminate a self-comparison.
16123 (*integer_conditional_branch): Rename from integer_conditional_branch.
16124 Use int_mode_flags to match CC_REG.
16125 (*cbranchsi4_btst, *btstsi): New.
16126 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16127 mn10300_split_cbranch.
16128 (*am33_cmpsf): Rename from am33_cmpsf.
16129 (*float_conditional_branch): Rename from float_conditional_branch.
16130 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16131 (zero_extendqisi2): ... here.
16132 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16133 (zero_extendhisi2): ... here.
16134 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16135 (extendqisi2): ... here.
16136 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16137 (extendhisi2): ... here.
16138 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16139 (ashlsi3): ... here.
16140 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16141 (lshrsi3): ... here.
16142 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16143 (ashrsi3): ... here.
16144 (consecutive add peephole): Remove.
16145 * config/mn10300/predicates.md (label_ref_operand): New.
16146 (int_mode_flags): New.
16147 (CCZN_comparison_operator): New.
16148
16149 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16150 (throughput_42_latency_43): New reservation.
16151 (mulsidi3, umulsidi3): New expanders.
16152 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16153 the MDR register to allocation; separately allocate the low and
16154 high parts of the DImode result.
16155 (umulsidi3_internal): Similarly.
16156 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16157 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16158 (udivsi3, umodsi3): Remove.
16159 (udivmodsi4, divmodsi4): New expanders.
16160 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16161 (*divmodsi4): Simiarly.
16162 (ext_internal): New.
16163
16164 * config/mn10300/constraints.md ("z"): New constraint.
16165 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16166 (FIXED_REGISTERS): Don't fix MDR.
16167 (CALL_USED_REGSITERS): Reformat nicely.
16168 (REG_ALLOC_ORDER): Add MDR.
16169 (enum regclass): Add MDR_REGS.
16170 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16171 (IRA_COVER_CLASSES): Add MDR_REGS.
16172 (REGNO_REG_CLASS): Handle MDR_REG.
16173 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16174 (mn10300_register_move_cost): Likewise.
16175 * config/mn10300/mn10300.md (MDR_REG): New.
16176 (*movsi_internal): Handle moves to/from MDR_REGS.
16177
16178 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16179 POST_MODIFY.
16180 (mn10300_secondary_reload): Tidy combination reload classes.
16181 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16182 addresses for AM33. Allow symbolic offsets for reg+imm.
16183 (mn10300_regno_in_class_p): New.
16184 (mn10300_legitimize_reload_address): New.
16185 * config/mn10300/mn10300.h (enum reg_class): Remove
16186 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16187 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16188 SP_OR_GENERAL_REGS.
16189 (REG_CLASS_NAMES): Update to match.
16190 (REG_CLASS_CONTENTS): Likewise.
16191 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16192 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16193 (REGNO_IN_RANGE_P): Remove.
16194 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16195 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16196 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16197 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16198 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16199 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16200 (REGNO_GENERAL_P): New.
16201 (HAVE_POST_MODIFY_DISP): New.
16202 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16203 (LEGITIMIZE_RELOAD_ADDRESS): New.
16204 * config/mn10300/mn10300-protos.h: Update.
16205
16206 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16207 DATA_REGS for AM33 stack-pointer destination.
16208 (mn10300_preferred_output_reload_class): Likewise.
16209 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16210 into a form appropriate for ...
16211 (TARGET_SECONDARY_RELOAD): New.
16212 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16213 * config/mn10300/mn10300-protos.h: Update.
16214 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16215 reload_insi; use the "A" constraint for the scratch; handle AM33
16216 moves of sp to non-address registers.
16217
16218 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16219 (*movqi_internal): ... here.
16220 (*am33_movhi, *mn10300_movhi): Merge into...
16221 (*movhi_internal): ... here.
16222 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16223 as the source/destination of moves from/to SP.
16224 (movsf): Only allow for AM33-2.
16225 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16226 any integer constant constraint. Only allow for AM33-2. Tidy
16227 all of the alternative outputs.
16228 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16229 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16230 for MN103.
16231 (udivsi3, umodsi3): New patterns for MN103 only.
16232
16233 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16234
16235 * doc/tm.texi.in: Spell out that a lack of register class unions
16236 can lead to ICEs.
16237 * doc/tm.texi: Regenerate.
16238
16239 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16240
16241 PR rtl-optimization/47337
16242 * dce.c (check_argument_store): New function.
16243 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16244
16245 PR tree-optimization/47290
16246 * tree-eh.c (infinite_empty_loop_p): New function.
16247 (cleanup_empty_eh): Use it.
16248
16249 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16250
16251 PR target/46997
16252 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16253 (a64_expand_widen_sum): Ditto.
16254 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16255 (vec_extract_evenodd_help): Ditto.
16256 (vec_extract_evenv4hi): Ditto.
16257 (vec_extract_oddv4hi): Ditto.
16258 (vec_extract_evenv2si): Ditto.
16259 (vec_extract_oddv2si): Ditto.
16260 (vec_extract_evenv2sf): Ditto.
16261 (vec_extract_oddv2sf): Ditto.
16262 (vec_pack_trunc_v4hi: Ditto.
16263 (vec_pack_trunc_v2si): Ditto.
16264 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16265 (vec_interleave_highv8qi): Ditto.
16266 (mix1_r): Ditto.
16267 (vec_extract_oddv8qi): Ditto.
16268 (vec_interleave_lowv4hi): Ditto.
16269 (vec_interleave_highv4hi): Ditto.
16270 (vec_interleave_lowv2si): Ditto.
16271 (vec_interleave_highv2si): Ditto.
16272
16273 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16274
16275 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16276 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16277 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16278 (pa_c_mode_for_suffix): New.
16279 (TARGET_EXPAND_BUILTIN): Define.
16280 (TARGET_C_MODE_FOR_SUFFIX): Define.
16281 (pa_builtins): Define.
16282 (pa_init_builtins): Register __float128 type and init new support
16283 builtins.
16284 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16285 * config/pa/quadlib.c (_U_Qfcopysign): New.
16286
16287 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16288
16289 PR middle-end/46894
16290 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16291 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16292 are defined.
16293
16294 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16295
16296 PR tree-optimization/47179
16297 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16298 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16299
16300 2011-01-18 Richard Guenther <rguenther@suse.de>
16301
16302 PR rtl-optimization/47216
16303 * emit-rtl.c: Include tree-flow.h.
16304 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16305 of replicating it with different semantics.
16306 * Makefile.in (emit-rtl.o): Adjust.
16307
16308 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16309
16310 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16311 (cortex_a9_dp): Handle neon types correctly.
16312
16313 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16314
16315 PR rtl-optimization/47299
16316 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16317 subtarget. Use normal multiplication if both operands are constants.
16318 * expmed.c (expand_widening_mult): Don't try to optimize constant
16319 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16320 before using it.
16321
16322 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16323
16324 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16325 spacing after 'e.g.', typos, comma, hyphenation.
16326
16327 2011-01-17 Richard Henderson <rth@redhat.com>
16328
16329 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16330 (rx_restricted_mem_operand): New.
16331 (rx_shift_operand): Use register_operand.
16332 (rx_source_operand, rx_compare_operand): Likewise.
16333 * config/rx/rx.md (addsi3_flags): New expander.
16334 (adddi3): Rewrite as expander.
16335 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16336 (subsi3_flags): New expander.
16337 (subdi3): Rewrite as expander.
16338 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16339
16340 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16341 (rx_init_builtins): Remove sat builtin.
16342 (rx_expand_builtin): Likewise.
16343 * config/rx/rx.md (ssaddsi3): New.
16344 (*sat): Rename from sat. Represent the CC_REG input.
16345
16346 * config/rx/predicates.md (rshift_operator): New.
16347 * config/rx/rx.c (rx_expand_insv): Remove.
16348 * config/rx/rx-protos.h: Update.
16349 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16350 operand to the canonical position.
16351 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16352 (*bitclr, *bitclr_in_memory): Similarly.
16353 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16354 (insv): Retain the zero_extract in the expansion.
16355
16356 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16357 (bswaphi2, bitinvert, revw): Likewise.
16358
16359 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16360 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16361 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16362 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16363 (bitset, bitset_in_memory): Likewise.
16364 (bitinvert, bitinvert_in_memory): Likewise.
16365 (bitclr, bitclr_in_memory): Likewise.
16366 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16367 (rx_strend, rx_cmpstrn): Likewise.
16368 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16369 (bitop peep2 patterns): Remove.
16370
16371 * config/rx/rx.c (rx_match_ccmode): New.
16372 * config/rx/rx-protos.h: Update.
16373 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16374 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16375 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16376 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16377 (fix_truncsfsi2, floatsisf2): Likewise.
16378 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16379 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16380 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16381 (*subsi3_flags, *xorsi3_flags): New.
16382
16383 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16384
16385 * config/rx/rx.c (rx_print_operand): Remove workaround for
16386 unsplit comparison operations.
16387
16388 * config/rx/rx.md (movsicc): Split after reload.
16389 (*movsicc): Merge *movsieq and *movsine via match_operator.
16390 (*stcc): New pattern.
16391
16392 * config/rx/rx.c (rx_float_compare_mode): Remove.
16393 * config/rx/rx.h (rx_float_compare_mode): Remove.
16394 * config/rx/rx.md (cstoresi4): Split after reload.
16395 (*sccc): New pattern.
16396
16397 * config/rx/predicates.md (label_ref_operand): New.
16398 (rx_z_comparison_operator): New.
16399 (rx_zs_comparison_operator): New.
16400 (rx_fp_comparison_operator): New.
16401 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16402 Validate that the flags are set properly for the comparison.
16403 (rx_gen_cond_branch_template): Remove.
16404 (rx_cc_modes_compatible): Remove.
16405 (mode_from_flags): New.
16406 (flags_from_code): Rename from flags_needed_for_conditional.
16407 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16408 (rx_select_cc_mode): Likewise.
16409 (rx_split_fp_compare): New.
16410 (rx_split_cbranch): New.
16411 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16412 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16413 (*cbranchsf4): Similarly.
16414 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16415 match_operator and rx_split_cbranch.
16416 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16417 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16418 (*cmpsi): Rename from cmpsi.
16419 (*tstsi): Rename from tstsi.
16420 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16421 (*conditional_branch): Rename from conditional_branch.
16422 (*reveresed_conditional_branch): Remove.
16423 (b<code>): Remove expander.
16424 * config/rx/rx-protos.h: Update.
16425
16426 * config/rx/rx.c (rx_compare_redundant): Remove.
16427 * config/rx/rx.md (cmpsi): Don't use it.
16428 * config/rx/rx-protos.h: Update.
16429
16430 * config/rx/rx-modes.def (CC_F): New mode.
16431 * config/rx/rx.c (rx_select_cc_mode): New.
16432 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16433 * config/rx/rx-protos.h: Update.
16434
16435 2011-01-17 Richard Henderson <rth@redhat.com>
16436
16437 * except.c (dump_eh_tree): Fix stray ; after for statement.
16438
16439 2011-01-17 Richard Guenther <rguenther@suse.de>
16440
16441 PR tree-optimization/47313
16442 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16443 handling before copying the body. Properly deal with
16444 by-reference result in SSA form.
16445
16446 2011-01-17 Ian Lance Taylor <iant@google.com>
16447
16448 PR target/47219
16449 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16450 (struct_value_alias_set): Don't define.
16451 (sparc_option_override): Don't set sparc_sr_alias_set and
16452 struct_value_alias_set.
16453 (save_or_restore_regs): Use gen_frame_mem rather than calling
16454 set_mem_alias_set.
16455 (sparc_struct_value_rtx): Likewise.
16456
16457 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16458
16459 PR target/47318
16460 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16461 (_mm_maskstore_pd): Likewise.
16462 (_mm_maskload_ps): Likewise.
16463 (_mm_maskstore_ps): Likewise.
16464 (_mm256_maskload_pd): Change mask to __m256i.
16465 (_mm256_maskstore_pd): Likewise.
16466 (_mm256_maskload_ps): Likewise.
16467 (_mm256_maskstore_ps): Likewise.
16468
16469 * config/i386/i386-builtin-types.def: Updated.
16470 (ix86_expand_special_args_builtin): Likewise.
16471
16472 * config/i386/i386.c (bdesc_special_args): Update
16473 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16474 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16475 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16476 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16477
16478 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16479 Use <avxpermvecmode> on mask register.
16480 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16481
16482 2011-01-17 Olivier Hainque <hainque@adacore.com>
16483 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16484 Eric Botcazou <ebotcazou@adacore.com>
16485
16486 PR target/46655
16487 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16488 if <= USHRT_MAX in 32-bit mode.
16489
16490 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16491
16492 * doc/install.texi (Configuration, Specific): Wrap long
16493 lines in examples. Allow line wrapping in long options
16494 and URLs where beneficial for PDF output.
16495
16496 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16497
16498 * config/mips/mips.c (mips_classify_symbol): Don't return
16499 SYMBOL_PC_RELATIVE for nonlocal labels.
16500
16501 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16502
16503 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16504
16505 2011-01-15 Jan Hubicka <jh@suse.cz>
16506
16507 PR tree-optimization/47276
16508 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16509 declarations as needed.
16510
16511 2011-01-15 Martin Jambor <mjambor@suse.cz>
16512
16513 * common.opt (fdevirtualize): New flag.
16514 * doc/invoke.texi (Option Summary): Document it.
16515 * opts.c (default_options_table): Add devirtualize flag.
16516 * ipa-prop.c (detect_type_change): Return immediately if
16517 devirtualize flag is not set.
16518 (detect_type_change_ssa): Likewise.
16519 (compute_known_type_jump_func): Likewise.
16520 (ipa_analyze_virtual_call_uses): Likewise.
16521
16522 2011-01-14 Martin Jambor <mjambor@suse.cz>
16523
16524 PR tree-optimization/45934
16525 PR tree-optimization/46302
16526 * ipa-prop.c (type_change_info): New type.
16527 (stmt_may_be_vtbl_ptr_store): New function.
16528 (check_stmt_for_type_change): Likewise.
16529 (detect_type_change): Likewise.
16530 (detect_type_change_ssa): Likewise.
16531 (compute_complex_assign_jump_func): Check for dynamic type change.
16532 (compute_complex_ancestor_jump_func): Likewise.
16533 (compute_known_type_jump_func): Likewise.
16534 (compute_scalar_jump_functions): Likewise.
16535 (ipa_analyze_virtual_call_uses): Likewise.
16536 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16537
16538 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16539
16540 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16541 * config/i386/i386.opt (msse5): New Alias.
16542
16543 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16544
16545 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16546 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16547 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16548 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16549
16550 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16551
16552 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16553 -mcpu options.
16554 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16555 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16556 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16557 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16558 Likewise.
16559 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16560
16561 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16562
16563 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16564
16565 2011-01-14 Mike Stump <mikestump@comcast.net>
16566
16567 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16568 * config/fr30/fr30.md: Likweise
16569 (movsi_push): Likewise.
16570 (movsi_pop): Likewise.
16571 (enter_func): Likewise.
16572 * config/moxie/moxie.md (movsi_push): Likewise.
16573 (movsi_pop): Likewise.
16574
16575 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16576
16577 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16578 %{no_archive} %{exact_version}.
16579 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16580 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16581 %{no_archive} %{exact_version}.
16582 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16583 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16584 * config/mips/vxworks.h: Likewise.
16585
16586 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16587
16588 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16589
16590 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16591
16592 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16593 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16594
16595 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16596
16597 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16598 -nodefaultlib.
16599
16600 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16601
16602 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16603 for mcpu not cpu.
16604 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16605 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16606 not cpu.
16607 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16608 Don't handle -shlib.
16609
16610 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16611
16612 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16613 (CC1_SPEC): Don't handle -profile.
16614
16615 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16616
16617 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16618 * config/mips/mips.h (CC1_SPEC): Likewise.
16619
16620 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16621
16622 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16623 * config/mips/mips.h (CC1_SPEC): Likewise.
16624
16625 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16626
16627 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16628 * config/m32r/linux.h (LINK_SPEC): Likewise.
16629 * config/mips/linux.h (LINK_SPEC): Likewise.
16630 * config/mips/linux64.h (LINK_SPEC): Likewise.
16631 * config/sparc/linux.h (LINK_SPEC): Likewise.
16632 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16633 LINK_SPEC): Likewise.
16634 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16635
16636 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16637
16638 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16639 %{version:-v}.
16640 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16641
16642 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16643
16644 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16645 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16646
16647 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16648
16649 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16650
16651 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16652
16653 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16654 supports -Bstatic/-Bdynamic.
16655 * configure: Regenerate.
16656
16657 2011-01-14 Jan Hubicka <jh@suse.cz>
16658 Jack Howarth <howarth@bromo.med.uc.edu>
16659
16660 PR target/46037
16661 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16662 when checking debug_info_level. Test write_symbols instead of
16663 debug_hooks->var_location when setting flag_var_tracking_uninit.
16664
16665 2011-01-14 Richard Guenther <rguenther@suse.de>
16666
16667 PR tree-optimization/47179
16668 * target.def (ref_may_alias_errno): New target hook.
16669 * targhooks.h (default_ref_may_alias_errno): Declare.
16670 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16671 (default_ref_may_alias_errno): New function.
16672 * target.h (struct ao_ref_s): Declare.
16673 * tree-ssa-alias.c: Include target.h.
16674 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16675 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16676 (targhooks.o): Likewise.
16677 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16678 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16679
16680 2011-01-14 Richard Guenther <rguenther@suse.de>
16681
16682 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16683
16684 2011-01-14 Richard Guenther <rguenther@suse.de>
16685
16686 PR tree-optimization/47280
16687 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16688 return CFG changes.
16689 (tree_ssa_forward_propagate_single_use_vars): Deal with
16690 CFG changes from associate_plusminus.
16691
16692 2011-01-14 Richard Guenther <rguenther@suse.de>
16693
16694 PR middle-end/47281
16695 Revert
16696 2011-01-11 Richard Guenther <rguenther@suse.de>
16697
16698 PR tree-optimization/46076
16699 * tree-ssa.c (useless_type_conversion_p): Conversions from
16700 unprototyped to empty argument list function types are useless.
16701
16702 2011-01-14 Richard Guenther <rguenther@suse.de>
16703
16704 PR tree-optimization/47286
16705 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16706
16707 2011-01-14 Martin Jambor <mjambor@suse.cz>
16708
16709 PR middle-end/46823
16710 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16711
16712 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16713
16714 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16715 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16716 * config/xtensa/xtensa.c (xtensa_libcall_value,
16717 xtensa_function_value_regno_p): New functions.
16718 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16719
16720 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16721
16722 PR c++/47213
16723 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16724 PE specific hook.
16725 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16726 New function prototype.
16727 * config/i386/winnt.c (i386_pe_assemble_visibility):
16728 Warn only if attribute was specified by user.
16729
16730 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16731
16732 PR target/47251
16733 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16734 floating point.
16735 (floatunsdidf2_fcfidu): Ditto.
16736
16737 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16738
16739 * config/s390/s390.c (print_operand_address): Replace 'error' with
16740 'output_operand_lossage'.
16741 (print_operand): Likewise.
16742
16743 2011-01-13 Jeff Law <law@redhat.com>
16744
16745 PR rtl-optimization/39077
16746 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16747 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16748 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16749 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16750 * gcse.c (prune_insertions_deletions): New function.
16751 (compute_pre_data): Use it.
16752
16753 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16754
16755 PR debug/PR46973
16756 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16757 static function.
16758 (prune_unused_types_mark): Use it.
16759
16760 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16761
16762 PR rtl-optimization/45352
16763 * sel-sched.c: Update copyright years.
16764 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16765 in the advancing loop when we have issued issue_rate insns.
16766
16767 2011-01-12 Richard Henderson <rth@redhat.com>
16768
16769 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16770 (TARGET_MD_ASM_CLOBBERS): New.
16771
16772 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16773 (TARGET_DELEGITIMIZE_ADDRESS): New.
16774
16775 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16776 (clzsi2, *bsch): New patterns.
16777
16778 * config/mn10300/mn10300.md (INT): New mode iterator.
16779 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16780
16781 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16782 flag_split_wide_types.
16783
16784 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16785 (mn10300_trampoline_init): Rewrite without a template, an immediate
16786 load and a direct branch.
16787 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16788
16789 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16790
16791 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16792 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16793 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16794 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16795
16796 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16797
16798 PR debug/47209
16799 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16800 of type.
16801
16802 2011-01-12 Jan Hubicka <jh@suse.cz>
16803
16804 PR driver/47244
16805 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16806 (PLUGIN_COND_CLOSE): New macro.
16807 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16808
16809 2011-01-12 Richard Guenther <rguenther@suse.de>
16810
16811 PR lto/47259
16812 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16813 register variables in a MEM_REF.
16814
16815 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16816
16817 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16818 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16819 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16820 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16821 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16822 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16823 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16824 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16825 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16826 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16827 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16828 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16829 * config/gnu-user.h: New. Copied from linux.h.
16830 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16831 GNU_USER_TARGET_STARTFILE_SPEC.
16832 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16833 GNU_USER_TARGET_ENDFILE_SPEC.
16834 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16835 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16836 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16837 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16838 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16839 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16840 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16841 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16842 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16843 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16844 * config/arm/linux-eabi.h (CC1_SPEC): Use
16845 GNU_USER_TARGET_CC1_SPEC.
16846 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16847 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16848 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16849 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16850 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16851 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16852 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16853 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16854
16855 2011-01-12 Richard Guenther <rguenther@suse.de>
16856
16857 PR other/46946
16858 * doc/invoke.texi (ffast-math): Document it is turned on
16859 with -Ofast.
16860
16861 2011-01-12 Jan Hubicka <jh@suse.cz>
16862
16863 PR tree-optimization/47233
16864 * opts.c (common_handle_option): Disable ipa-reference with profile
16865 feedback.
16866
16867 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16868
16869 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16870 error message.
16871
16872 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16873
16874 * c-parser.c (c_lex_one_token): Updated and reindented some
16875 comments. No changes in code.
16876
16877 2011-01-11 Ian Lance Taylor <iant@google.com>
16878
16879 * godump.c (go_output_var): Don't output the variable if there is
16880 already a type with the same name.
16881
16882 2011-01-11 Ian Lance Taylor <iant@google.com>
16883
16884 * godump.c (go_format_type): Don't generate float80.
16885
16886 2011-01-11 Richard Henderson <rth@redhat.com>
16887
16888 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16889 declaration. Rewrite for both speed and size.
16890 (mn10300_address_cost_1): Remove.
16891 (mn10300_register_move_cost): New.
16892 (mn10300_memory_move_cost): New.
16893 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16894 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16895 extensions, shifts, BSWAP, CLZ.
16896 (mn10300_wide_const_load_uses_clr): Remove.
16897 (TARGET_REGISTER_MOVE_COST): New.
16898 (TARGET_MEMORY_MOVE_COST): New.
16899 * config/mn10300/mn10300-protos.h: Update.
16900 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16901
16902 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16903 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16904 * config/mn10300/mn10300-protos.h: Update.
16905 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16906 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16907 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16908 (*test_int_bitfield, *test_byte_bitfield): Remove.
16909 (*bit_test, *subreg_bit_test): Remove.
16910 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16911
16912 * config/mn10300/constraints.md ("c"): Rename from "A".
16913 ("A", "D"): New constraint letters.
16914 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16915 (fmssf4, fnmasf4, fnmssf4): Likewise.
16916
16917 * config/mn10300/mn10300.md (isa): New attribute.
16918 (enabled): New attribute.
16919
16920 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16921 (abssf2, negsf2): Define only for hardware fp.
16922 (sqrtsf2): Reformat.
16923 (addsf3, subsf3, mulsf3): Merge expander and insn.
16924
16925 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16926 (DEBUGGER_AUTO_OFFSET): Remove.
16927 (DEBUGGER_ARG_OFFSET): Remove.
16928
16929 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16930 Emit register stores with the same offsets as the hardware.
16931 (mn10300_store_multiple_operation): Don't check that the register
16932 save offsets are monotonic.
16933 * config/mn10300/mn10300-protos.h: Update.
16934
16935 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16936
16937 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16938 in terms of the value on the stack, not the MDR register.
16939
16940 2011-01-11 Jan Hubicka <jh@suse.cz>
16941
16942 PR lto/45721
16943 PR lto/45375
16944 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16945 (symbol_alias_set_destroy, symbol_alias_set_contains,
16946 propagate_aliases_backward): Declare.
16947 * lto-streamer-out.c (struct sets): New sturcture.
16948 (trivally_defined_alias): New function.
16949 (output_alias_pair_p): Rewrite.
16950 (output_unreferenced_globals): Fix output of alias pairs.
16951 (produce_symtab): Likewise.
16952 * ipa.c (function_and_variable_visibility): Set weak alias destination
16953 as needed in lto.
16954 * varasm.c (symbol_alias_set_t): Remove.
16955 (symbol_alias_set_destroy): Export.
16956 (propagate_aliases_forward, propagate_aliases_backward): New functions
16957 based on ...
16958 (compute_visible_aliases): ... this one; remove.
16959 (trivially_visible_alias): New
16960 (trivially_defined_alias): New.
16961 (remove_unreachable_alias_pairs): Rewrite.
16962 (finish_aliases_1): Reorganize code checking if alias is defined.
16963 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16964 in LTO mode.
16965
16966 2011-01-11 Richard Guenther <rguenther@suse.de>
16967
16968 PR tree-optimization/46076
16969 * tree-ssa.c (useless_type_conversion_p): Conversions from
16970 unprototyped to empty argument list function types are useless.
16971
16972 2011-01-11 Richard Guenther <rguenther@suse.de>
16973
16974 PR middle-end/45235
16975 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16976 volatile MEMs as MEM_READONLY_P.
16977
16978 2011-01-11 Richard Guenther <rguenther@suse.de>
16979
16980 PR tree-optimization/47239
16981 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16982
16983 2011-01-11 Jeff Law <law@redhat.com>
16984
16985 PR tree-optimization/47086
16986 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16987 IVs from statements that might throw.
16988
16989 2011-01-10 Jan Hubicka <jh@suse.cz>
16990
16991 PR lto/45375
16992 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16993
16994 2011-01-10 Jan Hubicka <jh@suse.cz>
16995
16996 PR lto/45375
16997 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16998 when correcting profile.
16999
17000 2011-01-10 Jan Hubicka <jh@suse.cz>
17001
17002 PR lto/46083
17003 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17004 DECL_FINI_PRIORITY.
17005 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17006 Restore DECL_FINI_PRIORITY.
17007
17008 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17009
17010 * doc/gimple.texi: Fix quoting of multi-word return values in
17011 @deftypefn statements. Ensure presence of return value. Wrap
17012 overlong @deftypefn lines.
17013 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17014 descriptions of removed functions.
17015 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17016 of multi-word return value in @deftypefn statement.
17017
17018 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17019
17020 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17021 (Conditional Expressions, Logical Operators)
17022 (Statement and operand traversals): Do not indent smallexample
17023 code. Fix duplicate function argument in example.
17024
17025 2011-01-10 Jeff Law <law@redhat.com>
17026
17027 PR tree-optimization/47141
17028 * ipa-split.c (split_function): Handle case where we are
17029 returning a value and the return block has a virtual operand phi.
17030
17031 2011-01-10 Jan Hubicka <jh@suse.cz>
17032
17033 PR tree-optimization/47234
17034 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17035 (pass_feedback_split_functions): Declare.
17036 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17037 tree-profile.
17038 * ipa-split.c (gate_split_functions): Update comments; disable
17039 split-functions for profile_arc_flag and branch_probabilities.
17040 (gate_feedback_split_functions): New function.
17041 (execute_feedback_split_functions): New function.
17042 (pass_feedback_split_functions): New global var.
17043
17044 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17045
17046 PR lto/46760
17047 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17048 calling gimple_call_set_cannot_inline.
17049
17050 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17051
17052 * config/darwin-sections.def: Remove unused section.
17053
17054 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17055
17056 PR c++/47218
17057 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17058
17059 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17060
17061 PR objc/47232
17062 * c-parser.c (c_parser_declaration_or_fndef): Improved
17063 error message.
17064
17065 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17066
17067 * config/i386/winnt.c (i386_pe_start_function): Make sure
17068 to switch back to function's section.
17069
17070 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17071
17072 PR gcc/46902
17073 PR testsuite/46912
17074 * plugin.c: Move include of dlfcn.h from here...
17075 * system.h: ... to here.
17076
17077 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17078
17079 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17080 file name.
17081 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17082 two extra empty pages in PDF output.
17083
17084 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17085
17086 PR objc/47078
17087 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17088 for error recovery purposes behave as if it was not specified so
17089 that the default type is usd.
17090
17091 2011-01-07 Jan Hubicka <jh@suse.cz>
17092
17093 PR tree-optmization/46469
17094 * ipa.c (function_and_variable_visibility): Clear needed flags on
17095 nodes with external decls; handle weakrefs merging correctly.
17096
17097 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17098
17099 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17100 not false.
17101
17102 2011-01-07 Jan Hubicka <jh@suse.cz>
17103
17104 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17105 and no longer claim that gold is required for linker plugin.
17106 * configure: Regenerate.
17107 * gcc.c (PLUGIN_COND): New macro.
17108 (LINK_COMMAND_SPEC): Use it.
17109 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17110 * config.in (HAVE_LTO_PLUGIN): New.
17111 * configure.ac (--with-lto-plugin): New parameter; autodetect
17112 HAVE_LTO_PLUGIN.
17113
17114 2011-01-07 Jan Hubicka <jh@suse.cz>
17115
17116 PR tree-optimization/46367
17117 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17118 when we can update original.
17119 (cgraph_mark_inline_edge): Sanity check.
17120 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17121
17122 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17123
17124 * config/spu/spu.h (ASM_COMMENT_START): Define.
17125
17126 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17127
17128 PR driver/42445
17129 * gcc.c (%>S): New.
17130 (SWITCH_KEEP_FOR_GCC): Likewise.
17131 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17132 (do_spec_1): Handle "%>".
17133
17134 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17135
17136 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17137
17138 PR target/47201
17139 * config/i386/i386.c (ix86_delegitimize_address): If
17140 simplify_gen_subreg fails, return orig_x.
17141
17142 PR bootstrap/47187
17143 * value-prof.c (gimple_stringop_fixed_value): Handle
17144 lhs of the call properly.
17145
17146 2011-01-07 Jan Hubicka <jh@suse.cz>
17147
17148 PR lto/45375
17149 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17150
17151 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17152
17153 * target.def (function_switched_text_sections): New hook.
17154 * doc/tm.texi: Regenerated.
17155 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17156 * final.c (default_function_switched_text_sections): New.
17157 (final_scan_insn): Call function_switched_text_sections when a
17158 mid-function section change occurs.
17159 * output.h (default_function_switched_text_sections): Declare.
17160 * config/darwin-protos.h (darwin_function_switched_text_sections):
17161 Likewise.
17162 * config/darwin.c (darwin_function_switched_text_sections): New.
17163 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17164
17165 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17166
17167 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17168 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17169 the secondary code fragment when outputting for DWARF == 2.
17170
17171 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17172
17173 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17174 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17175 Remove.
17176 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17177 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17178
17179 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17180
17181 PR debug/46704
17182 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17183 when it is not empty.
17184
17185 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17186
17187 Bobcat Enablement
17188 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17189 (case ${target}): Add btver1.
17190 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17191 -march=native recognize btver1 processors.
17192 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17193 btver1 def_and_undef
17194 * config/i386/i386.c (struct processor_costs btver1_cost): New
17195 btver1 cost table.
17196 (m_BTVER1): New definition.
17197 (m_AMD_MULTIPLE): Includes m_BTVER1.
17198 (initial_ix86_tune_features): Add btver1 tune.
17199 (processor_target_table): Add btver1 entry.
17200 (static const char *const cpu_names): Add btver1 entry.
17201 (software_prefetching_beneficial_p): Add btver1.
17202 (ix86_option_override_internal): Add btver1 instruction sets.
17203 (ix86_issue_rate): Add btver1.
17204 (ix86_adjust_cost): Add btver1.
17205 * config/i386/i386.h (TARGET_BTVER1): New definition.
17206 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17207 (enum processor_type): Add PROCESSOR_BTVER1.
17208 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17209
17210 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17211
17212 PR target/43309
17213 * config/i386/i386.c (legitimize_tls_address)
17214 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17215 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17216 (tls_initial_exec_64_sun): New pattern.
17217
17218 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17219
17220 * doc/invoke.texi (Overall Options): Improve wording and markup
17221 of the description of -wrapper.
17222
17223 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17224
17225 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17226 rdynamic, threads): New Driver options.
17227
17228 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17229
17230 PR target/38118
17231 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17232 if coming from .tdata.
17233 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17234
17235 2011-01-06 Jan Hubicka <jh@suse.cz>
17236
17237 PR lto/47188
17238 * collect2.c (main): Do not enable LTOmode when plugin is active.
17239
17240 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17241
17242 PR other/45915
17243 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17244 --version output if supported.
17245 * configure: Regenerate.
17246
17247 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17248
17249 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17250 Driver options.
17251
17252 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17253
17254 PR c/47150
17255 * c-convert.c (convert): When converting a complex expression
17256 other than COMPLEX_EXPR to a different complex type, ensure
17257 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17258 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17259 when converting COMPLEX_TYPE.
17260
17261 2011-01-06 Ira Rosen <irar@il.ibm.com>
17262
17263 PR tree-optimization/47139
17264 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17265 only the last reduction value is used outside the loop. Update
17266 documentation.
17267
17268 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17269
17270 * config/rtems.opt: New.
17271 * config.gcc (*-*-rtems*): Use rtems.opt.
17272
17273 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17274
17275 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17276 processors do not support 3DNow instructions.
17277
17278 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17279
17280 * config/spu/spu.c (spu_option_override): Set parameter
17281 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17282
17283 2011-01-05 Jan Hubicka <jh@suse.cz>
17284
17285 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17286 at the command line.
17287
17288 2011-01-05 Martin Jambor <mjambor@suse.cz>
17289
17290 PR lto/47162
17291 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17292 deltas on streamed outgoing edges.
17293 (output_node_opt_summary): Output info for outgoing edges only when
17294 the node is in new parameter set.
17295 (output_cgraph_opt_summary): New parameter set, passed to the two
17296 aforementioned functions. Update its forward declaration and its
17297 callee too.
17298
17299 2011-01-05 Tom Tromey <tromey@redhat.com>
17300
17301 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17302 operator to c_finish_omp_atomic.
17303 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17304 (build_unary_op): Update.
17305 (build_modify_expr): Update.
17306 (build_asm_expr): Update.
17307
17308 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17309
17310 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17311 newly inserted insns.
17312 (pad_bb): Likewise.
17313 (spu_emit_branch_hint): Likewise.
17314 (insert_hbrp_for_ilb_runout): Likewise.
17315 (spu_machine_dependent_reorg): Call df_finish_pass after
17316 schedule_insns returns.
17317
17318 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17319
17320 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17321
17322 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17323
17324 PR tree-optimization/47005
17325 * tree-sra.c (struct access): Add 'non_addressable' bit.
17326 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17327 (decide_one_param_reduction): Return 0 if the parameter is passed by
17328 reference and one of the accesses in the group is non_addressable.
17329
17330 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17331
17332 PR tree-optimization/47056
17333 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17334 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17335 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17336
17337 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17338
17339 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17340 initializer. Skip view conversions from aggregate types.
17341
17342 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17343
17344 PR bootstrap/47055
17345 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17346
17347 2011-01-04 Philipp Thomas <pth@suse.de>
17348
17349 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17350 obvious typo.
17351
17352 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17353
17354 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17355 on empty epilogue sequences.
17356
17357 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17358
17359 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17360 non-static): New Driver options.
17361
17362 2011-01-04 Jie Zhang <jie@codesourcery.com>
17363
17364 PR driver/47137
17365 * gcc.c (default_compilers[]): Set combinable field to 0
17366 for all assembly languages.
17367
17368 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17369
17370 * config/mips/loongson3a.md: New file.
17371 * config/mips/mips.md: Include loongson3a.md.
17372 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17373 TUNE_LOONGSON_3A.
17374
17375 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17376
17377 PR middle-end/47017
17378 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17379 instead of convert_memory_address_addr_space on the base expression.
17380
17381 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17382
17383 * config/spu/spu.c (spu_option_override): Update error text
17384 for bad -march= / -mtune= values.
17385
17386 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17387
17388 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17389 if branch-hint optimization will be performed.
17390
17391 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17392
17393 PR tree-optimization/47148
17394 * ipa-split.c (split_function): Convert arguments to
17395 DECL_ARG_TYPE if possible.
17396
17397 PR tree-optimization/47155
17398 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17399 when computing uns.
17400
17401 PR rtl-optimization/47157
17402 * combine.c (try_combine): If undobuf.other_insn becomes
17403 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17404 and set *new_direct_jump_p too.
17405
17406 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17407
17408 PR tree-optimization/47021
17409 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17410
17411 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17412
17413 * gcc.c (process_command): Update copyright notice dates.
17414 * gcov.c (print_version): Likewise.
17415 * gcov-dump.c (print_version): Likewise.
17416 * mips-tfile.c (main): Likewise.
17417 * mips-tdump.c (main): Likewise.
17418
17419 2011-01-03 Martin Jambor <mjambor@suse.cz>
17420
17421 PR tree-optimization/46801
17422 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17423 aggregate fields start at byte boundary instead of the bit-field flag.
17424
17425 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17426
17427 PR driver/47137
17428 * gcc.c (main): Revert revision 168407.
17429
17430 2011-01-03 Martin Jambor <mjambor@suse.cz>
17431
17432 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17433
17434 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17435
17436 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17437 vector optab to expand vector/scalar shift, update gimple to vector.
17438
17439 2011-01-03 Martin Jambor <mjambor@suse.cz>
17440
17441 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17442 a thunk.
17443
17444 2011-01-03 Martin Jambor <mjambor@suse.cz>
17445
17446 PR tree-optimization/46984
17447 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17448 HOST_WIDE_INT.
17449 (cgraph_create_indirect_edge): Fixed line length.
17450 (cgraph_indirect_call_info): Declare.
17451 (cgraph_make_edge_direct) Update declaration.
17452 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17453 (cgraph_create_indirect_edge): Use it.
17454 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17455 callees.
17456 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17457 the new thunk_delta representation.
17458 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17459 HOST_WIDE_INT.
17460 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17461 (ipa_read_indirect_edge_info): Likewise.
17462 * lto-cgraph.c (output_edge_opt_summary): New function.
17463 (output_node_opt_summary): Call it on all outgoing edges.
17464 (input_edge_opt_summary): New function.
17465 (input_node_opt_summary): Call it on all outgoing edges.
17466
17467 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17468
17469 PR driver/47137
17470 * gcc.c (main): Don't check have_o when settting combine_inputs.
17471
17472 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17473
17474 * regrename.c: Add general comment describing the pass.
17475 (struct du_head): Remove 'length' field.
17476 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17477 (regrename_optimize): Do not sort chains. Rework comments, add others.
17478 Force renaming to the preferred class (if any) in the first pass and do
17479 not consider registers that belong to it in the second pass.
17480 (create_new_chain): Do not set 'length' field.
17481 (scan_rtx_reg): Likewise.
17482
17483 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17484
17485 PR tree-optimization/47140
17486 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17487 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17488 to bit_value_binop.
17489
17490 PR rtl-optimization/47028
17491 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17492 parm_birth_insn instead of at the beginning of first bb.
17493
17494 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17495
17496 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17497 Remove the word "see" before "@pxref".
17498 * doc/rtl.texi: Remove the word "see" before "@pxref".
17499
17500 2011-01-01 Jan Hubicka <jh@suse.cz>
17501
17502 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17503 memory.
17504
17505 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17506
17507 PR target/38662
17508 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17509
17510 \f
17511 Copyright (C) 2011 Free Software Foundation, Inc.
17512
17513 Copying and distribution of this file, with or without modification,
17514 are permitted in any medium without royalty provided the copyright
17515 notice and this notice are preserved.