OSDN Git Service

PR debug/45849
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
2
3         PR debug/45849
4         * var-tracking.c (strip_pointer_flags): New function.
5         (emit_note_insn_var_location): If rtx_equal_p check failed,
6         retry on locations simplified with simplify_replace_fn_rtx
7         and strip_pointer_flags as its callback.
8
9 2010-10-04  Jan Hubicka  <jh@suse.cz>
10
11         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
12         (can_refer_decl_in_current_unit_p): ... this one; reverse return
13         value; handle comdats too.
14         (canonicalize_constructor_val): Use it; handle function_decls
15         correctly.
16         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17         * gimple.c (get_base_address): Accept all kinds of decls.
18
19 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
20
21         * flags.h (g_switch_value, g_switch_set): Remove.
22         * opts.c (g_switch_value, g_switch_set): Remove.
23         * config/g.opt (G): Add Var(g_switch_value).
24         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G
25         here.
26         (alpha_option_override): Check global_options_set.x_g_switch_value
27         instead of g_switch_set.
28         (alpha_in_small_data_p): Remove cast in comparison with
29         g_switch_value.
30         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
31         g_switch_value to unsigned HOST_WIDE_INT.
32         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
33         with g_switch_value.
34         (frv_handle_option): Don't handle -G here.
35         (frv_option_override): Check global_options_set.x_g_switch_value
36         instead of g_switch_set.  Don't modify g_switch_set.
37         (frv_in_small_data_p): Remove cast in comparison with
38         g_switch_value.
39         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
40         g_switch_value to unsigned HOST_WIDE_INT.
41         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
42         (ia64_option_override): Check global_options_set.x_g_switch_value
43         instead of g_switch_set.
44         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
45         Remove.
46         (lm32_in_small_data_p): Remove cast in comparison with
47         g_switch_value.
48         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
49         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
50         HOST_WIDE_INT.
51         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
52         (m32r_init): Check global_options_set.x_g_switch_value instead of
53         g_switch_set.
54         (m32r_in_small_data_p): Remove cast in comparison with
55         g_switch_value.
56         (m32r_file_start): Format g_switch_value with %d.
57         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
58         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned
59         HOST_WIDE_INT.
60         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
61         handle -G here.
62         (microblaze_option_override): Check
63         global_options_set.x_g_switch_value instead of g_switch_set.
64         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
65         (mips_option_override): Check global_options_set.x_g_switch_value
66         instead of g_switch_set.
67         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G
68         here.
69         (rs6000_file_start): Format g_switch_value with %d.
70         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
71         comparisons with g_switch_value.
72         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
73         global_options_set.x_g_switch_value instead of g_switch_set.
74         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
75         global_options_set.x_g_switch_value instead of g_switch_set.
76         * config/score/score.c (score_handle_option): Don't handle -G
77         here.
78         * config/score/score3.c (score3_option_override): Check
79         global_options_set.x_g_switch_value instead of g_switch_set.
80         * config/score/score7.c (score7_option_override): Check
81         global_options_set.x_g_switch_value instead of g_switch_set.
82
83 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
84
85         * common.opt (fira-coalesce): Remove.
86
87         * doc/invoke.texi (flag_ira_coalesce): Remove.
88
89         * ira-color.c (allocno_coalesced_p): Move before
90         copy_freq_compare_func.
91         processed_coalesced_allocno_bitmap): Ditto.
92         (update_conflict_hard_regno_costs): Don't use
93         ALLOCNO_FIRST_COALESCED_ALLOCNO.
94         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
95         (assign_hard_reg): Assume no coalesced allocnos.
96         (get_coalesced_allocnos_attributes): Remove.
97         (bucket_allocno_compare_func): Assume no coalesced allocnos.
98         (push_allocno_to_stack): Ditto.
99         (remove_allocno_from_bucket_and_push): Use
100         ira_print_expanded_allocno instead of print_coalesced_allocno.
101         (push_allocnos_to_stack): Assume uncoalesced allocnos.
102         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
103         all_conflicting_hard_regs.
104         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
105         (setup_allocno_left_conflicts_size): Ditto.
106         (put_allocno_into_bucket): Ditto.
107         (copy_freq_compare_func): Remove.
108         (copy_freq_compare_func, merge_allocnos): Move before
109         coalesced_pseudo_reg_freq_compare.
110         coalesced_allocno_conflict_p): Ditto.
111         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
112         parameter.  Assume it true.
113         (color_allocnos): Assume uncoalesced allocnos.  Use
114         ira_print_expanded_allocno instead of print_coalesced_allocno.
115         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
116         parameter.
117
118         * ira.c: Remove comment about coalescing.
119
120 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
121
122         * config/mips/mips.h (target_flags_explicit): Declare for
123         GENERATOR_FILE.
124
125 2010-10-04  Andi Kleen <ak@linux.intel.com>
126
127         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
128         gcov-dump, cc1-dummy, genprog, build/gcov-iov):
129         Add + to build rule.
130
131 2010-10-04  Matthias Klose  <doko@ubuntu.com>
132
133         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
134         multilib osdirname if it exists.
135         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
136
137 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
138
139         PR middle-end/45876
140         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
141         arg0's type or its unsigned counterpart as utype.  Convert
142         arg1 to utype unconditionally.
143
144 2010-10-04  Julian Brown  <julian@codesourcery.com>
145
146         * expr.c (expand_assignment): Add assertion to prevent emitting
147         null rtx for movmisalign pattern.
148         (expand_expr_real_1): Likewise.
149         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
150         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
151         (arm_vector_alignment_reachable): New.
152         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
153         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
154         (arm_print_operand): Include alignment qualifier in %A.
155         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
156         (movmisalign<mode>): New expander.
157         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
158         insn patterns.
159
160 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
161
162         * optc-gen.awk: Define global_options_set.  Don't define
163         target_flags_explicit.
164         * opth-gen.awk: Declare global_options_set.  Define
165         target_flags_explicit as macro.
166         * opts-common.c (handle_option): Take opts_set and generated_p
167         parameters.
168         (handle_generated_option, read_cmdline_option, set_option): Take
169         opts_set parameter.
170         (set_option): Use opts_set instead of hardcoding target_flags and
171         target_flags_explicit.
172         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
173         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
174         flag_value_profile_transformations_set, flag_peel_loops_set,
175         flag_branch_probabilities_set, flag_inline_functions_set,
176         flag_ipa_cp_set, flag_ipa_cp_clone_set,
177         flag_predictive_commoning_set, flag_unswitch_loops_set,
178         flag_gcse_after_reload_set): Remove.
179         (common_handle_option, lang_handle_option, target_handle_option):
180         Take opts_set parameter.  Assert that it is &global_options_set.
181         (common_handle_option): Don't set _set variables.  Check opts_set
182         instead of such variables.
183         (enable_warning_as_error): Pass &global_options_set to
184         handle_generated_option.
185         * opts.h (cl_option_handler_func.handler, set_option,
186         handle_option, handle_generated_option, read_cmdline_option): Add
187         opts_set parameters.
188         (handle_option): Add generated_p parameter.
189         * config/i386/i386.c (ix86_function_specific_save,
190         ix86_function_specific_restore): Updat for renaming of
191         target_flags_explicit field.
192         * config/i386/i386.opt (target_flags_explicit): Rename to
193         ix86_target_flags_explicit.
194         * config/ia64/ia64.c (ia64_override_options_after_change): Check
195         global_options_set.x_flag_selective_scheduling and
196         global_options_set.x_flag_selective_scheduling2, not
197         sel_sched_switch_set.
198         * flags.h (sel_sched_switch_set,
199         flag_speculative_prefetching_set): Remove.
200         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
201         that it is &global_options_set.
202         (process_command): Pass &global_options_set to
203         read_cmdline_option.
204         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
205         set_option.
206         * toplev.c (target_flags_explicit): Remove.
207
208 2010-10-04  Jan Hubicka  <jh@suse.cz>
209
210         PR middle-end/45871
211         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
212         use get_ref_base_and_offset to handle references.
213         (fold_const_aggregate_ref): Update.
214
215 2010-10-04  Martin Jambor  <mjambor@suse.cz>
216
217         PR tree-optimization/45572
218         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
219         ipa_check_create_node_params.
220         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
221
222 2010-10-04  Yao Qi  <yao@codesourcery.com>
223
224         * doc/passes.texi: Clean up.
225
226 2010-10-03  Ian Lance Taylor  <iant@google.com>
227
228         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
229         referring to a field using a typedef name.
230         (find_anonymous_field_with_type): New static function.
231         (convert_to_anonymous_field): New static function.
232         (convert_for_assignment): If -fplan9-extensions, permit converting
233         pointer to struct to pointer to anonymous field.
234         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
235         fields.
236         (is_duplicate_field): New static function.
237         (detect_field_duplicates_hash): If -fplan9-extensions, check for
238         typedef names duplicating field names.
239         (detect_field_duplicates): Likewise.
240         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
241         (C Dialect Options): Document -fplan9-extensions.
242         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
243
244 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
245
246         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
247         revision 164914.
248         (vect_create_data_ref_ptr): Likewise.
249         * tree-vect-stmts.c (vectorizable_store): Likewise.
250         (perm_mask_for_reverse): Likewise.
251         (reverse_vec_elements): Likewise.
252         (vectorizable_load): Likewise.
253
254 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
255
256         * cppbuiltin.c: New file.
257         * cppbuiltin.h: New file.
258         * Makefile.in: Take into account cppbuiltin.{h,c}.
259
260 2010-10-03  Andi Kleen <ak@linux.intel.com>
261
262         * lto-cgraph.c (input_cgraph): Check for missing sections.
263
264 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
265
266         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
267         to nonimmediate_operand.  Force operand 2 to register when allowed.
268         (*<shiftrt_insn><mode>3_mask): Ditto.
269         (*<rotate_insn><mode>3_mask): Ditto.
270
271 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
272
273         PR tree-optimization/45720
274         PR tree-optimization/45764
275         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
276         Don't accept backwards consecutive accesses.
277         (vect_create_data_ref_ptr): Disallow negative steps.
278
279         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
280         (perm_mask_for_reverse): Removed.
281         (reverse_vec_elements): Likewise.
282         (vectorizable_load): Don't handle negative steps.
283
284 2010-10-02  Jan Hubicka  <jh@suse.cz>
285
286         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
287         call destination is known.
288
289 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
290
291         PR target/45820
292         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
293         earlier.
294
295 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
296
297         * doc/install.texi (Configuration): Document build_configargs,
298         host_configargs, target_configargs.
299
300 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
301
302         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
303         (*<shiftrt_insn><mode>3_mask): Ditto.
304         (*<rotate_insn><mode>3_mask): Ditto.
305
306 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
307
308         PR tree-optimization/44716
309         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
310         (HOT_TEXT_SECTION_NAME): Define.
311
312 2010-10-01  Nick Clifton  <nickc@redhat.com>
313
314         * common.opt: Add -fcombine-stack-adjustments.
315         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
316         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
317         flag_combine_stack_adjustments.
318         * doc/invoke.texi: Document the new option.
319
320 2010-10-01  Richard Guenther  <rguenther@suse.de>
321
322         PR tree-optimization/45854
323         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
324
325 2010-10-01  Anthony Green  <green@moxielogic.com>
326
327         * config.gcc: Fix moxie-*-rtems* configuration.
328
329 2010-10-01  Richard Guenther  <rguenther@suse.de>
330
331         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
332         (gen_decl_die): Likewise.
333
334 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
335
336         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
337         to the function code for SPU MD builtins.
338         (spu_expand_builtin): Update.
339         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
340
341 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
342
343         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
344         sjlj_except_unwind_info.
345
346 2010-10-01  Tristan Gingold  <gingold@adacore.com>
347
348         * configure.ac: Define the nop insn for avr*-*-*
349         * configure: Regenerate.
350
351 2010-10-01  Alan Modra  <amodra@gmail.com>
352
353         PR target/45807
354         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
355         extend toc_restore_insn.
356
357 2010-09-30  Richard Guenther  <rguenther@suse.de>
358
359         PR tree-optimization/43959
360         * function.c (gimplify_parameters): Use create_tmp_reg instead of
361         create_tmp_var.
362
363 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
364
365         * config/sh/sh.c (sh_expand_prologue): Set
366         current_function_static_stack_size.
367
368 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
369
370         * configure.ac: Check for Solaris 8 ld with .hidden support.
371         * configure: Regenerate.
372
373 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
374
375         PR middle-end/45758
376         * graphite.c (graphite_initialize): Call scev_reset.
377
378 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
379
380         * sese.h (scev_analyzable_p): Return false for real or floating
381         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
382
383 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
384
385         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
386         and ps.
387         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
388         domain.
389         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
390         Do not allocate ub_expr, it is passed in initialized.
391
392 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
393
394         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
395         (build_cloog_prog): Dump CLooG input file when
396         flag_graphite_dump_cloog is set.  This is disabled on trunk.
397         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
398
399 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
400
401         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
402         verify_dominators for CDI_POST_DOMINATORS.
403         * sese.h: Remove comment about CDI_POST_DOMINATORS.
404         (recompute_all_dominators): Remove call to free_dominance_info
405         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
406         for CDI_POST_DOMINATORS.
407
408 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
409
410         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
411         over pbb_dim_iter_domain.
412
413 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
414
415         * graphite-flattening.c: Fix comments.
416
417 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
418
419         * Makefile.in (OBJS-common): Add graphite-flattening.o.
420         (graphite-flattening.o): New rule.
421         * common.opt (floop-flatten): New flag.
422         * doc/invoke.texi (-floop-flatten): Documented.
423         * graphite-flattening.c: New.
424         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
425         * graphite-poly.h (flatten_all_loops): Declared.
426         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
427         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
428         is set, also set flag_graphite.
429
430 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
431
432         * graphite-poly.c (cloog_checksum): New.
433         * graphite-poly.h (cloog_checksum): Declared.
434
435 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
436
437         * graphite-poly.c (pbb_number_of_iterations): Removed.
438         (pbb_number_of_iterations_at_time): Correctly compute the number
439         of iterations in the transformed loop.
440         * graphite-poly.h (pbb_number_of_iterations): Removed.
441
442 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
443
444         * graphite-poly.h (lst_update_scattering_seq): Removed.
445         (lst_update_scattering): Correctly handle outermost loop dewey
446         renumbering.
447
448 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
449
450         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
451         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
452         * graphite-poly.h (lst_niter_for_loop): New.
453
454 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
455
456         * graphite-poly.c (apply_poly_transforms): Do not abort when the
457         transform read from disk is not legal.  Call fatal_error instead.
458
459 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
460
461         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
462         (print_scop_header): Removed.  Inlined in the only call place...
463         (print_scop): ... here.
464
465 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
466
467         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
468
469 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
470
471         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
472
473 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
474
475         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
476         (dot_deps_stmt): Same.
477         * graphite-poly.c (dot_lst): Same.
478
479 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
480
481         * graphite-blocking.c (scop_do_strip_mine): Do not call
482         graphite_legal_transform.
483         (scop_do_block): Same.
484
485 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
486
487         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
488         description.
489
490 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
491
492         * tree-scalar-evolution.c (instantiate_array_ref): New.
493         (instantiate_scev_r): Also handle ARRAY_REFs.
494
495 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
496
497         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
498         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
499         RESULT_DECL, and FIELD_DECL.  Return false for an
500         SSA_NAME_IS_DEFAULT_DEF.
501         (compute_scalar_evolution_in_loop): Do not further analyze the
502         scalar evolution when no_evolution_in_loop_p returns true.
503
504 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
505
506         * tree-chrec.h (evolution_function_is_affine_p): Do not check
507         whether CHREC_LEFT is invariant.  A function is affine when
508         CHREC_RIGHT is invariant.
509
510 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
511
512         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
513         is_gimple_reg.
514         (rewrite_degenerate_phi): Same.
515         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
516
517 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
518
519         * graphite-scop-detection.c (graphite_can_represent_scev,
520         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
521         graphite_can_represent_loop): Remove outermost_loop.
522
523 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
524
525         PR middle-end/45229
526         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
527         handle GIMPLE_CALLs with no LHS.
528
529 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
530
531         * graphite-poly.c (init_graphite_out_file): New.
532         (init_graphite_in_file): New.
533         (apply_poly_transforms): Updated to enable reading and writing of
534         multiple scop files.
535
536 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
537
538         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
539         redundant checks.
540
541 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
542
543         * graphite-clast-to-gimple.c (precision_for_value): Adjust
544         computation of precision by 1.
545
546 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
547
548         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
549         (openscop_read_polyhedron_matrix): New.
550         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
551         (openscop_read_N_int): Same.
552         * graphite-poly.c (openscop_read_N_int): New.
553         (openscop_read_one_int): New.
554         (openscop_read_N_string): New.
555         (openscop_read_one_string): New.
556         (openscop_read_powerset_matrix): New.
557         (graphite_read_transforms): Remove.
558         (graphite_read_scatt): New.
559         (graphite_read_scop_file): New.
560         (apply_poly_transforms): Updated to call graphite_read_scop_file.
561
562 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
563
564         * graphite-poly.c: Change include order.
565
566 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
567
568         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
569         (cloog_matrix_nrows): New.
570
571 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
572
573         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
574         from matrix lines.
575         * graphite-poly.c (openscop_print_scattering_function_1): Same.
576         (print_scattering_function_1): Same.
577         (openscop_print_pbb_domain): Same.
578         (openscop_print_scop_context): Same.
579         (print_scop_context): Same.
580
581 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
582
583         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
584         (openscop_print_pdr_polyhedron): Print pph.
585
586 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
587
588         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
589         priority signed types.
590
591 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
592
593         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
594         the call to lang_hooks.types.type_for_size.  Call
595         build_nonstandard_integer_type.
596
597 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
598
599         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
600         (openscop_print_polyhedron_matrix): New.
601         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
602         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
603         (openscop_print_pdr_powerset): New.
604         (openscop_print_powerset_matrix): New.
605         (openscop_print_scattering_function_1): New.
606         (print_scattering_function): Add support for scattering names and
607         OpenScop format.
608         (graphite_write_transforms): Remove.
609         (print_pdr_access_layout): Updated to support OpenScop format.
610         (print_pdr): Same.
611         (openscop_print_pbb_domain): New.
612         (print_pbb_body): Added a parameter to allow indicating that pbb_body
613         is not provided.
614         (print_pbb): Updated to call the new print_pbb_body.
615         (openscop_print_scop_context): New.
616         (print_scop_header): New.
617         (print_scop): Updated to call print_scop_header.
618         * graphite-poly.h: Document OpenScop format.
619
620 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
621
622         * config/cris/m32c.c (cris_memory_move_cost): New.
623         (cris_register_move_cost): Make static. Change arguments type from
624         enum reg_class to reg_class_t.
625         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
626         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
627         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
628
629 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
630
631         PR target/45843
632         * config/i386/i386.c (ix86_gimplify_va_arg): Use
633         INTVAL (XEXP (slot, 1)) as prev_size.
634
635 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
636
637         PR target/45837
638         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
639         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
640         defined.
641         * config/rs6000/option-defaults.h (toplevel): Change #if
642         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
643         global option changes.
644
645 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
646
647         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
648
649         PR tree-optimization/31261
650         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
651         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
652
653 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
654
655         PR bootstrap/45796
656         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
657         special-casing for generators and turn into ...
658         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
659         rule, for better error messages in case of toplevel dependency errors.
660         (genprog): Add hooks, rename to ...
661         (genprogerr): ... this, and let genprog also contain check,
662         checksum, condmd.
663         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
664         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
665         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
666
667 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
668             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
669
670         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
671         for GMP, MPFR and MPC.
672
673 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
674
675         * config/sparc/sparc.opt (mimpure-text): Move ...
676         * config/sol2.opt: ... here.  Correct description.
677         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
678         * doc/invoke.texi (Option Summary, SPARC Options): Move
679         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
680         (Option Summary, Solaris 2 Options): ... here.
681         (Submodel Options, Solaris 2 Options): New menu entry.
682         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
683         (Solaris 2 Options): ... here.
684
685 2010-09-30  Michael Eager  <eager@eagercon.com>
686
687         * extend.texi (interrupt_handler): Add MicroBlaze to list.
688         (save_volatiles): Describe option for MicroBlaze.
689         * invoke.texi: Add MicroBlaze Options.
690         * contrib.texi: Add acknowledgment. 
691         * md.texi: Add MicroBlaze d and z constraints.
692         * install.texi: Add microblaze-*-elf.
693         * configure.ac: Add microblaze-*-* to target list.
694         * configure: Regenerate.
695         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
696         * config/microblaze/microblaze-protos.h: New.
697         * config/microblaze/crti.s: New.
698         * config/microblaze/predicates.md: New.
699         * config/microblaze/linux.h: New.
700         * config/microblaze/microblaze.md: New.
701         * config/microblaze/constraints.md: New.
702         * config/microblaze/crtn.s: New.
703         * config/microblaze/microblaze.opt: New.
704         * config/microblaze/microblaze-c.c: New.
705         * config/microblaze/t-microblaze: New.
706         * config/microblaze/microblaze.c: New.
707         * config/microblaze/microblaze.h: New.
708
709 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
710
711         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
712         parse @optional/@required and set the flags as appropriate.
713
714 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
715
716         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
717
718 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
719
720         * opt-functions.awk (static_var): Update comment.
721         (var_ref): Return offsetof expression or -1, not variable address.
722         * optc-gen.awk: Generate structure field initializers instead of
723         static variables.  Expect -1 for missing variables instead of null
724         pointer.  Add gcc_options parameters to generated functions.
725         * opth-gen.awk: Generate structure fields for static variables.
726         Add gcc_options parameters to generated functions.
727         * common.opt (optimize, optimize_size): Add variables.
728         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
729         &global_options to cl_target_option_restore.
730         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
731         &global_options to cl_optimization_restore, cl_target_option_save
732         and cl_target_option_restore.
733         (ix86_set_current_function): Pass &global_options to
734         cl_target_option_restore.
735         * config/pdp11/pdp11.h (optimize): Remove.
736         * config/rs6000/rs6000.h (optimize): Remove.
737         * config/sh/sh.h (optimize): Remove.
738         * config/xtensa/xtensa.h (optimize): Remove.
739         * coretypes.h (struct gcc_options): Declare.
740         * diagnostic.c (diagnostic_initialize): Initialize
741         context->option_state.
742         (diagnostic_report_diagnostic): Pass option_state to
743         option_enabled hook.
744         * diagnostic.h (diagnostic_context.option_enabled): Add void *
745         parameter.
746         (diagnostic_context.option_state): New field.
747         * final.c (final_start_function, final, final_scan_insn): Rename
748         optimize parameter to optimize_p.
749         * flags.h (optimize, optimize_size): Remove.
750         * function.c (invoke_set_current_function_hook): Pass
751         &global_options to cl_optimization_restore.
752         * gcc.c (driver_handle_option): Take gcc_options parameter.
753         Assert that it is &global_options.
754         (process_command): Pass &global_options to read_cmdline_option.
755         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
756         option_enabled.
757         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
758         &global_options to set_option.
759         * opts-common.c (handle_option, handle_generated_option,
760         read_cmdline_option, set_option): Take explicit gcc_options
761         parameters.  Use option_flag_var.
762         (option_flag_var): New.
763         * opts.c (common_handle_option, lang_handle_option,
764         target_handle_option): Take gcc_options parameter.  Assert that it
765         is &global_options.
766         (read_cmdline_options): Pass &global_options to read_cmdline_option.
767         (print_filtered_help): Use option_flag_var.  Pass &global_options
768         to option_enabled.
769         (common_handle_option): Use option_flag_var.
770         (option_enabled): Take opts parameter.  Use option_flag_var.
771         (get_option_state): Take gcc_options parameter.  Use
772         option_flag_var.  Pass gcc_options parameter to option_enabled.
773         (enable_warning_as_error): Pass &global_options to
774         handle_generated_option.
775         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
776         (cl_option_handler_func.handler): Take gcc_options parameter.
777         (option_enabled, get_option_state, set_option, handle_option,
778         handle_generated_option, read_cmdline_option): Take gcc_options
779         parameters.
780         * toplev.c (optimize, optimize_size): Remove.
781         (print_switch_values): Pass &global_options to option_enabled.
782         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
783         to get_option_state.
784         (general_init): Initialize global_dc->option_state.
785         * tree.c (build_optimization_node): Pass &global_options to
786         cl_optimization_save.
787         (build_target_option_node): Pass &global_options to
788         cl_target_option_save.
789
790 2010-09-30  Martin Jambor  <mjambor@suse.cz>
791
792         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
793         zero sized bit-fields.
794
795 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
796
797         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
798         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
799         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
800         (c_parser_objc_class_declaration): Same change.
801         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
802         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
803         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
804         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
805         and RID_AT_PUBLIC instead of RID_PUBLIC.
806         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
807         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
808         
809 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
810
811         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
812         Add links to current providers of packages for Solaris and IRIX.
813
814 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
815
816         Merge from 'apple/trunk' branch on FSF servers.
817         * c-parser.c: Applied change originally in c-parse.in.
818         
819         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
820
821         Radar 4281748
822         * c-decl.c (start_decl): Check for redeclaration of class name.
823         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
824
825 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
826
827         * config/ia64/ia64.c (ia64_builtin_decl): New.
828         (TARGET_BUILTIN_DECL): Define.
829         (ia64_builtins): New.
830         (ia64_init_builtins): Save decls in ia64_builtins.
831
832 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
833
834         PR target/40457
835         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
836         (move2add_use_add3_insn): Likewise.
837         (reload_cse_move2add): Likewise.
838         * rtlanal.c (get_full_rtx_cost): New function.
839         * rtl.h (struct full_rtx_costs): New.
840         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
841         costs_add_n_insns): New inline functions.
842         (get_full_rtx_cost): Declare.
843
844         PR c/45054
845         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
846         invariants.  Check for reg_equiv_invariant.
847         (reload): Assert that spilled_pseudos is empty when returning.
848
849 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
850
851         * config/i386/mingw32.h (TARGET_64BIT): replaced by
852         TARGET_64BIT_DEFAULT in #if check.
853
854 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
855
856         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
857
858 2010-09-29  Mike Stump  <mikestump@comcast.net>
859
860         * config/darwin.h (flag_mkernel): Remove.
861         (flag_apple_kext): Likewise.
862
863 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
864             Jack Howarth <howarth@bromo.med.uc.edu>
865
866         * config/darwin.opt (undefined): Add.
867
868 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
869
870         PR testsuite/45664
871         * configure.ac: Add --enable-indirect-function option.
872         * config.gcc: Add default_gnu_indirect_function.
873         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
874         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
875         * varasm.c (do_assemble_alias): Adjust for macro name change.
876         * configure: Rebuilt.
877         * doc/install.texi: Document --enable-indirect-function.
878
879 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
880
881         * doc/options.texi (Variable, Var, Init): Update documentation
882         without reference to VarExists.
883         (VarExists): Remove.
884         * common.opt, config/i386/i386.opt, config/linux.opt,
885         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
886         Don't use VarExists.
887
888 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
889
890         * optc-gen.awk: Generate global_options initializer instead of
891         individual variables.  Add x_ prefix to names of structure members.
892         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
893         names of structure members.
894         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
895         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
896         * doc/tm.texi: Regenerate.
897         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
898         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
899         * c-parser.c (disable_extension_diagnostics,
900         restore_extension_diagnostics): Update names of cpp_options members.
901         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
902         * common.opt (fcompare-debug-second): Don't use Var.
903         * config/alpha/alpha.h (target_flags): Remove.
904         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
905         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
906         * config/bfin/bfin.h (target_flags): Remove.
907         * config/cris/cris.h (target_flags): Remove.
908         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
909         cl_target_option members.
910         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
911         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
912         ix86_can_inline_p): Update names of cl_target_option members.
913         * config/i386/i386.h (ix86_isa_flags): Remove.
914         * config/lm32/lm32.h (target_flags): Remove.
915         * config/mcore/mcore.h (mcore_stack_increment): Remove.
916         * config/mcore/mcore.md (addsi3): Remove extern declaration of
917         flag_omit_frame_pointer.
918         * config/mep/mep.h (target_flags): Remove.
919         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
920         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
921         * config/mmix/mmix.h (target_flags): Remove.
922         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
923         flag_expensive_optimizations): Remove.
924         * config/s390/s390.h (flag_pic): Remove.
925         * config/score/score-conv.h (target_flags): Remove.
926         * config/sh/sh.h (sh_fixed_range_str): Remove.
927         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
928         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
929         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
930         * diagnostic.c (diagnostic_initialize): Update names of
931         diagnostic_context members.
932         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
933         warn_system_headers.
934         (diagnostic_report_warnings_p): Update for new names.
935         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
936         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
937         HARD_FRAME_POINTER_IS_ARG_POINTER.
938         * flags.h (flag_compare_debug): Declare.
939         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
940         * opts.c (flag_compare_debug): Define.
941         (common_handle_option): Update names of diagnostic_context
942         members.  Handle -fcompare-debug-second.
943         (fast_math_flags_struct_set_p): Update names of cl_optimization
944         members.
945         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
946         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
947         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
948         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
949         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
950         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
951         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
952         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
953         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
954
955 2010-09-29  Hariharan Sandanagobalane <hariharan@picochip.com>
956
957         * config/picochip/picochip.c (picochip_output_internal_label):
958         This function can now be called for debug CFI labels, which can come
959         in the middle of a vliw instruction.  Postpone until end of vliw.
960
961 2010-09-29  Richard Guenther  <rguenther@suse.de>
962
963         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
964         (DECL_FILE_SCOPE_P): Use it.
965         (TYPE_FILE_SCOPE_P): New macro.
966
967 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
968
969         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
970         a CPP_NAME which is a reserved word, clearly separate cases for
971         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
972
973 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
974
975         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
976         token->value with the canonical spelling.  Do exactly like C and
977         C++ and leave it as it is.
978
979 2010-09-28  Richard Henderson  <rth@redhat.com>
980
981         * config/alpha/alpha.c (alpha_builtins): New.
982         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
983         (alpha_builtin_function): New.
984         (alpha_add_builtins, alpha_init_builtins): Use it.
985
986 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
987
988         * doc/standards.texi (Standards): Expanded the section on
989         Objective-C and Objective-C++.
990
991 2010-09-28  DJ Delorie  <dj@redhat.com>
992
993         PR target/45800
994         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
995         volatile MEMs.
996
997 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
998
999         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
1000         attributes on methods.
1001          (c_parser_objc_method_definition): Handle attributes.
1002         (c_parser_objc_methodproto): Likewise.
1003         (c_parser_objc_maybe_method_attributes): New.
1004         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
1005         missing definition, similar to that in ObjC++.
1006
1007 2010-09-28  Richard Henderson  <rth@redhat.com>
1008
1009         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
1010         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1011         (CONFIG_SJLJ_EXCEPTIONS): Remove.
1012         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
1013         (STACK_CHECK_PROTECT): Likewise.
1014         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
1015         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
1016         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
1017         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
1018         (dwarf2out_assembly_start): Likewise.
1019         * except.c (init_eh): Use targetm.except_unwind_info.
1020         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
1021         (output_one_function_exception_table): Likewise.
1022         * final.c: Unconditionally include dwarf2out.h.
1023         (final_start_function): Unconditionally call dwarf2out routines.
1024         (final_end_function, final_scan_insn): Likewise.
1025         * function.c (expand_function_end): Use targetm.except_unwind_info.
1026         * opts.c (decode_options): Use targetm.except_unwind_info.
1027         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
1028         * target.def (debug_unwind_info, except_unwind_info): New.
1029         * target.h (enum unwind_info_type): New.
1030         * targhooks.c (default_debug_unwind_info): New.
1031         (default_except_unwind_info): New.
1032         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
1033         * targhooks.h: Declare them.
1034         * tree-tailcall.c: Include "target.h"
1035         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
1036         * Makefile.in (tree-tailcall.o): Update.
1037         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
1038         (lhd_gcc_personality): Likewise.
1039
1040         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
1041         (TARGET_EXCEPT_UNWIND_INFO): New.
1042         (DWARF2_UNWIND_INFO): Update.
1043         (TARGET_DEBUG_UNWIND_INFO): New.
1044         * doc/tm.texi: Rebuild.
1045
1046         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
1047         targetm.except_unwind_info.
1048
1049         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
1050         (arm_except_unwind_info): New.
1051         (arm_compute_func_type): Use it.
1052         (arm_expand_prologue, thumb_pushpop): Likewise.
1053         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
1054         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
1055         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
1056         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
1057         (DWARF2_UNWIND_INFO): Remove.
1058         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1059         (ARM_EABI_UNWIND_TABLES): Remove.
1060
1061         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
1062         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
1063         (ia64_except_unwind_info): New.
1064         (ia64_output_function_prologue): Use it.
1065         (ia64_add_bundle_selector_before): Likewise.
1066         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
1067         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
1068         (TARGET_UNWIND_INFO): Remove.
1069
1070         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
1071
1072 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1073
1074         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
1075         (c_parser_objc_protocol_definition): Likewise.
1076         (c_parser_external_declaration): Provide dummy attribute arguments.
1077         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
1078         (c_parser_objc_class_definition): Handle attributes.
1079         (c_parser_objc_protocol_definition): Likewise.
1080
1081 2010-09-28  Tobias Burnus  <burnus@net-b.de>
1082
1083         PR fortran/40569
1084         PR fortran/40568
1085         * toplev.h (save_decoded_options, save_decoded_options_count):
1086         New global variables.
1087         * toplev.c (save_decoded_options, save_decoded_options_count):
1088         Export variables.
1089
1090 2010-09-28  Ian Lance Taylor  <iant@google.com>
1091
1092         * config/i386/i386.c (ix86_supports_split_stack): Test
1093         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
1094
1095 2010-09-28  Ian Lance Taylor  <iant@google.com>
1096
1097         PR target/45815
1098         * opts.c (decode_options): Don't test whether the target supports
1099         split stack if flag_split_stack == 0.
1100
1101 2010-09-28  Jan Hubicka  <jh@suse.cz>
1102
1103         * builtin-attrs.def (ATTR_LEAF): New attribute.
1104         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
1105         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
1106         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
1107         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
1108         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
1109         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
1110         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
1111         * sync-builtins.def: Annotate all builtins by leaf.
1112         * omp-builtins.def: Annotate all builtins by leaf.
1113         * builtins.def: Annotate relevant builtins with leaf attribute.
1114         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1115         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
1116         leaf.
1117
1118 2010-09-28  Jan Hubicka  <jh@suse.cz>
1119
1120         * tree-ssa-ccp.c (fold_ctor_reference): New function.
1121         (fold_const_aggregate_ref): Use it.
1122         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
1123         into external static.
1124
1125 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1126
1127         PR target/44452
1128         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
1129         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
1130         (ix86_solaris_return_in_memory): Remove.
1131         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
1132         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1133         (TARGET_SUBTARGET_DEFAULT): Redefine.
1134         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
1135         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1136         (TARGET_SUBTARGET_DEFAULT): Redefine.
1137         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1138         -mvect8-ret-in-mem.
1139         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1140
1141 2010-09-29  Alan Modra  <amodra@gmail.com>
1142
1143         PR target/45807
1144         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1145         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1146         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1147         Delete.
1148         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1149         (rs6000_emit_prologue): Don't just create frame save info for r2,
1150         actually save r2.
1151
1152 2010-09-28  Richard Henderson  <rth@redhat.com>
1153
1154         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1155         when 8 bytes are requested.
1156
1157 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1158
1159         * config/avr/avr.c (expand_prologue): Set
1160         current_function_static_stack_size.
1161
1162 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1163
1164         * config/alpha/alpha.md: Change the initial condition of the
1165         probing loop.
1166
1167 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
1168
1169         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1170         Split from *avx_<maxmin:code><mode>3.
1171         (*avx_<smaxmin:code><mode>3): Ditto.
1172         * config/i386/i386.md (maxmin): Remove code iterator.
1173
1174 2010-09-27  Ian Lance Taylor  <iant@google.com>
1175
1176         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1177         requires assembler support for CFI directives.
1178
1179 2010-09-27  Richard Henderson  <rth@redhat.com>
1180
1181         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1182
1183 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1184
1185         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1186         that AFTER is not in the range FROM..TO, inclusive.
1187
1188 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1189             Bernd Schmidt  <bernds@codesourcery.com>
1190
1191         PR rtl-optimization/45792
1192         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1193         If not all insns are to be merged, for each edge, stash the
1194         next candidate after the to-be-merged insns before doing the
1195         merge, and use them for the retry at the new insertion point.
1196         Handle CC0 targets when retrying.
1197
1198 2010-09-27  Ian Lance Taylor  <iant@google.com>
1199
1200         * common.opt (fsplit-stack): New option.
1201         * opts.c (decode_options): Set flag_split_stack to final value.
1202         * target.def (supports_split_stack): New hook.
1203         * gcc.c (STACK_SPLIT_SPEC): Define.
1204         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1205         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1206         (Code Gen Options): Document -fsplit-stack.
1207         * doc/extend.texi (Function Attributes): Mention no_split_stack.
1208         (Function Attributes): Document no_split_stack.
1209         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1210         TARGET_SUPPORTS_SPLIT_STACK.
1211         * doc/tm.texi: Rebuild.
1212         * function.c (thread_prologue_and_epilogue_insns): If
1213         flag_split_stack, add split stack prologue.
1214         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1215         * varasm.c (saw_no_split_stack): New static variable.
1216         (assemble_start_function): Set saw_no_split_stack if the function
1217         has the no_split_stack attribute.
1218         (file_end_indicate_split_stack): New function.
1219         * output.h (file_end_indicate_split_stack): Declare.
1220         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1221         and function.
1222         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1223         routines.
1224         * config/i386/i386.c (ix86_option_override_internal): Don't set
1225         expand_builtin_va_start to NULL if -fsplit-stack.
1226         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1227         -fsplit-stack.
1228         (ix86_va_start): If -fsplit-stack, get overflow pointer from
1229         scratch register set by prologue.
1230         (ix86_code_end): If -fsplit-stack, call
1231         file_end_indicate_split_stack.
1232         (ix86_supports_split_stack): New static function.
1233         (SPLIT_STACK_AVAILABLE): Define.
1234         (split_stack_prologue_scratch_regno): New static function.
1235         (split_stack_fn): New static variable.
1236         (ix86_expand_split_stack_prologue): New function.
1237         (ix86_live_on_entry): New static function.
1238         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1239         (output_pic_addr_const): Likewise.
1240         (i386_asm_output_addr_const_extra): Likewise.
1241         (ix86_expand_call): Change return type to rtx.  Return the new
1242         call instruction.
1243         (TARGET_SUPPORTS_SPLIT_STACK): Define.
1244         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1245         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1246         (split_stack_prologue, split_stack_return): New insns.
1247         (split_stack_space_check): New insn.
1248         * config/i386/i386.h (struct machine_function): Add
1249         split_stack_varargs_pointer field.
1250         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1251         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1252         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1253         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1254         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1255         Declare.
1256         (ix86_expand_call): Update declaration.
1257
1258 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1259
1260         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1261         code.  Added byref, which was missing in the list of codes.
1262         Explain that enumeration values are encoded as the integer type
1263         that the compiler uses to store them.  Explain and make examples
1264         of how 'const' interacts with pointers, and the complication of
1265         the encoding of 'const char *'.
1266         (Legacy type encoding): New subsection, explaining that GCC emits
1267         incorrect type encodings for the NeXT runtime for compatibility
1268         reasons.
1269         (@@encode): New subsection, explaining @encode and particularly
1270         that protocol qualifiers are not recognized inside an @encode()
1271         expression.
1272         (Method signatures): New subsection, explaining how method
1273         signatures are encoded.
1274
1275 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1276
1277         Merge from 'apple/trunk' branch on FSF servers.  Removed small
1278         change in build_conditional_expr that had been added when fixing
1279         PR objc/27377 and which did the same check in a less complete way.
1280
1281         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1282
1283         Radar 4229905
1284         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1285         looking for objective-c common pointer types.
1286
1287         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1288
1289         Radar 4154928
1290         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1291         use their ObjC common type.
1292
1293 2010-09-27  Richard Guenther  <rguenther@suse.de>
1294
1295         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1296
1297 2010-09-27  Jie Zhang  <jie@codesourcery.com>
1298
1299         * print-tree.c (print_node): Print in-constant-pool.
1300
1301 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
1302
1303         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1304         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1305         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1306         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1307
1308 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1309
1310         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1311         from pro_epilogue_adjust_stack_<mode>_{1,2}.
1312         (pro_epilogue_adjust_stack_<mode>_add): Rename from
1313         pro_epilogue_adjust_stack_<mode>_3.
1314         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1315         renamed pro_epilogue_adjust_stack_{si,di}_add.
1316         (ix86_expand_prologue): Use indirect functions.  Update for renamed
1317         pro_epilogue_adjust_stack_{si,di}_sub.
1318
1319 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1320
1321         * config/i386/i386.md (movmsk_df): New insn.
1322         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
1323         sequence for TARGET_SSE_MATH.
1324
1325 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
1326
1327         * config/mips/mips.c (mips_builtin_decls): Declare.
1328         (mips_init_builtins): Store function declarations in
1329         mips_builtin_decls.
1330         (mips_builtin_decl): New function.
1331         (TARGET_BUILTIN_DECL): Define.
1332
1333 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
1334             Richard Henderson  <rth@redhat.com>
1335
1336         * config/i386/cygwin.asm: Include auto-host.h.
1337         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1338         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1339         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
1340         alignment code from the 64-bit path.  Use gas local labels.
1341         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1342         from _di_2.  Remove the useless constant integer argument.
1343         (pro_epilogue_adjust_stack_<mode>_3): New.
1344         (allocate_stack_worker_probe_<mode>): Macroize from
1345         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
1346         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1347         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1348         (__chkstk_ms): New function.
1349         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1350         * gcc/config/i386/t-interix: Likewise.
1351         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1352         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1353         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1354         * configure, config.in: Rebuild.
1355
1356 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1357
1358         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1359         statements because of the return slot optimization.
1360
1361 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
1362
1363         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1364         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1365         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1366         (class_likely_spilled_p): Rename to...
1367         (avr_class_likely_spilled_p): ...this. Make static. Change argument
1368         type to reg_class_t.
1369
1370 2010-09-24  Jan Hubicka  <jh@suse.cz>
1371
1372         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1373         (lto_symtab_resolve_symbols): Set it.
1374         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1375         store resolution field in cgraph/varpool.
1376         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1377         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1378         (cgraph_dump_node): Drop used_from_object_file.
1379         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1380         (cgraph_function_body_availability): Use decl_replaceable_p.
1381         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1382         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1383         cgraph_used_from_object_file_p.
1384         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1385         cgraph_used_from_object_file_p.
1386         (resolution_used_from_other_file_p): New functoin.
1387         (cgraph_used_from_object_file_p): New predicate.
1388         * cgraph.h: Include plugin-api.h
1389         (struct cgraph_local_info): Remove used_from_object_file.
1390         (struct cgraph_node): Add resolution field.
1391         (struct varpool_node): Likewise; remove used_from_object_file;
1392         reove const_value_known.
1393         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1394         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1395         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1396         varpool_used_from_object_file_p): Declare.
1397         (varpool_get_node, varpool_extra_name_alias): Update prototype.
1398         * tree.h (DECL_REPLACEABLE_P): Remove.
1399         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1400         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1401         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1402         input_overwrite_node, input_node, input_varpool_node): Stream
1403         resolution.
1404         * expr.c (expand_expr_real_1): Use const_value_known_p
1405         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1406         const_value_known.
1407         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1408         (function_and_variable_visibility): Set resolution for local vars
1409         and functions; use varpool_used_from_object_file_p.
1410         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1411         static functions.
1412         (default_binds_local_p_1): Use resolutoin info.
1413         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1414         * varpool.c (varpool_get_node): Constify.
1415         (const_value_known_p): Do not use vnode->const_value_known;
1416         use decl_replaceable_p.
1417         (varpool_finalize_decl): Do not set const_value_known.
1418         (cgraph_variable_initializer_availability): Use decl_replaceable_p
1419         (varpool_extra_name_alias): Return new node.
1420         (varpool_used_from_object_file_p): New function.
1421
1422 2010-09-24  Richard Henderson  <rth@redhat.com>
1423
1424         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1425         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1426         (do_spill): Use REG_CFA_OFFSET.
1427         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1428         as appropriate.
1429         (ia64_expand_epilogue): Likewise.
1430         (process_set): Split into ...
1431         (process_cfa_adjust_cfa): this,
1432         (process_cfa_register): this,
1433         (process_cfa_offset): and this new function.
1434         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
1435         instead of REG_FRAME_RELATED_EXPR.
1436
1437 2010-09-24  Olivier Hainque  <hainque@adacore.com>
1438
1439         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1440
1441 2010-09-24  Jan Hubicka  <jh@suse.cz>
1442
1443         * doc/extend.texi: (attribute leaf): Document.
1444         * tree.c (local_define_builtin): Handle ECF_LEAF.
1445         (build_common_builtin_nodes): Set ECF_LEAF where needed.
1446         * tree.h (ECF_LEAF): New.
1447         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1448         overwrittable and unavailable functions.
1449         (ipa_init): Put all_module_statics into optimization_summary_obstack.
1450         (copy_global_bitmap): Do not copy all_module_statics.
1451         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1452         (propagate): Handle overwritable and unavailable leaf functions;
1453         initialize global info for overwritable and unavailable leaf functions;
1454         do not free all module statics.
1455         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1456         local statics.
1457         * calls.c (flags_from_decl_or_type): Handle leaf.
1458         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1459         abnormal gotos.
1460
1461 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
1462
1463         * gengtype.c: Reindented.
1464         * gengtype.h: Reindented.
1465         * gengtype-parse.c: Reindented.
1466
1467 2010-09-24  Jan Hubicka  <jh@suse.cz>
1468
1469         PR tree-optimization/45738
1470         PR tree-optimization/45741
1471         * expr.c (string_constant): Allow CONST_DECL too;
1472         check that DECL_INITIAL is set.
1473         * varpool.c (const_value_known_p): Only look into VAR_DECL
1474         and CONST_DECL.
1475
1476 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
1477
1478         * common.opt (undef): New.
1479
1480 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
1481
1482         PR middle-end/45234
1483         * rtl.h (enum global_rtl_index): Add
1484         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1485         (LAST_VIRTUAL_POINTER_REGISTER): Define.
1486         (virtual_preferred_stack_boundary_rtx,
1487         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1488         (LAST_VIRTUAL_REGISTER): Increase by one.
1489         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1490         instead of LAST_VIRTUAL_REGISTER.
1491         * function.c (instantiate_new_reg): Handle
1492         virtual_preferred_stack_boundary_rtx.
1493         * emit-rtl.c (init_virtual_regs): Handle
1494         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1495         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1496         * explow.c (round_push): If crtl->preferred_stack_boundary
1497         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1498         virtual_preferred_stack_boundary_rtx alignment instead of
1499         crtl->preferred_stack_boundary alignment.
1500         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1501         macros.  Never decrease crtl->preferred_stack_boundary,
1502         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1503         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
1504         stack_pointer_delta in dynamic allocation, even when size
1505         is constant.
1506         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1507         macro.
1508         * print-rtl.c (print_rtx): Handle
1509         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1510         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1511         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1512         * config/frv/frv.c (frv_emit_movsi): Likewise.
1513         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1514         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1515         Likewise.
1516
1517         Revert:
1518         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1519
1520         PR middle-end/45234
1521         * calls.c (expand_call): Make sure that all variable sized
1522         adjustments are multiple of preferred stack boundary after
1523         stack alignment.
1524
1525 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1526             Dominique Dhumieres  <dominiq@lps.ens.fr>
1527
1528         PR bootstrap/45751
1529         * gcc/config/darwin-driver.c (darwin_default_min_version):
1530         Adjust size passed to memcpy in two places.
1531
1532 2010-09-24  Richard Guenther  <rguenther@suse.de>
1533
1534         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1535         Make sure to not call set_type_context with error_mark_node.
1536         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1537
1538 2010-09-24  Richard Guenther  <rguenther@suse.de>
1539
1540         * Makefile.in (OBJS-onestep): Remove.
1541         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1542         (libbackend.a): Remove onestep support.
1543         (libbackend.o): Remove.
1544         * configure.ac (--enable-intermodule): Remove.
1545         * configure: Regenerate.
1546
1547 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1548
1549         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1550         reaching the end of a block if it occurs at a DEBUG_INSN.
1551
1552 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1553
1554         PR target/44242
1555         * config/vms/vms-crt0-64.c: Removed.
1556         * config/vms/vms-crt0.c: Removed.
1557         * config/vms/vms-psxcrt0-64.c: Removed.
1558         * config/vms/vms-psxcrt0.c: Removed.
1559         * config/vms/vms-ucrt0.c: New file.
1560         * config/vms/t-vms64: Removed.
1561         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1562         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1563         * config.gcc (alpha-dec-vms): Use t-vms.
1564
1565 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1566
1567         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1568         underfull hbox in DVI output.
1569         (-fobjc-class-cxx-cdtors): Same change.
1570         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1571         option does, but moved the (lenghty) description of the exception
1572         syntax into objc.texi.
1573         (-fobjc-gc): Explain that the option is not useful with the GNU
1574         runtime.
1575         (-fzero-link): Explain that the GNU runtime always works in
1576         "zero-link" mode.
1577         * doc/objc.texi: All sections: simplified @node declarations
1578         removing specification of next, previous, up node.
1579         (Objective-C): Updated introduction.
1580         (Garbage Collection): Updated.  The bohem-gc library is now
1581         included in gcc itself.  Mention that this section only applies to
1582         the GNU Objective-C runtime.
1583         (compatibility_alias): Small tidy up.
1584         (Exceptions): New section mostly containing text previously in the
1585         description of the -fobjc-exception command-line option.
1586         (Synchronization): Same.
1587
1588 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1589
1590         * config/i386/i386.md (ix86_code_end): Move the initialization of
1591         xops array near the consumer.  Use AX_REG and SP_REG instead of
1592         numerical constants.
1593
1594 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1595
1596         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1597         method [methodname]' for an Objective-C method instead of the less
1598         satisfactory 'too many arguments to function' (with no method name).
1599
1600 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1601
1602         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1603         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1604         (execute_update_addresses_taken): Remove parameter.  Execute the
1605         optimization unconditionally.
1606         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1607         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1608         if TODO_update_address_taken is set.
1609
1610 >>>>>>> .r164755
1611 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1612
1613         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1614         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1615         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1616         (arm_output_addr_const_extra): Make static.
1617
1618 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1619
1620         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1621         define as unspec_volatile.
1622         ("nops"): Define as unspec_volatile. Use fputs to write to
1623         asm_out_file directly.  Output NOPs on separate lines using while loop.
1624         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1625         asm_out_file directly.  Output NOPs on separate lines using while loop.
1626
1627 2010-09-23  Richard Guenther  <rguenther@suse.de>
1628
1629         PR tree-optimization/45565
1630         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1631         Make sure to adjust the fndecl before replacing the stmt.
1632
1633 2010-09-23  Richard Guenther  <rguenther@suse.de>
1634
1635         PR middle-end/45750
1636         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1637         gimplifying MEM_REF.
1638
1639 2010-09-23  Alan Modra  <amodra@gmail.com>
1640
1641         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1642         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1643
1644 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1645
1646         PR rtl-optimization/44374
1647         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1648         * df-core.c (df_set_bb_dirty): Set it.
1649         * ifcvt.c (find_memory): Remove function.
1650         (dead_or_predicable): Use can_move_insns_across.
1651         * df.h (can_move_insns_across): Declare function.
1652         * cfgcleanup.c (block_was_dirty): New static variable.
1653         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1654         than df_get_bb_dirty.
1655         (try_head_merge_bb): New static function.
1656         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1657         is set.
1658         * df-problems.c: Include "target.h"
1659         (df_simulate_find_uses): New static function.
1660         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1661         (find_memory, find_memory_store): New static functions.
1662         (can_move_insns_across): New function.
1663         * Makefile.in (df-problems.o): Update dependencies.
1664
1665 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1666
1667         PR java/44095
1668         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1669         is specified and the suffix of the file isn't ".c".
1670         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1671
1672 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1673
1674         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1675         * doc/cppopts.texi: Fix markup of index entry.
1676         * doc/extend.texi (Constructing Calls): Fix markup of
1677         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1678         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1679         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1680         keywords.
1681         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1682         avoid long lines.
1683         (C Dialect Options, C++ Dialect Options, Warning Options)
1684         (Debugging Options, Spec Files, Darwin Options)
1685         (i386 and x86-64 Options, MIPS Options)
1686         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1687         index entries, avoid abbreviations, allow URLs to wrap, avoid
1688         long lines, avoid overlong pages from long @itemx lists.
1689         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1690         * doc/standards.texi (Standards): Likewise.
1691         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1692
1693 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1694
1695         * opts-common.c (prune_options): Make static.  Work with decoded
1696         options.
1697         (decode_cmdline_options_to_array): Call prune_options.  Don't
1698         resize option array here.
1699         * opts.h (prune_options): Remove prototype.
1700         * gcc.c (process_command): Take decoded options; don't call
1701         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
1702         (main): Call decode_cmdline_options_to_array here instead of
1703         prune_options.  Update call to process_command.
1704         * config/darwin-driver.c: Include opts.h.
1705         (darwin_default_min_version): Work with decoded options.  Don't
1706         handle -b or -V here.
1707         * config/darwin.h (darwin_default_min_version): Update prototype.
1708         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1709         darwin_default_min_version.
1710         * config/i386/cygwin.h (mingw_scan): Update prototype.
1711         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1712         * config/i386/cygwin1.c: Include opts.h.
1713         (mingw_scan): Work with decoded options.
1714         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1715         * config/t-darwin (darwin-driver.o): Update dependencies.
1716
1717 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1720         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1721         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1722         -force-link, -force-link=, -language, -language=,
1723         -library-directory, -library-directory=, -no-canonical-prefixes,
1724         -no-standard-libraries, -no-warnings, -optimize, -output,
1725         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1726         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1727         -print-file-name=, -print-libgcc-file-name,
1728         -print-multi-directory, -print-multi-lib,
1729         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1730         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1731         -profile, -save-temps, -shared, -specs, -specs=, -static,
1732         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1733         symbolic): New.
1734         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1735         * gcc.c (A Short Introduction to Adding a Command-Line Option):
1736         Remove comment.
1737         (cc1_options): Correct specs for passing down --help,
1738         --target-help and --help=*.  Add spec for passing down --version.
1739         (struct option_map, option_map, target_option_translations,
1740         translate_options): Remove.
1741         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1742         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1743         OPT_fhelp_ and OPT_ftarget_help.
1744         (process_command): Don't call translate_options.  Call
1745         decode_cmdline_options_to_array before checking for
1746         -no-canonical-prefixes using decoded options.
1747         * opts-common.c (tm.h): Update comment on #include.
1748         (find_opt): Allow abbreviations of long options.
1749         (struct option_map, option_map): New.
1750         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1751         and -mno handling.
1752         (target_option_translations): New.
1753         (decode_cmdline_options_to_array): Handle
1754         TARGET_OPTION_TRANSLATE_TABLE in driver.
1755         * opts.c (common_handle_option): Don't handle OPT_fhelp,
1756         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1757
1758 2010-09-22  Richard Guenther  <rguenther@suse.de>
1759
1760         * tree-inline.c (optimize_inline_calls): Schedule cleanups
1761         only if we inlined something.  Block compaction and conditional
1762         folding are done by cfg cleanup.  Schedule update-address-taken.
1763         (tree_function_versioning): Remove redundant call to number_blocks.
1764         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1765         folding is done by cfg cleanup.
1766         * passes.c (init_optimization_passes): Remove update-address-taken
1767         pass after IPA inlining.
1768
1769 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
1770
1771         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1772         to update conditions. Fix reg_mode[] check.
1773
1774 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
1775
1776         * config/picochip/picochip.md (movhicc): Use expand to check whether
1777         movhicc is available and split it after reload.
1778
1779 2010-09-22  Richard Guenther  <rguenther@suse.de>
1780
1781         * tree-ssanames.c (release_dead_ssa_names): Do not remove
1782         callee edges here.
1783         * passes.c (init_optimization_passes): Remove early CFG cleanup.
1784         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1785         (pass_cleanup_cfg): Likewise.
1786         (execute_fixup_cfg): Cleanup.
1787         * tree-pass.h (pass_cleanup_cfg): Remove.
1788
1789 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1790
1791         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1792         builtins if it is true.
1793         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1794         parameter.
1795
1796 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1797
1798         * tree-sra.c (struct access): New field grp_no_warning.
1799         (create_access_replacement): Set TREE_NO_WARNING according to
1800          grp_no_warning.
1801         (create_artificial_child_access): Use build_ref_for_model and set
1802         grp_no_warning if build_user_friendly_ref_for_offset fails.
1803         (propagate_subaccesses_across_link): Likewise.
1804
1805 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1806
1807         PR target/35664
1808         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1809         ('f'): Likewise.
1810
1811 2010-09-22  Tristan Gingold  <gingold@adacore.com>
1812
1813         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1814
1815 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
1816
1817         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1818         * config/i386/i386.c (decide_alg): Update for rename.
1819
1820 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
1821
1822         PR rtl-optimization/45739
1823         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1824         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1825
1826 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
1827
1828         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1829         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1830         Remove.
1831         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1832         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1833
1834 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1835
1836         PR objc/23710
1837         * c-parser.c (c_parser_objc_method_definition): Check the return
1838         value of objc_start_method_definition and if false is returned,
1839         parse the method definition but emit no code.
1840
1841 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1842
1843         PR objc/25965
1844         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1845         call objc_get_interface_ivars ().
1846
1847 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
1848
1849         PR target/45694
1850         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1851         static chain-register is used for 64-bit.
1852
1853 2010-09-21  Richard Guenther  <rguenther@suse.de>
1854
1855         * dwarf2out.c (is_cu_die): New function.
1856         (add_pubtype): Use it.
1857         (gen_subprogram_die): Likewise.
1858         (gen_struct_or_union_type_die): Likewise.
1859         (dwarf2out_finish): Likewise.
1860         (comp_unit_die): Rename to ...
1861         (single_comp_unit_die): ... this.
1862         (comp_unit_die): New function lazily constructing and
1863         returning single_comp_unit_die.
1864         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
1865         base_type_die, subrange_type_die, modified_type_die,
1866         lower_bound_default, add_bound_info, add_prototyped_attribute,
1867         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
1868         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
1869         force_decl_die, gen_namespace_die, dwarf2out_decl,
1870         dwarf2out_start_source_file, dwarf2out_end_source_file,
1871         prune_unused_types, dwarf2out_finish): Use it.
1872         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
1873         the global list of translation-unit decls.
1874         (dwarf2out_init): Do not create single_comp_unit_die here.
1875         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
1876
1877 2010-09-21  Richard Guenther  <rguenther@suse.de>
1878
1879         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
1880         for bool for C++.
1881
1882 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
1883
1884         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
1885         (qhs_extenddi_cstr): Likewise.
1886         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
1887         them for the source operand.
1888
1889 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
1890
1891         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
1892         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
1893         (ix86_split_ashr): Ditto.
1894         (ix86_split_lshr): Ditto.
1895
1896 2010-09-21  Richard Guenther  <rguenther@suse.de>
1897
1898         PR tree-optimization/45580
1899         * tree-ssa-propagate.c (substitute_and_fold): Always replace
1900         regular uses.
1901         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
1902         virtuals fold the call into a regular indirect one.
1903
1904 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1905
1906         PR rtl-optimization/42775
1907         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
1908         scheduling is enabled.
1909
1910 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1911
1912         PR rtl-optimization/45728
1913         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
1914         gen_lowpart_common first and if that fails, force_reg first
1915         before calling gen_lowpart.
1916
1917         PR middle-end/45678
1918         * cfgexpand.c (expand_one_stack_var_at): Use
1919         crtl->max_used_stack_slot_alignment as max_align, instead
1920         of maximum of that and PREFERRED_STACK_BOUNDARY.
1921         Don't call update_stack_alignment.
1922
1923 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1924
1925         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
1926         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
1927         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
1928         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
1929         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
1930         (build_nonstandard_integer_type): Likewise.
1931         (build_range_type_1): New function, built from...
1932         (build_range_type): ...this.  Call build_range_type_1.
1933         (build_nonshared_range_type): New function.
1934         (build_array_type_1): New function, built from...
1935         (build_array_type: ...this.  Call build_array_type_1.
1936         (build_nonshared_array_type): New function.
1937         * tree.h (build_nonshared_range_type): Declare.
1938         (build_nonshared_array_type): Likewise.
1939
1940 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
1941
1942         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
1943         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1944         (arm_class_likely_spilled_p): New function.
1945
1946 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
1947
1948         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
1949         indirect functions.
1950         (ix86_split_ashl): Ditto.
1951         (ix86_split_ashr): Ditto.
1952         (ix86_split_lshr): Ditto.
1953         (ix86_adjust_counter): Ditto.
1954
1955 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1956
1957         * c-family/c-common.h (constant_string_class): Documented with
1958         comment identical to the one already in c-common.c.
1959
1960 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * dwarf2out.c (any_cfis_emitted): New static variable.
1963         (add_fde_cfi): Set it.
1964         (dwarf2out_frame_debug): Clear it before processing,
1965         if it is set afterwards, flush any queued reg saves.
1966
1967         PR debug/45124
1968         * dwarf2out.c (add_accessibility_attribute): Assume
1969         DW_ACCESS_private as the default for dwarf_version > 2
1970         and DW_TAG_class_type parent.
1971         (gen_inheritance_die): Assume DW_ACCESS_public as the default
1972         for dwarf_version > 2 and parent other than DW_TAG_class_type.
1973
1974 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1975
1976         PR target/45726
1977         * arm.md (arm_movt): Only enable on machines with MOVT.
1978
1979 2010-09-20  Jie Zhang  <jie@codesourcery.com>
1980
1981         * config/arm/arm.c (arm_address_offset_is_imm): New.
1982         (arm_early_store_addr_dep): New.
1983         (arm_early_load_addr_dep): New.
1984         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
1985         (arm_early_load_addr_dep): Declare.
1986         (arm_address_offset_is_imm): Declare.
1987         * config/arm/cortex-m4.md: New file.
1988         * config/arm/cortex-m4-fpu.md: New file.
1989         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
1990         (attr generic_sched): Exclude cortexm4.
1991         (attr generic_vfp): Exclude cortexm4.
1992
1993 2010-09-20  Richard Guenther  <rguenther@suse.de>
1994
1995         PR middle-end/45704
1996         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
1997
1998 2010-09-20  Jan Hubicka  <jh@suse.cz>
1999
2000         PR tree-optimize/45605
2001         * cgraph.h (const_value_known_p): Declare.
2002         (varpool_decide_const_value_known): Remove.
2003         * tree-ssa-ccp.c (get_base_constructor): Use it.
2004         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
2005         * expr.c (string_constant): Likewise.
2006         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2007         * ipa.c (ipa_discover_readonly_nonaddressable_var,
2008         function_and_variable_visibility): Likewise.
2009         * gimplify.c (gimplify_call_expr): Likewise.
2010         * gimple-fold.c (get_symbol_constant_value): Likewise.
2011         * varpool.c (varpool_decide_const_value_known): Replace by...
2012         (const_value_known_p): ... this one; handle other kinds of DECLs
2013         too and work for automatic vars.
2014         (varpool_finalize_decl): Use const_value_known_p.
2015
2016 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2017
2018         PR target/45726
2019         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
2020
2021 2010-09-20  Richard Guenther  <rguenther@suse.de>
2022
2023         PR tree-optimization/45705
2024         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
2025
2026 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2027
2028         PR rtl-optimization/45695
2029         * combine.c (try_combine): When splitting a two set pattern,
2030         make sure the pattern which will be put into i2 doesn't use REGs
2031         or MEMs set by insns in between i2 and i3.
2032
2033 2010-09-19  Jan Hubicka  <jh@suse.cz>
2034
2035         PR lto/44246
2036         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
2037         processing same node twice.
2038
2039 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
2040
2041         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
2042         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2043         (bfin_class_likely_spilled_p): New function
2044
2045 2010-09-19  Ira Rosen  <irar@il.ibm.com>
2046
2047         PR tree-optimization/45714
2048         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
2049         created in vectorizable_call instead of the original statement in
2050         def stmt updates.
2051
2052 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
2053
2054         * config/i386/i386-protos.h (split_double_mode): New prototype.
2055         (split_di, split_ti): Remove prototypes.
2056         * config/i386/i386.c (split_double_mode): New function.
2057         (split_di, split_ti): Remove.
2058         (ix86_expand_branch): Use split_double_mode.
2059         (ix86_split_to_parts): Ditto.
2060         (ix86_split_ashl): Ditto.
2061         (ix86_split_ashr): Ditto.
2062         (ix86_split_lshr): Ditto.
2063         (ix86_force_to_memory): Ditto.
2064         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
2065
2066 2010-09-18  Jan Hubicka  <jh@suse.cz>
2067
2068         PR tree-optimization/45453
2069         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
2070         virtual functions are reachable.
2071         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
2072         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2073         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
2074         when modifying function.
2075
2076 2010-09-18  Jan Hubicka  <jh@suse.cz>
2077
2078         PR tree-optimization/45605
2079         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
2080         * gimple-fold.c (static_object_in_other_unit_p): New function.
2081         (canonicalize_constructor_val): Use it.
2082         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
2083         returning NULL.
2084         (gimple_fold_obj_type_ref_known_binfo): Use
2085         static_object_in_other_unit_p.
2086
2087 2010-09-18  Richard Guenther  <rguenther@suse.de>
2088
2089         PR tree-optimization/45709
2090         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
2091         insertions until after all PHI nodes of the block are processed.
2092
2093 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
2094
2095         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
2096
2097 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
2098
2099         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
2100
2101 2010-09-18  Richard Guenther  <rguenther@suse.de>
2102
2103         PR tree-optimization/45709
2104         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
2105
2106 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2107
2108         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
2109         (dot_deps_stmt): Same.
2110         * graphite-poly.c (dot_lst): Same.
2111         * graphite-scop-detection.c (dot_all_scops): Same.
2112         (dot_scop): Same.
2113
2114 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2115
2116         Revert:
2117         2009-12-16  Ben Elliston  <bje@au.ibm.com>
2118
2119         * tree-data-ref.c (dot_rdg_1): Added back.
2120         (dot_rdg): Same.  Added "#if 0" around system call.
2121
2122 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2123             Richard Henderson  <rth@redhat.com>
2124
2125         * config/i386/i386.c (initial_ix86_tune_features): Add
2126         X86_TUNE_PAD_SHORT_FUNCTION.
2127         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
2128         (ix86_count_insn): New.
2129         (ix86_pad_short_function): Likewise.
2130         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
2131
2132         * config/i386/i386.h (ix86_tune_indices): Add
2133         X86_TUNE_PAD_SHORT_FUNCTION.
2134         (TARGET_PAD_SHORT_FUNCTION): New.
2135
2136         * config/i386/i386.md (UNSPEC_NOPS): New.
2137         (nops): Likewise.
2138
2139 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2140
2141         PR middle-end/45234
2142         * calls.c (expand_call): Make sure that all variable sized
2143         adjustments are multiple of preferred stack boundary after
2144         stack alignment.
2145
2146 2010-09-17  DJ Delorie  <dj@redhat.com>
2147
2148         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2149         passed an invalid value, print an error instead of ICEing.
2150         (valid_psw_flag): New.
2151         (rx_expand_builtin): Call it for setpsw/clrpsw.
2152         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2153
2154         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2155         (bitclr_in_memory): Likewise.
2156         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2157
2158 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2159
2160         PR middle-end/45678
2161         * cfgexpand.c (update_stack_alignment): New.
2162         (get_decl_align_unit): Use it.
2163         (expand_one_stack_var_at): Call update_stack_alignment.
2164
2165 2010-09-17  Richard Guenther  <rguenther@suse.de>
2166
2167         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2168         Properly copy the read string.
2169
2170 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
2171
2172         * doc/options.texi (Variable): Document.
2173         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
2174         generate target_flags declarations explicitly.  Don't define
2175         VarExists variables for the driver.
2176         * common.opt (target_flags): New Variable record.
2177         (flag_dump_unnumbered, flag_dump_unnumbered_links,
2178         flag_var_tracking, flag_var_tracking_assignments,
2179         flag_var_tracking_assignments_toggle): Don't mark variables with
2180         VarExists.
2181         * config/i386/i386.c (ix86_isa_flags): Don't define here.
2182         * config/i386/i386.opt (ix86_isa_flags): Define here.
2183         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2184         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2185         VarExists.
2186         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2187         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2188         Only define for generator programs.
2189         * rtlanal.c (target_flags): Remove.
2190         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2191         flag_var_tracking_assignments_toggle): Remove.
2192
2193 2010-09-17  Michael Matz  <matz@suse.de>
2194
2195         PR tree-optimization/43432
2196         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2197         Accept backwards consecutive accesses.
2198         (vect_create_data_ref_ptr): If step is negative generate
2199         decreasing IVs.
2200         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2201         (perm_mask_for_reverse, reverse_vec_elements): New functions.
2202         (vectorizable_load): Handle loads with negative steps when easily
2203         possible.
2204
2205 2010-09-03  Jan Hubicka  <jh@suse.cz>
2206
2207         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2208
2209 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
2210
2211         * config/v850/v850.c (v850_function_value_regno_p): Make static.
2212         Adjust comments. Declare.
2213         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2214         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2215
2216 2010-09-17  Richard Guenther  <rguenther@suse.de>
2217
2218         * common.opt (combine): Remove.
2219         * gcc.c (default_compilers): Remove specs testing combine.
2220         The C compilers no longer can combine.
2221         (option_map): Remove -combine.
2222         (display_help): Remove -combine.
2223         (driver_handle_option): Remove OPT_combine handling.
2224         (compile_input_file_p): Remove.
2225         (do_spec): Remove code concerning combine.
2226         (main): Likewise.
2227         * doc/invoke.texi: Remove traces of -combine.
2228         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2229
2230 2010-09-17  Richard Guenther  <rguenther@suse.de>
2231
2232         PR middle-end/45678
2233         * builtins.c (fold_builtin_memory_op): Always properly adjust
2234         alignment of memory accesses.
2235
2236 2010-09-16  Jan Hubicka  <jh@suse.cz>
2237
2238         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2239         processing clone.
2240
2241 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
2242
2243         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2244
2245         * config/i386/i386.c (predict_jump): Add prototype.
2246         (flag_opts): Add -m8bit-idiv.
2247         (ix86_split_idivmod): New.
2248
2249         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2250         Add 2 splitters for SI/DI mode divide.
2251         (divmod<mode>4_1): New pattern.
2252         (udivmod<mode>4_1): Likewise.
2253         (testdi_ccno_1): Likewise.
2254
2255         * config/i386/i386.opt (m8bit-idiv): New.
2256
2257         * doc/invoke.texi: Document -m8bit-idiv.
2258
2259 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
2260
2261         PR bootstrap/45680
2262         * config/i386/i386.c (min_insn_size): Moved out of the
2263         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2264
2265 2010-09-16  Jan Hubicka  <jh@suse.cz>
2266
2267         * lto-cgraph.c (lto_output_node): Fix handling of clones.
2268         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2269         unreachable clones with reachable clones.
2270         * tree-inline.c (copy_bb): Fix sanity checking when producing
2271         unreachable clone.
2272
2273 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
2274
2275         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2276         (TARGET_MEMORY_MOVE_COST): Define.
2277         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2278
2279 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
2280
2281         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2282         maybe_tidy_empty_bb.
2283
2284         Revert:
2285         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
2286         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2287
2288 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2289
2290         * target.def (target_option.optimization): New hook.
2291         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2292         TARGET_OPTION_OPTIMIZATION hook.
2293         * doc/tm.texi: Regenerate.
2294         * hooks.c (hook_void_int_int): New.
2295         * hooks.h (hook_void_int_int): Declare.
2296         * opts.c: Don't include tm_p.h.
2297         (decode_options): Use targetm.target_option.optimization instead
2298         of OPTIMIZATION_OPTIONS.
2299         * system.h (OPTIMIZATION_OPTIONS): Poison.
2300         * config/arm/arm-protos.h (arm_optimization_options): Remove.
2301         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2302         (arm_optimization_options): Rename to arm_option_optimization.
2303         Make static.
2304         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2305         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2306         (cris_option_optimization): New.
2307         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2308         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2309         (crx_option_optimization): New.
2310         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2311         * config/frv/frv-protos.h (frv_optimization_options): Remove.
2312         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2313         (frv_optimization_options): Rename to frv_option_optimization.
2314         Make static.
2315         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2316         * config/h8300/h8300.c (h8300_option_optimization): New.
2317         (TARGET_OPTION_OPTIMIZATION): Define.
2318         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2319         * config/i386/i386-protos.h (optimization_options): Remove.
2320         * config/i386/i386.c (optimization_options): Rename to
2321         ix86_option_optimization.  Make static.
2322         (TARGET_OPTION_OPTIMIZATION): Define.
2323         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2324         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2325         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2326         (ia64_optimization_options): Rename to ia64_option_optimization.
2327         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
2328         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
2329         commented-out definition.
2330         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2331         instead of OPTIMIZATION_OPTIONS.
2332         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2333         (m32r_option_optimization): New.
2334         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2335         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2336         Remove.
2337         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2338         (mcore_option_optimization): New.
2339         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2340         * config/mep/mep-protos.h (mep_optimization_options): Remove.
2341         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2342         (mep_optimization_options): Rename to mep_option_optimization.
2343         Make static.  Take unused level and size parameters.
2344         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2345         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2346         (mmix_option_optimization): New.
2347         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2348         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2349         (pdp11_option_optimization): New.
2350         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2351         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2352         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2353         (optimization_options): Rename to rs6000_option_optimization.
2354         Make static.
2355         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2356         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2357         * config/rx/rx.c (rx_set_optimization_options): Rename to
2358         rx_option_optimization.  Make static.  Take unused level and size
2359         parameters.
2360         (TARGET_OPTION_OPTIMIZATION): Define.
2361         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2362         * config/s390/s390-protos.h (optimization_options): Remove.
2363         * config/s390/s390.c (optimization_options): Rename to
2364         s390_option_optimization.  Make static.  Don't mark size parameter
2365         unused.
2366         (TARGET_OPTION_OPTIMIZATION): Define.
2367         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2368         * config/sh/sh-protos.h (sh_optimization_options): Remove.
2369         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2370         (sh_optimization_options): Rename to sh_option_optimization.  Make
2371         static.  Don't mark parameters unused.
2372         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2373         * config/spu/spu-protos.h (spu_optimization_options): Remove.
2374         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2375         (spu_optimization_options): Rename to spu_option_optimization.
2376         Make static.
2377         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2378         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2379         (v850_option_optimization): New.
2380         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2381         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2382         (xtensa_option_optimization): New.
2383         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2384
2385 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2386
2387         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2388         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2389         * doc/tm.texi: Regenerate.
2390         * system.h (OVERRIDE_OPTIONS): Poison.
2391         * target.def (override): Default to hook_void_void.
2392         * targhooks.c (default_target_option_override): Remove.
2393         * genmodes.c, machmode.def: Update comments mentioning
2394         OVERRIDE_OPTIONS.
2395         * config/alpha/alpha-modes.def: Update comment mentioning
2396         alpha_override_options.
2397         * config/alpha/alpha-protos.h (override_options): Remove.
2398         * config/alpha/alpha.c (override_options): Rename to
2399         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
2400         (TARGET_OPTION_OVERRIDE): Define.
2401         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2402         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2403         of OVERRIDE_OPTIONS.
2404         * config/arc/arc-protos.h (arc_init): Remove.
2405         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2406         (arc_init): Rename to arc_option_override.  Make static.
2407         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2408         (OVERRIDE_OPTIONS): Remove.
2409         * config/arm/arm-protos.h (arm_override_options): Remove.
2410         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2411         (arm_override_options): Rename to arm_option_override.  Make
2412         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2413         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2414         * config/arm/arm.md: Update comment referring to arm_override_options.
2415         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2416         instead of OVERRIDE_OPTIONS.
2417         * config/avr/avr-protos.h (avr_override_options): Remove.
2418         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2419         (avr_override_options): Rename to avr_option_override.  Make static.
2420         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2421         * config/bfin/bfin-protos.h (override_options): Remove (twice).
2422         * config/bfin/bfin.c (override_options): Rename to
2423         bfin_option_override.  Make static.
2424         (TARGET_OPTION_OVERRIDE): Define.
2425         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2426         * config/cris/cris-protos.h (cris_override_options): Remove.
2427         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2428         (cris_override_options): Rename to cris_option_override.  Make static.
2429         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2430         * config/frv/frv-protos.h (frv_override_options): Remove.
2431         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2432         (frv_override_options): Rename to frv_option_override.  Make static.
2433         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2434         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2435         * config/h8300/h8300.c (h8300_init_once): Rename to
2436         h8300_option_override.  Make static.
2437         (TARGET_OPTION_OVERRIDE): Define.
2438         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2439         * config/i386/i386-protos.h (override_options): Remove.
2440         * config/i386/i386.c (override_options): Rename to
2441         ix86_option_override_internal.  Make static.  Comments referring
2442         to this function and callers changed.
2443         (ix86_option_override): New.
2444         (TARGET_OPTION_OVERRIDE): Define.
2445         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2446         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2447         * config/ia64/ia64.c (ia64_file_start): Update comment referring
2448         to ia64_override_options.
2449         * config/iq2000/iq2000-protos.h (override_options): Remove.
2450         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2451         (override_options): Rename to iq2000_option_override.  Make static.
2452         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2453         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2454         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2455         (lm32_override_options): Rename to lm32_option_override.  Make static.
2456         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2457         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2458         (m32r_option_override): New.
2459         (m32r_init): Update comment.
2460         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2461         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2462         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2463         (m68hc11_override_options): Rename to m68hc11_option_override.
2464         Make static.  Return void.
2465         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2466         * config/m68k/m68k-protos.h (override_options): Remove.
2467         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2468         (override_options): Rename to m68k_option_override.  Make static.
2469         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2470         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2471         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2472         (mcore_override_options): Rename to mcore_option_override.  Make
2473         static.
2474         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2475         * config/mep/mep-protos.h (mep_override_options): Remove.
2476         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2477         (mep_override_options): Rename to mep_option_override.  Make static.
2478         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2479         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2480         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2481         (mmix_override_options): Rename to mmix_option_override.  Make static.
2482         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2483         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2484         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2485         (mn10300_override_options): Rename to mn10300_option_override.
2486         Make static.
2487         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2488         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2489         * config/moxie/moxie.c (moxie_override_options): Rename to
2490         moxie_option_override.  Make static.
2491         (TARGET_OPTION_OVERRIDE): Define.
2492         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2493         * config/picochip/picochip-protos.h (picochip_override_options):
2494         Remove.  Update comment referring to picochip_override_options.
2495         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2496         (picochip_override_options): Rename to picochip_option_override.
2497         Make static.  Update comment and definition of
2498         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2499         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2500         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2501         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2502         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2503         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2504         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2505         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2506         instead of OVERRIDE_OPTIONS.
2507         * config/rs6000/rs6000-modes.def: Update comment referring to
2508         rs6000_override_options.
2509         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2510         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2511         (rs6000_override_options): Rename to
2512         rs6000_option_override_internal.  Make static.  Commented
2513         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2514         (rs6000_option_override): New.
2515         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2516         instead of OVERRIDE_OPTIONS.
2517         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2518         * config/s390/s390-protos.h (override_options): Remove.
2519         * config/s390/s390.c (override_options): Rename to
2520         s390_option_override.  Make static.
2521         (TARGET_OPTION_OVERRIDE): Define.
2522         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2523         * config/score/score-protos.h (score_override_options): Remove.
2524         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2525         (score_override_options): Rename to score_option_override.  Make
2526         static.
2527         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2528         Update comment referring to override_options.
2529         * config/score/score3.c (score3_override_options): Rename to
2530         score3_option_override.
2531         * config/score/score3.h (score3_override_options): Rename to
2532         score3_option_override.
2533         * config/score/score7.c (score7_override_options): Rename to
2534         score7_option_override.
2535         * config/score/score7.h (score7_override_options): Rename to
2536         score7_option_override.
2537         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2538         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2539         (sparc_override_options): Rename to sparc_option_override.  Make
2540         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2541         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2542         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2543         instead of OVERRIDE_OPTIONS.
2544         * config/spu/spu-protos.h (spu_override_options): Remove.
2545         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2546         (spu_override_options): Rename to spu_option_override.  Make
2547         static.
2548         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2549         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2550         OVERRIDE_OPTIONS.
2551         * config/vax/vax-protos.h (override_options): Remove.
2552         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2553         (override_options): Rename to vax_option_override.  Make static.
2554         Call SUBTARGET_OVERRIDE_OPTIONS.
2555         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2556         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2557         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2558         * config/xtensa/xtensa-protos.h (override_options): Remove.
2559         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2560         (override_options): Rename to xtensa_option_override.  Make static.
2561         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2562
2563 2010-09-16  Richard Guenther  <rguenther@suse.de>
2564
2565         PR tree-optimization/45623
2566         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2567         (get_constraint_for_component_ref): If computing a constraint
2568         for the rhs handle type punning through unions.
2569         (get_constraint_for_address_of): Adjust.
2570         (get_constraint_for_1): Likewise.
2571         (get_constraint_for): Likewise.
2572         (get_constraint_for_rhs): New function.
2573         (do_structure_copy): Adjust.
2574         (make_constraint_to): Likewise.
2575         (handle_const_call): Likewise.
2576         (find_func_aliases): Likewise.
2577         (process_ipa_clobber): Likewise.
2578         (create_variable_info_for): Likewise.
2579
2580 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2581
2582         * tree-vectorizer.c: Fix documentation.
2583         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2584         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2585         is_pattern_stmt_p, is_loop_header_bb_p,
2586         stmt_vinfo_set_inside_of_loop_cost,
2587         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2588         known_alignment_for_access_p): Likewise.
2589         * tree-vect-loop.c: Fix documentation.
2590         (vect_get_cost): Start function name from new line.
2591         * tree-vect-data-refs.c: Fix documentation.
2592         * tree-vect_stmts.c: Likewise.
2593         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2594         (vectorizable_store): Free vec_oprnds if allocated.
2595         (vectorizable_condition): Initialize several variables to avoid
2596         warnings.
2597         * tree-vect-slp.c: Fix documentation.
2598
2599 2010-09-16  Richard Guenther  <rguenther@suse.de>
2600
2601         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2602         is TS_TRANSLATION_UNIT_DECL.
2603         (initialize_tree_contains_struct): Adjust.
2604         (all_translation_units): New global vector.
2605         (build_translation_unit_decl): New function.
2606         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2607         (struct tree_translation_unit_decl): New.
2608         (all_translation_units): Declare.
2609         (union tree_node): Add translation_unit_decl member.
2610         (build_translation_unit_decl): Declare.
2611         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2612         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2613         New function.
2614         (pack_value_fields): Call it.
2615         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2616         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2617         (lto_output_tree_pointers): Call it.
2618         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2619         to TRANSLATION_UNIT_DECL.
2620         (unpack_ts_translation_unit_decl_value_fields): New function.
2621         (unpack_value_fields): Call it.
2622         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2623         (lto_input_tree_pointers): Call it.
2624         * lto-streamer.c (check_handled_ts_structures): Adjust.
2625         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2626         * c-decl.c (all_translation_units): Remove.
2627         (pop_scope): Use build_translation_unit_decl.
2628         (collect_all_refs): Adjust.
2629         (for_each_global_decl): Likewise.
2630         (c_write_global_declarations): Likewise.
2631
2632 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2633
2634         PR bootstrap/45686
2635         * fold-const.c (fold_checksum_tree): Change slot from const void **
2636         to void **, use CONST_CAST_TREE to store into *slot.
2637
2638 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2639
2640         * config/i386/i386.md: Remove unneeded empty conditions and
2641         preparation statements from expanders.
2642         * config/i386/mmx.md: Ditto.
2643         * config/i386/sse.md: Ditto.
2644
2645 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2646
2647         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2648
2649 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2650
2651         PR rtl-optimization/45593
2652         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2653         insns that were in delay slots as stand-alone insns.
2654
2655 2010-09-15  Ian Lance Taylor  <iant@google.com>
2656
2657         * incpath.c (remove_duplicates): If name is not a directory, issue
2658         a warning rather than an error.
2659
2660 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2661
2662         PR middle-end/45644
2663         * tree-sra.c (create_access): Check for bit-fields directly.
2664
2665 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2666
2667         PR tree-optimization/45633
2668         * tree-cfg.c (verify_gimple_assign_binary): Allow
2669         MINUS_EXPR with lhs and rhs1 pointer vector and
2670         rhs2 sizetype vector.
2671         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2672         or vector pointer use TER to optimize pointer subtraction.
2673
2674 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2675
2676         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2677         fcmpd to fcmps.
2678
2679 2010-09-15  Ian Lance Taylor  <iant@google.com>
2680
2681         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2682
2683 2010-09-15  Ian Lance Taylor  <iant@google.com>
2684
2685         * function.c (get_arg_pointer_save_area): Set
2686         arg_pointer_save_area_init to true.
2687
2688 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2689
2690         * tree-sra.c (generate_subtree_copies): Updated comment.
2691         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2692         obtained from the statement iterator instead.
2693         (load_assign_lhs_subreplacements): Removed parameters lhs and
2694         right_offset, which is obtained from top_racc instead.  Parameter lacc
2695         is now expected to be the root of the processed tree rather than root's
2696         first child.  Updated all callers.
2697
2698 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
2699
2700         * config/pdp11/pdp11.c (register_move_cost): Rename to
2701         pdp11_register_move_cost.
2702         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2703         pdp11_register_move_cost.
2704         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2705         pdp11_register_move_cost instead of register_move_cost.
2706
2707 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
2708
2709         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2710         pattern for vmovn. Expansion in case of non
2711         -mvectorize-with-neon-quad.
2712         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2713         non- -mvectorize-with-neon-quad case.
2714         (move_lo_quad_<mode>): New expansion to vmov into low part.
2715         (move_hi_quad_<mode>): New expansion to vmov into high part.
2716         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2717         (move_lo_quad_v4sf): Likewise.
2718         (move_lo_quad_v8hi): Likewise.
2719         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2720         low part.
2721         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2722         high part.
2723         * config/arm/iterators.md (ANY128): New mode iterator.
2724         (V_narrow_pack): New mode attribute.
2725         (V_HALF): Add attribute.
2726         (V_DOUBLE): Add attribute.
2727         (V_mode_nunits): Add attribute.
2728
2729 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2730
2731         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2732         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2733
2734 2010-09-15  Olivier Hainque  <hainque@adacore.com>
2735             Jose Ruiz  <ruiz@adacore.com>
2736
2737         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2738         * config/alpha/osf5-unwind.h: New file.
2739
2740 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2741
2742         PR bootstrap/45672
2743         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2744         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2745         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2746
2747 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2748
2749         * c-lang.h (struct lang_type): Add variable_size GTY option.
2750
2751 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2752
2753         PR bootstrap/45672
2754         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2755
2756 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2757
2758         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2759         result isn't used in memory address.
2760
2761 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2762
2763         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2764         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2765         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2766         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2767         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2768         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2769
2770         * target.def: Add units_per_simd_word to vectorize.
2771
2772         * targhooks.c (default_units_per_simd_word): New.
2773         * targhooks.h (default_units_per_simd_word): Likewise.
2774         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2775         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2776         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2777         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2778         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2779         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2780         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2781         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2782
2783         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2784         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2785
2786         * tree-vect-stmts.c: Don't include "tm_p.h".
2787         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2788         with targetm.vectorize.units_per_simd_word.
2789
2790         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2791
2792         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2793
2794         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2795         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2796
2797         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
2798         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2799
2800         * doc/tm.texi: Regenerated.
2801
2802 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2803
2804         * tree-vect-stmts.c: Include "tm_p.h".
2805
2806         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2807         out of RTX_CODE.
2808
2809 2010-09-14  Martin Jambor  <mjambor@suse.cz>
2810
2811         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
2812         location of generated statement.  Changed all callers.
2813         (build_ref_for_model): New parameter loc which used to set location of
2814         all generated expressions.  Changed all callers.
2815         (generate_subtree_copies): Likewise.
2816         (init_subtree_with_zero): Likewise.
2817         (sra_modify_expr): Set locations of all generated statements and
2818         expressions to the location the original statement.
2819         (handle_unscalarized_data_in_subtree): Likewise.
2820         (load_assign_lhs_subreplacements): Likewise.
2821         (sra_modify_constructor_assign): Likewise.
2822         (sra_modify_assign): Likewise.
2823
2824 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
2825
2826         PR target/45277
2827         PR target/45363
2828         PR target/45407
2829         * doc/install.texi (sparc*-*-*): New section.
2830         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2831
2832 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2833
2834         PR middle-end/45567
2835         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2836         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2837         (expand_builtin): Adjust caller.
2838         (expand_builtin_unop): Only use subtarget if it has the right mode.
2839
2840 2010-09-14  Tristan Gingold  <gingold@adacore.com>
2841
2842         * configure.ac (plugins): Fix typos.
2843         * configure: Regenerate.
2844
2845 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2846
2847         PR debug/45660
2848         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2849         gen_type_die for function/method return type.
2850
2851 2010-09-14  Ira Rosen  <irar@il.ibm.com>
2852
2853         PR tree-optimization/45470
2854         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2855         can throw an exception.
2856         * tree-vect-stmts.c (vectorizable_call): Likewise.
2857
2858 2010-09-14  DJ Delorie  <dj@redhat.com>
2859
2860         PR target/44749
2861         * config/mep/mep-protos.h (mep_save_register_info,
2862         mep_reinit_regs, mep_init_regs): Declare.
2863
2864         * config/mep/mep.c: Move all target definitions to the end of the
2865         file to avoid the need for duplicate declarations.
2866         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
2867         (mep_reorg_erepeat): Remove unused variables.
2868         (mep_expand_builtin): Likewise.
2869
2870         * config/mep/mep-pragma.c: Don't include rtl.h.
2871         (INVALID_REGNUM): New.
2872         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
2873         functions.
2874         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
2875         Avoid enum/integer math.
2876
2877 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
2878
2879         PR target/44749
2880         * config/mep/t-mep (GTM_H): Add insn-constants.h.
2881         * config/mep/mep.c (mep_conditional_register_usage): Take no
2882         parameters.
2883         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
2884         prototype.
2885         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
2886         call to mep_conditional_register_usage.
2887
2888 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2889
2890         PR debug/43937
2891         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
2892         the DECL as well.
2893
2894 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
2895
2896         PR rtl-optimization/45617
2897         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
2898         even if low N bits of X aren't known to be zero.
2899
2900 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2901
2902         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
2903
2904         * config/i386/i386.c (initial_ix86_tune_features): Add
2905         X86_TUNE_VECTORIZE_DOUBLE.
2906         (ix86_units_per_simd_word): New.
2907
2908         * config/i386/i386.h (ix86_tune_indices): Add
2909         X86_TUNE_VECTORIZE_DOUBLE.
2910         (TARGET_VECTORIZE_DOUBLE): New.
2911         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
2912
2913 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2914
2915         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
2916         (new_temp_expr_table): Allocate call_cnt vector.
2917         (free_temp_expr_table): Free it.
2918         (process_replaceable): Add call_cnt parm and set in vector.
2919         (find_replaceable_in_bb): Skip replacement if def/use span a call.
2920         (debug_ter): Dump call_cnt value, remove stderr uses.
2921
2922 2010-09-13  Jan Hubicka  <jh@suse.cz>
2923
2924         * tree.c (build_zero_cst): New.
2925         * tree.h (build_zero_cst): Declare.
2926         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
2927         (get_base_constructor): Break out from ...
2928         (fold_const_aggregate_ref): Here; handle empty constructors.
2929
2930 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2931
2932         * config/arm/arm.md: (define_attr "conds"): Update comment.
2933         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
2934         conds attribute to clob.
2935         (arm_sync_compare_and_swapsi): Likewise.
2936         (arm_sync_compare_and_swap<mode>): Likewise.
2937         (arm_sync_lock_test_and_setsi): Likewise.
2938         (arm_sync_lock_test_and_set<mode>): Likewise.
2939         (arm_sync_new_<sync_optab>si): Likewise.
2940         (arm_sync_new_nandsi): Likewise.
2941         (arm_sync_new_<sync_optab><mode>): Likewise.
2942         (arm_sync_new_nand<mode>): Likewise.
2943         (arm_sync_old_<sync_optab>si): Likewise.
2944         (arm_sync_old_nandsi): Likewise.
2945         (arm_sync_old_<sync_optab><mode>): Likewise.
2946         (arm_sync_old_nand<mode>): Likewise.
2947
2948 2010-09-13  Olivier Hainque  <hainque@adacore.com>
2949
2950         * fwprop.c (forward_propagate_and_simplify): Only attach a
2951         REG_EQUAL note to an insn if the destination is a register.
2952         * gcse.c (try_replace_reg): Likewise.
2953
2954 2010-09-13  Richard Guenther  <rguenther@suse.de>
2955
2956         PR tree-optimization/45611
2957         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
2958         (copy_ref_info): Likewise.
2959
2960 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
2961
2962         PR debug/45604
2963         PR debug/45419
2964         PR debug/45408
2965         * tree-pretty-print.c (dump_generic_node): Disregard top-level
2966         types of MEM_REF pointer types to the same type.
2967
2968 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
2969
2970         PR rtl-optimization/41087
2971         * ifcvt.c (noce_get_condition): Don't allow conditions with
2972         side-effects.
2973
2974 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
2975
2976         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2977         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
2978         * config/frv/frv.c (frv_register_move_cost): Make static. Change
2979         arguments type to reg_class_t. Add mode argument.
2980         (frv_memory_move_cost): New.
2981         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
2982
2983 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2984
2985         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
2986         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
2987
2988 2010-09-10  Jan Hubicka  <jh@suse.cz>
2989
2990         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
2991
2992 2010-09-10  Richard Guenther  <rguenther@suse.de>
2993
2994         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
2995         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
2996         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
2997         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
2998         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
2999
3000 2010-09-10  Richard Guenther  <rguenther@suse.de>
3001
3002         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
3003         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
3004         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
3005         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
3006
3007 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3008
3009         PR middle-end/45634
3010         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
3011         of string folding is of integral type.
3012
3013 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
3014
3015         * doc/invoke.texi (-x): Fix typo.
3016
3017 2010-09-10  Richard Guenther  <rguenther@suse.de>
3018
3019         PR debug/44115
3020         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
3021         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3022         Output DECL_DEBUG_EXPR.
3023         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3024         Input DECL_DEBUG_EXPR.
3025
3026 2010-09-10  Richard Guenther  <rguenther@suse.de>
3027
3028         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
3029         (build_index_type): Implement in terms of build_range_type.
3030         (build_range_type): Do not allow NULL_TREE type, improve
3031         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
3032         if we didn't hash.
3033         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
3034         create a distinct copy of the type.
3035
3036 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
3037
3038         * configure: Regenerated.
3039         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
3040
3041 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3042
3043         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
3044         * config/arm/cortex-a9-neon.md: New and partially generated.
3045         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
3046
3047 2010-09-10  Richard Guenther  <rguenther@suse.de>
3048
3049         * tree.h (build_index_2_type): Remove.
3050         * tree.c (build_index_2_type): Remove.
3051
3052 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
3053
3054         PR bootstrap/45630
3055         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
3056         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
3057         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
3058
3059 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3060
3061         PR tree-optimization/44972
3062         * tree-sra.c: Include toplev.h.
3063         (build_ref_for_offset): Entirely reimplemented.
3064         (build_ref_for_model): New function.
3065         (build_user_friendly_ref_for_offset): New function.
3066         (analyze_access_subtree): Removed build_ref_for_offset check.
3067         (propagate_subaccesses_across_link): Likewise.
3068         (create_artificial_child_access): Use
3069         build_user_friendly_ref_for_offset.
3070         (propagate_subaccesses_across_link): Likewise.
3071         (ref_expr_for_all_replacements_p): Removed.
3072         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
3073         (sra_modify_expr): Use build_ref_for_model.
3074         (load_assign_lhs_subreplacements): Likewise.
3075         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
3076         checks for return values of build_ref_for_offset.
3077         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
3078         build_ref_for_offset.
3079         * ipa-prop.h: Include gimple.h
3080         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
3081         (ipa_analyze_indirect_call_uses): Update comment.
3082         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
3083         (IPA_PROP_H): Likewise.
3084
3085 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3086
3087         PR tree-optimization/44972
3088         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
3089         calling build_ref_for_offset.
3090
3091 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3092
3093         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
3094         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
3095         * config/arm/arm-tune.md: Regenerate.
3096         * doc/invoke.texi (ARM Options): Document it.
3097
3098 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
3099
3100         * config/i386/i386.c: Include sched-int.h.
3101         (TARGET_SCHED_DISPATCH): Defined.
3102         (TARGET_SCHED_DISPATCH_DO): Defined.
3103         (DISPATCH_WINDOW_SIZE): Defined.
3104         (MAX_DISPATCH_WINDOWS): Defined.
3105         (MAX_INSN): Defined.
3106         (MAX_IMM): Defined.
3107         (MAX_IMM_SIZE): Defined.
3108         (MAX_IMM_32): Defined.
3109         (MAX_IMM_64): Defined.
3110         (MAX_LOAD): Defined.
3111         (MAX_STORE): Defined.
3112         (BIG): Defined.
3113         (dispatch_group): New.
3114         (num_allowable_groups): New.
3115         (group_name): New.
3116         (sched_insn_info_s): New.
3117         (dispatch_windows_s): New.
3118         (imm_info_s): New.
3119         (dispatch_window_list): New.
3120         (dispatch_window_list1): New.
3121         (get_mem_group): New.
3122         (is_cmp): New.
3123         (dispatch_violation): New.
3124         (is_branch): New.
3125         (is_prefetch): New.
3126         (init_window): New.
3127         (allocate_window): New.
3128         (init_dispatch_sched): New.
3129         (is_end_basic_block): New.
3130         (process_end_window): New.
3131         (allocate_next_window): New.
3132         (find_constant_1): New.
3133         (find_constant): New.
3134         (get_num_immediates): New.
3135         (has_immediate): New.
3136         (get_insn_path): New.
3137         (get_insn_group): New.
3138         (count_num_restricted): New.
3139         (fits_dispatch_window): New.
3140         (add_insn_window): New.
3141         (add_to_dispatch_window): New.
3142         (debug_dispatch_window_file): New.
3143         (debug_dispatch_window): New.
3144         (debug_insn_dispatch_info_file): New.
3145         (debug_ready_dispatch): New.
3146         (do_dispatch): New.
3147         (has_dispatch): New.
3148         * config/i386/i386.h (debug_ready_dispatch): Declared.
3149         (debug_dispatch_window): Declared.
3150         * config/i386/i386.opt (mdispatch-scheduler): New flag.
3151         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3152         (TARGET_SCHED_DISPATCH_DO): New.
3153         * doc/tm.texi: Regererated.
3154         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3155         ready_remove_first_dispatch
3156         (schedule_block): Call targetm.sched.dispatch and
3157         targetm.sched.dispatch_do.
3158         (sched_init): Call targetm.sched.dispatch and
3159         targetm.sched.dispatch_do.
3160         (ready_remove_first_dispatch): New.
3161         (number_in_ready): New.
3162         (get_ready_element): New.
3163         * hooks.c (hook_bool_rtx_int_false): New.
3164         (hook_void_rtx_int): New.
3165         * hooks.h (hook_bool_rtx_int_false): Declared.
3166         (hook_void_rtx_int): Declared.
3167         * sched-int.h (IS_DISPATCH_ON): Defined.
3168         (IS_CMP): Defined.
3169         (DISPATCH_VIOLATION): Defined.
3170         (FITS_DISPATCH_WINDOW): Defined.
3171         (DISPATCH_INIT): Defined.
3172         (ADD_TO_DISPATCH_WINDOW): Defined.
3173         (get_ready_element): Declared.
3174         (number_in_ready): Declared.
3175         * target.def (dispatch): Defined.
3176         (dispatch_do): Defined.
3177
3178 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3179
3180         PR middle-end/45312
3181         * reload1.c (merge_assigned_reloads): Remove.
3182         (reload_as_needed): Don't call it.
3183
3184 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
3185
3186         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3187         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3188         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3189
3190 2010-09-09  Matthias Klose  <doko@ubuntu.com>
3191
3192         PR bootstrap/43847
3193         * configure.ac (--enable-plugin): Enhance for cross builds.
3194         * configure: Regenerate.
3195
3196 2010-09-09  Jan Hubicka  <jh@suse.cz>
3197
3198         PR tree-optimization/45598
3199         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3200         string folding is of integral type.
3201
3202 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3203
3204         * configure.ac (gnu_indirect_function): New test.
3205         * configure: Rebuilt.
3206         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3207         * defaults.h (IFUNC_ASM_TYPE): Provide default.
3208
3209         * doc/extend.texi (Function Attributes): Document ifunc.
3210         * varasm.c (do_assemble_alias): Deal with ifuncs too.
3211
3212 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3213
3214         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3215         epilogue instruction move.
3216
3217 2010-09-09  Jan Hubicka  <jh@suse.cz>
3218
3219         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3220         command line to allow more partitions than input files.
3221
3222 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3223
3224         PR middle-end/44554
3225         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3226
3227 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3228
3229         PR middle-end/40386
3230         * ira.c (pseudo_for_reload_consideration_p): Don't use
3231         flag_ira_share_spill_slots.
3232
3233 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3234
3235         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3236         point zero operands that fit into a single GPR.
3237         (s390_preferred_reload_class): Ensure we only return general-purpose
3238         register classes.
3239         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3240         floating-point zero operands into GPRs.
3241         ("*mov<mode>_64"): Likewise.
3242         ("mov<mode>"): Likewise using lhi.
3243
3244 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3245
3246         * config/s390/s390.c (s390_symref_operand_p): Return false for
3247         literal pool references.
3248         (s390_check_qrst_address): Update caller.
3249
3250 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
3251
3252         * config/i386/predicates.md (ext_register_operand): Check that
3253         SUBREG_REG is really a register before looking for REGNO.
3254         (reg_not_xmm0_operand): Handle SUBREGs correctly.
3255         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3256
3257 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
3258
3259         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3260         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3261         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3262         * print-rtl.c (print_rtx): Likewise.
3263         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3264         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3265         for ADDR_EXPR with non-addressable object.
3266         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3267         (struct dw_val_struct): Add v.val_decl_ref.
3268         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3269         Handle DW_OP_GNU_implicit_pointer.
3270         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
3271         (get_ref_die_offset_label): New function.
3272         (implicit_ptr_descriptor): New function.
3273         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3274         (loc_descriptor): Likewise.
3275         (gen_variable_die): Put even definitions into decl_die_table.
3276         (resolve_addr_in_expr): Resolve still unresolved
3277         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3278         return false.
3279         (dwarf2out_finish): Call output_location_lists after outputting
3280         .debug_info and .debug_abbrev instead of before.
3281
3282 2010-09-09  Roland McGrath  <roland@redhat.com>
3283
3284         * dwarf2out.c (DWARF_REF_SIZE): Define.
3285         (size_of_loc_descr): Use it for DW_OP_call_ref.
3286
3287 2010-09-09  Alan Modra  <amodra@gmail.com>
3288
3289         * doc/invoke.text: Reinstate mcmodel=medium.
3290         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3291         CMODEL_MEDIUM as default.
3292         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3293         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3294         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3295         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3296
3297 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3298
3299         PR target/45250
3300         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3301         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3302         (builtin_longjmp): Likewise.
3303         (allocate_stack): Use hard_frame_pointer_rtx instead of
3304         frame_pointer_rtx.
3305         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3306         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3307         (pa_can_eliminate): Likewise.
3308         (TARGET_INTERNAL_ARG_POINTER): Define.
3309         (TARGET_CAN_ELIMINATE): Define.
3310         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3311         pointer.
3312         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3313         (pa_internal_arg_pointer, pa_can_eliminate,
3314         pa_initial_elimination_offset): New.
3315         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3316         (HARD_FRAME_POINTER_REGNUM): Set to register three.
3317         (INITIAL_FRAME_POINTER_OFFSET): Delete.
3318         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3319         Define.
3320         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3321         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3322         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3323         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3324         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3325         new soft frame pointer.
3326         * config/pa/pa64-regs.h: Likewise.
3327
3328 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3329
3330         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3331         numerical constant.
3332         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3333
3334 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3335
3336         PR debug/45531
3337         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3338
3339 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3340
3341         PR debug/45419
3342         PR debug/45408
3343         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3344         qualifiers in otherwise equal MEM_REF pointer types.
3345         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3346         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3347
3348 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3349
3350         PR target/44392
3351         * config/arm/arm.md (bswapsi2): Handle condition correctly
3352         for armv6 and optimize_size.
3353
3354 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3355
3356         PR other/18555
3357         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3358
3359 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3360
3361         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3362         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3363         ix86_expand_strlen, legitimate_pic_address_disp_p,
3364         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3365         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3366         ix86_check_movabs, ix86_secondary_memory_needed): Change function
3367         prototype to bool.
3368         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3369         return_in_memory_ms_64, ix86_check_movabs,
3370         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3371         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3372         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3373         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3374         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3375         ix86_secondary_memory_needed): Change to bool.  Return
3376         "true" and "false" values.
3377         * config/i386/i386.md: Return "true" and "false" values.
3378
3379 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3380
3381         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3382         run_expensive_tests.
3383
3384 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3385
3386         * toplev.c (output_stack_usage): Use lbasename instead of basename.
3387
3388 2010-09-08  Martin Jambor  <mjambor@suse.cz>
3389
3390         PR other/45443
3391         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3392         at -O3.
3393
3394 2010-09-08  Richard Guenther  <rguenther@suse.de>
3395
3396         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3397         (visit): Adjust.
3398         (iterative_hash_gimple_type): Likewise.
3399         (gimple_type_hash): Likewise.
3400         (gimple_register_type): Likewise.
3401         (print_gimple_types_stats): Likewise.
3402         (free_gimple_type_tables): Likewise.
3403
3404 2010-09-08  Michael Matz  <matz@suse.de>
3405
3406         PR tree-optimization/43430
3407         * tree-vect-stmts.c (vectorizable_condition): Support multiple
3408         copies for conditional statements if it's not part of a reduction.
3409
3410 2010-09-08  Michael Matz  <matz@suse.de>
3411
3412         PR tree-optimization/33244
3413         * tree-ssa-sink.c (statement_sink_location): Don't sink into
3414         empty loop latches.
3415
3416 2010-09-08  Richard Guenther  <rguenther@suse.de>
3417
3418         PR tree-optimization/45578
3419         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3420         Be more careful when transfering alignment information to
3421         the new induction variable.
3422         (copy_ref_info): Likewise.
3423
3424 2010-09-08  Richard Guenther  <rguenther@suse.de>
3425
3426         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3427         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3428
3429 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
3430
3431         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3432         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3433
3434 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3435
3436         PR doc/45587
3437         * doc/md.texi: Fixed modes on several standard pattern names.
3438
3439 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
3440
3441         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3442         (ashl<mode>3): ...this.
3443         (loongson_psra<V_suffix>): Rename to...
3444         (ashr<mode>3): ...this.
3445         (loongson_psrl<V_suffix>): Rename to...
3446         (lshr<mode>3): ...this.
3447         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3448         (CODE_FOR_loongson_psllw): Define.
3449         (CODE_FOR_loongson_psrlh): Define.
3450         (CODE_FOR_loongson_psrlw): Define.
3451         (CODE_FOR_loongson_psrah): Define.
3452         (CODE_FOR_loongson_psraw): Define.
3453
3454 2010-09-07  Richard Henderson  <rth@redhat.com>
3455
3456         * tree-vect-data-refs.c: Include tm_p.h.
3457         * Makefile.in (tree-vect-data-refs.o): Update deps.
3458         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3459         Move delarations outside #ifdef RTX_CODE.
3460
3461 2010-09-07  Richard Henderson  <rth@redhat.com>
3462
3463         * final.c (rest_of_handle_final): Unconditionally do
3464         output_function_exception_table before assemble_end_function.
3465
3466 2010-09-07  Jan Hubicka  <jh@suse.cz>
3467
3468         * tree-inline.c (tree_inlinable_function_p): Do not test
3469         DECL_REPLACEABLE_P.
3470         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3471         update_callee_keys, cgraph_decide_inlining): Test function availability.
3472         * cif-code.def (OVERWRITABLE): New code.
3473
3474 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
3475             Jack Howarth  <howarth@bromo.med.uc.edu>
3476
3477         PR target/36502
3478         PR target/42313
3479         PR target/44651
3480         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3481         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3482         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3483         MAX macro.
3484
3485 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3486
3487         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3488         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3489
3490 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3491
3492         * config.gcc: Don't append t-android for Android targets.
3493
3494         * config/t-android: Removed.
3495
3496 2010-09-07  Richard Henderson  <rth@redhat.com>
3497
3498         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3499         * doc/tm.texi.in: Add doc marker.
3500         * doc/tm.texi: Rebuild.
3501         * except.c (switch_to_exception_section): Always build.
3502         (output_one_function_exception_table): Move section switch,
3503         personality output, and label output ...
3504         (output_function_exception_table): ... here.  Use the new
3505         personality hook.
3506
3507         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3508         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3509         TARGET_ASM_INIT_SECTIONS): New.
3510         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3511         make static.
3512         (TARGET_ASM_UNWIND_EMIT): Update to match.
3513         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3514
3515         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3516         (arm_asm_init_sections): New.
3517         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3518
3519 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3520
3521         * config/arm/arm.md: Remove unused variable.
3522
3523 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3524
3525         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3526         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3527         (m32r_memory_move_cost): New function.
3528
3529 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         * config.gcc: Append t-android for Android targets.
3532
3533         * config/t-android: New.
3534
3535 2010-09-07  Richard Henderson  <rth@redhat.com>
3536
3537         * target.def (unwind_emit_before_insn): New hook.
3538         * doc/tm.texi.in: Add @hook marker for it.
3539         * doc/tm.texi: Rebuild.
3540         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3541
3542 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3543
3544         PR fortran/43665
3545         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3546         are any type attributes.
3547
3548 2010-09-07  Jan Hubicka  <jh@suse.cz>
3549
3550         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3551         array_ref_low_bound in string access folding.
3552
3553 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3554
3555         PR target/45206
3556         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3557         eh_return fixup sequence.
3558
3559 2010-09-07  Jan Hubicka  <jh@suse.cz>
3560
3561         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3562         gimple_min_invariant.
3563
3564 2010-09-07  Richard Guenther  <rguenther@suse.de>
3565
3566         PR middle-end/45569
3567         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3568         nor CONSTRUCTOR can trap.
3569         * tree-complex.c (update_complex_assignment): Update EH info.
3570
3571 2010-09-07  Richard Guenther  <rguenther@suse.de>
3572
3573         PR middle-end/45569
3574         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3575         * passes.c (execute_function_todo): Do not verify anything if
3576         we saw errors.
3577
3578 2010-09-07  Richard Guenther  <rguenther@suse.de>
3579
3580         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3581
3582 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3583
3584         PR target/43137
3585         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3586         New define_mode_attrs.
3587         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3588         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3589         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3590         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3591         Remove pool_range attribute.
3592         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3593         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3594         pool_range and neg_pool_range attributes.
3595         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3596         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3597         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3598
3599 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3600
3601         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3602         check glibc.
3603
3604 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3605
3606         PR target/22152
3607         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3608         *mov<mode>_internal_avx, *mov<mode>_internal,
3609         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3610         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3611
3612 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3613
3614         * c-typeck.c (do_warn_double_promotion): Remove.
3615         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3616         Objective-C++ too.
3617
3618 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3619
3620         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3621         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3622         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3623         argument type to reg_class_t. Change result type to bool.
3624         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3625
3626 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3627
3628         PR libobjc/19850
3629         * gthr-posix.h (__gthread_objc_thread_detach): Use
3630         _objc_thread_attribs when detaching a thread.
3631         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3632
3633 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3634
3635         PR target/45524
3636         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3637         * configure: Regenerated.
3638
3639 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3640
3641         * combine.c (try_combine): Set subst_low_luid to i0.
3642
3643 2010-09-06  Richard Guenther  <rguenther@suse.de>
3644
3645         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3646         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3647         (build_aligned_type): Declare.
3648         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3649         (check_aligned_type): New function.
3650         (build_aligned_type): Likewise.
3651         * expr.c (expand_assignment): Handle misaligned stores via
3652         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3653         (expand_expr_real_1): Likewise.
3654         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3655         * tree-vect-stmts.c (vectorizable_store): Do not build
3656         MISALIGNED_INDIRECT_REF but initialize alignment information.
3657         (vectorizable_load): Likewise.
3658         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3659         handling.
3660         * cfgexpand.c (expand_debug_expr): Likewise.
3661         * dwarf2out.c (loc_list_from_tree): Likewise.
3662         * fold-const.c (maybe_lvalue_p): Likewise.
3663         (operand_equal_p): Likewise.
3664         (build_fold_addr_expr_with_type_loc): Likewise.
3665         * gimplify.c (gimplify_addr_expr): Likewise.
3666         (gimplify_expr): Likewise.
3667         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3668         (verify_gimple_assign_single): Likewise.
3669         * tree-dump.c (dequeue_and_dump): Likewise.
3670         (tree_could_trap_p): Likewise.
3671         * tree-predcom.c (ref_at_iteration): Likewise.
3672         * tree-pretty-print.c (dump_generic_node): Likewise.
3673         (op_code_prio): Likewise.
3674         (op_symbol_code): Likewise.
3675         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3676         * tree-ssa-loop-im.c (for_each_index): Likewise.
3677         (gen_lsm_tmp_name): Likewise.
3678         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3679         (find_interesting_uses_address): Likewise.
3680         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3681         * tree-ssa-operands.c (get_expr_operands): Likewise.
3682         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3683         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3684         (ao_ref_init_from_vn_reference): Likewise.
3685         * tree.c (staticp): Likewise.
3686         (build1_stat): Likewise.
3687         (reference_alias_ptr_type): Likewise.
3688         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3689         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3690         MISALIGNED_INDIRECT_REF handling.
3691
3692 2010-09-06  Richard Guenther  <rguenther@suse.de>
3693
3694         PR tree-optimization/45534
3695         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3696         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3697         on the target.
3698         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3699         valid on the target.
3700
3701 2010-09-06  Andreas Schwab  <schwab@redhat.com>
3702
3703         * configure.ac: Quote argument of AC_MSG_WARN.
3704         * configure: Regenerate.
3705
3706 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
3707
3708         * sel-sched.c (move_cond_jump): Correct arguments to
3709         maybe_tidy_empty_bb.
3710         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3711
3712 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
3713
3714         PR rtl-optimization/44919
3715         * sel-sched.c (move_cond_jump): Remove assert, check that
3716         the several blocks case can only happen with mutually exclusive
3717         insns instead.  Rewrite the movement code to support moving through
3718         several basic blocks.
3719
3720 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3721
3722         * config/i386/i386.md (iptrsize): New mode attribute.
3723         (tp_seg): Ditto.
3724         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3725         mode iterator.
3726         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3727         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3728         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3729         (stack_tls_protect_set_<mode>): Ditto from
3730         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
3731         of thread base pointer load.
3732         (stack_tls_protect_test_<mode>): Ditto from
3733         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
3734         of thread base pointer load.
3735         (stack_protect_set): Rewrite using indirect functions.
3736         (stack_protect_test): Ditto.
3737         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3738         (ix86_print_operand): Handle '@'.
3739
3740 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
3741
3742         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3743         MINUS_EXPR.
3744
3745 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3746
3747         * doc/invoke.texi: Document -Wdouble-promotion.
3748         * c-typeck.c (convert_arguments): Check for implicit conversions
3749         from float to double.
3750         (do_warn_double_promotion): New function.
3751         (build_conditional_expr): Use it.
3752         (build_binary_op): Likewise.
3753
3754 2010-09-05  Richard Guenther  <rguenther@suse.de>
3755
3756         PR tree-optimization/45535
3757         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3758         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
3759         dereferencing it.
3760         (indirect_refs_may_alias_p): Likewise.
3761
3762 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
3763
3764         * config/sh/sh.c (sh_option_override): Make static.
3765         Adjust comments.  Declare.
3766         (sh_function_value_regno_p): Likewise.
3767         (sh_register_move_cost): Modify the arguments, make static.
3768         Adjust comments.  Declare.
3769         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3770         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3771         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3772         REGISTER_MOVE_COST): Delete.
3773         * config/sh/sh-protos.h (sh_override_options): Delete.
3774         (sh_register_move_cost): Delete.
3775         (sh_function_value_regno_p): Delete.
3776
3777 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
3778
3779         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3780         m32r_function_value_regno_p): New functions.
3781         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3782         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3783         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3784         FUNCTION_VALUE_REGNO_P): Remove.
3785
3786 2010-09-04  Jan Hubicka  <jh@suse.cz>
3787
3788         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3789         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3790         fold_read_from_constant_string.
3791
3792         * gimple.h (canonicalize_constructor_val): Declare.
3793         * gimple-fold.c (canonicalize_constructor_val): New function.
3794         (get_symbol_constant_value):Use it.
3795         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3796
3797 2010-09-04  Jan Hubicka  <jh@suse.cz>
3798
3799         * tree-switch-conversion.c (build_one_array): Set constructor to be
3800         static.
3801         * varpool.c (varpool_finalize_decl): Compute const_value_known.
3802
3803 2010-09-04  Richard Guenther  <rguenther@suse.de>
3804
3805         PR bootstrap/45519
3806         * tree-flow.h (force_gimple_operand_1): Declare.
3807         (force_gimple_operand_gsi_1): Likewise.
3808         * gimplify.c (force_gimple_operand_1): New worker taking a
3809         gimple predicate for ...
3810         (force_gimple_operand): ... which now wraps it.
3811         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3812         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3813         last change.
3814         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3815         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3816         (create_mem_ref): Likewise.
3817
3818 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
3819
3820         * config/i386/predicates.md (sse_reg_operand): New predicate.
3821         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3822         predicate for operand 1.
3823         (XFmode push splitter): Use fp_register_operand predicate
3824         for operand 1.
3825         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3826         (SF-DF float_extend push splitter): Add reload_completed insn
3827         predicate.
3828         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3829         MODEF mode macro.  Add reload_completed insn predicate.
3830
3831 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
3832
3833         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3834         (struct df_extract_ref): Remove.
3835         (union df_ref_d): Remove extract_ref member.
3836         (df_ref_create): Remove last three arguments.
3837         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3838         * df-scan.c (df_ref_record): Remove last three arguments, do not
3839         pass them to df_ref_create_structure.
3840         (df_uses_record): Remove first and last three arguments.  Replace
3841         first argument with DF_REF_REGULAR, adjust calls to remove the
3842         width, offset and mode.  Always call recursively on the second
3843         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3844         (df_ref_create_structure): Remove first argument.
3845         (struct df_scan_problem_data): Remove ref_extract_pool.
3846         (df_scan_free_internal): Do not free it.
3847         (df_scan_alloc): Do not allocate it.
3848         (df_ref_create): Remove last three arguments, do not pass them to
3849         df_ref_create_structure.
3850         (df_free_ref): Remove DF_REF_EXTRACT case.
3851         (df_notes_rescan): Adjust call to df_uses_record.
3852         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3853         Remove DF_REF_EXTRACT case.
3854         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3855         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3856         and SUBREG definitions.
3857         (df_get_conditional_uses): Remove references to width/offset/mode,
3858         adjust call to df_ref_create_structure.
3859         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3860         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
3861         calls to df_uses_record and df_ref_record.
3862         * fwprop.c (update_df): Remove references to width/offset/mode,
3863         adjust call to df_ref_create.
3864
3865 2010-09-03  Jan Hubicka  <jh@suse.cz>
3866
3867         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
3868         (build_cdtor_fns): Update use of build_cdtor.
3869
3870 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
3871
3872         * doc/options.texi (SeparateAlias): Document.
3873         * opt-functions.awk (switch_flags): Handle SeparateAlias.
3874         * opth-gen.awk: Generate enumeration names for options marked
3875         SeparateAlias, but not for those marked Ignore.
3876         * opts-common.c (generate_canonical_option): Don't output separate
3877         argument for options marked CL_SEPARATE_ALIAS.
3878         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
3879         * opts.h (CL_SEPARATE_ALIAS): New.
3880         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3881         CL_COMMON): Adjust definitions.
3882         * config/i386/darwin.opt, config/mips/sde.opt: New.
3883         * common.opt (fdump-final-insns): New.
3884         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3885         i386/darwin.opt.
3886         (mips*-sde-elf*): Add mips/sde.opt.
3887         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
3888         -mno-data-in-code and -mcode-xonly here.
3889         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
3890         * gcc.c (option_map): Add "j" to --dump entry.
3891         (translate_options): Don't translate -d to -foutput-class-dir= here.
3892
3893 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
3894
3895         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
3896         DR_IS_WRITE.
3897         (compute_all_dependences): Same.
3898         (create_rdg_edge_for_ddr): Same.
3899         * tree-data-ref.h (DR_IS_WRITE): New.
3900         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
3901         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
3902         (write_memrefs_written_at_least_once): Same.
3903         * tree-predcom.c (suitable_component_p): Same.
3904         (determine_roots_comp): Same.
3905         (execute_load_motion): Same.
3906         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
3907         (vect_enhance_data_refs_alignment): Same.
3908         (vect_analyze_group_access): Same.
3909
3910 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
3911
3912         PR testsuite/42843
3913         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
3914         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
3915
3916 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
3917
3918         * dwarf2out.c (file scope): Remove #if0'd code.
3919         (gen_subprogram_die): Same.
3920
3921 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3922
3923         PR middle-end/45484
3924         * dwarf2out.c (flush_queued_reg_saves): Rename to...
3925         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
3926         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
3927         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
3928         * config/i386/i386.c (output_set_got): Call it.
3929
3930 2010-09-03  Michael Matz  <matz@suse.de>
3931
3932         PR middle-end/45415
3933         * tree-sra.c (sra_modify_assign): If we modify the statement,
3934         say so.
3935
3936         * tree-ssa.c (verify_ssa): Check number of operands and links
3937         per statement to agree.
3938
3939 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3940             Iain Sandoe  <iains@gcc.gnu.org>
3941
3942         PR target/45476
3943         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
3944         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
3945         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3946
3947 2010-09-03  Richard Guenther  <rguenther@suse.de>
3948
3949         * lto-streamer-out.c (output_function): Output function
3950         start and end loci.
3951         * lto-streamer-in.c (input_function): Input function start
3952         and end loci.
3953
3954 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3955
3956         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
3957         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
3958         * configure: Regenerate.
3959         * aclocal.m4: Regenerate.
3960
3961 2010-09-03  Jan Hubicka  <jh@suse.cz>
3962
3963         PR lto/44812
3964         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
3965         on functions/variables in other partition.
3966
3967 2010-09-03  Jan Hubicka  <jh@suse.cz>
3968
3969         * cgraph.h (struct varpool_node): Add const_value_known.
3970         (varpool_decide_const_value_known): Declare.
3971         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
3972         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
3973         (input_varpool_node): Restore const_value_known.
3974         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
3975         initializer folding.
3976         * ipa.c (ipa_discover_readonly_nonaddressable_var,
3977         function_and_variable_visibility): Compute const_value_known.
3978         * gimple-fold.c (get_symbol_constant_value): Use varpool for
3979         initializer folding.
3980         * varpool.c (varpool_decide_const_value_known): New function.
3981
3982 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3983
3984         * config/i386/i386.md: Remove empty preparation statements
3985         from splitters.
3986
3987 2010-09-03  Jan Hubicka  <jh@suse.cz>
3988
3989         * passes.c (rest_of_decl_compilation): Do not add local vars into
3990         varpool.
3991         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
3992         static or extern vars are in varpool.
3993         (varpool_finalize_decl): Sanity check that only static vars are
3994         finalized.
3995
3996 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3997
3998         PR debug/45500
3999         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
4000         not just generic vectors with BLKmode.
4001
4002 2010-09-03  Richard Guenther  <rguenther@suse.de>
4003
4004         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
4005         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
4006         * tree.h (TMR_SYMBOL): Remove.
4007         (TMR_BASE, TMR_OFFSET): Adjust.
4008         (TMR_INDEX2): New.
4009         * alias.c (ao_ref_from_mem): Use TMR_BASE.
4010         * builtins.c (get_object_alignment): Merge TMR_BASE and
4011         TMR_SYMBOL handling.
4012         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
4013         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
4014         handling.  Also allow TARGET_MEM_REF as base address.
4015         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
4016         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
4017         base.  Gimplify TMR_INDEX2.
4018         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
4019         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4020         (get_addr_base_and_unit_offset): Likewise.
4021         * tree-eh.c (tree_could_trap_p): Likewise.
4022         * tree-pretty-print.c (dump_generic_node): Likewise.
4023         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
4024         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
4025         base to index2.
4026         (get_address_description): Reconstruct addres description
4027         from merged TMR_BASE and TMR_INDEX2.
4028         (maybe_fold_tmr): Fold propagated addresses.
4029         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
4030         MEM_REF and TARGET_MEM_REF paths.
4031         (indirect_refs_may_alias_p): Likewise.
4032         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
4033         instead of TMR_SYMBOL.
4034         * tree-ssa-operands.c (get_tmr_operands): Simplify.
4035         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
4036         according to changes ...
4037         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
4038         Split TARGET_MEM_REF into two fields plus the base.
4039         * tree.c (mem_ref_offset): Simplify.
4040         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
4041         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
4042         Strip NOPs when folding MEM_REF addresses.
4043         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
4044         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
4045         (fold_gimple_assign): ... not here.
4046
4047 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
4048
4049         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
4050         * config/mips/mips.c (mips_shift_truncation_mask): New function.
4051         (TARGET_SHIFT_TRUNCATION_MASK): Define.
4052
4053 2010-09-02  Richard Henderson  <rth@redhat.com>
4054
4055         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
4056         instead of readelf in the test.
4057         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
4058         in the .debug_frame section for coff targets.
4059         * configure: Rebuild.
4060
4061 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4062
4063         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
4064         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
4065         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4066         (m32c_class_likely_spilled_p): Make static. Change argument type to
4067         reg_class_t. Change result type to bool.
4068
4069 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4070
4071         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
4072         to convert (double)(long) into a single FRIZ instruction or not
4073         when -ffast-math is used.
4074
4075         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
4076         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
4077         or FRIZ instruction if -ffast-math.
4078         * config/rs6000/rs6000.md (friz): Ditto.
4079
4080         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
4081
4082 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4083
4084         * opth-gen.awk (quote, comma): Remove unused variables.
4085
4086 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
4087
4088         * arm.c (arm_override_options): Correct fall-back code to use
4089         SUBTARGET_CPU_DEFAULT.
4090
4091 2010-09-02  Julian Brown  <julian@codesourcery.com>
4092
4093         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
4094         unspecs.
4095         (vcond<mode>, vcondu<mode>): New expanders.
4096         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
4097         comparisons with zero.
4098         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
4099         * config/arm/constraints.md (Dz): New constraint.
4100
4101 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4102
4103         * target.def (class_likely_spilled_p): New hook.
4104         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
4105         * doc/tm.texi: Regenerate.
4106         * targhooks.c (default_class_likely_spilled_p): New function.
4107         * targhooks.h (default_class_likely_spilled_p): Declare.
4108         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
4109         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
4110         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
4111         Use fixed_reg_set instead of fixed_regs.
4112         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4113         * calls.c (avoid_likely_spilled_reg): Ditto.
4114         * ira-conflicts.c (ira_build_conflicts): Ditto.
4115         * ira.c (update_equiv_regs): Ditto.
4116         * mode-switching.c (create_pre_exit): Ditto.
4117         * regmove.c (find_matches): Ditto.
4118         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4119         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
4120         (small_register_class_p): New inline function.
4121         (push_secondary_reload, find_reusable_reload, find_reloads): Use
4122         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
4123
4124         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
4125         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
4126         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4127
4128 2010-09-02  Richard Guenther  <rguenther@suse.de>
4129
4130         PR tree-optimization/44937
4131         PR tree-optimization/45412
4132         * ipa-split.c (split_function): Properly remove PHI nodes.
4133
4134 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4135
4136         * opts.h (struct cl_option): Add warn_message field.
4137         (struct cl_decoded_option): Add warn_message field.
4138         * doc/options.texi (Ignore, Warn): Document.
4139         * opt-functions.awk (needs_state_p): Don't consider aliases or
4140         ignored options to need state saved.
4141         * optc-gen.awk: Handle Warn and Ignore.
4142         * opth-gen.awk: Output OPT_SPECIAL_ignore.
4143         * opts-common.c (decode_cmdline_option): Set warn_message field.
4144         Handle ignored options.
4145         (decode_cmdline_options_to_array, generate_option,
4146         generate_option_input_file): Set warn_message field.
4147         (read_cmdline_option): Generate warnings from warn_message field.
4148         Handle ignored options.
4149         * common.opt (Wunreachable-code, fargument-alias,
4150         fargument-noalias, fargument-noalias-global,
4151         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4152         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4153         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4154         ftree-salias): Mark Ignore.
4155         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4156         -mintel-syntax and -mno-intel-syntax here.
4157         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4158         using Warn.
4159         * opts.c (common_handle_option): Don't handle options marked as
4160         ignored.
4161         (enable_warning_as_error): Handle ignored options.
4162
4163 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4164
4165         PR driver/44076
4166         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4167         alias_target fields.
4168         * opt-functions.awk (opt_sanitized_name): Don't handle
4169         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4170         * optc-gen.awk: Generate alias fields.
4171         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4172         Don't generate such constants for aliases.
4173         * opts-common.c (generate_canonical_option): New.
4174         (decode_cmdline_option): Handle aliases.  Use
4175         generate_canonical_option for known options instead of copying the
4176         input option text.
4177         * doc/options.texi (Alias): Document.
4178         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4179         fstack-check, specs): Mark as aliases.
4180         * gcc.c (driver_handle_option): Canonicalize -L options to joined
4181         arguments.
4182         (driver_handle_option): Don't handle OPT_specs.
4183         * opts.c (common_handle_option): Don't handle options marked as
4184         aliases.
4185         (enable_warning_as_error): Handle aliases.
4186         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4187         OPT_Wlarger_than_eq.
4188         * tree-optimize.c (tree_rest_of_compilation): Use
4189         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4190
4191 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4192
4193         * config/i386/i386.md (nonmemory_operand): New mode attribute.
4194         (push memory peephole2): Macroize peepholes using SWI mode iterator.
4195         (move immediate to memory peephole2): Macroize peepholes using
4196         SWI124 mode iterator.
4197         (non-pairable NOT peephole2): Macroize peepholes using SWI124
4198         mode iterator.
4199         (simple lea add peephole2): Macroize peepholes using SWI48
4200         mode iterator.
4201         (simple lea mult peephole2): Ditto.
4202         (imul by 3,5,9 to lea peephole2): Ditto.
4203         (mov $-1, reg peephole2): Macroize peepholes using SWI248
4204         mode iterator.
4205         (imul $32bit_imm,mem,reg peephole2): Ditto.
4206         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4207
4208 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
4209
4210         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4211
4212 2010-09-02  Olivier Hainque  <hainque@adacore.com>
4213
4214         PR middle-end/44763
4215         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4216         (allocno_priority_compare_func): Use it instead of a straight
4217         difference computation over priorities.
4218
4219 2010-09-02  Andi Kleen  <ak@linux.intel.com>
4220
4221         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4222
4223 2010-09-02  Ira Rosen  <irar@il.ibm.com>
4224
4225         * tree-vectorizer.h (get_later_stmt): New function.
4226         (vect_analyze_data_ref_dependences): Add argument.
4227         * tree-vect-loop.c (vect_analyze_loop): Update call to
4228         vect_analyze_data_ref_dependences.
4229         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4230         New function.
4231         (vect_analyze_data_ref_dependence): Add argument for basic block
4232         dependencies. Check dependencies in basic block vectorization.
4233         (vect_analyze_data_ref_dependences): Add argument and update call to
4234         vect_analyze_data_ref_dependences.
4235         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4236         (vect_bb_vectorizable_with_dependencies): New.
4237         (vect_slp_analyze_bb): Check dependencies in basic block.
4238         (vect_schedule_slp_instance): Insert stores before the last store in
4239         SLP instance.
4240
4241 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4242
4243         PR target/45476
4244         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4245         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4246
4247 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
4248
4249         PR middle-end/45458
4250         * bb-reorder.c (add_labels_and_missing_jumps): Treat
4251         bbs ending with throwing insns like blocks ending with a call.
4252         (fix_up_fall_thru_edges): Likewise.
4253
4254 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
4255
4256         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4257         (m32c_function_arg_advance): Delete.
4258         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4259         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
4260         comments.  Take a const_tree and a bool.  Declare.
4261         (m32c_function_arg_advance): Likewise.
4262         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4263
4264 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4265
4266         PR target/45476
4267         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4268         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4269         * config/i386/mingw32.h: ... here.
4270
4271 2010-09-01  Andi Kleen  <ak@linux.intel.com>
4272
4273         PR lto/45475
4274         * lto-streamer-in.c (lto_input_ts_target_option): Add.
4275         (lto_input_tree_pointers): Call lto_input_ts_target_option.
4276         * lto-streamer-out (lto_output_ts_target_option): Add.
4277         (lto_output_tree_pointers): Call lto_output_ts_target_option.
4278
4279 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
4280
4281         PR/target 45452
4282         * config/i386/cygwin.h: Change order of specified import libraries.
4283         * config/i386/mingw32.h: Likewise.
4284         * config/i386/t-cygwin: Likewise.
4285         * config/i386/t-mingw32: Likewise.
4286         * config/i386/t-mingw-w32: Likewise.
4287         * config/i386/t-mingw-w64: Likewise.
4288
4289 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4290
4291         * config/arm/neon-schedgen.ml (core): New type.
4292         (allCores): List of supported cores.
4293         (availability_table): Add supported cores.
4294         (collate_bypasses): Accept core as a parameter.
4295         (worst_case_latencies_and_bypasses): Accept core as a parameter.
4296         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
4297         and coreStr to get tune attribute and prefix for functional units.
4298         (emit_bypasses): Accept core name and use it.
4299         (calculate_per_core_availability_table): New.
4300         (filter_core): New.
4301         (calculate_core_availability_table): New.
4302         (main): Use calculate_core_availablity_table.
4303         * config/arm/cortex-a8-neon.md: Update copyright year.
4304         Regenerated from ml file and merged in.
4305         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4306         cortex_a8_neon_mrc.
4307
4308 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
4309
4310         * Makefile.in (tree-switch-conversion.o): Update dependencies.
4311
4312 2010-09-01  Richard Guenther  <rguenther@suse.de>
4313
4314         * alias.c (ao_ref_from_mem): Adjust.
4315         * builtins.c (get_object_alignment): Likewise.
4316         * cfgexpand.c (expand_debug_expr): Likewise.
4317         * gimple.c (get_base_address): Likewise.
4318         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4319         (get_addr_base_and_unit_offset): Likewise.  Fix for
4320         both TMR_SYMBOL and TMR_BASE being set.
4321         * tree-eh.c (tree_could_trap_p): Likewise.
4322         * gimplify.c (gimplify_expr): Do not attempt to gimplify
4323         TMR_SYMBOL.  Always gimplify TMR_BASE.
4324         * tree-cfg.c (verify_types_in_gimple_reference): Verify
4325         TMR_BASE if there is a TMR_SYMBOL.
4326         * tree-pretty-print.c (dump_generic_node): Adjust.
4327         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4328         (tree_mem_ref_addr): Likewise.
4329         (create_mem_ref_raw): Likewise.
4330         (move_fixed_address_to_symbol): Likewise.
4331         (create_mem_ref): Likewise.
4332         (dump_mem_address): Likewise.
4333         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4334         Fix for both TMR_SYMBOL and TMR_BASE being set.
4335         (indirect_refs_may_alias_p): Likewise.
4336         * tree-ssa-operands.c (get_tmr_operands): Adjust.
4337         * tree.def (TARGET_MEM_REF): Adjust documentation.
4338
4339 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4340
4341         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4342         Rename from X86_TUNE_ADD_ESP_4.
4343         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4344         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4345         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4346         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4347         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4348         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4349         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4350         * config/i386/i386.c (initial_ix86_tune_features)
4351         <X86_TUNE_SINGLE_POP>: Invert members.
4352         <X86_TUNE_DOUBLE_POP>: Ditto.
4353         <X86_TUNE_SINGLE_PUSH>: Ditto.
4354         <X86_TUNE_DOUBLE_PUSH>: Ditto.
4355         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4356         No longer exported.
4357         (push peephole2 patterns): Macroize peepholes using P mode iterator.
4358         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4359         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4360         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4361
4362 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4363
4364         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4365         a volatile LHS if the constructor has only one element.
4366
4367 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
4368
4369         PR bootstrap/45321
4370         * tree.c (stdarg_p): Make fntype parameter const.
4371         * tree.h (stdarg_p): Likewise.
4372         (function_args_iterator): Remove unused fntype field.
4373         (function_args_iter_init): Do not initialize fntype
4374         field.  Make fntype parameter const.
4375
4376 2010-09-01  Richard Guenther  <rguenther@suse.de>
4377
4378         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4379         estimate.
4380         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4381         (execute_vrp): Compute number of iteration estimates.
4382         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4383         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4384         * tree-data-ref.c (estimated_loop_iterations): Adjust.
4385         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4386         Infer loop bounds from undefined behavior based on a new parameter.
4387         (estimate_numbers_of_iterations): Likewise.
4388         (scev_probably_wraps_p): Adjust.
4389         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4390
4391 2010-09-01  Nick Clifton  <nickc@redhat.com>
4392
4393         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4394         where appropriate.
4395         (xstormy16_legitimate_address_p): Use true and false instead of 1
4396         and 0.
4397         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4398         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4399         magic constant 2.
4400         (xstormy16_expand_call): Fix comment at start of function.
4401
4402 2010-09-01  Nick Clifton  <nickc@redhat.com>
4403
4404         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4405         when pushing accumulator register.
4406         (rx_get_stack_layout): Always save call clobbered registers inside
4407         interrupt handlers.
4408         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4409
4410 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4411
4412         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4413         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4414
4415         * libgcc-std.ver (GCC_4.6.0): Define version.
4416
4417 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4418
4419         * tree-nested.c (convert_all_function_calls): Iterate until after the
4420         sum of static chains in the nest doesn't change.
4421
4422 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
4423
4424         * config/m32c/m32c.c (classes_intersect): Remove.
4425         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4426         reg_classes_intersect_p instead of classes_intersect.
4427         (class_can_hold_mode): Change arguments type from enum reg_class to
4428         reg_class_t.  Use reg_class_contents instead of class_contents.
4429         (m32c_register_move_cost): Make static. Change arguments type from
4430         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4431         classes_intersect. Use reg_class_contents instead of class_contents.
4432         (m32c_memory_move_cost): Make static. Change arguments type from
4433         enum reg_class to reg_class_t.
4434         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4435         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4436         * config/m32c/m32c-protos.h (m32c_register_move_cost,
4437         m32c_memory_move_cost): Remove.
4438
4439 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4440
4441         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4442         (arm_function_arg): Delete.
4443         (arm_needs_doubleword_align): Take a const_tree.
4444         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4445         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4446         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4447         (arm_function_arg): Make static.  Take a const_tree and a bool.
4448         (arm_function_arg_advance): Likewise.
4449         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4450
4451 2010-08-31  Andi Kleen  <ak@linux.intel.com>
4452
4453         * common.opt (fwhopr=): Update for -fwhopr=jobserver
4454         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4455         * lto-wrapper.c (run_gcc): Add jobserver mode.
4456         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4457         argument.
4458
4459 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
4460
4461         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4462         (popsi1): Ditto.
4463         (*popdi1_epilogue): Ditto.
4464         (*popsi1_epilogue): Ditto.
4465         (popsi, popdi peephole2 patterns): Update peepholes for changed
4466         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4467
4468         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4469         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4470
4471         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4472         (override_options): Do not initialize removed ix86_gen_pop1.
4473         (gen_pop): New static function.
4474         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4475         (release_scratch_register_on_entry): Ditto.
4476         (ix86_restore_reg_using_pop): Ditto.
4477         (ix86_expand_epilogue): Ditto.
4478
4479 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
4480
4481         PR middle-end/45461
4482         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4483
4484 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4485
4486         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4487         semicolons.
4488
4489 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4490
4491         * doc/extend.texi: Fix documentation of the return value of
4492         __builtin_choose_expr.
4493
4494 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4495
4496         * config/v850/v850-protos.h (function_arg): Delete.
4497         * config/v850/v850.h (FUNCTION_ARG): Delete.
4498         (FUNCTION_ARG_ADVANCE): Move code to...
4499         * config/v850/v850.c (v850_function_arg_advance): ...here.
4500         (v850_function_arg): Make static.  Take a const_tree and a bool.
4501         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4502
4503 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4504
4505         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4506         these...
4507         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4508         ...and these...
4509         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4510         ..to here..
4511         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4512         ...and here.
4513         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4514
4515 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4516
4517         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4518         Delete.
4519         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4520         * config/rx/rx.c (rx_function_arg_size): Make static.
4521         (rx_function_arg): Likewise.
4522         (rx_function_arg_advance): New function.
4523         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4524
4525 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4526
4527         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4528         Fix indentation.
4529
4530 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4531
4532         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4533         (dwarf2out_decl) <CONST_DECL>: Likewise.
4534
4535 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4536
4537         Stack usage support
4538         * common.opt (-fstack-usage): New option.
4539         * doc/invoke.texi (Debugging options): Document it.
4540         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4541         allocate_dynamic_stack_space.
4542         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4543         and propagate it to allocate_dynamic_stack_space.
4544         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4545         * calls.c (initialize_argument_information): Pass TRUE as 4th
4546         argument to allocate_dynamic_stack_space.
4547         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4548         to 1 when pushing a variable-sized argument onto the stack.  Pass
4549         TRUE as 4th argument to allocate_dynamic_stack_space.
4550         Update current_function_pushed_stack_size.
4551         (emit_library_call_value_1): Likewise.
4552         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4553         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4554         attempt to find an upper bound.  Remove redundant code for the
4555         SETJMP_VIA_SAVE_AREA case.
4556         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4557         * function.h (struct stack_usage): New structure.
4558         (current_function_static_stack_size): New macro.
4559         (current_function_dynamic_stack_size): Likewise.
4560         (current_function_pushed_stack_size): Likewise.
4561         (current_function_dynamic_alloc_count): Likewise.
4562         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4563         (current_function_allocates_dynamic_stack_space): Likewise.
4564         (struct function): Add new field 'su'.
4565         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4566         add the value of the dynamic offset to the dynamic stack usage.
4567         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4568         for variable-sized objects.
4569         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4570         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4571         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4572         BUILT_IN_ALLOCA for variable-sized objects.
4573         * output.h (output_stack_usage): Declare.
4574         * toplev.c (stack_usage_file): New file pointer.
4575         (output_stack_usage): New function.
4576         (open_auxiliary_file): Likewise.
4577         (lang_dependent_init): Open file if flag_stack_usage is set.
4578         (finalize): Close file if stack_usage_file is not null.
4579         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4580         * config/alpha/alpha.c (compute_frame_size): New function.
4581         (alpha_expand_prologue): Use it.
4582         (alpha_start_function): Likewise.
4583         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4584         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4585         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4586         * config/mips/mips.c (mips_expand_prologue): Likewise.
4587         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4588         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4589         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4590
4591 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4592
4593         PR tree-optimization/45427
4594         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4595         Handle the case that the exit is never taken correctly.
4596         (number_of_iterations_ne): Pass exit_must_be_taken to
4597         number_of_iterations_ne_max.
4598
4599 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4600
4601         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4602         Infer -mdspr2 for the the 74K.
4603
4604 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4605
4606         PR debug/45419
4607         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4608
4609         PR middle-end/45423
4610         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4611         and TRUTH_{AND,OR,XOR}_EXPR.
4612         * c-parser.c (c_parser_omp_atomic): Handle boolean
4613         {PRE,POST}_{INC,DEC}REMENT.
4614
4615 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4616
4617         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4618         (function_arg): Delete.
4619         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4620         (FUNCTION_INCOMING_ARG): Delete.
4621         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4622         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4623         and a bool.
4624         (function_arg): Rename to...
4625         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4626         a bool.
4627         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4628         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4629         (TARGET_FUNCTION_INCOMING_ARG): Define.
4630
4631 2010-08-30  Richard Guenther  <rguenther@suse.de>
4632
4633         PR tree-optimization/21602
4634         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4635         using points-to information.
4636
4637 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4638
4639         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4640
4641 2010-08-30  Richard Guenther  <rguenther@suse.de>
4642
4643         PR tree-optimization/45449
4644         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4645         variables.
4646
4647 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4648
4649         * opts.h (CL_ERR_NEGATIVE): Define.
4650         * opts.c (unknown_option_callback): Don't postpone warnings for
4651         options marked with CL_ERR_NEGATIVE.
4652         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4653         for negative versions of CL_REJECT_NEGATIVE options.
4654
4655 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4656
4657         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4658         zero_extendsidi2_32.
4659         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4660         using SWI12 mode iterator.
4661         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4662         to define_insn_and_split pattern.
4663         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4664         using SWI24 mode iterator.
4665         (*zero_extendqi<mode>2_and): Macroize insn from
4666         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4667         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4668         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4669         SWI24 mode iterator.
4670         (*zero_extendqi<mode>2_movzbl): Ditto from
4671         *zero_extendqi{hi,si}2_movzbl.
4672         (extendsidi2_1): Rename from extendsidi2_32.
4673         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4674         SWI12 mode iterator.
4675
4676 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4677
4678         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4679         general purpose registers.
4680         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4681         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4682         with general purpose registers and memory operands.  Add associated
4683         CCImode post-reload splitter.
4684         * config/ia64/div.md: Change BImode to CCImode throughout.
4685
4686 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4687
4688         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4689
4690 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
4691
4692         * config/picochip/picochip.c (reorder_var_tracking_notes): This
4693         function was dropping debug insns which caused PR45299.
4694
4695 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
4696
4697         * config/i386/sse.md (extsuffix): New code attribute.
4698         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4699         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4700         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4701         and sse4_1_zero_extendv4qiv4si2.
4702         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4703         and sse4_1_zero_extendv2qiv2di2.
4704         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4705         and sse4_1_zero_extendv4hiv4si2.
4706         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4707         and sse4_1_zero_extendv2hiv2di2.
4708         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4709         and sse4_1_zero_extendv2siv2di2
4710
4711         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4712         using any_extend code iterator.
4713         (*avx_<s>mulv8hi3_highpart): Macroize insn from
4714         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4715         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4716
4717         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4718         gen_sse4_1_sign_extend* functions.
4719         (struct builtin_description bdesc_args): Ditto.
4720
4721 2010-08-27  Xinliang David Li  <davidxl@google.com>
4722
4723         PR/45422
4724         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4725         (iv_ca_set_no_cp): Update used inv expr count.
4726         (iv_ca_set_cp): Ditto.
4727         (iv_ca_new): Initialize new member.
4728         (iv_ca_free): Free memory.
4729
4730 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4731
4732         * config/sh/sh-protos.h (sh_function_arg): Delete.
4733         (sh_function_arg_advance): Delete.
4734         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4735         (PASS_IN_REG_P): Eliminate cast.
4736         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
4737         const_tree and a bool.
4738         (sh_function_arg): Likewise.
4739         (sh_output_mi_thunk): Call sh_function_arg_advance) and
4740         sh_function_arg.
4741         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4742
4743 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
4744             Kaz Kojima  <kkojima@gcc.gnu.org>
4745
4746         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4747         when possible.
4748         (sh_expand_epilogue): Likewise.
4749         * config/sh/sh.md (movml_push_banked): New insn.
4750         (movml_pop_banked): Likewise.
4751
4752 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
4753
4754         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4755         gen_regexp_oneof, gen_regexp_sequence): Use the string found
4756         in vector element 0 rather than the original string when there's
4757         only one element.
4758         (gen_regexp): Remove extra semicolon.
4759
4760         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4761         thumb2_movsf_vfp): Set attribute "insn".
4762         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4763         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4764         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4765         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4766         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4767         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4768         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4769         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4770         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4771         if_not_arith, if_arith_not, cond_move_not): Likewise.
4772
4773 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4774
4775         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4776         New declaration.
4777         (rs6000_allocate_stack_temp): Ditto.
4778         (rs6000_expand_convert_si_to_sfdf): Ditto.
4779
4780         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4781         line.  Update the options set if power6 or power7 server/embedded
4782         type options are used.  If we give a warning for no vsx under
4783         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4784         (rs6000_allocate_stack_temp): New function to allocate a stack
4785         tempoary and adjust the address so it meets either REG+OFFSET or
4786         REG+REG addressing requirements.
4787         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4788         that they can be used with the LFIWAX/LFIWZX instrucitons.
4789         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4790         converting signed/unsigned SImode to either SFmode/DFmode.
4791
4792         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4793         whether certain instructions can be generated.
4794         (TARGET_FCTIDZ): Ditto.
4795         (TARGET_STFIWX): Ditto.
4796         (TARGET_LFIWAX): Ditto.
4797         (TARGET_LFIWZX): Ditto.
4798         (TARGET_FCFIDS): Ditto.
4799         (TARGET_FCFIDU): Ditto.
4800         (TARGET_FCFIDUS): Ditto.
4801         (TARGET_FCTIDUZ): Ditto.
4802         (TARGET_FCTIWUZ): Ditto.
4803
4804         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4805         (UNSPEC_FCTID): Ditto.
4806         (UNSPEC_LFIWAX): Ditto.
4807         (UNSPEC_LFIWZX): Ditto.
4808         (UNSPEC_FCTIWUZ): Ditto.
4809         (rreg): Use correct constraints.
4810         (SI_CONVERT_FP): New mode attribute for floating point conversion
4811         tests.
4812         (E500_CONVERT): Ditto.
4813         (lfiwax): New insns for converting from integer to floating point
4814         utilizing newer instructions.  Attempt to optimize conversions
4815         that come from memory so that we don't load the value into a GPR,
4816         spill it to the stack and reload it into a FPR.
4817         (floatsi<mode>2_lfiwax): Ditto.
4818         (floatsi<mode>2_lfiwax_mem): Ditto.
4819         (floatsi<mode>2_lfiwax_mem2): Ditto.
4820         (lfiwzx): Ditto.
4821         (floatunssi<mode>2_lfiwzx): Ditto.
4822         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4823         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4824         (floatdidf2_mem): Ditto.
4825         (floatunsdidf2_fcfidu): Ditto.
4826         (floatunsdidf2_mem): Ditto.
4827         (floatunsdisf2): Ditto.
4828         (floatunsdisf2_fcfidus): Ditto.
4829         (floatunsdisf2_mem): Ditto.
4830         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4831         Use FCFID on 32-bit hosts that support it.
4832         (floatsidf2_internal): Ditto.
4833         (floatunssisf2): Ditto.
4834         (floatunssidf2): Ditto.
4835         (floatunssidf2_internal): Ditto.
4836         (floatsisf2): Ditto.
4837         (floatdidf2): Ditto.
4838         (floatdidf2_fpr): Ditto.
4839         (floatunsdidf2): Ditto.
4840         (floatdisf2): Ditto.
4841         (floatdisf2_fcfids): Ditto.
4842         (floatdisf2_internal1): Ditto.
4843         (fixuns_truncsfsi2): Delete, merge into common pattern for both
4844         SF/DF.  Add power7 support.
4845         (fix_truncsfsi2): Ditto.
4846         (fixuns_truncdfsi2): Ditto.
4847         (fixuns_truncdfdi2): Ditto.
4848         (fix_truncdfsi2): Ditto.
4849         (fix_truncdfsi2_internal): Ditto.
4850         (fix_truncdfsi2_internal_gfxopt): Ditto.
4851         (fix_truncdfsi2_mfpgpr): Ditto.
4852         (fctiwz): Ditto.
4853         (btruncdf2): Ditto.
4854         (btruncdf2_fpr): Ditto.
4855         (btructsf2): Ditto.
4856         (ceildf2): Ditto.
4857         (ceildf2_fpr): Ditto.
4858         (ceilsf2): Ditto.
4859         (floordf2): Ditto.
4860         (floordf2_fpr): Ditto.
4861         (floorsf2): Ditto.
4862         (rounddf2): Ditto.
4863         (rounddf2_fpr): Ditto.
4864         (roundsf2): Ditto.
4865         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
4866         (fix_trunc<mode>di2): Ditto.
4867         (fixuns_trunc<mode>si2): Ditto.
4868         (fixuns_trunc<mode>di2): Ditto.
4869         (fctiwz_<mode>): Ditto.
4870         (btrunc<mode>2): Ditto.
4871         (btrunc<mode>2_fpr): Ditto.
4872         (ceil<mode>2): Ditto.
4873         (ceil<mode>2_fpr): Ditto.
4874         (floor<mode>2): Ditto.
4875         (float<mode>2_fpr): Ditto.
4876         (round<mode>2): Ditto.
4877         (round<mode>2_fpr): Ditto.
4878         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
4879         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4880         (fix_truncdfsi2_internal): Ditto.
4881         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
4882         converted value on stack, loaded into GPR, and then stored into
4883         the final destination.
4884         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
4885         FCTIDZ.
4886         (lrint<mode>di2): New insn, provide the lrint builtin functions.
4887         (ftruncdf2): Delete, unused.
4888         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
4889
4890         * config/rs6000/vsx.md (toplevel): Update copyright year.
4891         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
4892         (VSr3): Ditto.
4893
4894 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
4895             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4896
4897         * gengtype.c (output_type_enum): Test the right union member.
4898
4899 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
4900
4901         PR target/41484
4902         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
4903         operands for operand 1.
4904         (sse4_1_extendv4qiv4si2): Ditto.
4905         (sse4_1_extendv2qiv2di2): Ditto.
4906         (sse4_1_extendv4hiv4si2): Ditto.
4907         (sse4_1_extendv2hiv2di2): Ditto.
4908         (sse4_1_extendv2siv2di2): Ditto.
4909         (sse4_1_zero_extendv8qiv8hi2): Ditto.
4910         (sse4_1_zero_extendv4qiv4si2): Ditto.
4911         (sse4_1_zero_extendv2qiv2di2): Ditto.
4912         (sse4_1_zero_extendv4hiv4si2): Ditto.
4913         (sse4_1_zero_extendv2hiv2di2): Ditto.
4914         (sse4_1_zero_extendv2siv2di2): Ditto.
4915         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
4916         (*sse4_1_extendv4qiv4si2): Ditto.
4917         (*sse4_1_extendv2qiv2di2): Ditto.
4918         (*sse4_1_extendv4hiv4si2): Ditto.
4919         (*sse4_1_extendv2hiv2di2): Ditto.
4920         (*sse4_1_extendv2siv2di2): Ditto.
4921         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
4922         (*sse4_1_zero_extendv4qiv4si2): Ditto.
4923         (*sse4_1_zero_extendv2qiv2di2): Ditto.
4924         (*sse4_1_zero_extendv4hiv4si2): Ditto.
4925         (*sse4_1_zero_extendv2hiv2di2): Ditto.
4926         (*sse4_1_zero_extendv2siv2di2): Ditto.
4927
4928 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4929
4930         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
4931         (mips_function_arg): Delete.
4932         (mips_function_arg_boundary): Take a const_tree.
4933         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
4934         (mips_arg_info): Likewise.
4935         (mips_setup_incoming_varargs): Call mips_function_arg_advance
4936         instead of FUNCTION_ARG_ADVANCE.
4937         (mips_function_arg_advance): Adjust prototype.  Make static.
4938         (mips_function_arg): Likewise.
4939         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4940         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4941
4942 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4943
4944         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4945         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
4946         (function_arg): Delete.
4947         (function_arg_boundary): Take a const_tree.
4948         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
4949         (rs6000_spe_function_arg): Likewise.
4950         (rs6000_parm_start): Likewise.
4951         (rs6000_arg_size): Likewise.
4952         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
4953         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
4954         (rs6000_mixed_function_arg): Likewise.
4955         (function_arg): Rename to...
4956         (rs6000_function_arg): ...this.
4957         (function_arg_advance): Rename to...
4958         (rs6000_function_arg_advance_1): ...this
4959         (rs6000_function_arg_advance): New function.  Call it.
4960         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
4961         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
4962         (rs6000_function_value): Likewise.
4963         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4964
4965 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4966
4967         * config/arm/arm.md (enabled): Test the value of arch_enabled
4968         rather than just using it.
4969
4970 2010-08-27  Olivier Hainque  <hainque@adacore.com>
4971             Eric Botcazou  <ebotcazou@adacore.com>
4972
4973         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
4974         cover all the possible offsets from this base.
4975         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
4976
4977 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
4978
4979         PR tree-optimization/44485
4980         * calls.c (flags_from_decl_or_type): For const or pure
4981         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
4982         together with ECF_CONST resp. ECF_PURE.
4983         * builtins.c (expand_builtin): Use flags_from_decl_or_type
4984         instead of querying flags directly.
4985         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
4986         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
4987
4988 2010-08-26  Richard Guenther  <rguenther@suse.de>
4989
4990         PR tree-optimization/45255
4991         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
4992         and externals are also invariant.
4993
4994 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4995
4996         PR rtl-optimization/44858
4997         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
4998         newi2pat, make sure they don't affect newpat.
4999
5000         PR rtl-optimization/45400
5001         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
5002         SUBREG_REG if both modes are of MODE_INT class.
5003
5004 2010-08-25  Julian Brown  <julian@codesourcery.com>
5005
5006         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
5007         * config/arm/arm.md (generic_sched): No for Cortex-A5.
5008         (generic_vfp): Likewise.
5009         (cortex-a5.md): Include.
5010         * config/arm/cortex-a5.md: New.
5011
5012 2010-08-25  Richard Guenther  <rguenther@suse.de>
5013
5014         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
5015         * gimple.c (gimple_get_alias_set): Remove special handling
5016         for pointers.
5017
5018 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5019
5020         PR middle-end/45355
5021         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
5022         dead_or_set_p when computing i0_feeds_i2_n.
5023
5024         * combine.c (find_split_point): Undo canonicalization of multiply-add
5025         to (minus x (mult)) when it seems likely that this will increase the
5026         chances of a split.
5027
5028 2010-08-25  Richard Guenther  <rguenther@suse.de>
5029
5030         PR lto/44562
5031         * lto-streamer.c (lto_record_common_node): Do not mess with
5032         TYPE_CANONICAL when not in lto.
5033         * gimple.c (gimple_register_type): Likewise.
5034
5035 2010-08-25  Richard Guenther  <rguenther@suse.de>
5036
5037         PR tree-optimization/45316
5038         * tree-ssa-pre.c (eliminate): Properly clean EH info.
5039
5040 2010-08-25  Richard Guenther  <rguenther@suse.de>
5041
5042         PR tree-optimization/45393
5043         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
5044         and clean EH info.  Avoid SSA update.
5045         (execute_cse_sincos): Cleanup the CFG if it has changed.
5046
5047 2010-08-25  Richard Guenther  <rguenther@suse.de>
5048
5049         PR middle-end/45379
5050         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5051         TARGET_MEM_REF in alignment computation.
5052
5053 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5054
5055         PR tree-optimization/45059
5056         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5057         type conversions from newop{1,2}.  Assert t is a comparison and
5058         newop{1,2} after the stripping are gimple vals.
5059
5060 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
5061
5062         * config/arm/iterators.md (VU, SE, V_widen_l): New.
5063         (V_unpack, US): New.
5064         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
5065         (vec_unpack<US>_lo_<mode>): Likewise.
5066         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
5067         (neon_vec_unpack<US>_lo_<mode>): Likewise.
5068         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
5069         (vec_widen_<US>mult_hi_<mode>): Likewise.
5070         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
5071         (neon_vec_<US>mult_hi_<mode>"): Likewise.
5072         (neon_unpack<US>_<mode>): Widening move intermediate step for
5073         vectorizing without -mvectorize-with-neon-quad.
5074         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
5075         for vectorizing without -mvectorize-with-neon-quad.
5076         * config/arm/predicates.md (vect_par_constant_high): Check for
5077         high-half lanes of a vector.
5078         (vect_par_constant_low): Check for low-half lanes of a vector.
5079
5080 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5081
5082         * tree-if-conv.c (struct ifc_dr): New.
5083         (IFC_DR): New.
5084         (DR_WRITTEN_AT_LEAST_ONCE): New.
5085         (DR_RW_UNCONDITIONALLY): New.
5086         (memref_read_or_written_unconditionally): Use the cached values
5087         when possible.
5088         (write_memref_written_at_least_once): Same.
5089         (if_convertible_loop_p): Initialize and free DR->aux fields.
5090
5091 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5092
5093         * gimple.c (gimple_could_trap_p_1): Not static anymore.
5094         Pass an extra bool parameter include_mem.
5095         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
5096         (gimple_assign_rhs_could_trap_p): Same.
5097         * gimple.h (gimple_could_trap_p_1): Declared.
5098         * tree-data-ref.h (same_data_refs_base_objects): New.
5099         (same_data_refs): New.
5100         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
5101         (write_memrefs_written_at_least_once): New.
5102         (ifcvt_memrefs_wont_trap): New.
5103         (operations_could_trap): New.
5104         (ifcvt_could_trap_p): New.
5105         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
5106         Gets a vector of data refs.
5107         (if_convertible_stmt_p): Same.
5108         (if_convertible_loop_p_1): New.
5109         (if_convertible_loop_p): Call if_convertible_loop_p_1.
5110
5111 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5112
5113         * common.opt (ftree-loop-if-convert-stores): New flag.
5114         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
5115         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
5116         the created statement before GSI.
5117         (if_convertible_phi_p): Allow virtual phi nodes when
5118         flag_loop_if_convert_stores is set.
5119         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
5120         Do not handle types that do not match is_gimple_reg_type.
5121         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
5122         when flag_loop_if_convert_stores is set, as LHS can contain
5123         memory refs.
5124         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
5125         to if_convertible_gimple_assign_stmt_p.
5126         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
5127         (replace_phi_with_cond_gimple_assign_stmt): Renamed
5128         predicate_scalar_phi.  Do not handle virtual phi nodes.
5129         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
5130         Call predicate_scalar_phi.
5131         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
5132         just after the labels for flag_loop_if_convert_stores, otherwise
5133         insert the predicate in the end of the BB.
5134         (predicate_mem_writes): New.
5135         (combine_blocks): Call predicate_all_scalar_phis.  When
5136         flag_loop_if_convert_stores is set, call predicate_mem_writes.
5137         (tree_if_conversion): Call mark_sym_for_renaming when
5138         flag_loop_if_convert_stores is set.
5139         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5140         flag_loop_if_convert_stores is set.
5141
5142 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
5143
5144         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5145         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5146         (pa_function_value): Make static.
5147         (override_options): Rename to...
5148         (pa_option_override): ...this. Make static.
5149         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5150         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5151         TARGET_OPTION_OVERRIDE): Define.
5152         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5153         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5154         Remove.
5155         * config/pa/pa-protos.h (override_options): Remove.
5156
5157 2010-08-24  Richard Guenther  <rguenther@suse.de>
5158
5159         PR middle-end/45379
5160         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5161         if addr->index is NULL or zero.
5162         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5163         TARGET_MEM_REF more properly.
5164         (indirect_ref_may_alias_decl_p): Likewise.
5165         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5166         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5167
5168 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
5169
5170         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5171         (m32c_override_options): Rename to...
5172         (m32c_option_override): ...this. Make static.
5173         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5174         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5175         Remove.
5176         * config/m32c/m32c-protos.h (m32c_override_options,
5177         m32c_function_value_regno_p): Remove.
5178
5179 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5180
5181         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5182         Fix a typo in a previous commit.
5183
5184 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
5185
5186         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5187         Pre-initialize innerloop_iters to one.
5188
5189 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5190
5191         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5192         existing static function global.
5193
5194         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5195         is changed to global.
5196
5197         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5198         may_be_nonaddressable_p on base, and don't collect this reference
5199         if the address of the base could not be taken.
5200
5201 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5202
5203         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5204         enable the compiler to autovectorize mathmetical functions for
5205         power7 using the Mathematical Acceleration Subsystem library.
5206
5207         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5208         handle which vector math library we have.
5209         (rs6000_override_options): Add -mveclibabi=mass support.
5210         (rs6000_builtin_vectorized_libmass): New function to handle auto
5211         vectorizing math functions that are in the MASS library.
5212         (rs6000_builtin_vectorized_function): Call it.
5213
5214         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5215         -mveclibabi=mass.
5216
5217 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5218
5219         PR boehm-gc/34544
5220         * gthr-posix.h (__gthread_active_init): Delete.
5221         (__gthread_active_p): Do activity check here.
5222         Don't include errno.h on hppa-hpux.  Update comment.
5223         * gthr-posix95.h (__gthread_active_init): Delete.
5224         (__gthread_active_p): Do activity check here.
5225         Don't include errno.h on hppa-hpux.  Update comment.
5226         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5227         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5228         add -lpthread when -mt or -pthread is specified.
5229         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5230         (LINK_GCC_C_SEQUENCE_SPEC): Define.
5231         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5232         (stublib.c, pthread_default_stacksize_np-stub.o,
5233         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5234         $(T)libgcc_stub.a): Add methods.
5235         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5236         (stublib.c, pthread_default_stacksize_np-stub.o,
5237         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5238         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5239         pthread_mutex_unlock): New stubs.
5240
5241 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
5242
5243         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5244         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5245         options.
5246         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5247         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5248         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5249         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5250         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5251         "-l".
5252         * cppspec.c: Include opts.h.
5253         (lang_specific_driver): Use cl_decoded_option structures.
5254         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5255         * doc/tm.texi: Regenerate.
5256         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5257         (driver_handle_option): Allow driver options needing no special
5258         processing.
5259         (process_command): Decode options before call to
5260         lang_specific_driver.  Pass decoded options to
5261         lang_specific_driver.
5262         * gcc.h (lang_specific_driver): Update prototype.
5263         * gccspec.c: Include opts.h.
5264         (lang_specific_driver): Use cl_decoded_option structures.
5265         * opts-common.c (option_ok_for_language, generate_option,
5266         generate_option_input_file): New.
5267         (decode_cmdline_option): Use option_ok_for_language.
5268         (decode_cmdline_options_to_array): Use generate_option_input_file.
5269         (handle_generated_option): Use generate_option.
5270         * opts.h (generate_option, generate_option_input_file): Declare.
5271
5272 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
5273
5274         * config/mips/mips.c (mips_override_options): Rename to...
5275         (mips_option_override): ...this. Make static.
5276         (TARGET_OPTION_OVERRIDE): Define.
5277         (mips_in_small_data_p): Update comment.
5278         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5279         (FIXED_REGISTERS): Update comment.
5280         * config/mips/mips-protos.h (mips_override_options): Remove.
5281
5282 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5283
5284         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5285
5286 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5287
5288         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5289         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5290
5291 2010-08-20  Jan Hubicka  <jh@suse.cz>
5292
5293         * tree-pass.h (pass_ipa_cdtor_merge): New function.
5294         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5295         heap allocated.
5296         (record_cdtor_fn): Move to ipa.c; do not test for
5297         have_ctors_dtors.
5298         (build_cdtor): Move to ipa.c; add code avoiding construction
5299         when target have ctors/dtors and there is only one ctor/dtor at given
5300         priority.
5301         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5302         sort; reverse order of constructors.
5303         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5304         (cgraph_finalize_function): Do not call record_cdtor_fn.
5305         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5306         (cgraph_build_static_cdtor): Move to ipa.c.
5307         * ipa.c: Include target.h and tree-iterator.h.
5308         (cgraph_build_static_cdtor, static_ctors, static_dtors,
5309         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5310         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5311         pass_ipa_cdtor_merge): New.
5312         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5313         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5314         bounds access.
5315
5316 2010-08-20  Jan Hubicka  <jh@suse.cz>
5317
5318         PR c++/45307
5319         PR c++/17736
5320         * cgraph.h (cgraph_only_called_directly_p,
5321         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5322         static cdtors.
5323         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5324         are not needed.
5325         (cgraph_finalize_function): Static cdtors are reachable.
5326         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5327
5328 2010-08-20  Jan Hubicka  <jh@suse.cz>
5329
5330         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5331         flag_wpa.
5332         * lto-streamer-out.c (lto_output): Likewise.
5333         * passes.c (ipa_write_optimization_summaries): Initialize statement
5334         uids.
5335
5336 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5337
5338         * tree.h (alias_diag_flags): New enum.
5339         (alias_pair): Add an 'emitted_diags' field.
5340         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5341         (assemble_alias): Initialize emitted_diags of new pairs.
5342
5343 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
5344
5345         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5346         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5347         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5348         (STACK_CHECK_PROTECT): Define.
5349         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5350         (output_probe_stack_range): Likewise.
5351         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5352         builtin stack checking is enabled.
5353         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5354         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5355         (probe_stack_range): New insn.
5356
5357 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5358
5359         PR target/45336
5360         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5361         short first.
5362
5363         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5364         char first.
5365
5366 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5367
5368         PR target/45336
5369         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5370         to cover zero extension into 64-bit register.
5371         (*sse2_pextrw): Likewise.
5372         (*sse4_1_pextrd_zext): New insn.
5373
5374 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5375
5376         revert r163410, partially revert r163267.
5377         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5378         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5379         Darwin versions.
5380
5381 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5382
5383         PR middle-end/44974
5384         * builtins.c (expand_builtin): Don't optimize away
5385         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5386
5387 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
5388
5389         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5390         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5391         alternative 1 of operand 2.
5392
5393 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5394             Paolo Bonzini  <bonzini@gnu.org>
5395
5396         * simplify-rtx.c (simplify_unary_operation_1): Optimize
5397         (sign_extend (zero_extend (...)) and
5398         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5399
5400 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5401
5402         PR rtl-optimization/45353
5403         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5404         after bb_note is a BARRIER.
5405
5406 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5407
5408         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5409         linking libgcc.a.
5410
5411 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5412             Michael Matz  <matz@suse.de>
5413
5414         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5415
5416 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5417
5418         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5419         (ggc_mark_roots): ...here.
5420
5421 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5422
5423         * vec.h (FOR_EACH_VEC_ELT): Define.
5424         * c-decl.c: Use it.
5425         * cfgloop.c: Likewise.
5426         * cfgloopmanip.c: Likewise.
5427         * cgraph.c: Likewise.
5428         * cgraphunit.c: Likewise.
5429         * combine.c: Likewise.
5430         * config/bfin/bfin.c: Likewise.
5431         * config/mips/mips.c: Likewise.
5432         * config/rs6000/rs6000.c: Likewise.
5433         * dbxout.c: Likewise.
5434         * df-scan.c: Likewise.
5435         * dominance.c: Likewise.
5436         * dse.c: Likewise.
5437         * dwarf2out.c: Likewise.
5438         * except.c: Likewise.
5439         * expr.c: Likewise.
5440         * function.c: Likewise.
5441         * gcse.c: Likewise.
5442         * genattr.c: Likewise.
5443         * ggc-common.c: Likewise.
5444         * gimplify.c: Likewise.
5445         * graphite-blocking.c: Likewise.
5446         * graphite-clast-to-gimple.c: Likewise.
5447         * graphite-dependences.c: Likewise.
5448         * graphite-interchange.c: Likewise.
5449         * graphite-poly.c: Likewise.
5450         * graphite-scop-detection.c: Likewise.
5451         * graphite-sese-to-poly.c: Likewise.
5452         * graphite.c: Likewise.
5453         * haifa-sched.c: Likewise.
5454         * ifcvt.c: Likewise.
5455         * implicit-zee.c: Likewise.
5456         * ipa-prop.c: Likewise.
5457         * ipa-struct-reorg.c: Likewise.
5458         * ipa.c: Likewise.
5459         * ira-build.c: Likewise.
5460         * ira-color.c: Likewise.
5461         * ira-emit.c: Likewise.
5462         * lambda-code.c: Likewise.
5463         * loop-invariant.c: Likewise.
5464         * loop-unroll.c: Likewise.
5465         * lower-subreg.c: Likewise.
5466         * lto-cgraph.c: Likewise.
5467         * lto-opts.c: Likewise.
5468         * lto-streamer-in.c: Likewise.
5469         * lto-streamer-out.c: Likewise.
5470         * lto-streamer.c: Likewise.
5471         * lto-symtab.c: Likewise.
5472         * matrix-reorg.c: Likewise.
5473         * opts.c: Likewise.
5474         * predict.c: Likewise.
5475         * print-tree.c: Likewise.
5476         * sdbout.c: Likewise.
5477         * sel-sched-dump.c: Likewise.
5478         * sel-sched-ir.c: Likewise.
5479         * sel-sched.c: Likewise.
5480         * sese.c: Likewise.
5481         * stor-layout.c: Likewise.
5482         * tree-cfg.c: Likewise.
5483         * tree-cfgcleanup.c: Likewise.
5484         * tree-chrec.c: Likewise.
5485         * tree-data-ref.c: Likewise.
5486         * tree-emutls.c: Likewise.
5487         * tree-inline.c: Likewise.
5488         * tree-into-ssa.c: Likewise.
5489         * tree-loop-distribution.c: Likewise.
5490         * tree-loop-linear.c: Likewise.
5491         * tree-mudflap.c: Likewise.
5492         * tree-outof-ssa.c: Likewise.
5493         * tree-parloops.c: Likewise.
5494         * tree-predcom.c: Likewise.
5495         * tree-pretty-print.c: Likewise.
5496         * tree-scalar-evolution.c: Likewise.
5497         * tree-ssa-live.c: Likewise.
5498         * tree-ssa-loop-im.c: Likewise.
5499         * tree-ssa-loop-ivcanon.c: Likewise.
5500         * tree-ssa-loop-ivopts.c: Likewise.
5501         * tree-ssa-loop-manip.c: Likewise.
5502         * tree-ssa-loop-niter.c: Likewise.
5503         * tree-ssa-loop-prefetch.c: Likewise.
5504         * tree-ssa-phiprop.c: Likewise.
5505         * tree-ssa-pre.c: Likewise.
5506         * tree-ssa-reassoc.c: Likewise.
5507         * tree-ssa-sccvn.c: Likewise.
5508         * tree-ssa-structalias.c: Likewise.
5509         * tree-ssa.c: Likewise.
5510         * tree-vect-data-refs.c: Likewise.
5511         * tree-vect-loop-manip.c: Likewise.
5512         * tree-vect-loop.c: Likewise.
5513         * tree-vect-patterns.c: Likewise.
5514         * tree-vect-slp.c: Likewise.
5515         * tree-vect-stmts.c: Likewise.
5516         * tree-vrp.c: Likewise.
5517         * tree.c: Likewise.
5518         * value-prof.c: Likewise.
5519         * var-tracking.c: Likewise.
5520         * varasm.c: Likewise.
5521         * vmsdbgout.c: Likewise.
5522
5523 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5524             Richard Guenther  <richard.guenther@gmail.com>
5525
5526         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5527         copy the src value and return a copy.
5528         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5529         (C++ Volatiles): Adjust to describe C++ semantics only.
5530
5531 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5532
5533         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5534         be zero or nonzero.
5535         * doc/tm.texi: Regenerate.
5536         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5537         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5538         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5539         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5540         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5541         to 1.
5542
5543 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5544
5545         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5546         an extra nop past a sibling call at the very end.
5547
5548 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5549
5550         PR bootstrap/45350
5551         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5552         a comment.
5553
5554 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5555
5556         * target.def (function_arg, function_incoming_arg): Remove const
5557         qualifier on CUMULATIVE_ARGS parameter.
5558         * targhooks.h (default_function_arg, default_function_incoming_arg):
5559         Likewise.
5560         * targhooks.c (default_function_arg, default_function_incoming_arg):
5561         Likewise.
5562         * config/i386/i386.c (ix86_function_arg): Likewise.
5563
5564 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5565
5566         PR target/45336
5567         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5568         SIGN_EXTENDs or ZERO_EXTENDs.
5569
5570 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5571
5572         PR target/42172
5573         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5574         Take its cost into account if nonnull.
5575         (insn_a_feeds_b): New static function.
5576         (combine_instructions): Look for four-insn combinations.
5577         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5578         them into account when computing all_adjacent and looking for other
5579         uses.
5580         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5581         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5582         (try_combine): New arg I0.  Handle four-insn combinations.
5583         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5584         like ELIM_I1.
5585
5586 2010-08-19  Jason Merrill  <jason@redhat.com>
5587
5588         PR c++/45307
5589         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5590         if ctor is empty.
5591         (gimplify_modify_expr_rhs): Adjust.
5592
5593 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5594
5595         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5596         bitmap_bit_p.
5597         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5598         * dominance.c (iterate_fix_dominators): Likewise.
5599         * dse.c (set_usage_bits): Likewise.
5600         (set_position_unneeded, record_store): Likewise.
5601         * gimple-fold.c (get_maxval_strlen): Likewise.
5602         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5603         * ipa-inline.c (update_caller_keys): Likewise.
5604         * ipa-split.c (verify_non_ssa_vars): Likewise.
5605         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5606         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5607         (close_addressof_down): Likewise.
5608         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5609         (setup_allocno_left_conflicts_size): Likewise.
5610         (ira_reassign_conflict_allocnos): Likewise.
5611         (ira_reassign_pseudos): Likewise.
5612         * ira-emit.c (change_loop): Likewise.
5613         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5614         * lto-streamer-out.c (write_symbol): Likewise.
5615         * predict.c (expr_expected_value_1): Likewise.
5616         * regstat.c (regstat_bb_compute_ri): Likewise.
5617         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5618         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5619         * stmt.c (expand_case): Likewise.
5620         * tree-eh.c (emit_eh_dispatch): Likewise.
5621         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5622         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5623         Likewise.
5624         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5625         (rdg_build_components): Likewise.
5626         * tree-object-size.c (collect_object_sizes_for): Likewise.
5627         * tree-sra.c (convert_callers): Likewise.
5628         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5629         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5630         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5631
5632 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5633
5634         * config/i386/i386.md (*lea_1): Use P mode iterator.
5635         (lea add splitter): Also handle DImode operands.
5636         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5637         predicate.  Do not use ix86_lea_for_add_ok.
5638         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5639         (lea ashift splitter): Also handle DImode operands.
5640         (DImode lea ashift splitter): Remove splitter.
5641
5642 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5643
5644         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5645         ix86_binary_operator_ok.
5646
5647 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5648
5649         PR rtl-optimization/44691
5650         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5651         is not a register.
5652
5653 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5654
5655         PR target/45070
5656         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5657          value of size 1-3 is handled correctly.
5658
5659 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5660
5661         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5662         type for the conditional has wide enough range.
5663
5664 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5665
5666         PR target/45327
5667         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5668         ix86_binary_operator_ok.
5669
5670 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5671
5672         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5673         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5674         code to output insn mnemonic.  Fix comment.
5675         (*addsi_1_zext): Add r-r-0 alternative 1.
5676         <TYPE_LEA>: Split insn to lea.
5677         <default>: Handle alternative 1.
5678         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5679         multi-level if_then_else RTX to set "type" attribute.
5680         <default>: Handle alternative 2.
5681         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5682         Use cond RTX instead of multi-level if_then_else RTX to set
5683         "type" attribute.
5684         <default>: Handle alternatives 2 and 4.
5685         (lea splitters): Update calls to ix86_lea_for_add_ok.
5686
5687         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5688         argument.
5689         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5690
5691 2010-08-18  Richard Guenther  <rguenther@suse.de>
5692
5693         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5694         use operand helpers.
5695
5696 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
5697
5698         PR middle-end/45292
5699         * optabs.c (expand_bool_compare_and_swap): Expand pending
5700         pops before trying the optab.
5701
5702 2010-08-18  Yao Qi  <yao@codesourcery.com>
5703
5704         PR target/45094
5705         * config/arm/arm.c (output_move_double): Fix typo generating
5706         instructions ('ldr'->'str').
5707
5708 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5709
5710         PR rtl-optimization/42575
5711         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5712         live ranges.
5713
5714 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5715
5716         * config/arm/arm-protos.h (arm_expand_sync): New.
5717         (arm_output_memory_barrier, arm_output_sync_insn): New.
5718         (arm_sync_loop_insns): New.
5719         * config/arm/arm.c (FL_ARCH7): New.
5720         (FL_FOR_ARCH7): Include FL_ARCH7.
5721         (arm_arch7): New.
5722         (arm_print_operand): Support %C markup.
5723         (arm_legitimize_sync_memory): New.
5724         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5725         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5726         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5727         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5728         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5729         (arm_process_output_sync_insn, arm_output_sync_insn): New.
5730         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5731         * config/arm/arm.h (struct arm_sync_generator): New.
5732         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5733         (TARGET_HAVE_MEMORY_BARRIER): New.
5734         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5735         * config/arm/arm.md: Include sync.md.
5736         (UNSPEC_MEMORY_BARRIER): New.
5737         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5738         (VUNSPEC_SYNC_OP):New.
5739         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5740         (sync_result, sync_memory, sync_required_value): New attributes.
5741         (sync_new_value, sync_t1, sync_t2): Likewise.
5742         (sync_release_barrier, sync_op): Likewise.
5743         (length): Add logic to length attribute defintion to call
5744         arm_sync_loop_insns when appropriate.
5745         * config/arm/sync.md: New file.
5746
5747 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5748
5749         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5750         ENABLE_TREE_CHECKING.
5751         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5752         and GCC >= 4.3.
5753
5754 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5755
5756         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5757         or optimizing for size, always avoid lea if possible.
5758
5759         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5760
5761 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
5762
5763         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5764         Dunmmy function with NULL return unless the target is
5765         OSX >= 10.6 (Darwin10).
5766
5767 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
5768
5769         * gcc.c (spec_function): Add remove-outfile.
5770         (remove_outfile_spec_function): New function.
5771         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5772         * invoke.texi (replace-outfile): Document.
5773
5774 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
5775
5776         PR target/45296
5777         * reginfo.c (globalize_reg): Reject stack registers.
5778
5779 2010-08-17  Richard Guenther  <rguenther@suse.de>
5780
5781         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5782         list of conditional equivalences.
5783         (free_all_edge_infos): Adjust.
5784         (record_equivalences_from_incoming_edge): Likewise.
5785         (record_cond): Likewise.
5786         (build_and_record_new_cond): Likewise.
5787         (record_conditions): Likewise.
5788         (dom_opt_leave_block): Likewise.
5789
5790 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
5791
5792         * doc/invoke.texi (ms-extension): Add documentation.
5793
5794 2010-08-17  Richard Guenther  <rguenther@suse.de>
5795
5796         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5797
5798 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
5799
5800         PR c/40563
5801         * c-decl.c (diagnose_uninitialized_cst_member): New function.
5802         (finish_decl): Use it to issue a -Wc++-compat warning about
5803         uninitialized const field in struct or union.
5804
5805         (finish_struct): Use strip_array_types.
5806
5807 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5808
5809         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5810         functions.
5811         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5812         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
5813         call block_nreverse here.
5814         (blocks_nreverse): Rename decl temporary to block.
5815
5816 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
5817
5818         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5819         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5820         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5821         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5822         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5823         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5824         thumb2_iorsi3): Delete.
5825         (orsi_notsi_si): No longer a named pattern.
5826         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5827         * config/arm/predicates.md (shift_amount_operand): New.
5828         (mult_operator): New.
5829         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5830         attr enabled): New.
5831         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
5832         arch matches t2.
5833         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
5834         (not_shiftsi_compare0): Likewise, renamed from
5835         arm_notsi_shiftsi_compare0.
5836         (not_shiftsi_compare0_scratch): Likweise, renamed from
5837         arm_notsi_shiftsi_compare0_scratch.
5838         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5839         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5840         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
5841         so that the register alternative is disabled when the shift_operator
5842         is MULT.  Use "M" as the constraint for constants.
5843         (arith_shiftsi splitter): Enable for TARGET_32BIT.
5844         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
5845         constraint for constants.
5846         (arith_shiftsi_compare0_scratch): Likewise.
5847         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5848         Handle Thumb2 alternative.
5849
5850 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * doc/options.texi (NoDriverArg): Document.
5853         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5854         -MDX and -MMDX.
5855         * opt-functions.awk (switch_flags): Handle NoDriverArg.
5856         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
5857         marking for CL_NO_DRIVER_ARG options when in the driver.
5858         * opts.h (CL_NO_DRIVER_ARG): Define.
5859         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5860         CL_COMMON): Update values.
5861
5862 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5863
5864         * common.opt: Add driver options.
5865         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
5866         * doc/options.texi (Driver, RejectDriver): Document.
5867         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
5868         print_prog_name, print_multi_directory, print_sysroot,
5869         print_multi_os_directory, print_multi_lib,
5870         print_sysroot_headers_suffix, report_times, combine_flag,
5871         use_pipes, wrapper_string): Remove.
5872         (save_switch, driver_unknown_option_callback,
5873         driver_wrong_lang_callback, driver_post_handling_callback,
5874         driver_handle_option): New.
5875         (spec_lang, last_language_n_infiles): Make file-scope static
5876         instead of local to process_command.
5877         (process_command): Use decode_cmdline_options_to_array and
5878         read_cmdline_option for option processing.  Compute have_c in
5879         prescan of decoded options.
5880         * opt-functions.awk (switch_flags): Handle Driver and
5881         RejectDriver.
5882         (var_type, var_type_struct): Handle Separate options as generating
5883         const char * variables.
5884         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
5885         CL_TARGET to be passed by caller if required.
5886         (decode_cmdline_options_to_array): Update comment.
5887         * opts.c (complain_wrong_lang): Handle options only valid for the
5888         driver.
5889         (decode_options): Update call to decode_cmdline_options_to_array.
5890         (print_filtered_help): Ignore driver-only options.
5891         (print_specific_help): Ignore CL_DRIVER.
5892         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
5893         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
5894         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
5895         Update values.
5896
5897 2010-08-16  Richard Guenther  <rguenther@suse.de>
5898
5899         * tree-cfg.c (verify_types_in_gimple_reference): Verify
5900         TARGET_MEM_REF a bit.
5901         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
5902         (create_mem_ref_raw): Always create TMR_OFFSET, store the
5903         alias pointer type via it.
5904         (copy_mem_ref_info): Adjust.
5905         (maybe_fold_tmr): Likewise.
5906         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
5907         (reference_alias_ptr_type): Likewise.
5908         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
5909         adjust documentation of TMR_OFFSET operand.
5910         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
5911         use the alias pointer type.
5912         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
5913         initialize mem attrs but the TMR itself.
5914         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
5915         similar to MEM_REF.
5916         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
5917         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
5918         (unshare_and_remove_ssa_names): Likewise.
5919         (copy_ref_info): Adjust.
5920         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
5921         TARGET_MEM_REF case.
5922         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
5923         at TMR_ORIGINAL.
5924         * tree.h (TMR_ORIGINAL): Remove.
5925         * gimple.c (get_base_address): For TARGET_MEM_REF with a
5926         symbol return that.
5927         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
5928         with a symbol.
5929         (get_addr_base_and_unit_offset): Likewise.
5930         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
5931         TARGET_MEM_REFs.
5932         (indirect_ref_may_alias_decl_p): Likewise.
5933         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
5934
5935 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
5936
5937         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
5938         with GCC version 4.6, the default setting (when not optimizing
5939         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
5940         been changed to -fomit-frame-pointer.
5941
5942 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
5943
5944         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
5945         Darwin10.  Do not link libgcc.a for Darwin >= 9.
5946
5947 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
5948
5949         * doc/invoke.texi (Warning Options): Fix terminology and markup
5950         in the description of how unknown warning options are handled.
5951
5952 2010-08-15  Ira Rosen  <irar@il.ibm.com>
5953
5954         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
5955         in basic blocks.
5956         (vect_supportable_dr_alignment): Check alignment for basic blocks.
5957         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
5958         data references.
5959         (vect_bb_vectorization_profitable_p): New function.
5960         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
5961         check if it's worthwhile to vectorize the basic block.
5962
5963 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
5964
5965         * reload.h (register_move_cost, memory_move_secondary_cost,
5966         secondary_reload_class): Adjust prototype.
5967         * rtl.h (reg_class_subset_p): Adjust prototype.
5968         * reload.c (secondary_reload_class): Change arguments type from
5969         enum reg_class to reg_class_t. Change result type to reg_class_t.
5970         * reginfo.c (register_move_cost, reg_class_subset_p): Change
5971         arguments type from enum reg_class to reg_class_t.
5972         (memory_move_secondary_cost): Change arguments type from
5973         enum reg_class to reg_class_t. Change type of saved_flags to
5974         reg_class_t.
5975
5976         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5977         Remove macros.
5978         (mips_cost): Remove.
5979         (struct mips_rtx_cost_data): Moved to mips.c.
5980         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
5981         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
5982         (mips_cost): Make static.
5983         (mips_canonicalize_move_class): Change argument type to reg_class_t.
5984         Change result type to reg_class_t.
5985         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
5986         type from enum reg_class to reg_class_t.
5987         (mips_register_move_cost): Make static. Change arguments
5988         type from enum reg_class to reg_class_t.
5989         (mips_memory_move_cost): New function.
5990         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5991
5992 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
5993
5994         PR rtl-optimization/43358
5995         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
5996         of a single hard register, using simplify_subreg_regno to decide
5997         what that register should be.
5998
5999 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
6000
6001         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
6002         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
6003         (loongson_pmull<V_suffix>): Rename to...
6004         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
6005
6006 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
6007
6008         * configure.ac: Enable -fomit-frame-pointer on darwin
6009         which support dwarf2.
6010         * config/i386/i386.c (override_options): Same.
6011
6012 2010-08-13  Jie Zhang  <jie@codesourcery.com>
6013
6014         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
6015
6016 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
6017
6018         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
6019         -MMD.
6020
6021 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
6022
6023         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
6024         up dot_prod pattern searching if a stmt is outside the loop.
6025
6026 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
6027             Uros Bizjak  <ubizjak@gmail.com>
6028
6029         * config.gcc: Handle --enable-frame-pointer.
6030
6031         * configure.ac: Add --enable-frame-pointer.
6032         * configure: Regenerated.
6033
6034         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
6035         (override_options): If not configured with --enable-frame-pointer,
6036         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
6037         optimizing for size), -fasynchronous-unwind-tables and
6038         -maccumulate-outgoing-args by default.
6039
6040 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6041
6042         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
6043
6044         PR middle-end/45262
6045         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
6046         -a overflows.  Normalize the range.
6047
6048 2010-08-12  Richard Guenther  <rguenther@suse.de>
6049
6050         PR tree-optimization/45232
6051         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
6052         for types with undefined overflow.
6053         (reassociate_bb): Allow re-associating of bit and min/max
6054         operations for types with undefined overflow.
6055         * tree-ssa-forwprop.c (associate_plusminus): New function.
6056         (tree_ssa_forward_propagate_single_use_vars): Call it.
6057
6058 2010-08-12  Richard Guenther  <rguenther@suse.de>
6059
6060         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
6061         * tree-ssa-alias.c (get_ptr_info): Move ...
6062         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
6063         align and misalign fields conservatively.
6064         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
6065         derive alignment information.
6066         (evaluate_stmt): Derive alignment information from memory
6067         allocation functions.
6068         * tree.h (get_pointer_alignment): Make unsigned.
6069         * builtins.c (get_object_alignment): Use alignment information we
6070         have computed for pointers.
6071         (get_pointer_alignment): Likewise.  Make conservative, return
6072         and unsigned value.
6073         (expand_builtin_strlen): Adjust.
6074         (expand_builtin_memcmp): Likewise.
6075         (expand_builtin_strcmp): Likewise.
6076         (expand_builtin_strncmp): Likewise.
6077         (get_builtin_sync_mem): Use at least mode alignment.
6078         (fold_builtin_memset): Adjust.
6079         (fold_builtin_memory_op): Likewise.
6080         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
6081         information also dump pointer alignment knowledge.
6082         (dump_gimple_stmt): Likewise.
6083
6084 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
6085
6086         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
6087         (EMPTY_FIELD_BOUNDARY): Remove.
6088         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
6089
6090 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6091
6092         PR debug/45259
6093         * caller-save.c (save_call_clobbered_regs): Only swap notes with
6094         DEBUG_INSNs if n_regs_saved.
6095
6096 2010-08-12  Wei Guozhi  <carrot@google.com>
6097
6098         PR target/44999
6099         * config/arm/arm.md (andsi3): Change to zero extension if possible.
6100         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
6101
6102 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
6103
6104         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
6105
6106         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
6107
6108 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6109
6110         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
6111         the case removed in the previous patch, when the only phi argument
6112         is defined in the same loop as the phi node itself.  Handle it
6113         separately from the invariant case by both propagating it outside
6114         the region and replacing the phi node with an assign.
6115
6116 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6117
6118         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
6119         constant phi nodes with one argument are is_gimple_min_invariant
6120         and SSA_NAME_IS_DEFAULT_DEF.
6121
6122 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6123
6124         * graphite-cloog-util.c (oppose_constraint):
6125         Extend loop counter's value range (CLOOG_ORG).
6126         (cloog_matrix_to_ppl_constraint): Same.
6127         (new_Constraint_System_from_Cloog_matrix): Same.
6128         * graphite-cloog-compat.h (matrix_num_type): New.
6129
6130 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6131
6132         * graphite.c (graphite_initialize): Do not initialize
6133         CLooG and initialize the Parma Polyhedra Library
6134         manually when using CLOOG_ORG.
6135         (graphite_finalize): Do not finalize CLooG and finalize
6136         the Parma Polyhedra Library manually when using CLOOG_ORG.
6137         * graphite-cloog-compat.h (cloog_initialize): Hide function
6138         when using CLOOG_ORG.
6139         (cloog_finalize): Same.
6140
6141 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6142
6143         * graphite-clast-to-gimple.c (free_scattering): Change
6144         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6145         (CLOOG_ORG).
6146         (build_cloog_prog): Same.
6147         * graphite-cloog-compat.h (cloog_domain): Removed.
6148         (cloog_scattering): New.
6149         (cloog_set_domain): Removed.
6150         (cloog_set_scattering): New.
6151         (cloog_next_domain): Removed.
6152         (cloog_next_scattering): New.
6153         (cloog_set_next_domain): Removed.
6154         (cloog_set_next_scattering): New.
6155         (CloogScatteringList): New.
6156         (CloogScattering): New.
6157         (cloog_scattering_free): New.
6158         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6159         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6160         New.
6161
6162 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6163
6164         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6165         CloogState.
6166         (set_cloog_options): Same.
6167         (print_clast_stmt): Same.
6168         (scop_to_clast): Same.
6169         (print_generated_program): Same.
6170         (gloog): Same.
6171         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6172         (scop_to_clast): Extend with CloogState.
6173         * graphite-cloog-util.c: Include graphite-cloog-compat.h
6174         (new_Cloog_Domain_from_ppl_Polyhedron):
6175         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6176         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6177         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6178         * graphite-cloog-util.h (build_cloog_prog): Same.
6179         * graphite-cloog-copat.h (build_cloog_prog): New.
6180         (CloogState): New.
6181         (cloog_state_malloc): New.
6182         (cloog_state_free): New.
6183         (cloog_loop_malloc): New.
6184         (cloog_options_malloc): New.
6185         (cloog_statement_alloc): New.
6186         (cloog_domain_from_cloog_matrix): New.
6187         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6188         (new_Cloog_Domain_from_ppl_Polyhedron): New.
6189
6190 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6191
6192         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6193         type of NAME now depends on used CLooG version.
6194         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6195         (gcc_type_for_clast_expr): Same.
6196         (print_clast_stmt): Replace pprint with clast_pprint.
6197         * graphite-cloog-compat.h: Provide compatibility macros for
6198         CLooG Legacy.
6199         (clast_name_p): New.
6200         (clast_expr_term): New.
6201         (clast_expr_red): New.
6202         (clast_expr_bin): New.
6203         (clast_pprint): New.
6204
6205 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6206
6207         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6208         compatible to newer CLooG releases (CLOOG_ORG).
6209         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6210         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6211         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6212         (build_cloog_prog) : New.
6213         (cloog_program_extract_scalars): New.
6214         (cloog_program_scatter): New.
6215
6216 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6217
6218         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6219         conditionally (CLOOG_ORG).
6220         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
6221         (cloog_statement_usr): New.
6222         (cloog_domain): Same.
6223         (cloog_set_domain): Same.
6224         (cloog_next_domain): Same.
6225         (cloog_set_next_domain): Same.
6226         (cloog_program_nb_scattdims): Same.
6227         (cloog_program_set_nb_scattdims): Same.
6228         (cloog_program_names): Same.
6229         (cloog_program_set_names): Same.
6230         (cloog_program_set_context): Same.
6231         (cloog_program_set_loop): Same.
6232         (cloog_program_blocklist): Same.
6233         (cloog_program_set_blocklist): Same.
6234         (cloog_program_scaldims): Same.
6235         (cloog_program_set_scaldims): Same.
6236         (cloog_names_nb_parameters): Same.
6237         (cloog_names_set_nb_parameters): Same.
6238         (cloog_names_parameters): Same.
6239         (cloog_names_set_parameters): Same.
6240         (cloog_names_set_nb_iterators): Same.
6241         (cloog_names_set_iterators): Same.
6242         (cloog_names_set_nb_scattering): Same.
6243         (cloog_names_set_scattering): Same.
6244         (cloog_statement_set_usr): Same.
6245         (cloog_loop_set_next): Same.
6246         (cloog_loop_set_domain): Same.
6247         (cloog_loop_set_block): Same.
6248         (cloog_block_list_next): Same.
6249         (cloog_block_list_set_next):
6250         (cloog_block_list_set_block): Same.
6251
6252 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6253
6254         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6255         a bool.
6256         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6257         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6258         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6259         when something has been changed.
6260         (rewrite_commutative_reductions_out_of_ssa): Same.
6261
6262 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6263
6264         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6265         handle the case when def is in the sese region.
6266         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6267         for invariant expressions.
6268         (rewrite_cross_bb_phi_deps): Removed.
6269         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6270         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6271         rewrite_cross_bb_phi_deps.
6272
6273 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6274
6275         * graphite-sese-to-poly.c
6276         (rewrite_commutative_reductions_out_of_ssa_loop): Call
6277         scev_analyzable_p only on is_gimple_reg
6278
6279 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6280
6281         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6282         (rewrite_close_phi_out_of_ssa): Propagate constant values or
6283         parametric expressions outside the scop region.
6284         (rewrite_cross_bb_scalar_deps): Same.
6285         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6286
6287 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6288
6289         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6290         SSA_NAME_DEF_STMT only on SSA_NAMEs.
6291
6292 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6293
6294         * tree-scalar-evolution.c (instantiate_scev_name): Do not
6295         instantiate default definitions.
6296
6297 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
6298             Sebastian Pop  <sebastian.pop@amd.com>
6299
6300         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6301         (loop_exits_from_bb_p): New.
6302         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6303         (loop_exits_from_bb_p): Declared.
6304         * graphite-scop-detection.c (scopdet_basic_block_info): Call
6305         loop_exits_to_bb_p.
6306
6307 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6308
6309         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6310         extra parameter for the region.  Call scev_analyzable_p.
6311         (rewrite_reductions_out_of_ssa): Update call to
6312         rewrite_close_phi_out_of_ssa.
6313         (rewrite_cross_bb_phi_deps): Same.
6314         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6315         parameter for the region.  Call scev_analyzable_p.
6316         (rewrite_commutative_reductions_out_of_ssa): Update call to
6317         rewrite_commutative_reductions_out_of_ssa_loop.
6318
6319 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6320
6321         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6322
6323 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6324
6325         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6326         SSA scalar phi nodes that can be scev_analyzable_p.
6327
6328 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6329
6330         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6331         handle SSA_NAME_IS_DEFAULT_DEF.
6332
6333 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6334
6335         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6336
6337 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6338
6339         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6340         case non close-phi nodes with one argument.
6341
6342 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6343
6344         * sese.h (scev_analyzable_p): Scevs could be expressions without
6345         chrecs and still be scev_analyzable_p.
6346
6347 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6348
6349         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6350
6351 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6352
6353         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6354         * cfgloop.h (struct loop): Remove single_iv field.
6355         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6356         (scop_canonicalize_loops): Removed.
6357         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
6358         over all the loop phi nodes in loop->header.
6359         (build_poly_scop): Remove use of scop_canonicalize_loops.
6360
6361 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6362
6363         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6364         handle GIMPLE_CALL.
6365
6366 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6367
6368         * tree-chrec.c (chrec_apply): Should only apply to the specified
6369         variable.  Also handle multivariate chains of recurrences that
6370         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
6371
6372 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6373
6374         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6375         (debug_clast_name_indexes_1): Removed.
6376         (debug_clast_name_indexes): Removed.
6377         (pbb_to_depth_to_oldiv): Removed.
6378         (build_iv_mapping): Replace the use of rename_map with iv_map.
6379         (translate_clast_user): Remove uses of rename_map.  Allocate and
6380         free iv_map.
6381         (translate_clast_for_loop): Remove uses of rename_map.
6382         (translate_clast_for): Same.
6383         (translate_clast_guard): Same.
6384         (translate_clast): Same.
6385         (gloog): Same.
6386         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6387         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6388         * sese.c (set_rename): Now static.
6389         (rename_variables_in_stmt): Removed.
6390         (rename_uses): New.
6391         (is_parameter): Removed.
6392         (is_iv): Removed.
6393         (expand_scalar_variables_call): Removed.
6394         (expand_scalar_variables_ssa_name): Removed.
6395         (expand_scalar_variables_expr): Removed.
6396         (expand_scalar_variables_stmt): Removed.
6397         (expand_scalar_variables): Removed.
6398         (rename_variables): Removed.
6399         (remove_condition): Removed.
6400         (get_true_edge_from_guard_bb): Removed.
6401         (get_false_edge_from_guard_bb): Removed.
6402         (struct igp): Removed.
6403         (default_before_guard): Removed.
6404         (convert_for_phi_arg): Removed.
6405         (add_guard_exit_phis): Removed.
6406         (insert_guard_phis): Removed.
6407         (graphite_copy_stmts_from_block): Now also uses iv_map and a
6408         region.  Do not copy conditions.  Do not copy induction variables.
6409         Call rename_uses.
6410         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6411         the translated statement.  Use the iv_map for the induction
6412         variable renaming.
6413         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6414         (set_rename): Removed declaration.
6415         (scev_analyzable_p): ...here.
6416         * tree-chrec.c (chrec_apply_map): New.
6417         * tree-chrec.h (chrec_apply_map): Declared.
6418
6419 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6420
6421         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6422         insert_loop_close_phis.
6423         * sese.c (name_defined_in_loop_p): Removed.
6424         (expr_defined_in_loop_p): Removed.
6425         (alive_after_loop): Removed.
6426         (close_phi_not_yet_inserted_p): Removed.
6427         (struct alep): Removed.
6428         (add_loop_exit_phis): Removed.
6429         (insert_loop_close_phis): Removed.
6430
6431 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6432
6433         * graphite-cloog-util.c
6434         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6435         * graphite-poly.c
6436         (psct_scattering_dim_for_loop_depth): Same.
6437
6438 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6439
6440         * graphite-cloog-util.h: Added cloog.h.
6441         * graphite-blocking.c: Removed cloog.h.
6442         * graphite-dependences.c: Same.
6443         * graphite-interchange.c: Same.
6444         * graphite-poly.c: Same.
6445         * graphite-ppl.c: Same.
6446         * graphite-scop-detection.c: Same.
6447         * graphite-sese-to-poly.c:
6448         Removed cloog.h.
6449         Removed graphite-clast-to-gimple.h.
6450         (check_poly_representation): Removed (unused).
6451         * graphite-sese-to-poly.h
6452         (check_poly_representation): Removed (unused).
6453
6454 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6455
6456         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6457         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6458         (graphite-cloog-util.o): New.
6459         (graphite-ppl.o): Added graphite-cloog-util.h.
6460         * graphite-clast-to-gimple.c:
6461         Added graphite-cloog-util.h to include statements.
6462         * graphite-cloog-util.c: New.
6463         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6464         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6465         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6466         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6467         (insert_constraint_into_matrix): Same.
6468         (ppl_Constrain_System_number_of_constraints): Same.
6469         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6470         (oppose_constraint): Same.
6471         (cloog_matrix_to_ppl_constraint): Same.
6472         (new_Constraint_System_from_Cloog_Matrix): Same.
6473         * graphite-cloog-util.h: New.
6474         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6475         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6476         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6477         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6478         (insert_constraint_into_matrix): Same.
6479         * graphite-ppl.c:
6480         Added graphite-cloog-util.h to include statements.
6481         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6482         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6483         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6484         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6485         (insert_constraint_into_matrix): Same.
6486         (ppl_Constrain_System_number_of_constraints): Same.
6487         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6488         (oppose_constraint): Same.
6489         (cloog_matrix_to_ppl_constraint): Same.
6490         (new_Constraint_System_from_Cloog_Matrix): Same.
6491         * graphite-ppl.h:
6492         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6493         graphite-cloog-util.h.
6494         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6495         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6496         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6497         (insert_constraint_into_matrix): Same.
6498
6499 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6500
6501         * graphite-clast-to-gimple.c
6502         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6503         (precision_for_interval): Same.
6504         (gcc_type_for_interval): Same.
6505         (compute_type_for_level): Same.
6506         * graphite-interchange.c
6507         (lst_interchange_profitable_p): Same.
6508         * graphite-poly.c
6509         (psct_scattering_dim_for_loop_depth): Same.
6510         * graphite-ppl.c
6511         (ppl_max_for_le_pointset): Same.
6512         (ppl_min_for_le_pointset): Same.
6513
6514 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6515
6516         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6517         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6518
6519 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6520
6521         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6522         rewrite_close_phi_out_of_ssa.
6523
6524 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6525
6526         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6527
6528 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6529
6530         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6531         rename_map.
6532         * sese.c (debug_rename_map): Same.
6533         (get_rename): Same.
6534         (set_rename): Same.
6535         (rename_variables_in_stmt): Same.
6536         (expand_scalar_variables_call): Same.
6537         (expand_scalar_variables_ssa_name): Same.
6538         (expand_scalar_variables_expr): Same.
6539         (expand_scalar_variables_stmt): Same.
6540         (expand_scalar_variables): Same.
6541         (rename_variables): Same.
6542         (graphite_copy_stmts_from_block): Same.
6543         (copy_bb_and_scalar_dependences): Same.
6544
6545 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6546
6547         * graphite-clast-to-gimple.c (copy_renames): Removed.
6548         (translate_clast_for): Do not call copy_renames.
6549         (translate_clast_guard): Same.
6550
6551 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6552
6553         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6554         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6555         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6556         before rewrite_cross_bb_scalar_deps.
6557
6558 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6559
6560         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6561         Early return in when flag_associative_math is not set.
6562
6563 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6564
6565         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6566         of SSA copies on edges except for loop->latch.
6567
6568 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6569
6570         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6571         Split out of rewrite_reductions_out_of_ssa.
6572         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6573         Declared.
6574         * graphite.c (graphite_transform_loops): Call it.
6575
6576 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6577
6578         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6579
6580 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6581
6582         * dbgcnt.def (graphite_scop): New counter.
6583         * graphite.c: Include dbgcnt.h.
6584         (graphite_transform_loops): Use new counter to limit transformations.
6585         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6586
6587 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6588
6589         * passes.c (init_optimization_passes): Add pass_graphite.
6590         Schedule a pass_copy_prop before pass_graphite_transforms.
6591         * timevar.def (TV_GRAPHITE): Declared.
6592         * tree-pass.h (pass_graphite): Declared.
6593         * tree-ssa-loop.c (pass_graphite): New.
6594
6595 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6596
6597         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6598         Remove calls to rename_nb_iterations and rename_sese_parameters.
6599         * graphite-clast-to-gimple.h (gloog): Update declaration.
6600         * graphite.c (graphite_transform_loops): Update call to gloog.
6601         * sese.c (rename_variables_in_expr): Removed.
6602         (rename_nb_iterations): Removed.
6603         (rename_sese_parameters): Removed.
6604         * sese.h (rename_nb_iterations): Removed.
6605         (rename_sese_parameters): Removed.
6606
6607 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6608
6609         * graphite-clast-to-gimple.c (gloog): Remove call to
6610         sese_adjust_liveout_phis.
6611         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6612         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6613         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6614         rewrite_phi_out_of_ssa.
6615         * sese.c (get_vdef_before_sese): Removed.
6616         (sese_adjust_vphi): Removed.
6617         (sese_adjust_liveout_phis): Removed.
6618         * sese.h (sese_adjust_liveout_phis): Removed.
6619
6620 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6621
6622         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6623         argument for the place after which to insert the out of SSA copy.
6624         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6625         (rewrite_phi_out_of_ssa): Same.
6626         (rewrite_cross_bb_scalar_deps): Same.
6627         (insert_copyout): Removed.
6628         (insert_copyin): Removed.
6629         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6630         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6631         insert_copyin.
6632
6633 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6634
6635         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6636         (rewrite_reductions_out_of_ssa): Same.
6637         (rewrite_commutative_reductions_out_of_ssa): Same.
6638         (build_poly_scop): Do not call these functions.
6639         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6640         (rewrite_reductions_out_of_ssa): Declared.
6641         (rewrite_commutative_reductions_out_of_ssa): Declared.
6642         * graphite.c (graphite_transform_loops): Call on every scop
6643         rewrite_commutative_reductions_out_of_ssa before calling
6644         rewrite_reductions_out_of_ssa and build_scop_bbs.
6645
6646 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6647
6648         * graphite-dependences.c (dot_deps): Make system call to dotty run
6649         in background.
6650         (dot_deps_stmt): Same.
6651         * graphite-poly.c (dot_lst): Same.
6652
6653 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6654
6655         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6656         phi_arg_in_outermost_loop.
6657         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6658         (remove_invariant_phi): Same.
6659
6660 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6661
6662         * target.def (output_addr_const_extra): New hook.
6663         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6664         * doc/tm.texi: Regenerate.
6665         * targhooks.c (default_asm_output_addr_const_extra): New function.
6666         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6667         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6668         target hook.
6669
6670         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6671         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6672         * config/i386/i386.h (output_addr_const_extra): Rename to...
6673         (i386_asm_output_addr_const_extra): ...this. Make static.
6674         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6675
6676 2010-08-11  Richard Henderson  <rth@redhat.com>
6677
6678         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6679
6680 2010-08-11  Nick Clifton  <nickc@redhat.com>
6681
6682         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6683         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6684         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6685         stormy16-lib2-cmpsi.c.
6686
6687         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6688         -O2.
6689
6690 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
6691
6692         * opts.h (struct cl_option_handler_func): Make handler take
6693         cl_decoded_option structure as parameter, not individual elements.
6694         (struct cl_option_handlers): Make callbacks take cl_decoded_option
6695         structure as parameter, not individual elements.
6696         (handle_option): Take cl_decoded_option structure as parameter,
6697         not individual elements.
6698         (handle_generated_option): Declare.
6699         * opts-common.c (handle_option): Take cl_decoded_option structure
6700         as parameter, not individual elements.  Update calls to callback
6701         and handler functions.
6702         (handle_generated_option): New.
6703         (read_cmdline_option): Update calls to callback functions and
6704         handle_option.
6705         * opts.c (common_handle_option, complain_wrong_lang,
6706         unknown_option_callback, post_handling_callback,
6707         lang_handle_option, target_handle_option): Take cl_decoded_option
6708         structure as parameter, not individual elements.
6709         (lang_handle_option, target_handle_option, common_handle_option):
6710         Assert option has at most one argument.
6711         (enable_warning_as_error): Call handle_generated_option instead of
6712         handle_option.  Do not pass -Werror argument as argument of
6713         generated option.
6714
6715 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6716
6717         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6718         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6719         (SUBWORD_BOOL_CAS): Likewise.
6720         (SUBWORD_SYNC_OP): Likewise.
6721         (SUBWORD_TEST_AND_SET): Likewise.
6722         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6723         (SUBWORD_SYNC_OP): Likewise.
6724         (OP_AND_FETCH_WORD): Likewise.
6725
6726 2010-08-10  Xinliang David Li  <davidxl@google.com>
6727
6728         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6729         compute max/min offset in address.
6730
6731 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
6732
6733         * ira-live.c: Include sbitmap.h.
6734         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6735         Compress live ranges even more.
6736
6737 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6738
6739         * coverage.c (ctr_labels): Delete.
6740
6741 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6742
6743         PR bootstrap/45177
6744         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6745         test here from arm_gen_load_multiple_1.
6746         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6747         multiple_operation_profitable_p.
6748
6749 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6750
6751         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6752         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
6753
6754 2010-08-10  Richard Henderson  <rth@redhat.com>
6755
6756         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6757         after saving registers.  Assert that SSE registers are only saved
6758         with a sufficiently aligned frame.
6759         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6760         remove stack_realign_fp handling.
6761         (ix86_expand_prologue): Save int registers before stack_realign_fp,
6762         and do not mark the stack alignment as frame related.
6763         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6764
6765         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6766         saves when re-aligning the stack.
6767
6768 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6769
6770         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6771         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6772         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6773
6774 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6775
6776         * dwarf2out.c (struct die_struct): Move die_tag to the end.
6777
6778 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
6779
6780         * config/arm/iterators.md: New file.
6781         * config/arm/arm.md: Include iterators.md.
6782         (QHSI): Move to new file.
6783         (LTUGEU, cnb, optab, ior_xor): Likewise.
6784         * config/arm/iwmmxt.md (VMMX): Move to new file.
6785         (VSHFT, MMX_char): Likewise.
6786         * config/arm/neon.md (VD): Move to new file.
6787         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6788         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6789         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6790         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6791         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6792         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6793         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6794         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6795         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6796         (Is_d_reg, V_mode_nunits): Likewise.
6797         * config/arm/vec-common.md (VALL): Move to new file.
6798         (VALLW, VINT, VINTW): Likewise.
6799
6800 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6801
6802         PR middle-end/45182
6803         * combine.c (make_compound_operation): Don't try to convert
6804         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6805
6806 2010-08-10  Richard Guenther  <rguenther@suse.de>
6807
6808         * tree.h (get_object_alignment): Adjust prototype.
6809         * builtins.c (get_object_alignment): Return unsigned int,
6810         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
6811         and TARGET_MEM_REF properly.
6812         (get_pointer_alignment): Adjust.
6813         * emit-rtl.c (get_mem_align_offset): Adjust comment.
6814         (set_mem_attributes_minus_bitpos): Adjust.
6815         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6816
6817 2010-08-10  Richard Guenther  <rguenther@suse.de>
6818
6819         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6820         (copy_prop_visit_assignment): Simplify.
6821         (copy_prop_visit_stmt): Also visit assignments from
6822         constants.
6823         (copy_prop_visit_phi_node): Use operand_equal_p.
6824
6825 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6826
6827         * ipa-split.c (find_split_points): Free stack.
6828
6829 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6830
6831         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6832         * tree.c (tree_node_kind): Delete corresponding entries.
6833
6834 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6835
6836         * alias.c (may_alias_p): Remove unused ret.
6837
6838 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
6839
6840         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6841         alias_sets_conflict_p.
6842         (walk_mems_1): Moved from alias.c.
6843         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6844         in alias.c.
6845         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6846         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6847         * alias.c (walk_mems_2): Moved to ddg.c.
6848         (walk_mems_1): Ditto.
6849         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6850         to ddg.c.
6851         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6852         disambiguation.
6853         *(may_alias_p): New function to check whether two memory expression
6854         may alias or not. Currently used in buidling inter-iteration memory
6855         dependence.
6856         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
6857         (insn_alias_sets_conflict_p): Removed
6858         *rtl.h (may_alias_p): New function prototype.
6859
6860 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6861
6862         * tree.c (nreverse): Assert that we don't have a BLOCK.
6863
6864 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6865
6866         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
6867         * config/arm/arm.c (arm_get_pcs_model): Likewise.
6868         * config/avr/avr.c (init_cumulative_args): Likewise.
6869         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6870         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6871         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
6872         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6873         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6874         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6875         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6876         * dwarf2out.c (gen_subprogram_die): Likewise.
6877         * function.c (allocate_struct_function): Likewise.
6878         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
6879         (deserves_ellipsis): Delete.
6880
6881 2010-08-09  Richard Guenther  <rguenther@suse.de>
6882
6883         * tree-ssa-copy.c (cached_last_copy_of): Remove.
6884         (valueize_val): New function.
6885         (get_last_copy_of): Remove.
6886         (set_copy_of_val): Simplify.
6887         (dump_copy_of): Likewise.
6888         (copy_prop_visit_cond_stmt): Use valueize_val.
6889         (copy_prop_visit_phi_node): Properly handle unvisited names.
6890         Drop code managing copy-of chains.
6891         (init_copy_prop): Adjust.
6892         (fini_copy_prop): Likewise.
6893         (execute_copy_prop): Remove obsolete comment.
6894
6895 2010-08-09  Richard Guenther  <rguenther@suse.de>
6896
6897         PR middle-end/44632
6898         * function.c (gimplify_parameters): Do not clear addressable
6899         bit of the original parameter.
6900
6901 2010-08-09  Richard Guenther  <rguenther@suse.de>
6902
6903         PR middle-end/45212
6904         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
6905         alignment from MEM_REF offset only if we took it from the
6906         base object.
6907
6908 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
6909
6910         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
6911
6912 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6913
6914         * c-tree.h (build_arg_info): Declare.
6915         * c-decl.c (build_arg_info): Define.
6916         (get_parm_info): Call it.  Delete initialization code.
6917         * c-parser.c (c_parser_parms_declarator): Likewise.
6918         (c_parser_parms_list_declaractor): Likewise.
6919
6920 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6921
6922         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
6923         (struct c_arg_info): Change type of tags field.
6924         * c-decl.c (grokdeclarator): Update for changed type of tags field.
6925         (get_parm_info): Likewise.
6926         (store_parm_decls_newstyle): Likewise.
6927
6928 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6929
6930         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
6931         (branch_island_list): Delete.
6932         (branch_islands): Declare.
6933         (add_compiler_branch_island): Adjust for branch_islands instead of
6934         branch_island_list.
6935         (macho_branch_islands): Likewise.
6936         (no_previous_def): Likewise.
6937         (get_prev_label): Likewise.
6938
6939 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6940
6941         PR boehm-gc/34544
6942         * gthr-posix.h (__gthread_start): Delete.
6943         (__gthread_active_init): Use pthread_default_stacksize_np instead of
6944         pthread_create to determine if hpux pthreads are active.
6945         * gthr-posix95.h (__gthread_start): Delete.
6946         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
6947
6948 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
6949
6950         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
6951         _WIN64 not expanded.
6952
6953 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
6954             H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         PR target/45213
6957         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
6958         to output 32bit SFmode immediate as 8 byte sign extended value.
6959
6960 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6961
6962         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6963         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6964         (SUBWORD_BOOL_CAS): Likewise.
6965         (SUBWORD_SYNC_OP): Likewise.
6966         (SUBWORD_TEST_AND_SET): Likewise.
6967         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6968         (SUBWORD_SYNC_OP): Likewise.
6969         (OP_AND_FETCH_WORD): Likewise.
6970
6971 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6972
6973         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
6974         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
6975         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
6976         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
6977         generic part.
6978         (cortex_a9_sched_adjust_cost): New function.
6979         (xscale_sched_adjust_cost): New function.
6980         * config/arm/arm-protos.h (struct tune_params): New field
6981         sched_adjust_cost.
6982         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
6983
6984 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
6985
6986         PR target/44942
6987         * config/sparc/sparc.c (function_arg_advance): Always take into account
6988         the padding, if any.
6989
6990 2010-08-06  Richard Guenther  <rguenther@suse.de>
6991
6992         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
6993         (dump_lattice_value): Dump it.
6994         (get_default_value): Adjust.
6995         (get_constant_value): Likewise.
6996         (set_value_varying): Likewise.
6997         (set_lattice_value): Make sure to not go up the lattice
6998         with bitwise constant values.
6999         (get_value_for_expr): Handle ADDR_EXPRs.
7000         (value_to_double_int): New function.
7001         (get_value_from_alignment): Likewise.
7002         (do_dbg_cnt): Adjust.
7003         (ccp_lattice_meet): Handle partially constant values.
7004         (bit_value_unop_1): New function.
7005         (bit_value_binop_1): Likewise.
7006         (bit_value_unop): Likewise.
7007         (bit_value_binop): Likewise.
7008         (evaluate_stmt): Track partially constant values if
7009         flag_tree_bit_ccp is set.
7010         (ccp_fold_stmt): Dump if we folded a predicate.
7011         (ccp_visit_stmt): Adjust.
7012         * common.opt (ftree-bit-ccp): New flag.
7013         * doc/invoke.texi (ftree-bit-ccp): Document.
7014         * opts.c (decode_options): Enable bit-CCP at -O1.
7015
7016 2010-08-06  Alan Modra  <amodra@gmail.com>
7017
7018         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
7019         and -mrelocatable-lib description.
7020
7021 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7022
7023         From Martin Thuresson  <martint@google.com>
7024         * postreload.c (reload_cse_simplify_operands): Use
7025         SET_REGNO_RAW instead of SET_REGNO.
7026         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
7027         SET_REGNO.
7028         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
7029         instead of SET_REGNO.
7030         * rtl.h (SET_REGNO_RAW): New macro.
7031
7032 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
7033
7034         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
7035         computations.  Fix formatting issues.
7036         (num_sign_bit_copies1): Likewise.
7037         (canonicalize_condition): Likewise.
7038
7039 2010-08-05  Richard Henderson  <rth@redhat.com>
7040
7041         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
7042         (floor_log2): Use clz_hwi.
7043         (exact_log2): Use ctz_hwi.
7044         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
7045         * builtins.c (fold_builtin_bitop): Use them.
7046         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7047         * combine.c (get_pos_from_mask): Use ctz_hwi.
7048         * double-int.c (double_int_ctz): Likewise.
7049         * explow.c (force_reg): Likewise.
7050         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
7051
7052 2010-08-05  Richard Henderson  <rth@redhat.com>
7053
7054         PR target/45189
7055         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
7056         the alignment constant is properly sign-extended.
7057
7058 2010-08-05  Richard Guenther  <rguenther@suse.de>
7059
7060         * expr.c (store_expr): Use emit_block_move only if both
7061         source and target are MEMs.  Use store_bit_field if only
7062         the target is a MEM.
7063
7064 2010-08-05  Richard Henderson  <rth@redhat.com>
7065
7066         PR debug/45188
7067         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
7068         (INCOMING_RETURN_ADDR_RTX): Likewise.
7069         (dwarf2out_do_frame): Remove conditional compilation.
7070         (dwarf2out_frame_init): Likewise.
7071
7072 2010-08-05  Nicolas Setton  <setton@adacore.com>
7073
7074         * gcov.c (flag_display_progress): New static variable.
7075         (main): Display progress info on standard output if requested.
7076         (options): Add -d/--display-progress.
7077         (print_usage): Print them.
7078         (process_args): Handle them.
7079         * doc/gcov.texi: Document them.
7080
7081 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7082
7083         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
7084         (ipcp_insert_stage): Redirect only edges not flagged with
7085         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
7086         discovered constants.
7087
7088 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7089
7090         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
7091         (struct ipa_param_descriptor): New fields types and
7092         cannot_devirtualize.
7093         (ipa_param_cannot_devirtualize_p): New function.
7094         (ipa_param_types_vec_empty): Likewise.
7095         (ipa_make_edge_direct_to_target): Declare.
7096         * ipa-cp.c: Fixed first stage driver name in initial comment,
7097         described devirtualization there too.
7098         (ipcp_analyze_node): Call ipa_analyze_params_uses.
7099         (ipcp_print_all_lattices): Print devirtualization info.
7100         (ipa_set_param_cannot_devirtualize): New function.
7101         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
7102         lattice to BOTTOM.
7103         (ipcp_init_stage): Merged into...
7104         (ipcp_generate_summary): ...its caller.
7105         (ipcp_change_tops_to_bottom): Also process type lists.
7106         (ipcp_add_param_type): New function.
7107         (ipcp_copy_types): Likewise.
7108         (ipcp_propagate_types): Likewise.
7109         (ipcp_propagate_stage): Also propagate types.
7110         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
7111         Also return true if propagated types require it.
7112         (ipcp_update_callgraph): Dump redirection info.
7113         (ipcp_process_devirtualization_opportunities): New function.
7114         (ipcp_const_param_count): Include known type information.
7115         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
7116         on new node.  Fixed formatting.
7117         * ipa-prop.c (make_edge_direct_to_target): Renamed to
7118         ipa_make_edge_direct_to_target and changed all callers.  Made
7119         externally visible.
7120         (ipa_node_duplication_hook): Duplicate types vector.
7121         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
7122         redirect outgoing calls for which we can't get a decl from the
7123         statement.  Check that we can get a decl from the call statement.
7124         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7125         ipa_analyze_params_uses only when ipa-cp is disabled.
7126         * tree-inline.c (get_indirect_callee_fndecl): Removed.
7127         (expand_call_inline): Do not call get_indirect_callee_fndecl.
7128         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
7129         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
7130
7131 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7132
7133         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
7134         temporary. Emit move from temporary to accum, so REG_EQUAL note will
7135         be attached to this insn in correct mode.
7136
7137 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7138
7139         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7140         using REGNO of base_reg directly.
7141
7142 2010-08-05  Jie Zhang  <jie@codesourcery.com>
7143
7144         PR tree-optimization/45144
7145         * tree-sra.c (type_consists_of_records_p): Return false
7146         if the record contains bit-field.
7147
7148 2010-08-04  Richard Henderson  <rth@redhat.com>
7149
7150         * config/i386/i386.c (struct ix86_frame): Remove padding and
7151         to_allocate members.
7152         (ix86_compute_frame_layout): Don't store them.
7153         (ix86_can_use_return_insn_p): Use a more direct and more obviously
7154         correct condition for the position of the stack pointer.
7155         (ix86_expand_prologue): Compute remaining stack allocation based
7156         on the ultimate stack pointer offset.
7157         (ix86_expand_epilogue): Use more obvious expressions testing for
7158         the stack pointer already pointing to the saved registers.
7159
7160         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7161         duplication deconstructing the frame pointer.  Simplify
7162         deallocation of the local stack frame.
7163
7164         * reg-notes.def (CFA_EXPRESSION): New.
7165         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7166         (dwarf2out_frame_debug_cfa_expression): New.
7167         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7168
7169         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7170         * config/i386/i386.c (ix86_expand_prologue): Set it.
7171         (ix86_expand_epilogue): Clear it.
7172         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7173         context, add REG_CFA_EXPRESSION notes.
7174
7175         * config/i386/i386.h (struct machine_frame_state): Rename from
7176         machine_cfa_state.  Add members tracking SP and FP regardless
7177         of the current CFA register.
7178         (ix86_cfa_state): Remove.
7179         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7180         and sse_reg_save_offset members.
7181         (ix86_compute_frame_layout): Set them.
7182         (gen_push): Increment sp_offset too.
7183         (choose_baseaddr_len, choose_baseaddr): New.
7184         (ix86_emit_save_reg_using_mov): New.
7185         (ix86_emit_save_regs_using_mov): Use it.
7186         (ix86_emit_save_sse_regs_using_mov): Likewise.
7187         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7188         compare vs the saved red_zone_offset.
7189         (pro_epilogue_adjust_stack): Adjust sp_offset.
7190         (ix86_adjust_stack_and_probe): Likewise.
7191         (ix86_expand_prologue): Set up, use, and validate the new
7192         frame_state_info members.  Use gen_frame_mem.
7193         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7194         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
7195         new frame_state_info members.
7196         (ix86_emit_leave): Likewise.
7197         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
7198         out-of-range stack pointer offsets here.
7199         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7200         (ix86_expand_epilogue): Use and validate the new frame_state_info
7201         members.  Break up and simplify the logic selecting the
7202         restore_regs_via_mov code path.  Ensure that there will be no
7203         out-of-range stack pointer offsets.
7204
7205         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7206
7207         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7208         argument name to reflect the expected tree; fix indentation.
7209         (ix86_asm_output_function_label): Output the entire 32-bit
7210         ms_hook here as bytes ...
7211         (ix86_expand_prologue): ... not here as insns.  Attach the
7212         unwind info for the ms_hook to a blockage insn.
7213         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7214         (ix86_ms_bitfield_layout_p): Fix indentation.
7215         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7216
7217         * config/i386/i386.c (ix86_using_red_zone): New.
7218         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7219         ix86_expand_prologue, ix86_force_to_memory): Use it.
7220
7221         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7222         saving the int registers.
7223
7224         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7225         and DWARF2_UNWIND_INFO conditional compilation.
7226
7227 2010-08-04  Richard Henderson  <rth@redhat.com>
7228
7229         PR debug/45171
7230         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7231         an is_naming_typedef_decl.
7232
7233 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
7234
7235         PR rtl-optimization/45162
7236         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7237         * dce.c (word_dce_process_block): Likewise.
7238
7239 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
7240
7241         PR target/44583
7242         * config/ia64/constraints.md (Z): New.
7243         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7244         (xfreg_or_signed_fp01_operand): New.
7245         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7246         with fr_reg_or_signed_fp01_operand and constraint G with Z.
7247         (subsf3): Ditto.
7248         (*maddsf4): Ditto.
7249         (*msubsf4): Ditto.
7250         (adddf3): Ditto.
7251         (adddf3_trunc): Ditto.
7252         (subdf3): Ditto.
7253         (*subdf3_trunc): Ditto.
7254         (*madddf4): Ditto.
7255         (*madddf4_trunc): Ditto.
7256         (*msubdf4): Ditto.
7257         (*msubdf4_trunc): Ditto.
7258         (addxf3): Replace xfreg_or_fp01_operand with
7259         xfreg_or_signed_fp01_operand and constraint G with Z.
7260         (*addxf3_truncsf): Ditto.
7261         (*addxf3_truncdf): Ditto.
7262         (subxf3): Ditto.
7263         (*subxf3_truncsf): Ditto.
7264         (*subxf3_truncdf): Ditto.
7265         (*maddxf4): Ditto.
7266         (*maddxf4_truncsf): Ditto.
7267         (*maddxf4_truncdf): Ditto.
7268         (*msubxf4): Ditto.
7269         (*msubxf4_truncsf): Ditto.
7270         (*msubxf4_truncdf): Ditto.
7271
7272 2010-08-04  Richard Guenther  <rguenther@suse.de>
7273
7274         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7275         if either alias-set is zero.
7276
7277 2010-08-04  Richard Guenther  <rguenther@suse.de>
7278
7279         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7280         * tree-ssa-ccp.c: ... here.
7281         * tree-ssa-copy.c: ... and here.
7282         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7283         value_range_t): Move ...
7284         * tree-vrp.c: ... here.
7285         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7286         (substitute_and_fold): Adjust prototype.
7287         * tree-ssa-propagate.c (replace_uses_in): Adjust.
7288         (replace_phi_args_in): Likewise.
7289         (substitute_and_fold): Take callback to query lattice instead
7290         of pointer to lattice.  Replace SSA name defs with lattice
7291         values first.
7292         * tree-ssa-ccp.c (ccp_finalize): Adjust.
7293         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7294         (get_value): New function.
7295         (fini_copy_prop): Adjust.
7296         * tree-vrp.c (vrp_finalize): Adjust.
7297
7298 2010-08-04  Richard Guenther  <rguenther@suse.de>
7299
7300         PR middle-end/45176
7301         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7302         points-to set for original MEM_REF.
7303
7304 2010-08-04  Richard Guenther  <rguenther@suse.de>
7305
7306         * tree-ssa-ccp.c (get_constant_value): New function.
7307         (get_rhs_assign_op_for_ccp): Remove.
7308         (valueize_op): New function.
7309         (ccp_fold): Use get_constant_value and valueize_op.
7310         (fold_const_aggregate_ref): Likewise.
7311         (ccp_fold_stmt): Likewise.
7312         (visit_assignment): Simplify.
7313
7314 2010-08-04  Richard Guenther  <rguenther@suse.de>
7315
7316         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7317         * double-int.h (double_int_ctz): Declare.
7318         * double-int.c (double_int_ctz): New function.
7319
7320 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7321
7322         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7323         Define.
7324         picochip_expand_movmemhi : Expand movmem pattern.
7325         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7326         Declare.
7327         * config/picochip/picochip.md (movmemhi) : New pattern.
7328
7329 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7330
7331         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7332
7333 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
7334
7335         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7336         NEG as operand of a MULT by merging it with the other operand.
7337         * combine.c (make_compound_operation): Use trunc_int_for_mode when
7338         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
7339         MULT.
7340         * config/arm/constraints.md (M): Examine only 32 bits of a
7341         HOST_WIDE_INT.
7342         * config/arm/predicates.md (power_of_two_operand): Likewise.
7343
7344 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7345
7346         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7347         non-NOTE insns.
7348
7349 2010-08-03  Jan Hubicka  <jh@suse.cz>
7350
7351         * ipa-split.c (struct split_point): Add split_part_set_retval.
7352         (find_retval): Forward declare.
7353         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7354         (consider_split): Compute current->split_part_set_retval.
7355         (visit_bb): Do not look into return value.
7356         (split_function): Handle !split_part_set_retval
7357
7358 2010-08-03  Martin Jambor  <mjambor@suse.cz>
7359
7360         * tree-sra.c (completely_scalarize_record): New parameter REF, create
7361         its own access->expr intead of using build_ref_for_offset.
7362
7363 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
7364
7365         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7366         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7367         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7368         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7369         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7370         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7371         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7372         DEFAULT_SWITCH_TAKES_ARG.
7373         * config/rx/rx.opt (-patch=): Remove option.
7374         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7375         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7376         * doc/invoke.texi (RX Options): Remove -patch=.
7377         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7378         (option_map): Remove --profile-blocks, --quiet and --silent.
7379
7380 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7381
7382         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7383         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7384         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
7385         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7386         Update calls to ix86_expand_compare and ix86_expand_branch.
7387         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
7388         ix86_expand_compare.
7389         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
7390         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7391         Make static.
7392         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7393         and ix86_compare_op1.  Update calls to ix86_expand_compare.
7394         (ix86_expand_int_movcc): Ditto.
7395         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
7396         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7397         (ix86_expand_setcc): Ditto.
7398         (ix86_expand_compare): Remove prototype.
7399         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7400         ix86_compare_op0 and ix86_compare_op1.  Update calls
7401         to ix86_expand_branch to directly pass operands[1] and operands[2].
7402         (cbranchxf4): Ditto.
7403         (cbranch<MODEF:mode>4): Ditto.
7404         (cbranchcc4): Ditto.
7405         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7406         Update calls to ix86_expand_setcc to directly pass operands[2] and
7407         operands[3].
7408         (cstorexf4): Ditto.
7409         (cstore<MODEF:mode>4): Ditto.
7410         (cstorecc4): Ditto.
7411
7412 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7413
7414         PR target/45063
7415         * caller-save.c (save_call_clobbered_regs): Remove regs from
7416         hard_regs_saved when they are set.
7417
7418 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7419
7420         PR target/41089
7421         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7422         as volatile.
7423
7424 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
7425
7426         * common.opt (ftree-loop-distribute-patterns): New.
7427         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7428         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7429         at -O3.
7430         * tree-data-ref.c (stores_zero_from_loop): New.
7431         * tree-data-ref.h (stores_zero_from_loop): Declared.
7432         * tree-loop-distribution.c (tree_loop_distribution): Call
7433         stores_zero_from_loop.
7434         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7435
7436 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7437
7438         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7439         into account.
7440
7441         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7442         * config/arm/arm.c (thumb1_code): New variable.
7443         (arm_override_options): Set it.
7444         (thumb1_final_prescan_insn): Keep track of condition code status.
7445         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7446         jumps that depend on them.
7447         * config/arm/arm.h (thumb1_code): Declare variable.
7448         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
7449         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7450         thumb1_cc_mode.
7451         (CC_STATUS_INIT): New macro.
7452         * config/arm/constraints.md (Pd): New constraint.
7453         * config/arm/predicates.md (noov_comparison_operator): New predicate.
7454         * config/arm/arm.md (is_thumb1): New define_attr.
7455         (conds): Set default to "clob" when generating Thumb1 code.
7456         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
7457         code are set.  Use two-operand assembly syntax.
7458         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
7459         pattern.
7460         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7461         codes are set.  Use two-operand assembly syntax.
7462         (zero_extendhisi splitter): Remove constraints.
7463         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7464         thumb1_movsf_insn): Set conds attribute as appropriate.
7465         (cbranchsi4_insn): Use condition code status from struct
7466         machine_function to determine whether the comparison can be eliminated.
7467         Discourage the alternative using high registers.
7468         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7469         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7470         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7471         subsi3_cbranch): Delete.
7472         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7473         one subtract and one cbranch insn.
7474
7475         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7476         thumb2_movdf_soft_insn): Delete patterns.
7477         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7478         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7479         (pool_range, neg_pool_range): Use them to define defaults.
7480         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7481         and allow for TARGET_32BIT.
7482
7483         PR target/40457
7484         * config/arm/arm.h (arm_regs_in_sequence): Declare.
7485         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7486         load_multiple_sequence, store_multiple_sequence): Delete
7487         declarations.
7488         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7489         declarations.
7490         * config/arm/ldmstm.md: New file.
7491         * config/arm/arm.c (arm_regs_in_sequence): New array.
7492         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
7493         CHECK_REGS.  All callers changed.
7494         If SAVED_ORDER is nonnull, copy the computed order into it.
7495         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
7496         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
7497         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
7498         If SAVED_ORDER is nonnull, copy the computed order into it.
7499         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
7500         like REGS.  Handle Thumb mode.
7501         (arm_gen_load_multiple_1): New function, broken out of
7502         arm_gen_load_multiple.
7503         (arm_gen_store_multiple_1): New function, broken out of
7504         arm_gen_store_multiple.
7505         (arm_gen_multiple_op): New function, with code from
7506         arm_gen_load_multiple and arm_gen_store_multiple moved here.
7507         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7508         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
7509         changed.
7510         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7511         * config/arm/predicates.md (commutative_binary_operator): New.
7512         (load_multiple_operation, store_multiple_operation): Handle more
7513         variants of these patterns with different starting offsets.  Handle
7514         Thumb-1.
7515         * config/arm/arm.md: Include "ldmstm.md".
7516         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7517         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7518         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7519         peepholes): Delete.
7520         * config/arm/ldmstm.md: New file.
7521         * config/arm/arm-ldmstm.ml: New file.
7522
7523         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7524         if statement which adds extra costs to frame-related expressions.
7525
7526 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7527
7528         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7529
7530 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7531
7532         PR target/45142
7533         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7534         alternative 2.
7535         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7536         split V4SI operands.
7537
7538 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7539
7540         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7541         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7542         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7543         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7544
7545 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7546
7547         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7548         LOCAL_INCLUDE_DIR.
7549
7550 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7551
7552         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7553         used in the call to optab_for_tree_code.  Fix the second
7554         is_widening_mult_p call.  Check that both unwidened operands
7555         have the same sign.
7556
7557 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7558
7559         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7560
7561 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7562
7563         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7564
7565 2010-07-30  DJ Delorie  <dj@redhat.com>
7566
7567         * config/rx/predicates.md (rx_constshift_operand): New.
7568         * config/rx/rx.md (zs_cond): New.
7569         (cbranchsi4): Remove mode.
7570         (*cbranchsi4_<code>): Likewise.
7571         (*tstbranchsi4_<code>): New.
7572         (*tstbranchsi4r_<code>): New.
7573         (*tstbranchsi4m_eq): New.
7574         (*tstbranchsi4m_ne): New.
7575         (cbranchsf4): Remove mode.
7576         (*cbranchsf4_<code>): Likewise.
7577
7578 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7579
7580         * rtlanal.c (simplify_subreg_regno): Don't treat
7581         HARD_FRAME_POINTER_REGNUM specially.
7582
7583 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7584
7585         * common.opt (-G): Don't define option here.
7586         * config/g.opt: New.
7587         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7588         rs6000/powerpc and score targets.
7589         * opts.c (common_handle_option): Don't handle -G here.
7590         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7591         * config/frv/frv.c (frv_handle_option): Handle -G.
7592         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7593         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7594         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7595         * config/mips/mips.c (mips_handle_option): Handle -G.
7596         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7597         * config/score/score.c (score_handle_option): Handle -G.
7598
7599 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7600
7601         * config/mmix/mmix.c: Include basic-block.h.
7602
7603 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7604
7605         PR debug/45055
7606         PR rtl-optimization/45137
7607         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7608         prototypes.
7609         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7610         New functions.
7611         * combine.c (next_nonnote_nondebug_insn): Removed.
7612         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7613         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7614         * sched-deps.c (sched_analyze_insn): Likewise.
7615         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7616         * rtlanal.c (canonicalize_condition): Likewise.
7617         * postreload.c (reload_combine_recognize_pattern): Likewise.
7618         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7619
7620 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7621
7622         * config/i386/i386.md (int_cond): Remove code iterator.
7623         (fp_cond): Ditto.
7624         (cbranch<mode>4): Use ordered_comparison_operator predicate
7625         for operator0.
7626         (cstore<mode>4): Ditto for operator1.
7627         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7628         (add<mode>cc): ditto.
7629
7630 2010-07-30  Richard Guenther  <rguenther@suse.de>
7631
7632         PR middle-end/45141
7633         * expr.c (expand_expr_real_1): Check for not handled base address.
7634
7635 2010-07-30  Richard Guenther  <rguenther@suse.de>
7636
7637         * ipa-prop.c (ipa_modify_formal_parameters): Use
7638         build_distinct_type_copy.
7639
7640 2010-07-30  Anthony Green  <green@moxielogic.com>
7641
7642         * config/moxie/rtems.h: New file.
7643         * config.gcc: Add moxie-rtems support.
7644
7645 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7646
7647         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7648         df flags as in run_fast_df_dce.
7649
7650 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7651
7652         Revert:
7653         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7654
7655         * rtl.def (NOTE): Swap operands 4 and 5.
7656         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7657         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7658         Adjust accordingly.
7659         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7660
7661 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7662
7663         PR debug/45110
7664         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7665         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7666         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7667         formal parameters.
7668         (gen_decl_die): Change return type to dw_die_ref, return what
7669         gen_formal_parameter_die returned.
7670
7671 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7672
7673         * dbgcnt.def (eipa_sra): New counter.
7674         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7675
7676 2010-07-29  Xinliang David Li  <davidxl@google.com>
7677
7678         PR bootstrap/45119
7679         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7680         in revision 162652.
7681
7682 2010-07-29  Richard Guenther  <rguenther@suse.de>
7683
7684         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7685         (TV_TREE_STORE_CCP): Likewise.
7686         (TV_TREE_REDPHI): Likewise.
7687
7688 2010-07-29  Richard Guenther  <rguenther@suse.de>
7689
7690         * double-int.h (double_int_and_not): New function.
7691         * combine.c (try_combine): Use it.
7692         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7693
7694 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7695
7696         PR rtl-optimization/42575
7697         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7698         Argument AU removed.  All callers changed.  Ignore artificial refs.
7699         Use return value of df_word_lr_simulate_defs to decide whether an insn
7700         is necessary.
7701         (fast_dce): Rename arg to WORD_LEVEL.
7702         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
7703         static.
7704         (pass_fast_rtl_byte_dce): Delete.
7705         * dce.h (run_word_dce): Declare.
7706         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7707         All callers changed.  Simplify code to only deal with two-word regs.
7708         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7709         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7710         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7711         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7712         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7713         (df_word_lr_mark_ref): Declare.
7714         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7715         df_word_lr_simulate_uses): Declare or rename from byte variants.
7716         (df_byte_lr_simulate_artificial_refs_at_top,
7717         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7718         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7719         declarations.
7720         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7721         (enum df_mm): Delete.
7722         * df-byte-scan.c: Delete file.
7723         * df-problems.c (df_word_lr_problem_data): Renamed from
7724         df_byte_lr_problem_data, all members deleted except for
7725         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
7726         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7727         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7728         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7729         df_byte_lr_confluence_0): Delete functions.
7730         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7731         callers changed.
7732         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7733         Don't initialize members that were deleted, don't try to discover data
7734         about registers.  Ignore hard regs.
7735         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7736         (df_word_lr_mark_ref): New function.
7737         (df_word_lr_bb_local_compute): Renamed from
7738         df_byte_bb_lr_local_compute; all callers changed.  Use
7739         df_word_lr_mark_ref.  Assert that artificial refs don't include
7740         pseudos.  Ignore hard registers.
7741         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7742         Assert that exit block uses don't contain pseudos.
7743         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7744         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7745         callers changed.  Ignore hard regs.
7746         (df_word_lr_transfer_function): Renamed from
7747         df_byte_lr_transfer_function; all callers changed.
7748         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7749         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7750         changed.
7751         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7752         callers changed.
7753         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7754         confluence operator 0 set to NULL.
7755         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7756         callers changed.
7757         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7758         Return bool, true if bitmap changed or insn otherwise necessary.
7759         All callers changed.  Simplify using df_word_lr_mark_ref.
7760         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7761         all callers changed.  Simplify using df_word_lr_mark_ref.
7762         * lower-subreg.c: Include "dce.h"
7763         (decompose_multiword_subregs): Call run_word_dce if df available.
7764         * Makefile.in (lower-subreg.o): Adjust dependencies.
7765         (df-byte-scan.o): Delete.
7766         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7767
7768 2010-07-29  Richard Guenther  <rguenther@suse.de>
7769
7770         * tree.c (build_vector): Assert that the vector constant
7771         has enough elements.
7772         (build_vector_from_ctor): Pad with trailing zeros.
7773
7774 2010-07-29  Richard Guenther  <rguenther@suse.de>
7775
7776         PR tree-optimization/45120
7777         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7778         Handle offset in DEREFs properly.
7779         (get_constraint_for_1): Handle MEM_REF offset properly.
7780
7781 2010-07-29  Richard Guenther  <rguenther@suse.de>
7782
7783         PR middle-end/45034
7784         * convert.c (convert_to_integer): Always use an unsigned
7785         type for narrowed negate and bitwise not.
7786
7787 2010-07-29  Ira Rosen  <irar@il.ibm.com>
7788
7789         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7790         to outer loop when creating reduction epilogue for double reduction,
7791         and switch back to the inner loop when updating the phi nodes.
7792         Update uses of outer loop exit phi nodes in double reduction (instead
7793         of uses of reduction).
7794
7795 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7796
7797         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7798         popcount on power7 and parity on power6 systems.
7799         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7800         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7801         instructions.
7802
7803         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7804         (UNSPEC_PARITY): Ditto.
7805         (SFDF): New iterator for SF/DF.
7806         (rreg2): New mode attribute for floating register constraint.
7807         (TARGET_FLOAT): New mode attribute for whether single/double float
7808         is supported.
7809         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7810         pattern.
7811         (parity<mode>2_cmpb): New insn for parity on power6 and newer
7812         machines.
7813         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7814         pattern.  Add support for fcpsgn instruction added in power6.
7815         (copysignsf3): Delete.
7816         (copysigndf3): Delete.
7817         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
7818         instead of if_then_else in RTL to avoid problems with -0.
7819
7820         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7821         of if_then_else to mirror scalar code.
7822         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7823         rs6000.md.
7824
7825         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7826         instead of if_then_else.
7827
7828 2010-07-28  Xinliang David Li  <davidxl@google.com>
7829
7830         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7831         (dump_cand): Dump var_before/after.
7832         (htab_inv_expr_eq): New function.
7833         (htab_inv_expr_hash): New function.
7834         (tree_ssa_iv_optimize_init): Support pseudo invariants.
7835         (add_candidate_1): consider base type precision.
7836         (set_use_iv_cost): New parameter.
7837         (adjust_setup_cost): Use profile information.
7838         (get_address_cost): Do not hard code width in computing address
7839         offset limits.
7840         (compare_aff_trees): New function.
7841         (get_loop_invariant_expr_id): New function.
7842         (get_computation_cost_at): New parameter and use profile information.
7843         (get_computation_cost): New parameter.
7844         (determine_use_iv_cost_generic): Pass new parameter.
7845         (determine_use_iv_cost_address): Ditto.
7846         (determine_use_iv_cost_condition): Ditto.
7847         (autoinc_possible_for_pair): Ditto.
7848         (determine_use_iv_costs): More dumps.
7849         (iv_ca_get_num_inv_exprs): New function.
7850         (iv_ca_recount_cost): Consider loop invariants in register pressure
7851         cost.
7852         (iv_ca_add_use): New parameter.
7853         (iv_ca_dump): Better dumping.
7854         (iv_ca_extend): New parameter.
7855         (try_add_cand_for): Attempt to get better partial solution.
7856         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
7857         (create_new-ivs): More dumps.
7858         (rewrite_use_compare): Ditto.
7859         (free_loop_data): More cleanup.
7860         (treee_ssa_iv_optimize_finalize): Ditto.
7861
7862 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
7863
7864         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
7865         * config/i386/i386.c (ix86_profile_before_prologue): New.
7866         (override_options): Add special handling for -mfentry.
7867         (ix86_function_regparm): Likewise.
7868         (ix86_function_sseregparm): Likewise.
7869         (ix86_frame_pointer_required): Likewise.
7870         (ix86_expand_prologue): Check for ms_hook_prologue.
7871         (x86_function_profiler): Adjust mcount output.
7872         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
7873         * config/i386/i386.opt (mfentry): New.
7874         * doc/invoke.texi (mfentry): Add documentation.
7875         * doc/tm.texi: Regenerated..
7876         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
7877         * final.c (final_start_function): Replace macro
7878         PROFILE_BEFORE_PROLOGUE by target hook.
7879         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7880         * target.def (profile_before_prologue): New hook.
7881         * targhooks.c (default_profile_before_prologue): New.
7882         * targhooks.h (default_profile_before_prologue): New.
7883
7884 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
7885
7886         PR debug/45105
7887         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
7888
7889         PR debug/45103
7890         * dwarf2out.c (dwarf2out_var_location): Always consider
7891         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
7892
7893 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7894
7895         PR rtl-optimization/45107
7896         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
7897
7898 2010-07-28  Richard Guenther  <rguenther@suse.de>
7899
7900         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
7901         (set_lattice_value): Do not query an old default value.
7902         (get_value_for_expr): New function.  Properly canonicalize
7903         float values.
7904         (ccp_visit_phi_node): Use it.
7905
7906 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
7907
7908         * config/arm/arm.c (arm_pcs_default): Remove static.
7909         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
7910         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
7911         (arm_pcs_default): Declare.
7912
7913 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
7914
7915         * config/rs6000/rs6000.c (rs6000_override_options):
7916         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
7917         ... to darwin_rs6000_override_options.
7918         (rs6000_return_in_memory): Update preceding comment for darwin
7919         64 bit ABI.  Use TARGET_MACHO inline.
7920         (rs6000_darwin64_struct_check_p): New.
7921         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
7922         (function_arg): Likewise.
7923         (rs6000_arg_partial_bytes): Likewise.
7924         (rs6000_function_value): Likewise.
7925
7926 2010-07-28  Andi Kleen  <ak@linux.intel.com>
7927
7928         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
7929
7930 2010-07-28  Richard Guenther  <rguenther@suse.de>
7931
7932         PR middle-end/44903
7933         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
7934         targets try harder to not generate unaligned accesses.
7935
7936 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7937
7938         PR rtl-optimization/45101
7939         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
7940         for gcse-las.
7941
7942 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7943
7944         PR tree-optimization/44885
7945         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
7946         with non-aliased component.
7947
7948 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
7949
7950         * config/darwin-driver.c (SWITCH_TAKES_ARG,
7951         WORD_SWITCH_TAKES_ARG): Remove.
7952         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7953         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
7954         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
7955         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
7956         definitions from gcc.c.
7957         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
7958         defaults.h.
7959         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
7960         Move to defaults.h.
7961         * opts-common.c: Include tm.h.
7962         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
7963         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
7964         Handle more than one argument.  Set canonical_option_num_elements.
7965         (decode_cmdline_options_to_array): Set
7966         canonical_option_num_elements and trailing elements of
7967         canonical_option.
7968         * opts.h (struct cl_decoded_option): Allow four elements in
7969         canonical_option.  Add field canonical_option_num_elements.
7970         * Makefile.in (opts-common.o): Update dependencies.
7971
7972 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7973
7974         PR middle-end/44790
7975         PR middle-end/44993
7976         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
7977         sure the base has address_mode before adding the offset.
7978
7979 2010-07-27  Xinliang David Li  <davidxl@google.com>
7980
7981         * tree-flow.h (create_mem_ref): Add one new parameter.
7982         * tree-ssa-address.c (create_mem_ref): New parameter.
7983         (addr_to_parts): Ditto.
7984         (move_variant_to_index): New function.
7985         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
7986
7987 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7988
7989         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
7990         4 and 5.
7991         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
7992         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
7993         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
7994         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
7995         CODE_LABELs and NOTEs.
7996         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
7997         * combine.c (try_combine): Likewise.
7998         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7999         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
8000
8001 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8002
8003         * coretypes.h (struct cl_option_handlers): Declare.
8004         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
8005         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
8006         * langhooks-def.h (lhd_handle_option): Declare.
8007         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
8008         * langhooks.c (lhd_handle_option): New.
8009         * langhooks.h (struct lang_hooks): Update prototype and return
8010         value type of handle_option hook.
8011         * optc-gen.awk: Generate target_flags_explicit definition for the
8012         driver.
8013         * opts-common.c: Include diagnostic.h.
8014         (handle_option): Move from opts.c.  Update prototype and return
8015         value type.  Use handlers structure.
8016         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
8017         handlers structure.
8018         (set_option): Move from opts.c.
8019         * opts.c (common_handle_option): Update prototype and return value
8020         type.  Update calls to handle_option and enable_warning_as_error.
8021         (unknown_option_callback, post_handling_callback,
8022         lang_handle_option, target_handle_option): New.
8023         (handle_option, read_cmdline_option): Move to opts-common.c.
8024         (read_cmdline_options): Update prototype.  Update call to
8025         read_cmdline_option.
8026         (decode_options): Initialize and use handlers structure.
8027         (set_option): Move to opts-common.c.
8028         (enable_warning_as_error): Update prototype.  Update call to
8029         handle_option.
8030         * opts.h (struct cl_option_handler_func, struct
8031         cl_option_handlers): New.
8032         (handle_option, enable_warning_as_error): Update prototypes.
8033         (read_cmdline_option): Declare.
8034         * Makefile.in (opts-common.o): Update dependencies.
8035
8036 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8037
8038         * config/arm/arm.c (params.h): Include.
8039         (arm_override_options): Tune gcse-unrestricted-cost.
8040         * config/arm/t-arm (arm.o): Define dependencies.
8041
8042 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8043
8044         PR target/42495
8045         PR middle-end/42574
8046         * basic-block.h (get_dominated_to_depth): Declare.
8047         * dominance.c (get_dominated_to_depth): New function, use
8048         get_all_dominated_blocks as a base.
8049         (get_all_dominated_blocks): Use get_dominated_to_depth.
8050
8051         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
8052         (hoist_exprs): Remove.
8053         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
8054         (compute_code_hoist_vbeinout): Add debug print outs.
8055         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
8056
8057         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
8058         quadratic behavior.
8059         * params.h (MAX_HOIST_DEPTH): New macro.
8060         * doc/invoke.texi (max-hoist-depth): Document.
8061
8062 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8063
8064         PR rtl-optimization/40956
8065         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
8066         constants.
8067
8068 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8069
8070         PR target/42495
8071         PR middle-end/42574
8072         * config/arm/arm.c (legitimize_pic_address): Use
8073         gen_calculate_pic_address pattern to emit calculation of PIC address.
8074         (will_be_in_index_register): New function.
8075         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
8076         (thumb1_legitimate_address_p): Use it provided !strict_p.
8077         * config/arm/arm.md (calculate_pic_address): New expand and split.
8078
8079 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8080
8081         PR target/42495
8082         PR middle-end/42574
8083         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
8084         * config/arm/arm.md (define_split "J", define_split "K"): Make
8085         IRA/reload friendly.
8086
8087 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8088
8089         * gcse.c (insert_insn_end_basic_block): Update signature, remove
8090         unused checks.
8091         (pre_edge_insert, hoist_code): Update.
8092
8093 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8094
8095         PR target/42495
8096         PR middle-end/42574
8097         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
8098
8099 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8100
8101         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
8102
8103 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8104
8105         PR rtl-optimization/40956
8106         PR target/42495
8107         PR middle-end/42574
8108         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
8109         for hoisting.
8110         (hoist_code): Count occurences in current block too.
8111
8112 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8113
8114         * gcse.c (struct expr:max_distance): New field.
8115         (doing_code_hoisting_p): New static variable.
8116         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
8117         simple expressions, don't change behavior for PRE.  Set max_distance.
8118         (insert_expr_in_table): Set new max_distance field.
8119         (hash_scan_set): Update.
8120         (hoist_expr_reaches_here_p): Stop search after max_distance
8121         instructions.
8122         (find_occr_in_bb): New static function.  Use it in ...
8123         (hoist_code): Calculate sizes of basic block before any changes are
8124         done.  Pass max_distance to hoist_expr_reaches_here_p.
8125         (one_code_hoisting_pass): Set doing_code_hoisting_p.
8126
8127         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
8128         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
8129         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
8130         macros.
8131         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
8132         Document.
8133
8134 2010-07-27  Jeff Law  <law@redhat.com>
8135             Maxim Kuvyrkov  <maxim@codesourcery.com>
8136
8137         * gcse.c (compute_transpout, transpout): Remove, move logic
8138         to prune_expressions.
8139         (compute_pre_data): Move pruning of trapping expressions ...
8140         (prune_expressions): ... here.  New static function.
8141         (compute_code_hoist_data): Use it.
8142         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8143
8144 2010-07-27  Xinliang David Li  <davidxl@google.com>
8145
8146         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8147         (rewrite_use_address): Adjust iv update position when needed.
8148
8149 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8150
8151         * dbgcnt.def (hoist_insn): New debug counter.
8152         * gcse.c (hoist_code): Use it.
8153
8154 2010-07-27  Xinliang David Li  <davidxl@google.com>
8155
8156         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8157         (niter_for_single_dom_exit): Passes additional parameter.
8158         (iv_period): Fix comments.
8159         (may_eliminate_iv): Handles multiple exit loops properly.
8160         (free_tree_niter_desc): New function.
8161         (free_loop_data): Frees up loop iteration descriptors.
8162
8163 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8164
8165         PR target/44542
8166         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8167         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8168         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8169         (expand_one_var): Don't consider DECL_ALIGN for variables for
8170         which expand_one_stack_var_at has been already called.
8171
8172         PR testsuite/44701
8173         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8174         constraints on IA-64.
8175
8176 2010-07-27  Jie Zhang  <jie@codesourcery.com>
8177
8178         PR target/44290
8179         Revert:
8180         2010-07-23  Jie Zhang  <jie@codesourcery.com>
8181
8182         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8183         false if ! tree_versionable_function_p.
8184
8185 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8186
8187         * dwarf2out.c (add_data_member_location_attribute): Use
8188         add_AT_unsigned instead of add_AT_int if offset is non-negative.
8189
8190 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8191
8192         * postreload.c (try_replace_in_use): New static function.
8193         (reload_combine_recognize_const_pattern): Use it here.  Allow
8194         substituting into a final add insn, and substituting into a memory
8195         reference in an insn that sets the reg.
8196
8197 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8198
8199         * common.opt (o): Add MissingArgError.
8200         * doc/options.texi (MissingArgError): Document.
8201         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8202         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8203         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8204         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8205         * langhooks.h (struct lang_hooks): Remove missing_argument.
8206         * optc-gen.awk: Handle MissingArgError and output new structure
8207         field initializers.
8208         * opts.c (read_cmdline_option): Use missing_argument_error field
8209         instead of missing_argument langhook.
8210         * opts.h (struct cl_option): Add missing_argument_error field.
8211         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8212
8213 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8214
8215         PR target/29090
8216         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8217         Darwin64 ABI, for zero-sized objects.
8218
8219 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8220
8221         PR target/35491
8222         PR target/29090
8223
8224         Merge from Apple local 4.2.1.
8225         2005-05-11  Stan Shebs  <shebs@apple.com>
8226         Fix 64-bit varargs for Darwin (Radar 4028089).
8227         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8228         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8229         Add argument, add case for 8-byte register half-filled with a float.
8230         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8231         single-precision floats specially.
8232
8233 2010-07-27  Ira Rosen  <irar@il.ibm.com>
8234
8235         PR tree-optimization/44152
8236         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8237         complex numbers for further check.
8238         (vect_supported_load_permutation_p): Check nodes with
8239         complex numbers.
8240
8241 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8242
8243         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8244         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8245         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8246         (LANG_HOOKS_INITIALIZER): Add new hooks.
8247         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8248         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8249         and complain_wrong_lang_p.  Update init_options prototype.
8250         * c-objc-common.c (c_initialize_diagnostics): First call
8251         c_common_initialize_diagnostics.
8252         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8253         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8254         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8255         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8256         (hook_uint_void_0): New.
8257         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8258         (hook_uint_void_0): New.
8259         * opts-common.c (decode_cmdline_option,
8260         decode_cmdline_options_to_array): Also fill in canonical_option field.
8261         * opts.c (complain_wrong_lang): Use langhook to determine whether
8262         to complain instead of special-casing LTO.
8263         (decode_options): Separate lang_mask determination with
8264         option_lang_mask hook from call of init_options hook.
8265         * opts.h (struct cl_decoded_option): Add canonical_option.
8266
8267 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8268
8269         PR tree-optimization/45083
8270         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8271
8272 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8273
8274         * postreload.c (reload_combine_recognize_const_pattern): Move test
8275         for limiting the insn movement to the right scope.
8276
8277         PR rtl-optimization/45051
8278         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8279         than reg_mentioned_p.
8280
8281 2010-07-26  Richard Henderson  <rth@redhat.com>
8282
8283         PR target/44132
8284         * tree-emutls.c: New file.
8285         * Makefile.in (OBJS-common): Add it.
8286         * tree-pass.h (pass_ipa_lower_emutls): Declare.
8287         * passes.c (init_optimization_passes): Add it.
8288
8289         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8290         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8291         * expr.c (emutls_var_address): Delete.
8292         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8293         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8294         (emutls_finish): Delete.
8295         * toplev.c (compile_file): Don't call it.
8296         * tree.h (emutls_decl): Delete.
8297         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8298         (emutls_finish, emutls_finalize_control_var): Delete.
8299         (emutls_object_type): Move to tree-emutls.c.
8300         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8301         default_emutls_var_fields, get_emutls_object_type,
8302         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8303         default_emutls_var_init): Likewise.
8304         (get_variable_section): Don't special case emutls.
8305         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8306         default_elf_select_section, default_unique_section,
8307         default_encode_section_info): Likewise.
8308         * varpool.c (decide_is_variable_needed): Likewise.
8309         * gimple-iterator.c (update_call_edge_frequencies): New
8310         (gsi_insert_on_edge_immediate): Use it.
8311         (gsi_insert_seq_on_edge_immediate): Likewise.
8312         (gsi_commit_one_edge_insert): Likewise.
8313
8314         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8315         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8316         (x86_64_elf_unique_section): Likewise.
8317
8318 2010-07-26  Jan Hubicka  <jh@suse.cz>
8319
8320         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8321         GTY((skip)).
8322
8323 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
8324
8325         * target.def (output_source_filename): New hook.
8326         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8327         * doc/tm.texi: Regenerate.
8328         * toplev.c (output_file_directive) Remove function.
8329         * toplev.h (output_file_directive) Remove.
8330         * output.h (default_asm_output_source_filename,
8331         output_file_directive): Declare.
8332         * varasm.h (default_asm_output_source_filename,
8333         output_file_directive): New functions.
8334
8335         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8336         * config/mips/mips-protos.h (mips_output_filename): Remove.
8337         * config/mips/mips.c (mips_output_filename): Make Static.
8338         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8339
8340 2010-07-26  Richard Guenther  <rguenther@suse.de>
8341
8342         PR tree-optimization/43784
8343         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8344         if the destination is used by the call.
8345
8346 2010-07-26  Richard Guenther  <rguenther@suse.de>
8347
8348         PR middle-end/45073
8349         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8350         SSA updating on being in SSA form.
8351
8352 2010-07-26  Richard Guenther  <rguenther@suse.de>
8353
8354         PR middle-end/45056
8355         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8356
8357 2010-07-26  Richard Guenther  <rguenther@suse.de>
8358
8359         PR tree-optimization/45071
8360         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8361         adjust op->opcode.
8362
8363 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
8364
8365         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8366         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8367         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8368         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8369         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8370         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8371         save_r31, return_r31, save_interrupt, return_interrupt,
8372         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8373         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8374         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8375         new ABI requirements.
8376         (save_r6_r9, L_callt_save_r6_r9): Remove.
8377         * config/v850/predicates.md (even_reg_operand, disp23_operand,
8378         const_float_1_operand const_float_0_operand): New Predicates.
8379         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8380         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8381         * config/v850/t-v850: Update multilibs for new target variants.
8382         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8383         * config/v850/t-v850e: Likewise.
8384         * config/v850/v850.c (v850_issue_rate): New.
8385         (v850_strict_argument_naming): New.
8386         (function_arg): Modify to generate a different ABI.
8387         (print_operand): Update case 'z' to support float modes.
8388         (output_move_single): Modify to generate appropriate and better
8389         assembly.
8390         (v850_float_z_comparison_operator, v850_select_cc_mode,
8391         v850_float_nz_comparison_operator,  v850_gen_float_compare,
8392         v850_gen_compare): New functions to support comparison of float values.
8393         (ep_memory_offset): Add support for V850E2 targets.
8394         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8395         (INTERRUPT_REGPARM_NUM): Remove.
8396         (compute_register_save_size): Add extra case to save/restore long call.
8397         (use_prolog_function): New function to support prologue.
8398         (expand_prologue): Add support for V850E2 targets and modified
8399         as per the current ABI requirements.
8400         (expand_epilogue): Likewise.
8401         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8402         (construct_save_jarl): Likewise.
8403         (construct_dispose_instruction): Update as per the current ABI
8404         requirements.
8405         (construct_prepare_instruction): Likewise.
8406         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8407         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8408         (CPP_SPEC): Updated to support v850e2 targets.
8409         (STRICT_ALIGNMENT): Modified.
8410         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8411         (FIXED_REGISTERS): Likewise.
8412         (CALL_USED_REGISTERS): Likewise.
8413         (CONDITIONAL_REGISTER_USAGE): Updated.
8414         (HARD_REGNO_MODE_OK): Updated.
8415         (reg_class): Updated to add even registers.
8416         (REG_CLASS_NAMES): Likewise.
8417         (REG_CLASS_CONTENTS): Likewise.
8418         (REGNO_REG_CLASS): Updated for CC registers.
8419         (REG_CLASS_FROM_LETTER): Added support for even registers.
8420         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8421         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8422         ARG_POINTER_REGNUM): Updated.
8423         (FUNCTION_ARG_ADVANCE): Define.
8424         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8425         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8426         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8427         (GO_IF_LEGITIMATE_ADDRESS): Updated.
8428         (SELECT_CC_MODE): Define.
8429         (REGISTER_NAMES): Updated to add psw and fcc registers.
8430         (ADDITIONAL_REGISTER_NAMES): Updated.
8431         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8432         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8433         * config/v850/v850.md (define_constants): Define new constants.
8434         (type): Update store,bit1,macc,div,fpu and single attributes.
8435         (cpu): New attribute.
8436         (cc): Add set_z attribute.
8437         (unsign23byte_load, sign23byte_load, unsign23hword_load,
8438         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8439         23word_store): New instructions for 23-bit displacement load and store.
8440         (movqi_internal, movhi_internal): Update the attributes.
8441         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8442         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8443         the attributes.
8444         (v850_tst1): Modified using CC_REGNUM.
8445         (tstsi): Remove.
8446         (cmpsi): Modified as define_expand from define_insn.
8447         (cmpsi_insn, cmpsf, cmpdf): New instructions.
8448         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8449         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8450         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8451         one_cmplsi2): Clobber the CC_REGNUM register.
8452         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8453         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8454         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8455         (setf_insn, set_z_insn, set_nz_insn): New instructions for
8456         v850e2v3 target.
8457         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8458         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8459         targets.
8460         (sasf_1, sasf_2): Remove.
8461         (sasf): New instruction.
8462         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8463         targets. CC_REGNUM register is clobbered and attributes are
8464         updated.
8465         (branch_z_normal, branch_z_invert, branch_nz_normal,
8466         branch_nz_invert): New branch related instructions.
8467         (jump): Updated the attributes.
8468         (switch): Update to support new targets. CC_REGNUM register is
8469         clobbered and attributes are updated.
8470         (call_internal_short, call_internal_long, call_value_internal_short,
8471         call_value_internal_long): Updated the attributes.
8472         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8473         clobbered and attributes are updated.
8474         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8475         Update to support new targets. CC_REGNUM register is clobbered.
8476         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8477         instructions.
8478         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8479         are updated.
8480         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8481         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8482         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8483         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8484         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8485         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8486         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8487         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8488         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8489         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8490         point instructions defined for V850e2v3 target.
8491         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8492         Add support for V850E2 targets and CC_REGNUM register is clobbered.
8493         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8494         support for new targets.
8495         * config/v850/v850-modes.def: New file.
8496         * config/v850/v850.opt(mstrict-align): Remove.
8497         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8498         mv850e2v3): New command line options for V850.
8499         * config.gcc: Update the newly added files.
8500         * doc/invoke.texi: Update the newly added command line options for
8501         V850 target.
8502
8503 2010-07-26  Richard Guenther  <rguenther@suse.de>
8504
8505         PR tree-optimization/45052
8506         * ipa-pure-const.c (check_stmt): Check volatileness.
8507
8508 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8509
8510         PR target/44707
8511         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8512         * config/sparc/sparc.c: Include reload.h.
8513         (legitimize_tls_address): Rename into...
8514         (sparc_legitimize_tls_address): ...this.
8515         (legitimize_pic_address): Rename into...
8516         (sparc_legitimize_pic_address): ...this.
8517         (sparc_expand_move): Adjust to above renaming.
8518         (sparc_tls_referenced_p): Likewise.
8519         (sparc_legitimize_tls_address): Likewise.
8520         (sparc_legitimize_pic_address): Likewise.
8521         (sparc_legitimize_address): Likewise.
8522         (sparc_output_mi_thunk): Likewise.
8523         (sparc_legitimize_reload_address): New global function.  Recognize
8524         (lo_sum (high ...) ...) patterns generated by earlier passes.
8525         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8526
8527 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8528
8529         PR target/44484
8530         * config/sparc/predicates.md (memory_reg_operand): Delete.
8531         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8532         (*sync_compare_and_swap): Encode the address form in the pattern.
8533         (*sync_compare_and_swapdi_v8plus): Likewise.
8534
8535 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8536
8537         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8538         Streamline paragraph on compatibility with the system compiler.
8539
8540 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8541
8542         PR middle-end/45035
8543         * alias.c (true_dependence_1): Fix thinko in merge of old
8544         true_dependence and canon_true_dependence.
8545
8546 2010-07-23  Jan Hubicka  <jh@suse.cz>
8547
8548         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8549         references.
8550
8551 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8552
8553         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8554         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8555         and an unnecessary assignment.
8556         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8557         self-assign warning.
8558         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8559         unnecessary self-init.
8560
8561 2010-07-23  Richard Guenther  <rguenther@suse.de>
8562
8563         PR lto/43071
8564         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8565         for -flto and -fwhopr.
8566
8567 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8568
8569         PR target/41943
8570         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8571         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8572         * config.gcc (user_headers_inc_next_pre): New.
8573         (user_headers_inc_next_post): Likewise.
8574         (*-w64-mingw*): Use for float.h post-fixing, and for
8575         stddef.h/stdarg.h pre-fixing by include_next.
8576         * configure.ac (user_headers_inc_next_post): New.
8577         (user_headers_inc_next_pre): New.
8578         * configure: Regenerated.
8579
8580 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8581
8582         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8583         Set tga_func for Solaris 2/x86 resp. SPARC.
8584         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8585         (LIB_THREAD_LDFLAGS_SPEC): Define.
8586         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8587         * configure: Regenerate.
8588         * config.in: Regenerate.
8589         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8590         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8591         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8592         alternate thread libraries on Solaris 8.
8593         Document TLS patch requirements.
8594         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8595         Document tls.
8596
8597         PR target/18788
8598         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8599         -shared.
8600
8601 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8602
8603         * tree.h (struct tree_base): Add nameless_flag bitfield.
8604         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8605         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8606         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8607         DECL_ARTIFICIAL where needed.
8608         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8609         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8610         has DECL_NAMELESS set.
8611
8612 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8613
8614         PR tree-optimization/44915
8615         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8616         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8617         (analyze_function): Likewise.
8618
8619 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8620
8621         PR tree-optimization/44914
8622         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8623         changed, add purging dead eh edges.
8624         (ipa_sra_modify_function_body): Return true if CFG was changed,
8625         simplify purging dead eh edges.
8626         (modify_function): Return true if CFG was changed.
8627         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8628         was changed.
8629         (ipa_early_sra): Likewise.
8630
8631 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8632
8633         PR target/44290
8634         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8635         if "naked".
8636         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8637         false if ! tree_versionable_function_p.
8638
8639 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8640
8641         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8642         * ipa-pure-const.c (special_builtlin_state): Remove
8643         BUILT_IN_ARGS_INFO case.
8644         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8645         * builtins.c (expand_builtin): Likewise.
8646         (expand_builtin_args_info): Remove.
8647         * doc/tm.texi (__builtin_args_info): Remove.
8648         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8649         * doc/tm.text.in: Likewise.
8650
8651 2010-07-23  Richard Guenther  <rguenther@suse.de>
8652
8653         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8654         (lto_symtab_merge_decls_2): Likewise.
8655         * tree-ssa.c (useless_type_conversion_p): Likewise.
8656         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8657         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8658         (struct type_pair_d): Make same_p an array indexed by mode.
8659         Update comment.
8660         (lookup_type_pair): Update initialization.
8661         (struct sccs): Adjust same_p type.
8662         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8663         Adjust.
8664         (print_gimple_types_stats): Likewise.
8665         * gimple.h (enum gtc_mode): New.
8666         (gimple_types_compatible_p): Adjust prototype.
8667
8668 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8669
8670         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8671         again after processing insn.
8672
8673 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8674
8675         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8676         proper words when !tree_versionable_function_p.
8677
8678 2010-07-23  Richard Guenther  <rguenther@suse.de>
8679
8680         PR tree-optimization/45037
8681         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8682
8683 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8684
8685         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8686         Add MCORE instead.
8687
8688 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8689
8690         PR lto/44992
8691         * lto-opts.c (lto_write_options): Add NULL file_data argument to
8692         lto_get_section_name.
8693         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8694         * lto-streamer-out.c (produce_asm): Likewise.
8695         (copy_function): Likewise.
8696         (produce_symtab): Likewise.
8697         (produce_asm_for_decls): Likewise.
8698         * lto-streamer.c (lto_get_section_name): Add file_data argument.
8699         Rewrite to add random postfix to LTO sections.
8700         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8701         (lto_get_section_name): Add file_data argument to prototype.
8702
8703 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8704
8705         * lto-section-in.c (lto_section_name): Synchronize names
8706         with lto_get_section_name.
8707
8708 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8709
8710         * lto-opts.c (lto_read_file_options): Check for missing section.
8711
8712 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8713
8714         * ira.c (check_allocation): Correctly handle the case where an allocno
8715         with two objects was allocated to a single reg.
8716
8717 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
8718
8719         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8720         (is_widening_mult_p): Likewise.
8721         (convert_to_widen): Use them.
8722         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
8723         well as integer ones.
8724
8725 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
8726
8727         * alias.c (true_dependence_1): New function, merged version of
8728         true_dependence and canon_true_dependence.
8729         (true_dependence): Simplify.
8730         (canon_true_dependence): Simplify.
8731
8732 2010-07-22  Richard Henderson  <rth@redhat.com>
8733
8734         PR target/45027
8735         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8736         of V4SFmode for the SSE saves; increase stack alignment if needed.
8737         (ix86_gimplify_va_arg): Don't increase stack alignment here.
8738
8739 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
8740
8741         PR bootstrap/45028
8742         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8743         call cprop_find_used_regs again via note_uses.
8744
8745 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8746
8747         * alias.c (get_alias_set): Fix formatting issues.
8748
8749 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
8750
8751         PR middle-end/44878
8752         * stmt.c (expand_value_return):  Call promote_function_mode with
8753         a for_return argument of 2 when returning by reference.
8754
8755 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
8756
8757         PR debug/45024
8758         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8759         unit DIE if we can find the scope DIE.
8760
8761 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8762
8763         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8764         changed.  Initialize OBJECT_SUBWORD.
8765         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8766         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8767         all callers changed.
8768         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8769         (finish_allocno): Likewise.
8770         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8771         (remove_low_level_allocnos): Likewise.
8772         (update_bad_spill_attribute): Likewise.
8773         (setup_min_max_allocno_live_range_point): Likewise.
8774         (sort_conflict_id_map): Likewise.
8775         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
8776         (ior_hard_reg_conflicts): New function.
8777         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8778         (compress_conflict_vecs): Iterate over objects, not allocnos.
8779         (ira_add_live_range_to_object): New function.
8780         (object_range_compare_func): Renamed from allocno_range_compare_func.
8781         All callers changed.
8782         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8783         subobjects, widen the min/max range of the lowest-order object to
8784         potentially include all other such low-order objects.
8785         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8786         (check_allocation): Likewise.  Use more fine-grained tests for register
8787         conflicts.
8788         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8789         allocno subobjects.
8790         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
8791         choices about which bits to set in each set.  Don't use
8792         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8793         using the multiple sets we computed.
8794         (push_allocno_to_stack): Iterate over allocno subobjects.
8795         (all_conflicting_hard_regs_coalesced): New static function.
8796         (setup_allocno_available_regs_num): Use it.
8797         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
8798         subobjects.
8799         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8800         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8801         by ALLOCNO_NUM_OBJECTS.
8802         (calculate_spill_cost): Likewise.
8803         (color_pass): Express if statement in a more normal way.
8804         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8805         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8806         (setup_slot_coalesced_allocno_live_ranges): Likewise.
8807         (allocno_reload_assign): Likewise.
8808         (ira_reassign_pseudos): Likewise.
8809         (fast_allocation): Likewise.
8810         * ira-conflicts.c (build_conflict_bit_table): Likewise.
8811         (print_allocno_conflicts): Likewise.
8812         (ira_build_conflicts): Likewise.
8813         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
8814         callers changed.  Test subword 0 of each allocno for conflicts.
8815         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
8816         callers changed.  Iterate over allocno subobjects.
8817         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8818         * ira-int.h (struct ira_allocno): New member: num_objects.
8819         Rename object to objects and change it into an array.
8820         (ALLOCNO_OBJECT): Add new argument N.
8821         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8822         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8823         (ior_hard_reg_conflicts): Declare.
8824         (ira_add_live_range_to_object): Declare.
8825         (ira_allocno_object_iterator): New.
8826         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8827         (FOR_EACH_ALLOCNO_OBJECT): New macro.
8828         * ira-lives.c (objects_live): Renamed from allocnos_live; all
8829         uses changed.
8830         (allocnos_processed): New sparseset.
8831         (make_object_born): Renamed from make_allocno_born; take an
8832         ira_object_t argument.  All callers changed.
8833         (make_object_dead): Renamed from make_allocno_dead; take an
8834         ira_object_t argument.  All callers changed.
8835         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8836         All callers changed.
8837         (mark_pseudo_regno_live): Iterate over allocno subobjects.
8838         (mark_pseudo_regno_dead): Likewise.
8839         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8840         functions.
8841         (mark_ref_live): Detect subword accesses and call
8842         mark_pseudo_regno_subword_live as appropriate.
8843         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8844         (process_bb_nodes_live): Deal with object-related updates first; set
8845         and test bits in allocnos_processed to avoid computing allocno
8846         statistics more than once.
8847         (create_start_finish_chains): Iterate over objects, not allocnos.
8848         (print_object_live_ranges): New function.
8849         (print_allocno_live_ranges): Use it.
8850         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8851         and objects_live.
8852
8853 2010-07-22  Richard Guenther  <rguenther@suse.de>
8854
8855         PR lto/42451
8856         * gimple.c (gtc_next_dfs_num): New global.
8857         (struct sccs): Make value a union, add integer same_p member.
8858         (gtc_visit): New function.
8859         (gimple_types_compatible_p_1): New function, split out from ...
8860         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
8861         (iterative_hash_gimple_type): Adjust for sccs change.
8862
8863 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8864
8865         PR tree-optimization/44891
8866         * tree-sra.c: Include gimple-pretty-print.h.
8867         (replace_uses_with_default_def_ssa_name): Renamed to
8868         get_repl_default_def_ssa_name, return the new SSA name instead of
8869         replacing the old one.
8870         (sra_modify_assign): Dump a message when removing a load, if the LHS
8871         is an SSA_NAME, do not do any propagation, just set the RHS to a
8872         default definition SSA NAME, type convert if necessary.
8873         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
8874
8875 2010-07-22  Richard Guenther  <rguenther@suse.de>
8876
8877         PR tree-optimization/45017
8878         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
8879         TYPE_PRECISION of integral types in addition to size.
8880
8881 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8882
8883         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
8884         when no C library is specified.
8885
8886 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8887
8888         * ipa-prop.h (struct ipa_node_params): Updated comment.
8889         (struct ipa_edge_args): Likewise.
8890         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
8891
8892 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8893
8894         * cgraphunit.c (verify_edge_count_and_frequency): New function.
8895         (verify_cgraph_node): Verify frequencies of indirect edges.
8896         * tree-inline.c (tree_function_versioning): Update frequencies of
8897         indirect edges.
8898
8899 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8900
8901         PR target/43698
8902         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8903         Set *arm_rev to be predicable.
8904
8905 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8906
8907         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
8908         (LINK_COMMAND_SPEC_A): New.
8909         (DSYMUTIL): New.
8910         (DSYMUTIL_SPEC): New.
8911         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
8912         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
8913
8914 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8915
8916         * calls.c (load_register_parameters): Move check for zero
8917         sized items so that only the call to
8918         mem_overlaps_already_clobbered_arg_p () is protected.
8919
8920 2010-07-22  Jan Hubicka  <jh@suse.cz>
8921
8922         * ipa-pure-const.c (varying_state): Break out from ...
8923         (get_function_state): ... here; always return varying_state
8924         when state would be NULL otherwise.
8925         (remove_node_data): Do not free varying state.
8926
8927 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8928
8929         PR bootstrap/44970
8930         PR middle-end/45009
8931         * postreload.c: Include "target.h".
8932         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
8933         into account.
8934         (fixup_debug_insns): Don't copy the rtx.
8935         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
8936         Don't copy when replacing.  Call fixup_debug_insns in the case where
8937         we merged one add with another.
8938         (reload_combine_recognize_pattern): Fail if there aren't any uses.
8939         Try harder to determine whether we're picking a valid index register.
8940         Don't set store_ruid for an insn we're going to scan in the
8941         next iteration.
8942         (reload_combine): Remove unused code.
8943         (reload_combine_note_use): When updating use information for
8944         an old insn, ignore a use that occurs after store_ruid.
8945         * Makefile.in (postreload.o): Update dependencies.
8946
8947         * function.c (record_hard_reg_sets): Restrict the previous change
8948         to cases where the incoming nominal mode is the same as the
8949         incoming promoted mode and everything happens in MODE_INT.
8950
8951 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8952
8953         PR debug/45015
8954         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
8955         ASM_OPERANDS_OUTPUT_IDX.
8956         (adjust_insn): For inline asm with multiple sets ensure first
8957         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
8958         the insn.
8959
8960 2010-07-21  Richard Henderson  <rth@redhat.com>
8961
8962         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
8963         comparison for avoiding xmm register saves.  Emit the xmm register
8964         saves explicitly.
8965         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
8966         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
8967         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
8968         Remove patterns and the associated splitters.
8969
8970 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
8971
8972         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
8973         and imagine parts of a complex, so that they can have the same
8974         base and fall into the same group.
8975
8976 2010-07-21  Richard Guenther  <rguenther@suse.de>
8977
8978         PR lto/45018
8979         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
8980         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
8981         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
8982
8983 2010-07-21  Martin Jambor  <mjambor@suse.cz>
8984
8985         PR tree-optimization/44900
8986         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
8987         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
8988
8989 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
8990
8991         PR middle-end/44738
8992         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
8993
8994 2010-07-21  Richard Guenther  <rguenther@suse.de>
8995
8996         PR middle-end/45013
8997         * tree-ssa.c (useless_type_conversion_p): Dispatch to
8998         gimple_types_compatible_p only when in lto.
8999         * gimple.c (gimple_types_compatible_p): Use canonical types
9000         to speed up comparison.
9001
9002 2010-07-21  Richard Guenther  <rguenther@suse.de>
9003
9004         * tree-flow.h (referenced_var): Move define ...
9005         * tree-flow-inline.h (referenced_var): ... here as an inline
9006         function.  Assert here ...
9007         * tree-dfa.c (referenced_var_lookup): ... instead of here.
9008         * tree-ssa.c (maybe_optimize_var): Check if the variable
9009         is in referenced vars.
9010         (execute_update_addresses_taken): Remove old broken check.
9011         * gimple-pretty-print.c (pp_points_to_solution): Use
9012         referenced_var_lookup.
9013         * tree-into-ssa.c (dump_decl_set): Likewise.
9014
9015 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9016
9017         PR debug/45003
9018         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
9019         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
9020         ZERO_EXTEND here.
9021
9022 2010-07-20  Richard Henderson  <rth@redhat.com>
9023
9024         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
9025
9026 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9027
9028         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
9029         computing the sum of the stack pointer and a large constant.
9030         * config/arm/constraints.md (M): Remove superfluous parentheses.
9031         (Pc): New constraint.
9032
9033 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9034
9035         PR debug/45006
9036         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
9037         operand's type if exp is tcc_unary class tree.
9038
9039 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9040
9041         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
9042         Reverse sense of if_then_else condition.
9043
9044 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9045
9046         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
9047         * config/rs6000/rs6000.c (rs6000_override_options): Set
9048         rs6000_block_move_inline_limit appropriately.
9049         (expand_block_move): Use rs6000_block_move_inline_limit.
9050         * doc/invoke.texi (mblock-move-inline-limit): Document.
9051
9052 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9053
9054         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
9055         FROM and TO.  All callers changed.  Don't look for tracked uses,
9056         just scan the RTL for DEBUG_INSNs and substitute.
9057         (reload_combine_recognize_pattern): Call fixup_debug_insns.
9058         (reload_combine): Ignore DEBUG_INSNs.
9059
9060 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9061
9062         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
9063         depth to 8 from 5.
9064
9065         PR debug/45003
9066         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
9067         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
9068         instead of the result's type.
9069
9070 2010-07-20  Richard Guenther  <rguenther@suse.de>
9071
9072         PR tree-optimization/44977
9073         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
9074         SSA form.
9075
9076 2010-07-20  Richard Guenther  <rguenther@suse.de>
9077
9078         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
9079         (lto_symtab_merge_decls_2): Likewise.
9080         * gimple.h (gimple_types_compatible_p): Declare.
9081         * gimple.c (gimple_queue_type_fixup): Remove.
9082         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
9083         (gimple_compatible_complete_and_incomplete_type_p): New function.
9084         (gimple_types_compatible_p): Adjust.
9085         (gimple_register_type): Remove type fixup code.
9086         (print_gimple_types_stats): Adjust.
9087         (free_gimple_type_tables): Likewise.
9088         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
9089         * tree-ssa.c (useless_type_conversion_p): Likewise.
9090
9091 2010-07-20  Richard Guenther  <rguenther@suse.de>
9092
9093         PR middle-end/44971
9094         PR middle-end/44988
9095         * tree-ssa.c (maybe_optimize_var): New function split out from ...
9096         (execute_update_addresses_taken): ... here.
9097         (non_rewritable_mem_ref_base): Likewise.
9098         (execute_update_addresses_taken): Do not iterate over all referenced
9099         vars but just all local decls and parms.
9100         Properly check call and asm arguments and rewrite call arguments.
9101
9102 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
9103
9104         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
9105         to top level.
9106         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
9107         definitions ...
9108         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
9109         New macro.
9110         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
9111
9112 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9113
9114         * gengtype.c (start_root_entry): New function, split out from
9115         write_root.  Check whether V is null and raise an error if so.
9116         (write_field_root): Check for V being null.  Don't raise an error here;
9117         set V to null instead.
9118         (write_root): Update comment above function.  Use start_root_entry.
9119
9120 2010-07-19  Xinliang David Li  <davidxl@google.com>
9121
9122         PR testsuite/44932
9123         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
9124         def edges.
9125         (find_uninit_use): Add dump.
9126         (is_use_properly_guarded): Ditto.
9127         (warn_uninitialized_phi): Ditto.
9128         (execute_late_warn_uninitialized): Ditto.
9129
9130 2010-07-19  Richard Guenther  <rguenther@suse.de>
9131
9132         PR middle-end/44941
9133         * expr.c (emit_block_move_hints): Move zero size check first.
9134         Move asserts to more useful places.
9135         * calls.c (load_register_parameters): Check for zero size.
9136
9137 2010-07-19  Richard Henderson  <rth@redhat.com>
9138
9139         * tree-optimize.c (execute_all_early_local_passes): New.  Change
9140         cgraph_state here ...
9141         (execute_early_local_optimizations): ... not here.  Remove.
9142         (pass_early_local_passes, pass_all_early_optimizations): Update.
9143
9144 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
9145
9146         * postreload.c (reload_combine_closest_single_use): Ignore the
9147         number of uses for DEBUG_INSNs.
9148         (fixup_debug_insns): New static function.
9149         (reload_combine_recognize_const_pattern): Use it.  Don't let the
9150         main loop be affected by DEBUG_INSNs.
9151         Really disallow moving adds past a jump insn.
9152         (reload_combine_recognize_pattern): Don't update use_ruid here.
9153         (reload_combine_note_use): Do it here.
9154         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9155
9156 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
9157
9158         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9159         of a loop.
9160         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9161
9162 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
9163
9164         * config/i386/darwin.h: Define darwin_emit_branch_islands.
9165         (TARGET_MACHO_BRANCH_ISLANDS): New.
9166         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9167         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9168         default value.
9169         * config/i386/i386.c (output_pic_addr_const): Do not emit
9170         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9171         (x86_output_mi_thunk): Adjust symbol creation.
9172         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9173         Remove out of date comment.
9174         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9175         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9176         (DARWIN_GENERATE_ISLANDS): Ditto.
9177         (output_call):  Do not emit branch islands unless
9178         darwin_emit_branch_islands is set.
9179         * config/darwin.c: Declare darwin_emit_branch_islands.
9180         (machopic_indirect_data_reference): Do not emit unless
9181         darwin_emit_branch_islands is set.
9182         (darwin_override_options): Set darwin_emit_branch_islands
9183         where it is needed.
9184         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9185
9186 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9187
9188         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9189         sse_runtime, sse2_runtime.
9190
9191 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
9192
9193         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9194         low half of a single-register SCmode return value before ORing
9195         it with the high half.
9196         * config/mips/mips16.S (MERGE_GPRf): Likewise.
9197
9198 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9199
9200         PR target/44805
9201         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9202         on all targets.
9203
9204 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
9205
9206         PR target/42235
9207         * postreload.c (reload_cse_move2add): Return bool, true if anything.
9208         changed.  All callers changed.
9209         (move2add_use_add2_insn): Likewise.
9210         (move2add_use_add3_insn): Likewise.
9211         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9212         reload_combine.
9213         (RELOAD_COMBINE_MAX_USES): Bump to 16.
9214         (last_jump_ruid): New static variable.
9215         (struct reg_use): New members CONTAINING_MEM and RUID.
9216         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9217         (reload_combine_split_one_ruid, reload_combine_split_ruids,
9218         reload_combine_purge_insn_uses, reload_combine_closest_single_use
9219         reload_combine_purge_reg_uses_after_ruid,
9220         reload_combine_recognize_const_pattern): New static functions.
9221         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9222         is true for our reg and that we have available index regs.
9223         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
9224         callers changed.  Use them to initialize fields in struct reg_use.
9225         (reload_combine): Initialize last_jump_ruid.  Be careful when to
9226         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
9227         Call reload_combine_recognize_const_pattern.
9228         (reload_combine_note_store): Update REAL_STORE_RUID field.
9229
9230 2010-07-16  Jason Merrill  <jason@redhat.com>
9231
9232         * Makefile.in (opts-common.o): Depend on options.h.
9233
9234 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9235
9236         * tree.c (build_common_builtin_nodes): Use build_function_type_list
9237         instead of build_function_type.
9238         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9239         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9240
9241 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9242
9243         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9244         do all the work.
9245         (rs6000_emit_int_cmove): Use function pointers for insn generation.
9246         Don't force values into registers unnecessarily.
9247         (output_isel): Assert that we're not given conditions we can't handle.
9248         Delete corresponding code.
9249         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9250         scc_comparison_operator constraint.  Permit 0 for the consequent
9251         operand.  Permit any GPR for the alternative operand.
9252         (isel_unsigned_<mode>): Likewise.
9253
9254 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
9255
9256         PR target/44942
9257         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9258         argument to const_tree.
9259         * config/i386/i386.c (function_arg_advance): If padding needs to be
9260         inserted before argument, increment cum->words by number of padding
9261         words as well.
9262         (contains_aligned_value_p): Change argument to const_tree.
9263         (ix86_function_arg_boundary): Change second argument to const_tree.
9264
9265 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
9266
9267         PR target/42235
9268         * function.c (record_hard_reg_sets): New static function.
9269         (assign_parm_setup_reg): If an optab for extending exists and the
9270         generated code clobbbers no hard regs, emit the insn directly and
9271         create a REG_EQUIV note.
9272
9273 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9274
9275         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9276         TREE_CHAIN.
9277         * c-typeck.c (push_init_level): Likewise.
9278         (process_init_element): Likewise.
9279
9280 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
9281
9282         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9283         (integer_three_node): Add.
9284         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9285         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9286         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9287         of call build_int_cst.
9288         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9289         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9290         (find_interesting_uses_address): Ditto.
9291         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9292         * tree-eh.c (lower_eh_constructs_2): Ditto.
9293         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9294         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9295         * expmed.c (expand_divmod): Ditto.
9296         * tree-mudflap.c (mx_register_decls): Ditto.
9297         * varasm.c (array_size_for_constructor): Ditto.
9298         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9299         * c-parser.c (c_parser_postfix_expression): Ditto.
9300
9301 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9302
9303         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9304         New static variables.
9305         (reload_combine_recognize_pattern): New static function, broken out
9306         of reload_combine.
9307         (reload_combine): Use it.  Only initialize first_index_reg and
9308         last_index_reg once.
9309
9310 2010-07-15  Richard Henderson  <rth@redhat.com>
9311
9312         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9313         when done.
9314
9315 2010-07-15  Jan Hubicka  <jh@suse.cz>
9316
9317         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9318         comdats for broken gold.
9319         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9320
9321 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9322
9323         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9324
9325 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9326
9327         * tree.h (DECL_CHAIN): Define.
9328         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9329         * c-decl.c: Likewise.
9330         * c-parser.c: Likewise.
9331         * c-typeck.c: Likewise.
9332         * cfgexpand.c: Likewise.
9333         * cgraph.c: Likewise.
9334         * cgraphunit.c: Likewise.
9335         * combine.c: Likewise.
9336         * config/alpha/alpha.c: Likewise.
9337         * config/arm/arm.c: Likewise.
9338         * config/frv/frv.c: Likewise.
9339         * config/i386/i386.c: Likewise.
9340         * config/i386/winnt-cxx.c: Likewise.
9341         * config/ia64/ia64.c: Likewise.
9342         * config/iq2000/iq2000.c: Likewise.
9343         * config/mep/mep.c: Likewise.
9344         * config/mips/mips.c: Likewise.
9345         * config/pa/som.h: Likewise.
9346         * config/rs6000/rs6000.c: Likewise.
9347         * config/s390/s390.c: Likewise.
9348         * config/sh/sh.c: Likewise.
9349         * config/sh/symbian-cxx.c: Likewise.
9350         * config/sparc/sparc.c: Likewise.
9351         * config/spu/spu.c: Likewise.
9352         * config/stormy16/stormy16.c: Likewise.
9353         * config/vxworks.c: Likewise.
9354         * config/xtensa/xtensa.c: Likewise.
9355         * coverage.c: Likewise.
9356         * dbxout.c: Likewise.
9357         * dwarf2out.c: Likewise.
9358         * emit-rtl.c: Likewise.
9359         * expr.c: Likewise.
9360         * function.c: Likewise.
9361         * gimple-low.c: Likewise.
9362         * gimple-pretty-print.c: Likewise.
9363         * gimplify.c: Likewise.
9364         * integrate.c: Likewise.
9365         * ipa-inline.c: Likewise.
9366         * ipa-prop.c: Likewise.
9367         * ipa-split.c: Likewise.
9368         * ipa-struct-reorg.c: Likewise.
9369         * ipa-type-escape.c: Likewise.
9370         * langhooks.c: Likewise.
9371         * lto-cgraph.c: Likewise.
9372         * omp-low.c: Likewise.
9373         * stor-layout.c: Likewise.
9374         * tree-cfg.c: Likewise.
9375         * tree-complex.c: Likewise.
9376         * tree-dfa.c: Likewise.
9377         * tree-dump.c: Likewise.
9378         * tree-inline.c: Likewise.
9379         * tree-mudflap.c: Likewise.
9380         * tree-nested.c: Likewise.
9381         * tree-object-size.c: Likewise.
9382         * tree-pretty-print.c: Likewise.
9383         * tree-sra.c: Likewise.
9384         * tree-ssa-live.c: Likewise.
9385         * tree-ssa-loop-niter.c: Likewise.
9386         * tree-ssa-math-opts.c: Likewise.
9387         * tree-ssa-reassoc.c: Likewise.
9388         * tree-ssa-sccvn.c: Likewise.
9389         * tree-ssa-structalias.c: Likewise.
9390         * tree-tailcall.c: Likewise.
9391         * tree-vrp.c: Likewise.
9392         * tree.c: Likewise.
9393         * var-tracking.c: Likewise.
9394         * varasm.c: Likewise.
9395
9396 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9397
9398         PR target/44877
9399         * config/spu/spu.c (spu_expand_builtin_1): Allow references
9400         (as well as pointers) as argument to mask_for_load builtins.
9401
9402 2010-07-15  Richard Guenther  <rguenther@suse.de>
9403
9404         PR tree-optimization/44946
9405         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9406         with accessing only padding properly.
9407
9408 2010-07-15  Jan Hubicka  <jh@suse.cz>
9409
9410         * ipa.c (function_and_variable_visibility): Variables marked as used
9411         should not be localized.
9412
9413 2010-07-15  Jan Hubicka  <jh@suse.cz>
9414
9415         * cgraph.c: Include lto-streamer.h
9416         (change_decl_assembler_name): Work when assembler name hash is at place.
9417         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9418         be sure to rename it to avoid name clash.
9419         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9420         Localize hidden symbols only when locally defined.
9421
9422 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
9423
9424         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9425
9426 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
9427             Kevin F. Quinn  <kevquinn@gentoo.org>
9428
9429         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9430         * common.opt: Add -Wtrampolines.
9431         * doc/invoke.texi: Add -Wtrampolines.
9432
9433 2010-07-15  Jie Zhang  <jie@codesourcery.com>
9434
9435         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9436         cortex_a8_issue_ls.
9437
9438 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9439
9440         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9441         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9442
9443 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9444
9445         * config/spu/spu.c (reg_names): Remove prototype.
9446         (call_used_regs): Likewise.
9447
9448 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
9449
9450         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9451         "unused" with attribute "used".
9452         (__JCR_END__): Likewise.
9453         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9454         "used" attribute.
9455         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9456
9457 2010-07-14  Richard Guenther  <rguenther@suse.de>
9458
9459         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9460         (maybe_fixup_decls): Likewise.
9461         (input_gimple_stmt): Do not fixup anything.
9462         * lto-streamer-out.c (output_gimple_stmt): Make sure all
9463         non-automatic variable uses are wrapped inside a MEM_REF.
9464
9465 2010-07-14  Richard Henderson  <rth@redhat.com>
9466
9467         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9468         for functions.
9469         * varasm.c (assemble_variable): Remove early exit for functions;
9470         assert that we're given a variable.
9471
9472 2010-07-14  Jie Zhang  <jie@codesourcery.com>
9473
9474         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9475         cortex_a8_default when neon_type is not none.
9476
9477 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9478
9479         * lower-subreg.c (subreg_context): New static bitmap.
9480         (decompose_multiword_subregs): Allocate and free it.
9481         (find_decomposable_subregs): Set a bit in it for a register that
9482         occurs in a subreg that changes mode but not size.
9483         (can_decompose_p): Test it instead of non_decomposable_context.
9484
9485 2010-07-14  Richard Guenther  <rguenther@suse.de>
9486
9487         PR tree-optimization/44824
9488         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9489         is_gimple_mem_ref_addr.
9490         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9491         non-decl_address_invariant_p addresses.
9492
9493 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9494
9495         * reload.c (find_reloads): Revert code to penalize small register
9496         classes that was brought in with the IRA merge.
9497
9498 2010-07-14  Richard Guenther  <rguenther@suse.de>
9499
9500         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9501         as base of ARRAY_REFs.
9502
9503 2010-07-14  Richard Guenther  <rguenther@suse.de>
9504
9505         PR middle-end/44930
9506         * tree-pretty-print.c (do_niy): Do not print a newline.
9507
9508 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9509
9510         * ira-int.h (struct ira_object): New.
9511         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9512         (struct ira_allocno): Remove members min, max,
9513         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9514         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9515         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9516         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9517         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9518         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9519         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9520         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9521         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9522         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9523         an ira_object_t rather than ira_allocno_t.  All uses changed.
9524         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9525         contains a vector of ira_object_t; all uses changed.
9526         (ira_objects_num): Declare variable.
9527         (ira_create_allocno_object): Declare function.
9528         (ira_conflict_vector_profitable_p): Adjust prototype.
9529         (ira_allocate_conflict_vec): Renamed from
9530         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9531         (ira_allocate_object_conflicts): Renamed from
9532         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9533         (struct ira_object_iterator): New.
9534         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9535         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9536         to conflict_vec_p.  All uses changed.
9537         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9538         Changed to take into account that conflicts are now tracked for
9539         objects.
9540         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9541         Args changed to accept ira_object_t.  All uses changed.
9542         (allocnos_conflict_p): New static function.
9543         (collected_conflict_objects): Renamed from collected_allocno_objects;
9544         now a vector of ira_object_t.  All uses changed.
9545         (build_conflict_bit_table): Changed to take into account that
9546         conflicts are now tracked for objects.
9547         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9548         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9549         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9550         setup_allocno_left_conflicts_size, allocno_reload_assign,
9551         fast_allocation): Likewise.
9552         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9553         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9554         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9555         Likewise.
9556         * ira-build.c (ira_objects_num): New variable.
9557         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9558         contains a vector of ira_object_t; all uses changed.
9559         (ira_object_id_map_vec): Corresponding change.
9560         (object_pool): New static variable.
9561         (initiate_allocnos): Initialize it.
9562         (finish_allocnos): Free it.
9563         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9564         New functions.
9565         (ira_create_allocno): Don't set members that were removed.
9566         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9567         (merge_hard_reg_conflicts): Changed to take into account that
9568         conflicts are now tracked for objects.
9569         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9570         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9571         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9572         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9573         setup_min_max_conflict_allocno_ids, ):  Likewise.
9574         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9575         to ira_object_t; all callers changed.
9576         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9577         to ira_object_t, all callers changed.
9578         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9579         to ira_object_t, all callers changed.
9580         (conflict_check, curr_conflict_check_tick): Renamed from
9581         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9582         changed.
9583         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9584         arg changed to ira_object_t, all callers changed.
9585         (create_cap_allocno): Call ira_create_allocno_object.
9586         (finish_allocno): Free the corresponding object.
9587         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9588         callers changed.  Adjusted for dealing with objects.
9589         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9590         dealing with objects.
9591         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9592
9593         * ira-int.h (struct live_range): Rename allocno member to object
9594         and change type to ira_object_t.
9595         (struct ira_object): New member live_ranges.
9596         (struct ira_allocno): Remove member live_ranges.
9597         (ALLOCNO_LIVE_RANGES): Remove.
9598         (OBJECT_LIVE_RANGES): New macro.
9599         (ira_create_live_range, ira_copy_live_range_list,
9600         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9601         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9602         * ira-build.c (ira_create_object): Initialize live ranges here.
9603         (ira_create_allocno): Not here.
9604         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9605         changed to ira_object_t, all callers changed.
9606         (copy_live_range): Rename from copy_allocno_live_range, all callers
9607         changed.
9608         (ira_copy_live_range_list): Rename from
9609         ira_copy_allocno_live_range_list, all callers changed.
9610         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9611         all callers changed.
9612         (ira_live_ranges_intersect_p): Rename from
9613         ira_allocno_live_ranges_intersect_p, all callers changed.
9614         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9615         callers changed.
9616         (ira_finish_live_range_list): Rename from
9617         ira_finish_allocno_live_range_list, all callers changed.
9618         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9619         last arg changed to ira_object_t, all callers changed.
9620         (finish_allocno): Changed to expect live ranges in the allocno's object.
9621         (move_allocno_live_ranges, copy_allocno_live_ranges,
9622         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9623         ira_flattening, ira_build): Likewise.
9624         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9625         slot_coalesced_allocno_live_ranges_intersect,
9626         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9627         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9628         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9629         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9630         make_allocno_dead, create_start_finish_chains,
9631         remove_some_program_points_and_update_live_ranges,
9632         ira_debug_live_range_list): Likewise.
9633
9634         * ira-int.h (ira_object_conflict_iterator): Rename from
9635         ira_allocno_conflict_iterator.
9636         (ira_object_conflict_iter_init): Rename from
9637         ira_allocno_conflict_iter_init, second arg changed to
9638         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9639         FOR_EACH_ALLOCNO_CONFLICT.
9640         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9641         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9642         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9643         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9644
9645 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9646
9647         PR other/44874
9648         * tree-dump.c (dump_options): Add enumerate_locals entry.
9649         Add TDF_NOID exclusion to all entry.
9650         * tree-dump.h (dump_enumerated_decls): Declare.
9651         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9652         Don't display type uid.
9653         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9654         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9655         * tree-ssa-live.c: Include gimple.h.
9656         (numbered_tree_d): New struct.
9657         (numbered_tree): New typedef.
9658         (DEF_VEC_O (numbered_tree): New.
9659         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9660         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9661         (dump_enumerated_decls): Likewise.
9662         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9663         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9664         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9665         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9666
9667 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9668
9669         * expmed.h (MAX_BITS_PER_WORD): Move to...
9670         * defaults.h (MAX_BITS_PER_WORD): ...here.
9671
9672 2010-07-13  DJ Delorie  <dj@redhat.com>
9673
9674         * config/h8300/h8300.c (h8300_init_once): Default to
9675         -fstrict_volatile_bitfields.
9676
9677         * config/sh/sh.c (sh_override_options): Default to
9678         -fstrict_volatile_bitfields.
9679
9680         * config/rx/rx.c (rx_option_override): New.
9681
9682         * config/m32c/m32c.c (m32c_override_options): Default to
9683         -fstrict_volatile_bitfields.
9684
9685 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9686
9687         * tree.h (build_function_call_expr): Delete.
9688         (build_call_expr_loc_array): New function.
9689         (build_call_expr_loc_vec): New function.
9690         * tree-flow.h (struct omp_region): Change type of ws_args field
9691         to a VEC.
9692         * builtins.c (build_function_call_expr): Delete.
9693         (build_call_expr_loc_array): New function.
9694         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
9695         (build_call_expr): Likewise.
9696         (build_call_expr_loc_vec): New function.
9697         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9698         build_function_call_expr.
9699         * expr.c (emutls_var_address): Likewise.
9700         * varasm.c (emutls_common_1): Likewise.
9701         * omp-low.c (expand_omp_atomic_mutex): Likewise.
9702         (expand_omp_taskreg): Adjust for new type of region->ws_args.
9703         (get_ws_args_for): Return a VEC instead of a tree.
9704         (expand_parallel_call): Call build_call_expr_loc_vec instead of
9705         build_function_call_expr.
9706         * stor-layout.c (self_referential_size): Likewise.
9707
9708 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9709
9710         PR testsuite/44701
9711         * recog.c (constrain_operands): Allow side-effects in memory
9712         operands if either < or > constraint is used, rather than if
9713         both < and > is used.
9714
9715 2010-07-13  Richard Guenther  <rguenther@suse.de>
9716
9717         PR middle-end/44911
9718         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9719         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
9720         without name.
9721
9722 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9723
9724         PR target/44761
9725         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9726         to variable emited.
9727         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9728         * config/sh/sh.md (symGOT_load): Likewise.
9729         (symDTPOFF2reg): Likewise.
9730         (symTPOFF2reg): Likewise.
9731
9732 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9733
9734         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9735         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9736
9737 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9738
9739         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9740         explanation.
9741         Find ucontext_t * on Solaris 11.
9742         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9743         Handle new Solaris 11 __sighndlr patterns.
9744
9745 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9746
9747         PR debug/44901
9748         * vec.h (VEC_block_remove): Fix comment.
9749         * tree-ssa-live.c (remove_unused_locals): Don't use
9750         VEC_unordered_remove on local_decls, instead replace a single
9751         vector element in each iteration if at least one element had
9752         to be removed and VEC_truncate at the end.
9753         * omp-low.c (expand_omp_taskreg): Likewise.
9754
9755 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9756
9757         * c-decl.c (finish_function): Fix typo in comment.
9758
9759 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
9760
9761         PR bootstrap/44921
9762         * postreload.c (move2add_use_add3_insn): Silence gcc warning
9763         on min_regno.
9764
9765 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
9766
9767         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9768         (simplify_stmt_using_ranges): Use it.
9769
9770 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9771
9772         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9773         member.  Do not mark as GTY(()).
9774         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9775         (spu_builtin_decls): New static variable.
9776         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9777         (spu_init_builtins): Likewise.
9778         (spu_builtin_mul_widen_even): Likewise.
9779         (spu_builtin_mul_widen_odd): Likewise.
9780         (spu_builtin_mask_for_load): Likewise.
9781         (spu_builtin_vec_perm): Likewise.
9782         * config/spu/spu-c.c: Include "target.h".
9783         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9784         of using spu_builtins[].fndecl.
9785
9786 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9787
9788         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9789         imply -minterlink-mips16.
9790
9791 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9792
9793         * config/mips/mips.h (mips16_globals): Declare.
9794         (SWITCHABLE_TARGET): Define.
9795         * config/mips/mips.c: Include target-globals.h.
9796         (mips16_globals): New variable.
9797         (mips_set_mips16_mode): Use save_target_globals and
9798         restore_target_globals instead of target_reinit.
9799
9800 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9801
9802         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
9803         to say that the function can be called more than once.
9804         * target-globals.c (save_target_globals): Call init_reg_sets.
9805
9806 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9807
9808         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9809         * bb-reorder.h: New file.
9810         * bb-reorder.c (default_target_bb_reorder): New variable.
9811         (this_target_bb_reorder): New conditional variable.
9812         (uncond_jump_length): Redefine as a macro.
9813         * target-globals.h (this_target_bb_reorder): Declare.
9814         (target_globals): Add a bb_reorder field.
9815         (restore_target_globals): Copy the bb_reorder field to
9816         this_target_bb-reorder.
9817         * target-globals.c: Include bb-reorder.h.
9818         (default_target_globals): Initialize the bb_reorder field.
9819         (save_target_globals): Likewise.
9820
9821 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9822
9823         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9824         * gcse.h: New file.
9825         * gcse.c: Include gcse.h.
9826         (default_target_gcse): New variable.
9827         (this_target_gcse): New conditional variable.
9828         (can_copy): Redefine as a macro.
9829         (can_copy_init_p): New macro.
9830         (can_copy_p): Remove can_copy_init_p.
9831         * target-globals.h (this_target_gcse): Declare.
9832         (target_globals): Add a gcse field.
9833         (restore_target_globals): Copy the gcse field to this_target_gcse.
9834         * target-globals.c: Include gcse.h.
9835         (default_target_globals): Initialize the gcse field.
9836         (save_target_globals): Likewise.
9837
9838 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9839
9840         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9841         and x_ira_prohibited_mode_move_regs_initialized_p.
9842         (ira_prohibited_mode_move_regs): Redefine as a macro.
9843         * ira.c (ira_prohibited_mode_move_regs): Delete.
9844         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9845
9846 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9847
9848         * reload.h (target_reload): Add x_cached_reg_save_code and
9849         x_cached_reg_restore_code.
9850         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9851         Redefine as macros.
9852
9853 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9854
9855         * Makefile.in (target-globals.o): Depend on builtins.h.
9856         * builtins.h: New file.
9857         * builtins.c: Include builtins.h.
9858         (default_target_builtins): New variable.
9859         (this_target_builtins): New conditional variable.
9860         (apply_args_mode, apply_result_mode): Redefine as macros.
9861         * target-globals.h (this_target_builtins): Declare.
9862         (target_globals): Add a builtins field.
9863         (restore_target_globals): Copy the builtins field to
9864         this_target_builtins.
9865         * target-globals.c: Include builtins.h.
9866         (default_target_globals): Initialize the builtins field.
9867         (save_target_globals): Likewise.
9868
9869 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9870
9871         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
9872         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
9873         from expmed.c.
9874         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
9875         (alg_hash, alg_hash_used_p): New macros.
9876         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
9877         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
9878         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
9879
9880 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9881
9882         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
9883         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
9884         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
9885         (this_op_costs, costs_classes): Redefine as macros.
9886         (record_reg_classes): Don't take op_costs as a parameter.
9887         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
9888         (scan_one_insn): Update call to record_operand_costs.
9889
9890 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9891
9892         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
9893         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
9894         (target_ira_int): New structure.
9895         (default_target_ira_int): Declare.
9896         (this_target_ira_int): Declare as a variable or define as a macro.
9897         (ira_reg_mode_hard_regset, ira_register_move_cost)
9898         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
9899         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
9900         (prohibited_class_mode_regs, ira_important_classes_num)
9901         (ira_important_classes, ira_reg_class_intersect)
9902         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
9903         (ira_reg_class_union): Redefine as macros.
9904         * ira.h (target_ira): New structure.
9905         (default_target_ira): Declare.
9906         (this_target_ira): Declare as a variable or define as a macro.
9907         (ira_available_class_regs, ira_hard_regno_cover_class)
9908         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
9909         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
9910         (ira_class_hard_regs_num): Redefine as macros.
9911         * ira.c (default_target_ira, default_target_ira_int): New variables.
9912         (this_target_ira, this_target_ira_int): New conditional variables.
9913         (ira_reg_mode_hard_regset, ira_memory_move_cost)
9914         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
9915         (ira_class_subset_p): Delete.
9916         (no_unit_alloc_regs): Redefine as a macro.
9917         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
9918         (ira_class_hard_regs_num, ira_class_hard_reg_index)
9919         (ira_available_class_regs): Delete.
9920         (alloc_reg_class_subclasses): Redefine as a macro.
9921         (ira_reg_class_cover_size, ira_reg_class_cover)
9922         (ira_important_classes_num, ira_important_classes)
9923         (ira_important_class_nums, ira_class_translate): Delete.
9924         (cover_class_order): Document the variable's lifetime.
9925         (reorder_important_classes): Don't set ira_important_class_nums.
9926         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
9927         (ira_reg_class_super_classes, ira_reg_class_union)
9928         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
9929         Delete.
9930         (setup_reg_class_nregs): Don't set ira_max_regs.
9931         (prohibited_class_mode_regs): Delete.
9932         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
9933         (target_globals): Add ira and ira_int fields.
9934         (restore_target_globals): Copy the ira field to this_target_ira
9935         and the ira_int field to this_target_ira_int.
9936         * target-globals.c: Include ira-int.h.
9937         (default_target_globals): Initialize the ira and ira_int fields.
9938         (save_target_globals): Likewise.
9939
9940 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9941
9942         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
9943         * cfgloop.h (target_cfgloop): New structure.
9944         (default_target_cfgloop): Declare.
9945         (this_target_cfgloop): Declare as a variable or define as a macro.
9946         (target_avail_regs, target_clobbered_regs, target_res_regs)
9947         (target_reg_cost, target_spill_cost): Redefine as macros.
9948         * cfgloopanal.c (default_target_cfgloop): New variable.
9949         (this_target_cfgloop): New conditional variable.
9950         (target_avail_regs, target_clobbered_regs, target_res_regs)
9951         (target_reg_cost, target_spill_cost): Delete.
9952         * target-globals.h (this_target_cfgloop): Declare.
9953         (target_globals): Add a cfgloop field.
9954         (restore_target_globals): Copy the cfgloop field to
9955         this_target_cfgloop.
9956         * target-globals.c: Include cfgloop.h.
9957         (default_target_globals): Initialize the cfgloop field.
9958         (save_target_globals): Likewise.
9959
9960 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9961
9962         * regs.h (target_regs): Add x_direct_load, x_direct_store and
9963         x_float_extend_from_mem.
9964         (direct_load, direct_store, float_extend_from_mem): New macros.
9965         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
9966
9967 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9968
9969         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
9970         (target-globals.o): Depend on $(LIBFUNCS_H).
9971         * libfuncs.h: Include hashtab.h.
9972         (libfunc_entry): Moved from optabs.c.
9973         (target_libfuncs): New structure.
9974         (default_target_libfuncs): Declare.
9975         (this_target_libfuncs): Declare as a variable or define as a macro.
9976         (libfunc_table): Redefine as a macro.
9977         * optabs.c (default_target_libfuncs): New variable.
9978         (this_target_libfuncs): New conditional variable.
9979         (libfunc_table): Delete.
9980         (libfunc_entry): Moved to optabs.h.
9981         (libfunc_hash): Redefine as a macro.
9982         (hash_libfunc, eq_libfunc): Fix comments.
9983         (init_optabs): Use libfunc_hash to detect cases where the function
9984         has already been called.  Clear the hash table instead of
9985         recreating it.
9986         * target-globals.h (this_target_libfuncs): Declare.
9987         (target_globals): Add a libfuncs field.
9988         (restore_target_globals): Copy the libfuncs field to
9989         this_target_libfuncs.
9990         * target-globals.c: Include libfuncs.h.
9991         (default_target_globals): Initialize the libfuncs field.
9992         (save_target_globals): Likewise.
9993
9994 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9995
9996         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
9997         in all dependency lists.
9998
9999 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10000
10001         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
10002         * optabs.h (target_optabs): New structure.
10003         (default_target_optabs): Declare.
10004         (this_target_optabs): Declare as a variable or define as a macro.
10005         (optab_table, convert_optab_table, direct_optab_table): Redefine
10006         as macros.
10007         * optabs.c (default_target_optabs): New variable.
10008         (this_target_optabs): New conditional variable.
10009         (optab_table, convert_optab_table, direct_optab_table): Delete.
10010         * target-globals.h (this_target_optabs): Declare.
10011         (target_globals): Add a optabs field.
10012         (restore_target_globals): Copy the optabs field to
10013         this_target_optabs.
10014         * target-globals.c: Include expr.h and optabs.h.
10015         (default_target_globals): Initialize the optabs field.
10016         (save_target_globals): Likewise.
10017
10018 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10019
10020         * flags.h (target_flagstate): Add x_flag_excess_precision.
10021         (flag_excess_precision): Redefine as a macro.
10022         * toplev.c (flag_excess_precision): Delete.
10023
10024 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10025
10026         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
10027         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
10028         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
10029         (no_caller_save_reg_set): Redefine as a macro.
10030         * reload.h (target_reload): Add x_caller_save_initialized_p and
10031         x_regno_save_mode.
10032         (caller_save_initialized_p): Redefine as a macro.
10033         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
10034         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
10035         (regno_save_mode): Redefine as a macro.
10036
10037 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10038
10039         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
10040         * expmed.h: New file.
10041         * expmed.c (default_target_costs): New variable.
10042         (this_target_costs): New conditional variable.
10043         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
10044         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
10045         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
10046         * target-globals.h (this_target_expmed): Declare.
10047         (target_globals): Add a expmed field.
10048         (restore_target_globals): Copy the expmed field to
10049         this_target_expmed.
10050         * target-globals.c: Include expmed.h.
10051         (default_target_globals): Initialize the expmed field.
10052         (save_target_globals): Likewise.
10053
10054 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10055
10056         * Makefile.in (target-globals.o): Depend on reload.h.
10057         * reload.h (target_reload): New structure.
10058         (default_target_reload): Declare.
10059         (this_target_reload): Declare as a variable or define as a macro.
10060         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
10061         * reload1.c (default_target_reload): New variable
10062         (this_target_reload): New conditional variable.
10063         (indirect_symref_ok, double_reg_address_ok): Delete.
10064         (spill_indirect_levels): Redefine as a macro.
10065         * target-globals.h (this_target_reload): Declare.
10066         (target_globals): Add a reload field.
10067         (restore_target_globals): Copy the reload field to
10068         this_target_reload.
10069         * target-globals.c: Include hard-reg-set.h.
10070         (default_target_globals): Initialize the reload field.
10071         (save_target_globals): Likewise.
10072
10073 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10074
10075         * rtl.h (target_rtl): Add x_static_reg_base_value.
10076         * alias.c (static_reg_base_value): Redefine as a macro.
10077
10078 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10079
10080         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
10081         (GTFILES): Remove reginfo.c.
10082         * rtl.h (target_rtl): Add x_top_of_stack.
10083         (top_of_stack): New macro.
10084         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
10085         (top_of_stack): Delete.
10086
10087 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10088
10089         * regs.h (target_regs): Add x_hard_regs_of_mode,
10090         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
10091         x_may_move_out_cost and x_last_mode_for_init_move_cost.
10092         (have_regs_of_mode, contains_reg_of_mode, move_cost)
10093         (may_move_in_cost, may_move_out_cost): Redefine as macros.
10094         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
10095         (may_move_in_cost, may_move_out_cost): Delete.
10096         (last_mode_for_init_move_cost): Redefine as a macro.
10097
10098 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10099
10100         * hard-reg-set.h (target_hard_regs): New structure.
10101         (default_target_hard_regs): Declare.
10102         (this_target_hard_regs): Declare as a variable or define as a macro.
10103         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
10104         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
10105         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
10106         (reg_class_size, reg_class_subclasses, reg_class_subunion)
10107         (reg_class_superunion, reg_names): Redefine as macros.
10108         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
10109         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
10110         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
10111         (reg_class_contents, reg_class_size, reg_class_subclasses)
10112         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
10113         (default_target_hard_regs): New variable
10114         (this_target_hard_regs, initial_call_really_used_regs)
10115         (initial_reg_alloc_order): New conditional variables.
10116         (initial_reg_names): New variable.
10117         (init_reg_sets): Assert that initial_call_really_used_regs,
10118         initial_reg_alloc_order and initial_reg_names
10119         are all the same size as their variable counterparts.  Use them to
10120         initialize those counterparts.
10121         * target-globals.h (this_target_hard_regs): Declare.
10122         (target_globals): Add a hard_regs field.
10123         (restore_target_globals): Copy the hard_regs field to
10124         this_target_hard_regs.
10125         * target-globals.c: Include hard-reg-set.h.
10126         (default_target_globals): Initialize the hard_regs field.
10127         (save_target_globals): Likewise.
10128
10129 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10130
10131         * Makefile.in (target-globals.o): Depend on $(RTL_H).
10132         * rtl.h (target_rtl): New structure.
10133         (default_target_rtl): Declare.
10134         (this_target_rtl): Declare as a variable or define as a macro.
10135         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10136         Redefine as macros.
10137         * emit-rtl.c (default_target_rtl): New variable.
10138         (this_target_rtl): New conditional variable.
10139         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10140         (return_address_pointer_rtx): Delete.
10141         (initial_regno_reg_rtx): New macro.
10142         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10143         (init_emit_regs): Likewise.
10144         * target-globals.h (this_target_rtl): Declare.
10145         (target_globals): Add a rtl field.
10146         (restore_target_globals): Copy the rtl field to this_target_rtl.
10147         * target-globals.c: Include rtl.h.
10148         (default_target_globals): Initialize the rtl field.
10149         (save_target_globals): Likewise.
10150
10151 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10152
10153         * Makefile.in (target-globals.o): Depend on $(REGS_H).
10154         * regs.h (target_reg_modes): New structure.
10155         (default_target_reg_modes): Declare.
10156         (this_target_reg_modes): Declare as a variable or define as a macro.
10157         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10158         * reginfo.c (default_target_reg_modes): New variable.
10159         (this_target_reg_modes): New conditional variable.
10160         (hard_regno_nregs, reg_raw_mode): Delete.
10161         * target-globals.h (this_target_regs): Declare.
10162         (target_globals): Add a regs field.
10163         (restore_target_globals): Copy the regs field to this_target_regs.
10164         * target-globals.c: Include regs.h.
10165         (default_target_globals): Initialize the regs field.
10166         (save_target_globals): Likewise.
10167
10168 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10169
10170         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10171         * doc/tm.texi: Regenerate.
10172         * Makefile.in (OBJS-common): Add target-globals.o.
10173         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10174         and target-globals.h.
10175         (target-globals.o): New rule.
10176         (GTFILES): Include $(srcdir)/target-globals.h.
10177         * defaults.h (SWITCHABLE_TARGET): Define.
10178         * gengtype.c (open_base_files): Add target-globals.h to the
10179         list of includes.
10180         * target-globals.h: New file.
10181         * target-globals.c: Likewise.
10182
10183         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10184         * flags.h (target_flag_state): New structure.
10185         (default_target_flag_state): Declare.
10186         (this_target_flag_state): Declare as a variable or define as a macro.
10187         (align_loops_log): Redefine as a macro.
10188         (align_loops_max_skip, align_jumps_log): Likewise.
10189         (align_jumps_max_skip, align_labels_log): Likewise.
10190         (align_labels_max_skip, align_functions_log): Likewise.
10191         * toplev.c (default_target_flag_state): New variable.
10192         (this_target_flag_state): New conditional variable.
10193         (align_loops_log): Delete.
10194         (align_loops_max_skip, align_jumps_log): Likewise.
10195         (align_jumps_max_skip, align_labels_log): Likewise.
10196         (align_labels_max_skip, align_functions_log): Likewise.
10197         * target-globals.h (this_target_flag_state): Declare.
10198         (target_globals): Add a flag_state field.
10199         (restore_target_globals): Copy the flag_state field to
10200         this_target_flag_state.
10201         * target-globals.c: Include flags.h.
10202         (default_target_globals): Initialize the flag_state field.
10203         (save_target_globals): Likewise.
10204
10205 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10206
10207         * postreload.c (reg_symbol_ref[]): New.
10208         (move2add_use_add2_insn): New.
10209         (move2add_use_add3_insn): New.
10210         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10211         (move2add_note_store): Likewise.
10212
10213 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
10214
10215         PR rtl-optimization/44752
10216         * genautomata.c (main): Don't emit an empty file even if there
10217         is no automaton.
10218
10219 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10220
10221         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10222         ix86_solaris_return_in_memory.
10223         * config/i386-protos.h: Reflect this.
10224         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10225         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10226         Move ...
10227         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10228
10229 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10230
10231         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10232         align the stack when it's going to be saved.
10233
10234 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10235
10236         PR pch/14940
10237         * config/host-solaris.c (mmap_fixed): New function.
10238         (sol_gt_pch_get_address): Use it.
10239         (sol_gt_pch_use_address): Likewise.
10240
10241 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10242
10243         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10244         pentiumpro on Solaris 8 and 9/x86.
10245         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10246         Document SSE/SSE2 support.
10247         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10248
10249 2010-07-12  Andi Kleen  <ak@linux.intel.com>
10250
10251         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10252         instead of gcc_assert to print better error message for multiple
10253         prevailing defs.
10254
10255 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
10256
10257         * config/i386/i386.c (ix86_asm_output_function_label): Change format
10258         string placeholder from 0x%x to %#x.
10259         (ix86_code_end): Use putc to output '\n'.
10260         (ix86_print_operand) <case ';'>: Use putc to output ';'.
10261
10262 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
10263
10264         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10265         in directive -export.
10266
10267 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
10268
10269         * reginfo.h (reg_classes_intersect_p): Change arguments type to
10270         reg_class_t.
10271         * rtl.h (reg_classes_intersect_p): Adjust prototype.
10272
10273         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10274         Remove macros.
10275         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10276         rs6000_memory_move_cost): Remove
10277         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10278         TARGET_MEMORY_MOVE_COST): Define.
10279         (rs6000_register_move_cost): Make static. Change arguments type from
10280         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10281         (rs6000_memory_move_cost): Make static. Change arguments type from
10282         'enum reg_class' to reg_class_t.
10283
10284 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
10285
10286         PR middle-end/42505
10287         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10288         lookup code into....
10289         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10290         new functions.
10291         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10292         * cfgloopanal.c (target_clobbered_regs): Define.
10293         (init_set_costs): Initialize target_clobbered_regs.
10294         (estimate_reg_pressure_cost): Add call_p argument.  When true,
10295         adjust the number of available registers to exclude the
10296         call-clobbered registers.
10297         * cfgloop.h (target_clobbered_regs): Declare.
10298         (estimate_reg_pressure_cost): Adjust declaration.
10299         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10300         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10301         (determine_set_costs): Dump target_clobbered_regs.
10302         (loop_body_includes_call): New function.
10303         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10304         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10305         call_p flag through.
10306         (best_gain_for_invariant): Likewise.
10307         (find_invariants_to_move): Likewise.
10308         (move_single_loop_invariants): Likewise, using already-computed
10309         has_call field.
10310
10311 2010-07-10  Richard Guenther  <rguenther@suse.de>
10312             Joern Rennecke  <joern.rennecke@embecosm.com>
10313
10314         PR debug/44832
10315         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10316         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10317         unless they have DECL_IGNORED_P set.
10318
10319 2010-07-10  Richard Guenther  <rguenther@suse.de>
10320
10321         PR lto/44889
10322         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10323         helper function.
10324         (gimple_types_compatible_p): Similar to pointed-to
10325         types allow and merge a mix of complete and incomplete aggregate.
10326         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10327         (iterative_hash_gimple_type): Adjust for that.
10328
10329 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
10330
10331         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10332
10333 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
10334
10335         PR objc/44140
10336         * config/darwin.c (output_objc_section_asm_op): Save and restore
10337         section when outputting ObjC section list.
10338
10339 2010-07-09  Jan Hubicka  <jh@suse.cz>
10340
10341         * lto-streamer-out.c (produce_symtab): Do not write alias
10342         cgraph/varpool nodes.
10343
10344 2010-07-09  Jan Hubicka  <jh@suse.cz>
10345
10346         * tree-inline.c (declare_return_variable): Fix ICE while
10347         inlining DECL_BY_VALUE function not in SSA form
10348
10349 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
10350
10351         PR tree-optimization/44576
10352         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10353         New.  Pull out from is_loop_prefetching_profitable to implement
10354         the trip count to ahead ratio heuristic.
10355         (mem_ref_count_reasonable_p): New.  Pull out from
10356         is_loop_prefetching_profitable to implement the instruction to
10357         memory reference ratio heuristic.  Also consider not reasonable if
10358         the memory reference count is above a threshold (to avoid
10359         explosive compilation time.
10360         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
10361         is_loop_prefetching_profitable to implement the instruction to
10362         prefetch ratio heuristic.
10363         (is_loop_prefetching_profitable): Removed.
10364         (loop_prefetch_arrays): Distribute the cost analysis across the
10365         function to allow early exit of the prefetch analysis.
10366         is_loop_prefetching_profitable is splitted into three functions,
10367         with each one called as early as possible.
10368         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
10369         number of memory references in a loop is considered too many.
10370
10371 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10372
10373         * reload.c (find_reloads): Don't clear badop if we have a winreg
10374         alternative, but not win, and the class only has fixed regs.
10375         * hard-reg-set.h (class_only_fixed_regs): Declare.
10376         * reginfo.c (class_only_fixed_regs): New array.
10377         (init_reg_sets_1): Initialize it.
10378         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10379         discourage alternatives using the stack pointer.
10380
10381         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10382
10383         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10384
10385         * config/arm/arm.md (cbranchqi4): Fix array size.
10386         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10387         calculating length.
10388
10389 2010-07-09  Richard Guenther  <rguenther@suse.de>
10390
10391         * gimple.c (struct type_fixup_s): New struct and VEC type.
10392         (gimple_register_type_fixups): New static global.
10393         (gimple_queue_type_fixup): New function.
10394         (gimple_types_compatible_p): Queue type fixups instead of
10395         applying them here.
10396         (gimple_register_type): Apply queued fixups for the
10397         canonical type.  Empty the type fixup queue.
10398
10399 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10400
10401         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10402         * configure: Regenerate.
10403         * config.in: Ditto.
10404
10405 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10406             Denys Vlasenko  <dvlasenk@redhat.com>
10407             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10408
10409         PR tree-optimization/28632
10410         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10411         (extract_range_from_binary_expr): Further optimize
10412         BIT_AND_EXPR and BIT_IOR_EXPR.
10413
10414 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
10415
10416         * tree-if-conv.c (fold_or_predicates): New.
10417         (add_to_predicate_list): Call it.
10418
10419 2010-07-09  Richard Guenther  <rguenther@suse.de>
10420
10421         PR middle-end/44890
10422         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10423         if base is a pointer.
10424         * tree-cfg.c (verify_expr): Update MEM_REF checking.
10425
10426 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10427
10428         PR target/44877
10429         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10430         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10431         builtin mask for load/store builtins.
10432
10433 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10434
10435         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10436         for "lock addl".
10437         * configure: Regenerate.
10438         * config/i386/i386.c (ix86_print_operand) <case ';'>:
10439         Remove TARGET_MACHO.
10440
10441 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
10442
10443         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10444         default ISA flags.
10445         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10446
10447 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
10448
10449         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10450
10451 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10452
10453         * config/picochip/picochip.md (commsTestPort): Emit more
10454         efficient sequence for tstport instruction.
10455
10456 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10457
10458         * config/i386/i386.c (ix86_veclib_handler): Make static.
10459
10460 2010-07-09  Richard Guenther  <rguenther@suse.de>
10461
10462         PR tree-optimization/44852
10463         * tree-ssa-alias.c: Include toplev.h for exact_log2.
10464         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10465         in MEM_REF.
10466         (indirect_refs_may_alias_p): Likewise.
10467         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10468
10469 2010-07-09  Richard Guenther  <rguenther@suse.de>
10470
10471         PR tree-optimization/44882
10472         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10473         sets do conflict.
10474         (vectorizable_load): Likewise.
10475
10476 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10477
10478         PR target/40657
10479         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10480         All callers changed.
10481         Handle the case when we're called for the epilogue.
10482         (thumb_unexpanded_epilogue): Use it.
10483         (thumb1_expand_epilogue): Likewise.
10484
10485 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10486
10487         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10488         both ranges are range_int_cst_p with non-negative minimum,
10489         try harder to derive smaller range.
10490
10491 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10492
10493         * genrecog.c: Include diagnostic-core.h before toplev.h.
10494         * genoutput.c: Likewise.
10495         * genextract.c: Likewise.
10496         * genautomata.c: Likewise.
10497         * genemit.c: Likewise.
10498         * genpeep.c: Likewise.
10499         * genattrtab.c: Likewise.
10500         * genconditions.c: Likewise.
10501         * genpreds.c: Likewise.
10502
10503 2010-07-08  Andi Kleen  <ak@linux.intel.com>
10504
10505         * lto-section-in.c (lto_section_name): Add missing comma.
10506
10507 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
10508
10509         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10510         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10511         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10512         (ia64_override_options): Rename to...
10513         (ia64_option_override): ... this one. Make static.
10514
10515 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10516
10517         PR middle-end/44843
10518         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10519         pointed-to type of the offset in a MEM_REF to compute the alignment.
10520
10521 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10522
10523         * final.c (final_scan_insn): Replace
10524         TARGET_UNWIND_INFO macro check by unwind_emit
10525         hook NULL check.
10526         * targhooks.c (default_unwind_emit): Removed.
10527         * targhooks.h (default_unwind_emit): Likewise.
10528         * target.def (unwind_emit): Set default value to NULL.
10529
10530         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10531         New prototype.
10532         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10533         for NULL fntype argument and allow 64-bit targets.
10534         (ix86_asm_output_function_label): New function.
10535         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10536         (ix86_handle_fndecl_attribute): Likewise.
10537         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10538         * doc/doc/tm.texi: Regenerated.
10539         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10540         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10541         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10542         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10543         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10544         * config/elfos.h: Likewise.
10545         * config/i386/cygming.h: Likewise.
10546         * config/netbsd-aout.h: Likewise.
10547         * config/openbsd.h: Likewise.
10548         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10549         by ix86_asm_output_function_label function call.
10550         * varasm.c (assemble_start_function): Use
10551         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10552
10553 2010-07-08  Jan Hubicka  <jh@suse.cz>
10554
10555         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10556         New function.
10557         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10558         Declare.
10559         * ipa-cp.c (ipcp_estimate_growth): Use it.
10560         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10561         Likewise.
10562
10563 2010-07-08  Jan Hubicka  <jh@suse.cz>
10564
10565         * tree-inline.c (declare_return_variable): Allocate annotation for new
10566         temporary.
10567
10568 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10569
10570         PR tree-optimization/44710
10571         * tree-if-conv.c (parse_predicate): New.
10572         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10573         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10574
10575 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10576
10577         * common.opt (ftree-loop-if-convert): New flag.
10578         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10579         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10580         when flag_tree_loop_if_convert is set.
10581
10582 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10583
10584         * config/i386/i386.c: Use short syntax for function calls
10585         through function pointers.
10586         * config/i386/i386.md: Ditto.
10587
10588 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10589
10590         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10591
10592 2010-07-08  Richard Guenther  <rguenther@suse.de>
10593
10594         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10595         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10596
10597 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10598
10599         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10600         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10601         (loc_list_from_tree): Likewise.
10602         (output_loc_operands): Handle outputting DW_OP_const[48]u
10603         with loc->dtprel set.
10604         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10605
10606 2010-07-08  Jan Hubicka  <jh@suse.cz>
10607
10608         * ipa.c: Include pointer-set.h
10609         (cgraph_externally_visible_p): New attribute ALIASED;
10610         when in LTO, hidden symbols are local unless they are aliased.
10611         (function_and_variable_visibility): Compute aliased nodes;
10612         handle LTO and hidden symbol on functions and vars.
10613         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10614         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10615
10616 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10617
10618         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10619         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10620         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10621         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10622         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10623         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10624         (ix86_gen_probe_stack_range): Likewise.
10625         (override_options): Set them.
10626         (ix86_target_stack_probe): New function.
10627         (ix86_compute_frame_layout): Force use of push instructions to
10628         save registers if stack checking with probes is enabled.
10629         (get_scratch_register_on_entry): New function.
10630         (release_scratch_register_on_entry): Likewise.
10631         (ix86_adjust_stack_and_probe): Likewise.
10632         (output_adjust_stack_and_probe): Likewise.
10633         (ix86_emit_probe_stack_range): Likewise.
10634         (output_probe_stack_range): Likewise.
10635         (ix86_expand_prologue): Emit stack checking code if static built-in
10636         stack checking is enabled.
10637         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10638         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10639         (output_adjust_stack_and_probe): Likewise.
10640         (output_probe_stack_range): Likewise.
10641         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10642         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10643         TARGET_STACK_PROBE.
10644         (allocate_stack_worker_64): Likewise.
10645         (allocate_stack): Likewise.
10646         (adjust_stack_and_probe): New insn.
10647         (probe_stack_range): Likewise.
10648
10649 2010-07-08  Richard Guenther  <rguenther@suse.de>
10650
10651         PR tree-optimization/44831
10652         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10653         a MEM_REF preserving TBAA info of the original dereference.
10654         Dereference the original pointer if the address is not invariant.
10655         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10656         at least one invariant address that we are going to dereference.
10657
10658 2010-07-08  Richard Guenther  <rguenther@suse.de>
10659
10660         PR tree-optimization/44861
10661         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10662         information when building MEM_REFs.
10663         (vectorizable_load): Likewise.
10664         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10665
10666 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10667
10668         * config/sol2-c.c: Do not include diagnostic-core.h.
10669
10670 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10671
10672         PR bootstrap/44768
10673         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10674         with respect to current_function_decl. Pass decl of the function.
10675         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10676         * ipa-inline.c (compute_inline_parameters): Pass decl to
10677         estimated_stack_frame_size.
10678
10679 2010-07-08  Richard Guenther  <rguenther@suse.de>
10680
10681         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10682         New function.
10683         (valueize_refs): Call it.
10684
10685 2010-07-08  Richard Guenther  <rguenther@suse.de>
10686
10687         PR rtl-optimization/44838
10688         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10689         SSA form do not use pointer equivalence.
10690
10691 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10692
10693         * dwarf2out.c (AT_linkage_name): Delete.
10694         (add_linkage_attr): New function.
10695         (add_linkage_name): Call it to emit the linkage attribute.
10696         (dwarf2out_finish): Likewise.
10697         (move_linkage_attr): Explicitly accept both attribute variants.
10698
10699 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10700
10701         * toplev.h: Do not include diagnostic-core.h.
10702         Include diagnostic-core.h in every file that includes toplev.h.
10703         * c-tree.h: Do not include toplev.h.
10704         * pretty-print.h: Update comment.
10705         * Makefile.in: Update dependencies.
10706         * alias.c: Include diagnostic-core.h in every file that includes
10707         toplev.h.
10708         * attribs.c: Likewise.
10709         * auto-inc-dec.c: Likewise.
10710         * bb-reorder.c: Likewise.
10711         * bt-load.c: Likewise.
10712         * caller-save.c: Likewise.
10713         * calls.c: Likewise.
10714         * cfg.c: Likewise.
10715         * cfganal.c: Likewise.
10716         * cfgbuild.c: Likewise.
10717         * cfgcleanup.c: Likewise.
10718         * cfghooks.c: Likewise.
10719         * cfgloop.c: Likewise.
10720         * combine.c: Likewise.
10721         * config/alpha/alpha.c: Likewise.
10722         * config/arc/arc.c: Likewise.
10723         * config/arm/arm.c: Likewise.
10724         * config/arm/pe.c: Likewise.
10725         * config/avr/avr.c: Likewise.
10726         * config/bfin/bfin.c: Likewise.
10727         * config/cris/cris.c: Likewise.
10728         * config/crx/crx.c: Likewise.
10729         * config/darwin-c.c: Likewise.
10730         * config/darwin.c: Likewise.
10731         * config/fr30/fr30.c: Likewise.
10732         * config/frv/frv.c: Likewise.
10733         * config/h8300/h8300.c: Likewise.
10734         * config/host-darwin.c: Likewise.
10735         * config/i386/i386.c: Likewise.
10736         * config/i386/netware.c: Likewise.
10737         * config/i386/nwld.c: Likewise.
10738         * config/i386/winnt-cxx.c: Likewise.
10739         * config/i386/winnt-stubs.c: Likewise.
10740         * config/i386/winnt.c: Likewise.
10741         * config/ia64/ia64-c.c: Likewise.
10742         * config/ia64/ia64.c: Likewise.
10743         * config/iq2000/iq2000.c: Likewise.
10744         * config/lm32/lm32.c: Likewise.
10745         * config/m32c/m32c-pragma.c: Likewise.
10746         * config/m32c/m32c.c: Likewise.
10747         * config/m32r/m32r.c: Likewise.
10748         * config/m68hc11/m68hc11.c: Likewise.
10749         * config/m68k/m68k.c: Likewise.
10750         * config/mcore/mcore.c: Likewise.
10751         * config/mep/mep-pragma.c: Likewise.
10752         * config/mep/mep.c: Likewise.
10753         * config/mmix/mmix.c: Likewise.
10754         * config/mn10300/mn10300.c: Likewise.
10755         * config/moxie/moxie.c: Likewise.
10756         * config/pa/pa.c: Likewise.
10757         * config/pdp11/pdp11.c: Likewise.
10758         * config/picochip/picochip.c: Likewise.
10759         * config/rs6000/rs6000-c.c: Likewise.
10760         * config/rs6000/rs6000.c: Likewise.
10761         * config/rx/rx.c: Likewise.
10762         * config/s390/s390.c: Likewise.
10763         * config/score/score.c: Likewise.
10764         * config/score/score3.c: Likewise.
10765         * config/score/score7.c: Likewise.
10766         * config/sh/sh.c: Likewise.
10767         * config/sh/symbian-base.c: Likewise.
10768         * config/sh/symbian-c.c: Likewise.
10769         * config/sh/symbian-cxx.c: Likewise.
10770         * config/sol2-c.c: Likewise.
10771         * config/sol2.c: Likewise.
10772         * config/sparc/sparc.c: Likewise.
10773         * config/spu/spu.c: Likewise.
10774         * config/stormy16/stormy16.c: Likewise.
10775         * config/v850/v850-c.c: Likewise.
10776         * config/v850/v850.c: Likewise.
10777         * config/vax/vax.c: Likewise.
10778         * config/vxworks.c: Likewise.
10779         * config/xtensa/xtensa.c: Likewise.
10780         * convert.c: Likewise.
10781         * cse.c: Likewise.
10782         * cselib.c: Likewise.
10783         * dbgcnt.c: Likewise.
10784         * dbxout.c: Likewise.
10785         * ddg.c: Likewise.
10786         * dominance.c: Likewise.
10787         * emit-rtl.c: Likewise.
10788         * explow.c: Likewise.
10789         * expmed.c: Likewise.
10790         * fixed-value.c: Likewise.
10791         * fold-const.c: Likewise.
10792         * fwprop.c: Likewise.
10793         * gcse.c: Likewise.
10794         * ggc-common.c: Likewise.
10795         * ggc-page.c: Likewise.
10796         * ggc-zone.c: Likewise.
10797         * gimple-low.c: Likewise.
10798         * gimplify.c: Likewise.
10799         * graph.c: Likewise.
10800         * haifa-sched.c: Likewise.
10801         * ifcvt.c: Likewise.
10802         * implicit-zee.c: Likewise.
10803         * integrate.c: Likewise.
10804         * ira-build.c: Likewise.
10805         * ira-color.c: Likewise.
10806         * ira-conflicts.c: Likewise.
10807         * ira-costs.c: Likewise.
10808         * ira-lives.c: Likewise.
10809         * ira.c: Likewise.
10810         * lists.c: Likewise.
10811         * loop-doloop.c: Likewise.
10812         * loop-iv.c: Likewise.
10813         * lto-opts.c: Likewise.
10814         * lto-symtab.c: Likewise.
10815         * main.c: Likewise.
10816         * modulo-sched.c: Likewise.
10817         * optabs.c: Likewise.
10818         * params.c: Likewise.
10819         * plugin.c: Likewise.
10820         * postreload-gcse.c: Likewise.
10821         * postreload.c: Likewise.
10822         * predict.c: Likewise.
10823         * profile.c: Likewise.
10824         * real.c: Likewise.
10825         * regcprop.c: Likewise.
10826         * reginfo.c: Likewise.
10827         * regmove.c: Likewise.
10828         * reorg.c: Likewise.
10829         * resource.c: Likewise.
10830         * rtl.c: Likewise.
10831         * rtlanal.c: Likewise.
10832         * sched-deps.c: Likewise.
10833         * sched-ebb.c: Likewise.
10834         * sched-rgn.c: Likewise.
10835         * sdbout.c: Likewise.
10836         * sel-sched-dump.c: Likewise.
10837         * sel-sched-ir.c: Likewise.
10838         * simplify-rtx.c: Likewise.
10839         * stmt.c: Likewise.
10840         * stor-layout.c: Likewise.
10841         * store-motion.c: Likewise.
10842         * targhooks.c: Likewise.
10843         * tree-cfg.c: Likewise.
10844         * tree-cfgcleanup.c: Likewise.
10845         * tree-dump.c: Likewise.
10846         * tree-eh.c: Likewise.
10847         * tree-inline.c: Likewise.
10848         * tree-nomudflap.c: Likewise.
10849         * tree-object-size.c: Likewise.
10850         * tree-optimize.c: Likewise.
10851         * tree-outof-ssa.c: Likewise.
10852         * tree-phinodes.c: Likewise.
10853         * tree-profile.c: Likewise.
10854         * tree-ssa-ccp.c: Likewise.
10855         * tree-ssa-coalesce.c: Likewise.
10856         * tree-ssa-live.c: Likewise.
10857         * tree-ssa-loop-niter.c: Likewise.
10858         * tree-ssa-loop-prefetch.c: Likewise.
10859         * tree-ssa-loop.c: Likewise.
10860         * tree-ssa-structalias.c: Likewise.
10861         * tree-ssa-uninit.c: Likewise.
10862         * tree-ssa.c: Likewise.
10863         * tree-vect-data-refs.c: Likewise.
10864         * tree-vect-loop-manip.c: Likewise.
10865         * tree-vect-loop.c: Likewise.
10866         * tree-vect-patterns.c: Likewise.
10867         * tree-vect-stmts.c: Likewise.
10868         * tree-vrp.c: Likewise.
10869         * varasm.c: Likewise.
10870         * vec.c: Likewise.
10871         * web.c: Likewise.
10872         * xcoffout.c: Likewise.
10873
10874 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
10875
10876         * gengtype.c (write_field_root): New function.
10877         (write_root): Use it.
10878
10879 2010-07-07  Wei Guozhi  <carrot@google.com>
10880
10881         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10882         of lowest bits to lshift/compare): Add a missing line.
10883
10884 2010-07-07  Wei Guozhi  <carrot@google.com>
10885
10886         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10887         of lowest bits to lshift/compare): New.
10888
10889 2010-07-07  Tom Tromey  <tromey@redhat.com>
10890
10891         * doc/tm.texi: Update.
10892         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
10893         Add @hook.
10894         * target.def (want_debug_pub_sections): New hook.
10895         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
10896         * dwarf2out.c (add_pubname_string): Check
10897         targetm.want_debug_pub_sections.
10898         (add_pubname): Likewise.
10899         (add_pubtype): Likewise.
10900
10901 2010-07-07  Jie Zhang  <jie@codesourcery.com>
10902
10903         * genautomata.c (output_automata_list_min_issue_delay_code):
10904         Correctly decompress min_issue_delay.
10905
10906 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10907
10908         PR rtl-optimization/44404
10909         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10910         possible, use reg_overlap_mentioned_p instead.
10911
10912 2010-07-07  Duncan Sands  <baldrick@free.fr>
10913
10914         PR middle-end/41355
10915         * tree.c (build_function_type_skip_args): Copy the original type using
10916         build_distinct_type_copy rather than copy_node.
10917
10918 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10919
10920         PR target/44850
10921         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
10922         revision 161876.
10923         (ix86_expand_prologue): Likewise.
10924         (ix86_handle_fndecl_attribute): Likewise.
10925         (ix86_asm_declare_function_name): Likewise.
10926         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10927         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10928         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
10929         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
10930         * doc/extend.texi: Likewise.
10931
10932 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10933
10934         PR target/44844
10935         * config/i386/i386.md (rdrand<mode>): Changed to expand to
10936         retry if the carry flag isn't valid.
10937         (rdrand<mode>_1): New.
10938
10939 2010-07-07  Richard Guenther  <rguenther@suse.de>
10940
10941         PR middle-end/44790
10942         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
10943         for expanding the constant offset for MEM_REFs.
10944
10945 2010-07-07  Richard Guenther  <rguenther@suse.de>
10946
10947         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
10948         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
10949         * gimple.h (is_gimple_operand): Remove.
10950         * gimple.c (is_gimple_operand): Likewise.
10951         (walk_gimple_op): Fix wi->val_only setting for calls.
10952         * tree-cfg.c (verify_gimple_call): Fix argument validation.
10953         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
10954         invalid gimple calls.
10955
10956 2010-07-06  Jan Hubicka  <jh@suse.cz>
10957
10958         * lto-cgraph.c (output_cgraph): Add missing declaration.
10959
10960 2010-07-06  Jan Hubicka  <jh@suse.cz>
10961
10962         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
10963         partition.
10964
10965 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
10966
10967         * doc/gimple.texi (GIMPLE_DEBUG): Document.
10968         * doc/rtl.texi (Debug Information): New node.
10969         (NOTE_INSN_VAR_LOCATION): Document.
10970         (debug_insn): Likewise.
10971         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
10972
10973 2010-07-07  Jan Hubicka  <jh@suse.cz>
10974
10975         With parts by Richard Guenther.
10976
10977         PR middle-end/44813
10978         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
10979         for functions passed by reference.
10980         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
10981         in memory when passed by reference.
10982         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
10983         beggining.
10984         * ipa-split.c (split_function): Cleanup way return value is passed;
10985         handle SSA DECL_BY_REFERENCE retvals.
10986         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
10987         DECL_BY_REFERENCE is set.
10988         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
10989         find_what_p_points_to): Handle RESULT_DECL.
10990         * tree-inline.c (declare_return_variable): Get new entry_block argument;
10991         when passing by reference ensure that RESULT_DECL is gimple_val.
10992         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
10993         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
10994
10995 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10996
10997         PR rtl-optimization/44787
10998         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
10999         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
11000
11001 2010-07-06  Jan Hubicka  <jh@suse.cz>
11002
11003         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
11004         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
11005         with body can prevail.
11006         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
11007         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
11008         * cgraph.c (cgraph_get_node_or_alias): New function.
11009         * cgraph.h (cgraph_get_node_or_alias): Declare.
11010
11011 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
11012
11013         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
11014         support.
11015         (ix86_expand_prologue): Likewise.
11016         (ix86_handle_fndecl_attribute): Likewise.
11017         (ix86_asm_declare_function_name): New function for
11018         ASM_DECLARE_FUNCTION_NAME.
11019         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
11020         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
11021         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
11022         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
11023         * doc/extend.texi: Adjust documentation about ms_hook_prologue
11024         attribute.
11025
11026 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11027
11028         * config/i386/i386.md (immediate_operand): New mode attribute.
11029
11030         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
11031         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
11032         using P mode iterator.
11033         (pro_epilogue_adjust_stack_di_2): Rename from
11034         pro_epilogue_adjust_stack_rex64_2.
11035
11036         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
11037
11038 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11039
11040         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
11041         through gen_mov_insv_1 function pointer.
11042         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
11043         gen_truncxf<mode>2 through gen_truncxf function pointer.
11044         (remainder<mode>3): Ditto.
11045         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
11046         (allocate_stack): Call gen_allocate_stack_worker_64 or
11047         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
11048         function pointer.
11049         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
11050         function pointer.
11051
11052 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11053
11054         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
11055         operand constraint instead of <r><i>m.
11056
11057 2010-07-06  Richard Guenther  <rguenther@suse.de>
11058
11059         PR middle-end/44828
11060         * convert.c (convert_to_integer): Watch out for overflowing
11061         MULT_EXPR as well.
11062
11063 2010-07-05  Jan Hubicka  <jh@suse.cz>
11064
11065         * lto-streamer.c (write_symbol_vec): Rename to ...
11066         (write_symbol) ... this one; write only symbol given and when
11067         present in cache. Sanity check that what is defined is present
11068         in cgraph/varpool with body/finalized decl.
11069         (write_symbols_of_kind): Remove.
11070         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
11071         pairs to produce symtab.
11072         (produce_asm_for_decls): Update call of produce_symtab; don't do so
11073         when doing WPA streaming.
11074
11075 2010-07-05  Jan Hubicka  <jh@suse.cz>
11076
11077         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
11078         function is still available to fold into.
11079
11080 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11081
11082         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
11083         * function.h (struct_function): Change type of local_decls field
11084         to a VEC.
11085         (add_local_decl): New function.
11086         (FOR_EACH_LOCAL_DECL): New macro.
11087         * cfgexpand.c (init_vars_expansion): Adjust for new type of
11088         cfun->local_decls.
11089         (estimated_stack_frame_size): Likewise.
11090         (expand_used_vars): Likewise.
11091         * cgraphbuild.c (build_cgraph_edges): Likewise.
11092         * function.c (instantiate_decls_1): Likewise.
11093         * ipa-struct-reorg.c (build_data_structure): Likewise.
11094         * ipa-type-escape.c (analyze_function): Likewise.
11095         * lto-streamer-in.c (input_function): Likewise.
11096         * lto-streamer-out.c (output_function): Likewise.
11097         * tree-ssa-live.c (remove_unused_locals): Likewise.
11098         * tree.c (free_lang_data_in_decl): Likewise.
11099         (find_decls_types_in_node): Likewise.
11100         * omp-low.c (remove_exit_barrier): Likewise.
11101         (expand_omp_taskreg): Likewise.
11102         (list2chain): Rename to...
11103         (vec2chain): ...this.  Adjust.
11104         * cgraphunit.c (assemble_thunk): Call add_local_decl.
11105         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
11106         * gimple-low.c (record_vars_into): Likewise.
11107         * tree-inline.c (remap_decls): Likewise.
11108         (declare_return_variable): Likewise.
11109         (declare_inline_vars): Likewise.
11110         (copy_forbidden): Adjust for new type of cfun->local_decls.
11111         (add_local_variables): New function.
11112         (expand_call_inline): Call it.
11113         (tree_function_versioning): Likewise.
11114
11115 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11116
11117         AVX Programming Reference (June, 2010)
11118         * config/i386/cpuid.h (bit_F16C): New.
11119         (bit_RDRND): Likewise.
11120         (bit_FSGSBASE): Likewise.
11121
11122         * config/i386/i386-builtin-types.def: Add
11123         "DEF_FUNCTION_TYPE (UINT16)", function types for
11124         float16 <-> float conversions and
11125         "DEF_FUNCTION_TYPE (VOID, UINT64)".
11126
11127         * config/i386/i386-c.c (ix86_target_macros_internal): Support
11128         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
11129         OPTION_MASK_ISA_F16C.
11130
11131         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
11132         (OPTION_MASK_ISA_RDRND_SET): Likewise.
11133         (OPTION_MASK_ISA_F16C_SET): Likewise.
11134         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
11135         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11136         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11137         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11138         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11139         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11140         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11141         (override_options): Handle them.
11142         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11143         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11144         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11145         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11146         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11147         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11148         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11149         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11150         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11151         (bdesc_args): Likewise.
11152         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11153         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11154         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11155         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11156         Handle non-memory store.
11157
11158         * config/i386/i386.h (TARGET_FSGSBASE): New.
11159         (TARGET_RDRND): Likewise.
11160         (TARGET_F12C): Likewise.
11161
11162         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11163         (UNSPEC_VCVTPS2PH): Likewise.
11164         (UNSPECV_RDFSBASE): Likewise.
11165         (UNSPECV_RDGSBASE): Likewise.
11166         (UNSPECV_WRFSBASE): Likewise.
11167         (UNSPECV_WRGSBASE): Likewise.
11168         (UNSPECV_RDRAND): Likewise.
11169         (rdfsbase<mode>): Likewise.
11170         (rdgsbase<mode>): Likewise.
11171         (wrfsbase<mode>): Likewise.
11172         (wrgsbase<mode>): Likewise.
11173         (rdrand<mode>): Likewise.
11174
11175         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11176
11177         * config/i386/immintrin.h (_rdrand_u16): New.
11178         (_rdrand_u32): Likewise.
11179         (_readfsbase_u32): Likewise.
11180         (_readfsbase_u64): Likewise.
11181         (_readgsbase_u32): Likewise.
11182         (_readgsbase_u64): Likewise.
11183         (_writefsbase_u32): Likewise.
11184         (_writefsbase_u64): Likewise.
11185         (_writegsbase_u32): Likewise.
11186         (_writegsbase_u64): Likewise.
11187         (_rdrand_u64): Likewise.
11188         (_cvtsh_ss): Likewise.
11189         (_mm_cvtph_ps): Likewise.
11190         (_mm256_cvtph_ps): Likewise.
11191         (_cvtss_sh): Likewise.
11192         (_mm_cvtps_ph): Likewise.
11193         (_mm256_cvtps_ph): Likewise.
11194
11195         * config/i386/sse.md (vcvtph2ps): New.
11196         (*vcvtph2ps_load): Likewise.
11197         (vcvtph2ps256): Likewise.
11198         (vcvtps2ph): Likewise.
11199         (*vcvtps2ph): Likewise.
11200         (*vcvtps2ph_store): Likewise.
11201         (vcvtps2ph256): Likewise.
11202
11203         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11204
11205         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11206
11207 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11208
11209         PR bootstrap/44512
11210         * genenums.c (main): Output include of insn-constants.h
11211         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11212
11213 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
11214
11215         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11216         (override_options): Initialize it.
11217         (ix86_expand_prologue): Use it.
11218
11219 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11220
11221         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11222
11223 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11224
11225         * double-int.h (fit_double_type): Remove declaration.
11226         * double-int.c (fit_double_type): Remove function.
11227         * tree.h (int_fits_type_p): Adjust prototype.
11228         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11229         instead of fit_double_type.
11230         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11231         instead of fit_double_type and build_int_cst_wide.
11232         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11233         instead of fit_double_type and build_int_cst_wide.
11234         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11235         of fit_double_type.
11236
11237 2010-07-05  Jan Hubicka  <jh@suse.cz>
11238
11239         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11240         in_other_partition.
11241         * lto-cgraph.c (referenced_from_other_partition_p,
11242         reachable_from_other_partition_p): Use in_other_partition flags.
11243         (output_node, output_varpool_node): COMDAT nodes always have private
11244         copies and thus are never used from other partition.
11245
11246 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11247
11248         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11249         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11250         * config/ia64/ia64.c Include reload.h.
11251         (ia64_memory_move_cost): New function.
11252         (TARGET_MEMORY_MOVE_COST): Define.
11253         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11254         memory_move_cost.
11255
11256 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11257
11258         PR middle-end/42505
11259         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11260         comments about cost model.
11261         (try_add_cand_for):  Add second strategy for choosing initial set
11262         based on original IVs, controlled by ORIGINALP argument.
11263         (get_initial_solution): Add ORIGINALP argument.
11264         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11265         (find_optimal_iv_set): Try two different strategies for choosing
11266         the IV set, and return the one with lower cost.
11267
11268 2010-07-05  Richard Guenther  <rguenther@suse.de>
11269
11270         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11271
11272 2010-07-05  Richard Guenther  <rguenther@suse.de>
11273
11274         * tree.c (reference_alias_ptr_type): New function.
11275         * tree.h (reference_alias_ptr_type): Declare.
11276         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11277         allow non-TARGET_MEM_REF new refs.
11278         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11279         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11280         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11281         (create_mem_ref): Get alias pointer type.  Adjust calls to
11282         create_mem_ref_raw.
11283         (maybe_fold_tmr): Likewise.
11284         * tree-flow.h (create_mem_ref): Adjust prototype.
11285
11286 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11287
11288         PR c++/44808
11289         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11290         *from_p is VAR_DECL.
11291
11292 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11293
11294         * tree.h (build_call_list): Remove.
11295         * tree.c (build_call_list): Remove.
11296
11297 2010-07-05  Richard Guenther  <rguenther@suse.de>
11298
11299         * double-int.h (double_int_sub): Declare.
11300         * double-int.c (double_int_sub): New function.
11301         * dwarf2out.c (field_byte_offset): Use it.
11302         * fixed-value.c (do_fixed_add): Likewise.
11303         (do_fixed_multiply): Likewise.
11304         (do_fixed_divide): Likewise.
11305         * tree-predcom.c (add_ref_to_chain): Likewise.
11306         (determine_roots_comp): Likewise.
11307         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11308
11309 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11310
11311         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
11312         implementations.
11313
11314 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
11315
11316         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11317         * arm-modes.def (CC_NOTB): Don't define.
11318         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11319         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11320         (LTUGEU): New code_iterator.
11321         (cnb, optab): New corresponding code_attrs.
11322         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
11323         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
11324         using LTUGEU.
11325         (addsi3_carryin_shift_<optab>): Likewise.
11326         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11327         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
11328         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11329         (subsi3_compare): Renamed from subsi3_compare0_c.
11330         Change CC_NOTB to CC.
11331         (arm_subsi3_insn): Allow constants for operand 0.
11332         (compare_scc peephole for eq case): New.
11333         (compare_scc splitters): Change CC_NOTB to CC.
11334
11335 2010-07-05  Richard Guenther  <rguenther@suse.de>
11336
11337         * tree-ssa-loop-im.c (for_each_index): Do not handle
11338         ALIGN_INDIRECT_REF.
11339         (gen_lsm_tmp_name): Likewise.
11340         * tree-dump.c (dequeue_and_dump): Likewise.
11341         * tree-pretty-print.c (dump_generic_node): Likewise.
11342         (op_code_prio): Likewise.
11343         (op_symbol_code): Likewise.
11344         * tree.c (staticp): Likewise.
11345         (build1_stat): Likewise.
11346         * tree.h (INDIRECT_REF_P): Likewise.
11347         * fold-const.c (maybe_lvalue_p): Likewise.
11348         (operand_equal_p): Likewise.
11349         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11350         (ao_ref_init_from_vn_reference): Likewise.
11351         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11352         (find_interesting_uses_address): Likewise.
11353         * dwarf2out.c (loc_list_from_tree): Likewise.
11354         * gimplify.c (gimplify_expr): Likewise.
11355         * tree-eh.c (tree_could_trap_p): Likewise.
11356         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11357         * cfgexpand.c (expand_debug_expr): Likewise.
11358         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11359         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11360         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11361         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11362         * tree-ssa-operands.c (get_expr_operands): Likewise.
11363         * expr.c (safe_from_p): Likewise.
11364         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
11365         * tree-vect-data-refs.c (vect_setup_realignment): Build
11366         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11367         * tree-vect-stmts.c (vectorizable_load): Likewise.
11368         * tree.def (ALIGN_INDIRECT_REF): Remove.
11369
11370 2010-07-05  Richard Guenther  <rguenther@suse.de>
11371
11372         PR tree-optimization/44784
11373         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11374         for inserted stmts.
11375         (find_or_generate_expression): Fix SCCVN insertion check.
11376
11377 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11378
11379         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11380         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11381         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11382         directives.
11383
11384 2010-07-05  Ira Rosen  <irar@il.ibm.com>
11385
11386         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11387         statements that are not vectorized.
11388         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11389         in INSIDE_COST.
11390
11391 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
11392
11393         PR bootstrap/44820
11394         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11395
11396 2010-07-05  Richard Guenther  <rguenther@suse.de>
11397
11398         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11399         RESULT_DECLs properly.
11400
11401 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11402
11403         PR rtl-optimization/44695
11404         * config/i386/i386.md (extract_code): Removed.
11405         (<u>divmodqi4): Likewise.
11406         (divmodqi4): New.
11407         (udivmodqi4): Likewise.
11408         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11409         (udivmodhiqi3): Likewise.
11410
11411 2010-07-04  Jan Hubicka  <jh@suse.cz>
11412
11413         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11414
11415 2010-07-04  Jan Hubicka  <jh@suse.cz>
11416
11417         * cgraphunit.c (init_cgraph): Only initialize dump file if it
11418         is not already initialized.
11419
11420 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11421
11422         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11423         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11424         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11425         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11426         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11427         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11428         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11429         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11430         (sync_new_nand_optab): Redefine as macros.
11431         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11432         Delete.
11433         (direct_optab_index): New enum.
11434         (direct_optab_d): New structure.
11435         (direct_optab): New typedef.
11436         (direct_optab_table): Declare.
11437         (direct_optab_handler, set_direct_optab_handler): New functions.
11438         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11439         (sync_lock_release_optab): New macros.
11440         * optabs.c (direct_optab_table): New variable.
11441         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11442         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11443         cmpstr_optab and cmpstrn_optab.
11444         (emit_conditional_move): Likewise for movcc_optab.
11445         (can_conditionally_move_p): Likewise for movcc_gen_code.
11446         (init_insn_codes): Clear direct_optab_table.
11447         (init_optabs): Don't initialize the new "direct optabs" here.
11448         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11449         vcond_gen_code.
11450         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11451         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11452         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11453         (expand_sync_operation): Likewise other sync_*_optabs.
11454         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
11455         to sync_compare_and_swap_optab.
11456         (expand_sync_lock_test_and_set): Use direct_optab_handler for
11457         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11458         to the names of both.
11459         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11460         cmpstr_optab and cmpstrn_optab.
11461         (expand_builtin_lock_release): Likewise sync_lock_release.
11462         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11463         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11464         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11465         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11466         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11467         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11468         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11469         (sync_lock_test_and_set, sync_lock_release): Delete.
11470         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11471         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11472         * genopinit.c (optabs): Use set_direct_optab_handler for the new
11473         macro optabs.
11474         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11475         the "optab" local variable.  Use direct_optab_handler for optab and
11476         sync_compare_and_swap_optab.
11477         * reload1.c (reload_in_optab, reload_out_optab): Delete.
11478         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11479         reload_in_optab and reload_out_optab.
11480         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11481         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11482         * config/pa/pa.c (pa_secondary_reload): Likewise.
11483         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11484         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11485         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11486         (VMSupportsCS8_builtin): Likewise.
11487
11488 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11489
11490         * optabs.h (optab_handlers): Change type of insn_code to int.
11491         (optab_handler, set_optab_handler, convert_optab_handler)
11492         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11493         CODE_FOR_nothing".
11494         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11495         (init_insn_codes): Zero both the above arrays.
11496         (init_optabs): Never call init_insn_codes first time around.
11497
11498 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11499
11500         * optabs.h (optab_handler, convert_optab_handler): Turn into
11501         inline functions that return an insn code.
11502         (set_optab_handler, set_convert_optab_handler): New functions.
11503         * builtins.c: Replace optab_handler(X)->insn_code with
11504         optab_handler or set_optab_handler thoughout.  Likewise
11505         convert_optab_handler(X)->insn_code with convert_optab_handler
11506         and set_convert_optab_handler.
11507         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11508         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11509         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11510         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11511         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11512         config/spu/spu.c: Likewise.
11513
11514 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11515
11516         PR target/44531
11517         * config.gcc (sh*-*-*): Use regular expressions instead of
11518         the 'i' modifier for sed substitutions.
11519
11520 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11521
11522         * gimple.c (gimple_body): Comments added.
11523
11524 2010-07-04  Richard Guenther  <rguenther@suse.de>
11525
11526         PR middle-end/44809
11527         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11528         of an INDIRECT_REF.
11529
11530 2010-07-04  Richard Guenther  <rguenther@suse.de>
11531
11532         PR tree-optimization/44479
11533         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11534         extra SSA name copy statements which preserves points-to
11535         information.
11536         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11537         Copy points-to information for all pointers.  Properly handle
11538         MEM_REFs.
11539         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11540         copy statements.
11541         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11542         dependency.
11543
11544 2010-07-04  Richard Guenther  <rguenther@suse.de>
11545
11546         PR middle-end/44785
11547         * tree-inline.c (initialize_inlined_parameters): Do not
11548         re-use pointer-map slot over remap_type call.
11549
11550 2010-07-04  Richard Guenther  <rguenther@suse.de>
11551
11552         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11553
11554 2010-07-04  Richard Guenther  <rguenther@suse.de>
11555
11556         PR tree-optimization/44656
11557         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11558         again after value-replacing in the defintions lhs.
11559
11560 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11561             Revital Eres  <eres@il.ibm.com>
11562
11563         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11564         Document new arguments.
11565         * doc/tm.texi: Regenerate.
11566         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11567         Handle unaligned store.
11568         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11569         * target.def (builtin_vectorization_cost): Add new arguments.
11570         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11571         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11572         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11573         (vect_vfa_segment_size): Fix indentation.
11574         * tree-vectorizer.h (struct _vect_peel_info): New.
11575         (struct _vect_peel_extended_info): New.
11576         (struct _loop_vec_info): Add new field for peeling hash table and a
11577         macro for its access.
11578         (VECT_MAX_COST): Define.
11579         (vect_get_load_cost): Declare.
11580         (vect_get_store_cost, vect_get_known_peeling_cost,
11581         vect_get_single_scalar_iteraion_cost): Likewise.
11582         (vect_supportable_dr_alignment): Add new argument.
11583         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11584         field.
11585         (destroy_loop_vec_info): Free peeling hash table.
11586         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11587         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11588         vect_analyze_slp. Fix indentation.
11589         (vect_get_single_scalar_iteraion_cost): New function.
11590         (vect_get_known_peeling_cost): Likewise.
11591         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11592         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11593         statement. Move outside cost calculation inside unknown peeling case.
11594         Call vect_get_known_peeling_cost for known amount of peeling.
11595         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11596         reference to the print message of forced alignment.
11597         (vect_verify_datarefs_alignment): Update call to
11598         vect_supportable_dr_alignment.
11599         (vect_get_data_access_cost): New function.
11600         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11601         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11602         vect_peeling_hash_choose_best_peeling): Likewise.
11603         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11604         to store all the accesses in the loop and find best possible access to
11605         align using peeling for known alignment case. For unknown alignment
11606         check if stores are preferred or if peeling is worthy.
11607         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11608         (vect_supportable_dr_alignment): Add new argument and check aligned
11609         accesses according to it.
11610         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11611         (cost_for_stmt): Call vect_get_stmt_cost.
11612         (vect_model_simple_cost): Likewise.
11613         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11614         vect_get_store_cost to calculate the cost of the statement.
11615         (vect_get_store_cost): New function.
11616         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11617         vect_get_load_cost to calculate the cost of the statement.
11618         (vect_get_load_cost): New function.
11619         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11620         (vectorizable_load): Likewise.
11621         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11622         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11623         arguments. Handle unaligned store.
11624         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11625         (rs6000_builtin_support_vector_misalignment): Return true for word and
11626         double word alignments for VSX.
11627         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11628         vect_supportable_dr_alignment and builtin_vectorization_cost.
11629
11630 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11631
11632         PR target/44597
11633         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11634         (prefetch_nocc_operand): Likewise.
11635         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11636         (prefetch_20): New insn.
11637         (prefetch_cc): Remove.
11638         (prefetch_nocc): Likewise.
11639
11640 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11641
11642         * expr.c (vector_mode_valid_p): Move to c-common.c.
11643         * expr.h (vector_mode_valid_p): Do not declare here.
11644         * system.h: Poison GCC_EXPR_H in front-ends.
11645         * Makefile.in: Update dependencies.
11646
11647 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11648
11649         PR target/44705
11650         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11651
11652 2010-07-03  Jan Hubicka  <jh@suse.cz>
11653
11654         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11655         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11656         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11657         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11658         Likewise.
11659
11660         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11661         Update timevars.V
11662         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11663         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11664         TV_IPA_LTO_DECL_OUT): New.
11665         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11666
11667 2010-07-03  Jan Hubicka  <jh@suse.cz>
11668
11669         * ipa-inline.c (update_edge_key): Break out from ...
11670         update_callers_keys): ... here;
11671         (update_callee_keys): Update only the edges from caller to callee.
11672         (update_all_calle_keys): Do what update_calle_keys did.
11673         (decide_inlining_of_small_functions): Avoid recomputing of all
11674         callees when badness increase.
11675
11676 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11677
11678         * config/arm/arm.c (arm_attr_length_move_neon): New.
11679         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11680         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11681         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11682         to compute length attribute.
11683
11684 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11685
11686         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11687         as predicate for operand 1 and remove its constraint.
11688         * config/arm/predicates.md (vfp_register_operand): New.
11689         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11690         (*push_fp_multi): Likewise.
11691
11692 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11693
11694         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11695
11696 2010-07-03  Jan Hubicka  <jh@suse.cz>
11697
11698         * config/i386/i386.c (override_options): Revert accidental commit.
11699
11700 2010-07-02  Le-Chun Wu  <lcwu@google.com>
11701
11702         PR c++/44128
11703         * doc/invoke.texi: Update documentation of -Wshadow.
11704
11705 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
11706             Julian Brown  <julian@codesourcery.com>
11707             Sandra Loosemore  <sandra@codesourcery.com>
11708
11709         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11710         comparisons.  Adjust to take both operands.
11711         (arm_select_cc_mode): Handle DImode comparisons.
11712         (arm_gen_compare_reg): Generate a scratch register for DImode
11713         comparisons which require one.  Use xor for Thumb equality checks.
11714         (arm_const_double_by_immediates): New.
11715         (arm_print_operand): Allow 'Q' and 'R' for constants.
11716         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11717         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11718         arm_canonicalize_comparison.
11719         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11720         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11721         prototype.
11722         (arm_const_double_by_immediates): Declare.
11723         * config/arm/constraints.md (Di): New constraint.
11724         * config/arm/predicates.md (arm_immediate_di_operand)
11725         (arm_di_operand, cmpdi_operand): New.
11726         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11727         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11728         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11729         (cstoredi4): Handle non-Cirrus also.
11730
11731 2010-07-02  Julian Brown  <julian@codesourcery.com>
11732             Sandra Loosemore  <sandra@codesourcery.com>
11733
11734         PR target/43703
11735         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11736         (smax<mode>3): Disable for NEON float modes when
11737         flag_unsafe_math_optimizations is false.
11738         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11739         (*mul<mode>3_neon)
11740         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11741         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11742         for NEON float modes when flag_unsafe_math_optimizations is false.
11743         (quad_halves_<code>v4sf): Only enable if
11744         flag_unsafe_math_optimizations is true.
11745         * doc/invoke.texi (ARM Options): Add note about floating point
11746         vectorization requiring -funsafe-math-optimizations.
11747
11748 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11749             Julian Brown  <julian@codesourcery.com>
11750
11751         * config/arm/neon.md (UNSPEC_VABA): Delete.
11752         (UNSPEC_VABAL): Delete.
11753         (UNSPEC_VABS): Delete.
11754         (UNSPEC_VMUL_N): Delete.
11755         (adddi3_neon): New.
11756         (subdi3_neon): New.
11757         (mul<mode>3add<mode>_neon): Make the pattern named.
11758         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11759         (neon_vadd<mode>): Replace with define_expand, and move the remaining
11760         unspec parts...
11761         (neon_vadd<mode>_unspec): ...to this.
11762         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11763         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11764         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11765         (neon_vaba<mode>): Rewrite in terms of vabd.
11766         (neon_vabal<mode>): Rewrite in terms of vabdl.
11767         (neon_vabs<mode>): Rewrite without unspec.
11768         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11769         (*arm_subdi3): Likewise.
11770         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11771         No_op attribute to disable assembly output checks.
11772         * config/arm/arm_neon.h: Regenerated.
11773         * doc/arm-neon-intrinsics.texi: Regenerated.
11774
11775 2010-07-02  Jan Hubicka  <jh@suse.cz>
11776
11777         * ipa-split.c (split_function): For aggregate values, set the return
11778         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
11779         *<retval> = fncall.part ().
11780         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11781
11782 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11783
11784         * config/arm/neon.md (UNSPEC_VAND): Delete.
11785         (UNSPEC_VBIC): Delete.
11786         (UNSPEC_VCLZ): Delete.
11787         (UNSPEC_VCNT): Delete.
11788         (UNSPEC_VEOR): Delete.
11789         (UNSPEC_VORN): Delete.
11790         (UNSPEC_VORR): Delete.
11791         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
11792         core registers too.
11793         (anddi3_neon): Likewise.
11794         (orndi3_neon): Likewise.
11795         (bicdi3_neon): Likewise.
11796         (xordi3_neon): Likewise.
11797         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11798         rid of unspec and handle unused operand.
11799         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11800         * config/arm/predicates.md (imm_for_neon_logic_operand):
11801         Require TARGET_NEON.
11802         (imm_for_neon_inv_logic_operand): Likewise.
11803         * config/arm/arm.md (define_split for logical_binary_operator):
11804         Disable for NEON registers.
11805         (anddi3): Add new define_expand, and rename the insn.  Disable
11806         this insn for NEON, where anddi3_neon now applies.
11807         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11808         (iordi3): As for anddi3.
11809         (xordi3): Likewise.
11810         * config/arm/neon.ml (Vand): Split DImode variants and mark them
11811         as No_op to disable testing for exact instruction match.
11812         (Vorr): Likewise.
11813         (Veor): Likewise.
11814         (Vbic): Likewise.
11815         (Vorn): Likewise.
11816         * config/arm/arm_neon.h: Regenerated.
11817         * doc/arm-neon-intrinsics.texi: Regenerated.
11818
11819 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11820
11821         * expr.h (emit_stack_probe): Declare.
11822         * explow.c (emit_stack_probe): Make global.
11823         (anti_adjust_stack_and_probe): Fix comments.
11824         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11825         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11826         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11827         * config/sparc/sparc.c: Include except.h.
11828         (sparc_emit_probe_stack_range): New function.
11829         (output_probe_stack_range): Likewise.
11830         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11831         built-in stack checking is enabled.
11832         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11833         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11834         (probe_stack_range): New insn.
11835
11836 2010-07-02  Richard Guenther  <rguenther@suse.de>
11837
11838         PR target/43958
11839         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11840         for argument alignment.
11841
11842 2010-07-02  Jan Hubicka  <jh@suse.cz>
11843
11844         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11845         walk backwards from entry_bb to check only those basic block of header
11846         that might lead to execution of split part.
11847         (consider_split) ... here.
11848         (find_return_bb): Allow assignment in return BB.
11849         (find_retval): New.
11850         (split_function): Fix name of cloned function; take care of updating
11851         return value in return_bb containing move.
11852
11853 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
11854
11855         PR target/44771
11856         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
11857         used variable insn.
11858
11859 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11860
11861         * implicit-zee.c (combine_reaching_defs): Fix long lines.
11862         (is_set_with_extension_DI): Delete.
11863         (struct zero_extend_info): New structure.
11864         (add_removable_zero_extend): New function.
11865         (find_removable_zero_extends): Use note_stores to find SETs.
11866         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
11867
11868 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11869
11870         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
11871         is_miss_rate_acceptable. Pull total_positions computation
11872         out of the loops.  Early return if miss_positions exceeds
11873         the acceptable threshold.
11874         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
11875         is_miss_rate_acceptable after renaming of compute_miss_rate.
11876
11877 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11878
11879         PR middle-end/44576
11880         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
11881         of 1000) for miss rate if the address diference is greater than or
11882         equal to the cache line size (the two reference will never hit the
11883         same cache line).
11884
11885 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
11886
11887         PR target/42835
11888         * config/arm/arm-modes.def (CC_NOTB): New mode.
11889         * config/arm/arm.c (get_arm_condition_code): Handle it.
11890         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
11891         * config/arm/arm.md (subsi3_compare0_c): New pattern.
11892         (compare_scc): Now a define_and_split.  Add a number of extra
11893         splitters before it.
11894
11895         PR target/42172
11896         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
11897         and ZERO_EXTEND.
11898         (arm_rtx_costs_1): Likewise.
11899         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
11900         * config/arm/arm.md (is_arch6): New attribute.
11901         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
11902         extendqisi2): Tighten the code somewhat, avoiding invalid
11903         RTL to occur in the expander patterns.
11904         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
11905         (thumb1_zero_extendhisi2_v6): Delete.
11906         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
11907         (thumb1_extendhisi2_v6): Delete.
11908         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
11909         (thumb1_extendqisi2_v6): Delete.
11910         (zero_extendhisi2 for register input splitter): New.
11911         (zero_extendqisi2 for register input splitter): New.
11912         (thumb1_extendhisi2 for register input splitter): New.
11913         (extendhisi2 for register input splitter): New.
11914         (extendqisi2 for register input splitter): New.
11915         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
11916         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
11917         and add support for a register alternative requiring a split.
11918         (thumb1_zero_extendqisi2): Likewise.
11919         (arm_zero_extendqisi2): Likewise.
11920         (arm_extendhisi2): Likewise.
11921         (arm_extendqisi2): Likewise.
11922
11923 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11924
11925         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
11926         instead of an unspec.
11927         (neon_expand_vector_init): Likewise.
11928         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
11929         (UNSPEC_VDUP_LANE): Delete.
11930         (UNSPEC VDUP_N): Delete.
11931         (UNSPEC_VGET_HIGH): Delete.
11932         (UNSPEC_VGET_LANE): Delete.
11933         (UNSPEC_VGET_LOW): Delete.
11934         (UNSPEC_VMVN): Delete.
11935         (UNSPEC_VSET_LANE): Delete.
11936         (V_double_vector_mode): New.
11937         (vec_set<mode>_internal): Make code emitted match that for the
11938         corresponding intrinsics.
11939         (vec_setv2di_internal): Likewise.
11940         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
11941         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
11942         (neon_vset_lane<mode>): Combine double and quad patterns and
11943         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
11944         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
11945         (neon_vdup_n<mode>): Rewrite RTL without unspec.
11946         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
11947         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
11948         with neon_vdup_lanev2di, adjusting the pattern from the latter
11949         to be predicable for consistency.
11950         (neon_vdup_lane<mode>_internal): New.
11951         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
11952         to avoid using an unspec.
11953         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
11954         (neon_vdup_lanev2di): Turn into a define_expand.
11955         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
11956         (neon_vget_high<mode>): Replace with....
11957         (neon_vget_highv16qi): New pattern using canonical RTL.
11958         (neon_vget_highv8hi): Likewise.
11959         (neon_vget_highv4si): Likewise.
11960         (neon_vget_highv4sf): Likewise.
11961         (neon_vget_highv2di): Likewise.
11962         (neon_vget_low<mode>): Replace with....
11963         (neon_vget_lowv16qi): New pattern using canonical RTL.
11964         (neon_vget_lowv8hi): Likewise.
11965         (neon_vget_lowv4si): Likewise.
11966         (neon_vget_lowv4sf): Likewise.
11967         (neon_vget_lowv2di): Likewise.
11968
11969         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
11970         test for this emitting vmov.
11971         (Vset_lane): Likewise.
11972         (Vdup_n): Likewise.
11973         (Vmov_n): Likewise.
11974
11975         * doc/arm-neon-intrinsics.texi: Regenerated.
11976
11977 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11978
11979         * config/arm/neon.md (vec_extractv2di): Correct error in register
11980         numbering to reconcile with neon_vget_lanev2di.
11981
11982 2010-07-02  Richard Guenther  <rguenther@suse.de>
11983
11984         * tree-ssa-structalias.c (pt_solution_set_var): New function.
11985         * tree-ssa-alias.h (pt_solution_set_var): Declare.
11986         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
11987         points-to information.
11988
11989 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
11990
11991         * config/s390/s390.c (override_options): Adopt prefetching
11992         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
11993
11994 2010-07-02  Jan Hubicka  <jh@suse.cz>
11995
11996         * df-problems.c (df_kill_notes): Do not collect dead  notes.
11997         (df_set_note): Just call add_reg_note.
11998         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
11999         df_create_unused_note): Do not deal with lists of old notes.
12000         (df_note_bb_compute): Likewise.
12001
12002 2010-07-02  Richard Guenther  <rguenther@suse.de>
12003
12004         * tree-ssa-structalias.c (find_func_aliases): Handle
12005         pointer alignment via BIT_AND_EXPR.
12006         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
12007
12008 2010-07-02  Richard Guenther  <rguenther@suse.de>
12009
12010         * tree-data-ref.c (initialize_data_dependence_relation): Handle
12011         mismatching number of dimensions properly.
12012
12013 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12014
12015         PR target/44707
12016         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
12017         (lo_sum (high ...) ...) patterns generated by earlier passes.
12018
12019 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12020
12021         * doc/install.texi (Prerequisites): Document Perl requirement on
12022         Solaris 2.
12023         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
12024
12025 2010-07-02  Richard Guenther  <rguenther@suse.de>
12026
12027         PR middle-end/44777
12028         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
12029
12030 2010-07-02  Jan Hubicka  <jh@suse.cz>
12031
12032         PR middle-end/44706
12033         * predict.c (predict_paths_for_bb): Handle case when control dependence
12034         BB has only abnormal edges.
12035
12036 2010-07-02  Richard Guenther  <rguenther@suse.de>
12037
12038         PR tree-optimization/44748
12039         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
12040         the embedded conversion in MEM_REFs.
12041
12042 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
12043
12044         * reload.c: Include toplev.h.
12045         * recog.c:  Likewise.
12046         * Makefile.in: Adjust dependencies.
12047
12048 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
12049
12050         PR debug/44694
12051         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
12052         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
12053
12054 2010-07-01  Richard Guenther  <rguenther@suse.de>
12055
12056         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
12057         types for offsets.
12058
12059 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12060
12061         PR target/44732
12062         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
12063         Fix argument types.
12064
12065 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
12066
12067         PR target/44727
12068         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12069         Make sure operand 0 dies.
12070
12071 2010-07-01  Richard Guenther  <rguenther@suse.de>
12072
12073         PR middle-end/42834
12074         PR middle-end/44468
12075         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
12076         * doc/generic.texi (References to storage): Document MEM_REF.
12077         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
12078         (print_call_name): Likewise.
12079         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
12080         (build_simple_mem_ref_loc): New function.
12081         (mem_ref_offset): Likewise.
12082         * tree.h (build_simple_mem_ref_loc): Declare.
12083         (build_simple_mem_ref): Define.
12084         (mem_ref_offset): Declare.
12085         * fold-const.c: Include tree-flow.h.
12086         (operand_equal_p): Handle MEM_REF.
12087         (build_fold_addr_expr_with_type_loc): Likewise.
12088         (fold_comparison): Likewise.
12089         (fold_unary_loc): Fold
12090         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
12091         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
12092         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
12093         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
12094         (ptr_deref_may_alias_ref_p_1): Likewise.
12095         (ao_ref_base_alias_set): Properly differentiate base object for
12096         offset and TBAA.
12097         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
12098         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
12099         (indirect_refs_may_alias_p): Likewise.
12100         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
12101         chasing code.
12102         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
12103         (call_may_clobber_ref_p_1): Likewise.
12104         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
12105         * expr.c (expand_assignment): Handle MEM_REF.
12106         (store_expr): Handle MEM_REFs from STRING_CSTs.
12107         (store_field): If expanding a MEM_REF of a non-addressable
12108         decl use bitfield operations.
12109         (get_inner_reference): Handle MEM_REF.
12110         (expand_expr_addr_expr_1): Likewise.
12111         (expand_expr_real_1): Likewise.
12112         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
12113         * alias.c (ao_ref_from_mem): Handle MEM_REF.
12114         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
12115         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
12116         (dr_analyze_indices): Likewise.
12117         (dr_analyze_alias): Likewise.
12118         (object_address_invariant_in_loop_p): Likewise.
12119         * gimplify.c (mark_addressable): Handle MEM_REF.
12120         (gimplify_cond_expr): Build MEM_REFs.
12121         (gimplify_modify_expr_to_memcpy): Likewise.
12122         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
12123         (gimple_fold_indirect_ref): Adjust.
12124         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
12125         * tree.def (MEM_REF): New tree code.
12126         * tree-dfa.c: Include toplev.h.
12127         (get_ref_base_and_extent): Handle MEM_REF.
12128         (get_addr_base_and_unit_offset): New function.
12129         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
12130         * gimple-fold.c (may_propagate_address_into_dereference): Handle
12131         MEM_REF.
12132         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
12133         accesses if the array has just one dimension.  Remove always true
12134         parameter.  Do not require type compatibility here.
12135         (maybe_fold_offset_to_component_ref): Remove.
12136         (maybe_fold_stmt_indirect): Remove.
12137         (maybe_fold_reference): Remove INDIRECT_REF handling.
12138         Fold back to non-MEM_REF.
12139         (maybe_fold_offset_to_address): Simplify.  Deal with type
12140         mismatches here.
12141         (maybe_fold_reference): Likewise.
12142         (maybe_fold_stmt_addition): Likewise.  Also handle
12143         &ARRAY + I in addition to &ARRAY[0] + I.
12144         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12145         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12146         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12147         * tree-ssa.c (useless_type_conversion_p): Make most pointer
12148         conversions useless.
12149         (warn_uninitialized_var): Handle MEM_REF.
12150         (maybe_rewrite_mem_ref_base): New function.
12151         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12152         to SSA form.
12153         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12154         INDIRECT_REF handling.
12155         (copy_tree_body_r): Handle MEM_REF.
12156         * gimple.c (is_gimple_addressable): Adjust.
12157         (is_gimple_address): Likewise.
12158         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12159         invariant base are invariant.
12160         (is_gimple_min_lval): Adjust.
12161         (is_gimple_mem_ref_addr): New function.
12162         (get_base_address): Handle MEM_REF.
12163         (count_ptr_derefs): Likewise.
12164         (get_base_loadstore): Likewise.
12165         * gimple.h (is_gimple_mem_ref_addr): Declare.
12166         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12167         * tree-cfg.c (verify_address): New function, split out from ...
12168         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
12169         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
12170         INDIRECT_REFs.
12171         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
12172         INDIRECT_REF.  Allow conversions.
12173         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12174         a register does not change its size.
12175         (verify_types_in_gimple_reference): Verify MEM_REF.
12176         (verify_gimple_assign_single): Disallow INDIRECT_REF.
12177         Handle MEM_REF.
12178         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12179         New.
12180         (mark_address_taken): Handle MEM_REF.
12181         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12182         (get_asm_expr_operands): Pass opf_not_non_addressable.
12183         (get_expr_operands): Handle opf_[not_]non_addressable.
12184         Handle MEM_REF.  Remove INDIRECT_REF handling.
12185         * tree-vrp.c (check_array_ref): Handle MEM_REF.
12186         (search_for_addr_array): Likewise.
12187         (check_array_bounds): Likewise.
12188         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12189         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12190         (ref_always_accessed_p): Likewise.
12191         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
12192         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12193         Handle MEM_REF.
12194         * cgraphbuild.c (mark_load): Properly check for NULL result
12195         from get_base_address.
12196         (mark_store): Likewise.
12197         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12198         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12199         handling for MEM_REF.
12200         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12201         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12202         * builtins.c (stabilize_va_list_loc): Use the function ABI
12203         valist type if we couldn't canonicalize the argument type.
12204         Always dereference with the canonical va-list type.
12205         (maybe_emit_free_warning): Handle MEM_REF.
12206         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12207         memmove to memcpy.
12208         * builtins.c (fold_builtin_memory_op): Use ref-all types
12209         for all memcpy foldings.
12210         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12211         (build_outer_var_ref): Likewise.
12212         (scan_omp_1_op): Likewise.
12213         (lower_rec_input_clauses): Likewise.
12214         (lower_lastprivate_clauses): Likewise.
12215         (lower_reduction_clauses): Likewise.
12216         (lower_copyprivate_clauses): Likewise.
12217         (expand_omp_atomic_pipeline): Likewise.
12218         (expand_omp_atomic_mutex): Likewise.
12219         (create_task_copyfn): Likewise.
12220         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12221         Remove old union trick.  Initialize constant offsets.
12222         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
12223         INDIRECT_REF.  Init base_alias_set properly.
12224         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12225         (vn_reference_fold_indirect): Adjust for MEM_REFs.
12226         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
12227         for ARRAY_REFs.
12228         (may_insert): Remove.
12229         (visit_reference_op_load): Do not test may_insert.
12230         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12231         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12232         a field to store the constant offset this op applies.
12233         (run_scc_vn): Adjust prototype.
12234         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12235         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12236         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
12237         bother about volatile qualifiers on pointers.
12238         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12239         * tree-ssa-loop-ivopts.c
12240         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12241         (strip_offset_1): Likewise.
12242         (find_interesting_uses_address): Replace INDIRECT_REF handling with
12243         MEM_REF handling.
12244         (get_computation_cost_at): Likewise.
12245         * ipa-pure-const.c (check_op): Handle MEM_REF.
12246         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12247         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12248         and constants.
12249         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12250         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12251         (eliminate_local_variables_1): Likewise.
12252         (create_call_for_reduction_1): Likewise.
12253         (create_loads_for_reductions): Likewise.
12254         (create_loads_and_stores_for_name): Likewise.
12255         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12256         (ssa_accessed_in_tree): Handle MEM_REF.
12257         (ssa_accessed_in_assign_rhs): Likewise.
12258         (update_type_size): Likewise.
12259         (analyze_accesses_for_call_stmt): Likewise.
12260         (analyze_accesses_for_assign_stmt): Likewise.
12261         (transform_access_sites): Likewise.
12262         (transform_allocation_sites): Likewise.
12263         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12264         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12265         not handle INDIRECT_REF.
12266         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12267         (cond_store_replacement): Likewise.
12268         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12269         MEM_REF, no not handle INDIRECT_REFs.
12270         (insert_into_preds_of_block): Properly initialize avail.
12271         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
12272         for ARRAY_REFs.  Properly handle reference lookups that
12273         require a bit re-interpretation.
12274         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
12275         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12276         (build_ref_for_offset_1): Remove.
12277         (build_ref_for_offset): Build MEM_REFs.
12278         (gate_intra_sra): Disable for now.
12279         (sra_ipa_modify_expr): Handle MEM_REF.
12280         (ipa_early_sra_gate): Disable for now.
12281         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12282         MEM_REF handling.
12283         (disqualify_base_of_expr): Likewise.
12284         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12285         MEM_REF handling.
12286         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12287         Use mem_ref_offset.  Remove bogus folding.
12288         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12289         (make_fancy_name_1): Add support for MEM_REF.
12290         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12291         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12292         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12293         (compute_complex_ancestor_jump_func): Likewise.
12294         (ipa_analyze_virtual_call_uses): Likewise.
12295         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12296         INDIRECT_REF folding with more generalized MEM_REF folding.
12297         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12298         (forward_propagate_addr_into_variable_array_index): Also handle
12299         &ARRAY + I in addition to &ARRAY[0] + I.
12300         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12301         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12302         creates assignments with overlap.
12303         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12304         (get_frame_field): Likewise.
12305         (get_nonlocal_debug_decl): Likewise.
12306         (convert_nonlocal_reference_op): Likewise.
12307         (struct nesting_info): Add mem_refs pointer-set.
12308         (create_nesting_tree): Allocate it.
12309         (convert_local_reference_op): Insert to be folded mem-refs.
12310         (fold_mem_refs): New function.
12311         (finalize_nesting_tree_1): Perform defered folding of mem-refs
12312         (free_nesting_tree): Free the pointer-set.
12313         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12314         (vectorizable_load): Likewise.
12315         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12316         (propagate_with_phi): Likewise.
12317         * tree-object-size.c (addr_object_size): Handle MEM_REFs
12318         instead of INDIRECT_REFs.
12319         (compute_object_offset): Handle MEM_REF.
12320         (plus_stmt_object_size): Handle MEM_REF.
12321         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12322         for &MEM_REF.
12323         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12324         (symbol_marked_for_renaming): Likewise.
12325         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12326         (fold-const.o): Add $(TREE_FLOW_H).
12327         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12328         (find_func_clobbers): Likewise.
12329         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12330         (decompose_access): Likewise.
12331         (replace_field_acc): Likewise.
12332         (replace_field_access_stmt): Likewise.
12333         (insert_new_var_in_stmt): Likewise.
12334         (get_stmt_accesses): Likewise.
12335         (reorg_structs_drive): Disable.
12336         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12337         (ix86_canonical_va_list_type): Likewise.
12338
12339 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12340
12341         PR other/44566
12342         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12343         * target.def (struct gcc_target): Replace enum reg_class with
12344         reg_class_t in hook argument / return types.
12345         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12346         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12347         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12348         * targhooks.h (default_branch_target_register_class): Likewise.
12349         (default_ira_cover_classes, default_secondary_reload): Likewise.
12350         (default_memory_move_cost, default_register_move_cost): Likewise.
12351         * targhooks.c (default_branch_target_register_class): Likewise.
12352         (default_ira_cover_classes, default_secondary_reload): Likewise.
12353         (default_memory_move_cost, default_register_move_cost): Likewise.
12354         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12355         * bt-load.c (branch_target_load_optimize): Likewise.
12356         * ira.c (setup_cover_and_important_classes): Likewise.
12357         * ira-costs.c (copy_cost): Likewise.
12358         * reload1.c (emit_input_reload_insns): Likewise.
12359         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12360         * config/frv/frv.c (frv_secondary_reload): Likewise.
12361         * config/s390/s390.c (s390_secondary_reload): Likewise.
12362         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12363         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12364         (ix86_register_move_cost): Likewise.
12365         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12366         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12367         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12368         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12369         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12370         (rs6000_ira_cover_classes): Likewise.
12371         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12372         * config/picochip/picochip-protos.h (picochip_secondary_reload):
12373         Likewise.
12374         * config/pa/pa.c (pa_secondary_reload): Likewise.
12375         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12376         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12377         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12378         * doc/tm.texi: Regenerate.
12379
12380 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
12381
12382         PR bootstrrap/44726
12383         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12384         use.
12385         (build_alias_set_optimal_p): Likewise.
12386         (build_base_obj_set_for_drs): Likewise.
12387
12388 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12389
12390         * target.def: Remove comment about licensing problems of function
12391         declarations.
12392
12393         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
12394         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12395         * doc/tm.texi: Regenerate.
12396
12397         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
12398         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12399
12400         * target.def (enum_va_list_p): Use DEFHOOK.
12401         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12402         Rename ptype to ptree.
12403         * doc/tm.texi: Regenerate.
12404
12405         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
12406         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12407         * doc/tm.texi: Regenerate.
12408
12409         * target.def (memory_move_cost): Use DEFHOOK.
12410         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12411         Rename regclass AKA class to rclass.
12412         * doc/tm.texi: Regenerate.
12413
12414         * target.def (pragma_parse): Use DEFHOOK.
12415         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12416         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12417         * doc/tm.texi: Regenerate.
12418
12419         * target.def (pass_by_reference): Use DEFHOOK.
12420         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12421         * doc/tm.texi: Regenerate.
12422
12423         * target.def (resolve_overloaded_builtin): Rename params to arglist.
12424         Use DEFHOOK.
12425         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12426         * doc/tm.texi: Regenerate.
12427
12428         * target.def (return_pops_args): Use DEFHOOK.
12429         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12430         Rename stack-size to size.
12431         * doc/tm.texi: Regenerate.
12432
12433         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
12434         last-sched_cycle to last_clock, cur_cycle to clock.
12435         * doc/tm.texi.in: Use @hook.
12436         * doc/tm.texi: Regenerate.
12437
12438         * target.def (print_operand, print_operand_address): Update comment.
12439         (print_operand_punct_valid_p): Likewise.
12440
12441 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12442
12443         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12444         to rtl.h.
12445         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12446         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12447         * rtl-error.h: New.
12448         * regrename.c: Do not include toplev.h. Include rtl-error.h.
12449         * rtl-error.c: Likewise.
12450         * reload.c: Likewise.
12451         * recog.c:  Likewise.
12452         * sel-sched.c: Likewise.
12453         * function.c: Likewise.
12454         * reg-stack.c: Likewise.
12455         * cfgrtl.c: Likewise.
12456         * reload1.c: Likewise.
12457         * final.c: Include rtl-error.
12458         * Makefile.in: Adjust dependencies.
12459
12460 2010-06-30  Jan Hubicka  <jh@suse.cz>
12461
12462         PR middle-end/PR44706
12463         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12464         to return the value.
12465
12466 2010-06-30  Michael Matz  <matz@suse.de>
12467
12468         PR bootstrap/44699
12469         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12470         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12471         a gimple reg, attach the original VDEF to the last store in the
12472         sequence.
12473
12474 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
12475
12476         PR other/44034
12477         * config/darwin.c (darwin_override_options): Use renamed
12478         targetm.asm_out.emit_unwind_label.
12479
12480 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12481
12482         PR tree-optimization/39799
12483         * tree-inline.c (remap_ssa_name): Initialize variable only if
12484         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12485
12486 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
12487
12488         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12489
12490 2010-06-30  Richard Guenther  <rguenther@suse.de>
12491
12492         PR target/44722
12493         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12494         against oscillation with reverse peephole2.
12495
12496 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12497
12498         PR target/44721
12499         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12500         Fix last commit.
12501
12502 2010-06-30  Nick Clifton  <nickc@redhat.com>
12503
12504         * config/rx/rx-modes.def: New file.
12505         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12506         (CC_REGNUM): Define.
12507         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12508         register.
12509         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12510         (SELECT_CC_MODE): Define.
12511         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
12512         (reg:CC CC_REG) instead of (cc0).
12513         (attr "cc"): Delete.
12514         (cbranchsi4): Do not split compare and branch here. Instead move
12515         it to...
12516         (cbranchsi4_<code>): ... here.  New patterns.
12517         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12518         to emit the compare instruction.
12519         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12520         cc_status flags.
12521         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12522         FIRST_PSEUDO_REGNUM.
12523         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12524         (rx_notice_update_cc): Delete.
12525         (rx_cc_modes_compatible): New function.
12526         (flags_needed_for_conditional): New function.
12527         (flags_from_mode): New function.
12528         (rx_compare_redundant): New function - scans backwards through
12529         insn list to find out if condition flags are already set correctly.
12530         (TARGET_CC_MODES_COMPATIBLE): Define.
12531         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12532
12533         * config/rx/rx.h (BRANCH_COST): Define.
12534         (REGISTER_MOVE_COST): Define.
12535         * config/rx/predicates (rx_source_operand): Allow all constant types.
12536         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12537         (tstsi4): New pattern.
12538         * config/rx/rx.c (rx_memory_move_cost): Define.
12539         (TARGET_MEMORY_MOVE_COST): Define.
12540
12541 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12542
12543         * tree.h (block_may_fallthru): Declare here.
12544         * tree-flow.h (block_may_fallthru): Do not declare here.
12545         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12546         bitmap.h
12547         * Makefile.in (c-typeck.o): Update dependencies.
12548
12549 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12550
12551         PR debug/44694
12552         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12553         * cselib.c (cfa_base_preserved_regno): New static variable.
12554         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12555         of REGNO (cfa_base_preserved_val->locs->loc).
12556         (cselib_preserve_cfa_base_value): Add regno argument, set
12557         cfa_base_preserved_regno to it.
12558         (cselib_invalidate_regno): Allow removal of registers other than
12559         cfa_base_preserved_regno from cfa_base_preserved_val.
12560         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12561         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12562         of MEM addresses, if not on LHS.
12563         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12564         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12565
12566 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12567
12568         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12569         static variables.
12570         (peep2_buf_position): New static function.
12571         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12572         peephole2_optimize): Use it.
12573         (peep2_attempt, peep2_update_life): New static functions, broken out
12574         of peephole2_optimize.
12575         (peep2_fill_buffer): New static function.
12576         (peephole2_optimize): Change the main loop to try to fill the buffer
12577         with the maximum number of insns before matching them against
12578         peepholes.  Use a forward scan.  Remove special case for targets with
12579         conditional execution.
12580         * genrecog.c (change_state): Delete dead code.
12581         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12582         Rewrite so as not to expect the second insn to have had a peephole
12583         applied yet.
12584
12585 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12586
12587         * genhooks.c (emit_findices): Cast field precision to int.
12588         (emit_documentation): Likewise.
12589
12590 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12591
12592         PR tree-optimization/43801
12593         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12594         if old_decl was DECL_ONE_ONLY.
12595
12596         PR debug/44668
12597         * dwarf2out.c (add_accessibility_attribute): New function.
12598         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12599         instead of adding DW_AT_accessibility manually.
12600         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12601         gen_typedef_die): Use it.
12602
12603 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12604
12605         * vmsdbgout.c (full_name): Just output the file name if not native.
12606
12607 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12608
12609         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12610         (funcnam_table): New static table.
12611         (funcnum_table): New static table.
12612         (write_rtnbeg): Write value saved in funcnum_table.
12613         (write_rtnend): Write value saved in funcnum_table.
12614         (vmsdbgout_begin_function): Save current function info in
12615         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12616         (vmsdbgout_finish): Iterate over funcnum_table.
12617
12618 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12619
12620         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12621         (vmsdbgout_type_decl): Declare
12622         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12623         (FUNC_EPILOGUE_LABEL): New macro
12624         (vmsdbgout_begin_epilogue): New function.
12625         (vmsdbgout_type_decl): New function.
12626
12627 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12628
12629         * vmsdbg.h: Update copyright.
12630
12631 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12632
12633         * vmsdbg.h (DST_K_TBG): New DST constant.
12634         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12635         (write_modbeg): Cast module_language to avoid warning.
12636         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12637
12638 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12639
12640         PR other/44034
12641         * target.def, doc/tm.texi.in, genhooks.c: New files.
12642         * target.h: Instead of defining individual hook members,
12643         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12644         include target.def.
12645         * target-def.h: Instead of defining individual hook initializers,
12646         include target-hooks-def.h.
12647         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12648         targetm.live_on_entry -> targetm.extra_live_on_entry
12649         targetm.sched.md_finish ->targetm.sched.finish
12650         targetm.sched.md_init -> targetm.sched.init
12651         targetm.sched.md_init_global -> targetm.sched.init_global
12652         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12653         targetm.asm_out.except_table_label ->
12654           targetm.asm_out.emit_except_table_label
12655         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12656         targetm.target_help -> targetm.help
12657         targetm.vectorize.builtin_support_vector_misalignment ->
12658           targetm.vectorize.support_vector_misalignment
12659         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12660         targetm.file_start_file_directive ->
12661          targetm.asm_file_start_file_directive
12662         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12663         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12664         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12665         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12666           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12667         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12668           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12669         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12670         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12671         * Makefile.in (TARGET_H): Depend on target.def.
12672         (TARGET_DEF_H): Depend on target-hooks-def.h.
12673         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12674         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12675         * doc/tm.texi: Regenerate.
12676
12677         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12678
12679         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12680         (targetm.sched.init): Likewise.
12681
12682 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12683
12684         PR bootstrap/44713
12685         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12686         (function_arg_advance_32): Const-ify TYPE parameter.
12687         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12688         (ix86_function_arg_advance): Change type of NAMED to bool.
12689         (function_arg_32): Const-ify CUM and TYPE parameters.
12690         (function_arg_64): Likewise.  Change type of NAMED to bool.
12691         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12692         to bool.
12693         (ix86_function_arg): Change type of NAMED to bool.
12694         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
12695         last argument as a bool.
12696
12697 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12698
12699         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12700         (OVERRIDE_OPTIONS): Add note of obsolescence.
12701         Replace references with references to TARGET_OPTION_OVERRIDE.
12702         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12703          the macro).
12704         * targhooks.c (default_target_option_override): New function.
12705         * targhooks.h (default_target_option_override): Declare.
12706         * target.h (struct gcc_target): Add override member to
12707         target_option member.
12708         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12709         targetm.target_option.override call.
12710         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12711         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12712
12713 2010-06-29  Jan Hubicka  <jh@suse.cz>
12714
12715         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12716
12717 2010-06-29  Jan Hubicka  <jh@suse.cz>
12718
12719         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12720         unreachable.
12721         (rebuild_frequencies): New function.
12722         * predict.h (rebuild_frequencies): Declare.
12723         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12724         entry block and edge reaching new_entry.
12725         (tree_function_versioning): When doing partial cloning, rebuild
12726         frequencies when done.
12727         * passes.c (execute_function_todo): Use rebild_frequencies.
12728
12729 2010-06-29  Richard Guenther  <rguenther@suse.de>
12730
12731         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12732         * tree-flow.h (enum noalias_state): Remove.
12733         (struct var_ann_d): Remove noalias_state member.
12734
12735 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12736
12737         PR target/43902
12738         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12739         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
12740         (maddhidi4): Likewise.
12741
12742         Revert parts of the change for PR25130.
12743         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12744         MEM_ALIAS_SET.
12745
12746 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12747
12748         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12749         targetm.calls.function_incoming_arg, and
12750         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12751         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12752         * target.h (struct gcc_target): Add function_arg_advance,
12753         function_arg, and function_incoming_arg fields.
12754         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12755         (TARGET_FUNCTION_INCOMING_ARG): Define.
12756         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12757         and TARGET_FUNCTION_INCOMING_ARG.
12758         * targhooks.h (default_function_arg_advance): Declare.
12759         (default_function_arg, default_function_incoming_arg): Declare.
12760         * targhooks.c (default_function_arg_advance): New function.
12761         (default_function_arg, default_function_incoming_arg): New function.
12762         * config/i386/i386.c (function_arg_advance): Rename to...
12763         (ix86_function_arg_advance): ...this.  Make static.
12764         (function_arg): Rename to...
12765         (ix86_function_arg): ...this.  Make static.
12766         (TARGET_FUNCTION_ARG_ADVANCE): Define.
12767         (TARGET_FUNCTION_ARG): Define.
12768         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12769         (FUNCTION_ARG): Delete.
12770         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12771         (function_arg): Delete prototype.
12772
12773 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12774
12775         * reginfo.c (init_reg_sets_1): Adjust comments.
12776         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12777         * calls.c (prepare_call_address): Likewise.
12778         (emit_call_1): Use targetm.calls.return_pops_args.
12779         (expand_call): Likewise.
12780         * function.c (assign_parms): Likewise.
12781         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12782         * target.h (struct gcc_target) [struct calls]: Add
12783         return_pops_args field.
12784         * targhooks.h (default_return_pops_args): Declare.
12785         * targhooks.c (default_return_pops_args): Define.
12786         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12787         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12788         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12789         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
12790         documentation.
12791         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12792         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12793         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12794         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12795         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12796         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12797         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12798         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12799         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12800         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12801         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12802         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12803         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12804         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12805         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12806         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12807         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12808         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12809         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12810         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12811         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12812         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12813         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12814         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12815         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12816         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12817         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12818         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12819         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12820         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12821         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12822         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12823         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12824         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12825         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12826         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12827         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12828         * config/i386/i386.c (ix86_return_pops_args): Make static.
12829         Constify arguments.
12830         (TARGET_RETURN_POPS_ARGS): Define.
12831         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12832         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
12833         (TARGET_RETURN_POPS_ARGS): Define.
12834         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12835         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
12836         (TARGET_RETURN_POPS_ARGS): Define.
12837
12838 2010-06-29  Richard Guenther  <rguenther@suse.de>
12839
12840         PR middle-end/44667
12841         * tree-inline.c (initialize_inlined_parameters): Make sure
12842         to remap the inlined parameter variable substitutions types.
12843
12844 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12845
12846         PR rtl-optimization/44659
12847         * combine.c (make_compound_operation) <SUBREG>: Do not return the
12848         result of force_to_mode if it partially re-expanded the compound.
12849
12850 2010-06-28  Jan Hubicka  <jh@suse.cz>
12851
12852         PR middle-end/44671
12853         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12854         RESULT_DECL.
12855
12856 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
12857
12858         * double-int.h (force_fit_type_double): Remove declaration.
12859         * double-int.c (force_fit_type_double): Move to tree.c.
12860         * tree.h (force_fit_type_double): Declare.
12861         * tree.h (force_fit_type_double): Moved from double-int.c. Use
12862         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
12863         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
12864         * convert.c (convert_to_pointer): Adjust call to
12865         force_fit_type_double.
12866         * tree-vrp.c (extract_range_from_assert,
12867         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
12868         * fold-const.c: Update comment.
12869         (int_const_binop, fold_convert_const_int_from_int,
12870         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
12871         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
12872         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
12873         round_up_loc): Adjust call to force_fit_type_double.
12874
12875 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12876
12877         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
12878
12879 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12880
12881         * tree-sra.c (convert_callers): New parameter, change fndecls of
12882         recursive calls.
12883         (modify_function): Pass the old decl to convert_callers.
12884
12885 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12886
12887         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
12888         ipa_check_create_node_params and ipa_initialize_node_params with
12889         checking asserts they are not necessary.
12890
12891 2010-06-28  Jan Hubicka  <jh@suse.cz>
12892
12893         PR tree-optimization/44687
12894         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
12895
12896 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12897
12898         PR c++/44535
12899         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
12900         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
12901         instead of BINFO_BASE_BINFO.
12902
12903 2010-06-28  Michael Matz  <matz@suse.de>
12904
12905         PR middle-end/44592
12906         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
12907         proper VDEF chain for intermediate stores in the sequence.
12908
12909 2010-06-28  Jan Hubicka  <jh@suse.cz>
12910
12911         PR tree-optimization/44357
12912         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
12913         uninlinable functions.
12914
12915 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12916
12917         * config.gcc (powerpc*-*-*): Handle titan.
12918         * config/rs6000/rs6000.c (titan_cost): New costs.
12919         (rs6000_override_options): Add "titan" to processor_target_table.
12920         Add Titan to branch alignment logic.
12921         Correctly set rs6000_cost for titan.
12922         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
12923         * config/rs6000/titan.md: New file.
12924         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
12925
12926 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12927
12928         * tree-browser.c (TB_history_stack): Convert to a VEC.
12929         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
12930         (TB_history_prev): Likewise.
12931
12932 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12933
12934         * vec.h (vec_heap_free): Add parentheses around free.
12935
12936 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
12937
12938         * system.h: Poison GCC_EXCEPT_H for front-end files.
12939
12940         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
12941         langhook.
12942         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
12943         Define to NULL by default.
12944         * except.h: Define GCC_EXCEPT_H.
12945         (doing_eh): Remove prototype.
12946         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
12947         (lang_protect_cleanup_actions): Remove.
12948         * except.c (lang_protect_cleanup_actions): Remove.
12949         (doing_eh): Remove.
12950         (gen_eh_region): Don't check doing_eh here.
12951         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
12952         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
12953         instead of lang_protect_cleanup_actions.
12954         * omp-low.c (maybe_catch_exception): Likewise.
12955         * Makefile.in: Update dependencies.
12956
12957 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
12958
12959         * cgraph.h (struct varpool_node): new used_from_object_file flag.
12960         (struct cgraph_local_info): new used_from_object_file flag.
12961         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
12962         (cgraph_clone_node): initialize used_from_object_file.
12963         (cgraph_create_virtual_clone): initialize used_from_object_file.
12964         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
12965         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
12966         when compiling with -fwhole-program.
12967         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
12968         internal resolver.
12969         * ipa.c (function_and_variable_visibility): Set externally_visible
12970         flag of varpool_node if used_from_object_file flag is set.
12971         (cgraph_externally_visible_p): check used_from_object_file flag.
12972         * doc/invoke.texi (-fwhole-program option): Change description of
12973         externally_visible attribute accordingly.
12974         * doc/extend.texi (externally_visible): Ditto.
12975
12976 2010-06-27  Jan Hubicka  <jh@suse.cz>
12977
12978         * params.def (max-inline-insns-auto): Default to 40.
12979         * doc/invoke.texi (max-inline-insns-auto): Document the change.
12980
12981 2010-06-27  Jan Hubicka  <jh@suse.cz>
12982
12983         PR middle-end/44671
12984         PR middle-end/44686
12985         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
12986         signature change.
12987         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
12988         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
12989
12990 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
12991
12992         * target.h (struct gcc_target): Add register_move_cost field.
12993         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
12994         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
12995         * targhooks.c (default_register_move_cost): New function.
12996         * targhooks.h (default_register_move_cost): Declare function.
12997         * defaults.h (REGISTER_MOVE_COST): Delete.
12998         * ira-int.h (ira_register_move_cost): Update comment.
12999         * ira.c (ira_register_move_cost): Update comment.
13000         * reload.h (register_move_cost): Declare.
13001         * reginfo.c (register_move_cost): New function.
13002         (move_cost): Update comment.
13003         (init_move_cost, memory_move_secondary_cost): Replace
13004         REGISTER_MOVE_COST with register_move_cost.
13005         * postreload.c (reload_cse_simplify_set): (Ditto.).
13006         * reload.c (find_valid_class, find_reloads): (Ditto.).
13007         * reload1.c (choose_reload_regs): (Ditto.).
13008         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
13009         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
13010         * doc/md.texi (can_create_pseudo_p): Update documentation.
13011
13012         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13013         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13014         * config/i386/i386.h (ix86_memory_move_cost): Make static.
13015         (TARGET_MEMORY_MOVE_COST): Define.
13016
13017         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13018         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
13019         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
13020         (TARGET_MEMORY_MOVE_COST): Define.
13021
13022 2010-06-27  Richard Guenther  <rguenther@suse.de>
13023
13024         PR tree-optimization/44683
13025         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
13026         false edge from the inverted condition.
13027
13028 2010-06-27  Richard Guenther  <rguenther@suse.de>
13029
13030         PR middle-end/44684
13031         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
13032         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
13033         for register LHS.  Or non-store assignments.
13034
13035 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
13036
13037         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
13038         (sparc_emit_set_const64): Likewise.  Remove disabled code.
13039         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
13040         (sparc_emit_set_const64): Likewise.
13041
13042 2010-06-26  Catherine Moore  <clm@codesourcery.com>
13043
13044         * config/mips/mips.md (alu_type): New attribute.
13045         (type): Infer type from alu_type.
13046         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13047         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
13048         *subsi3_extended, negsi2, negdi2, *low<mode>,
13049         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
13050         xor<mode>3, *nor<mode>3,
13051         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
13052         *zero_extendhi_truncqi):  Set alu_type instead of type.
13053
13054 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
13055
13056         * config/alpha/alpha.c (alpha_need_linkage): Adjust
13057         splay_tree_new_ggc call.
13058         (alpha_use_linkage): Likewise.
13059
13060 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13061
13062         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
13063         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
13064         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
13065         (static_specs): Remove switches_need_spaces.
13066         (process_command, do_self_spec): Hardcode handling "-o" instead of
13067         checking switches_need_spaces.
13068         * system.h (SWITCHES_NEED_SPACES): Poison.
13069
13070 2010-06-26  Richard Guenther  <rguenther@suse.de>
13071
13072         PR tree-optimization/44393
13073         * tree-loop-distribution.c (generate_loops_for_partition): Fix
13074         stmt removal and VOP renaming.
13075         (generate_memset_zero): Remove redundant stmt updating.
13076         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
13077         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
13078
13079 2010-06-26  Jan Hubicka  <jh@suse.cz>
13080
13081         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
13082         edges comming from header are equivalent.
13083         (visit_bb): Handle PHIs correctly.
13084         * tree-inline.c (copy_phis_for_bb): Be able to copy
13085         PHI from entry edge.
13086         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
13087
13088 2010-06-26  Richard Guenther  <rguenther@suse.de>
13089
13090         PR middle-end/44674
13091         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
13092         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
13093
13094 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13095
13096         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
13097         add_infile, alloc_switch): New.
13098         (process_command): Remove variable lang_n_infiles.  Process
13099         options in a single pass.  Use new functions for allocating
13100         infiles and switches arrays.  Properly skip operands of
13101         -Xpreprocessor and -Xassembler.
13102
13103 2010-06-26  Jan Hubicka  <jh@suse.cz>
13104
13105         PR middle-end/44671
13106         * cgraphunit.c (cgraph_function_versioning): Remove wrong
13107         cgraph_make_decl_local call; fix typo copying RTL data.
13108
13109 2010-06-25  DJ Delorie  <dj@redhat.com>
13110
13111         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
13112         (m32c_output_aligned_common): Likewise.
13113         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13114         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13115         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
13116         (m32c_register_pragmas): Register it.
13117         * config/m32c/m32c.c (m32c_get_pragma_address): New.
13118         (m32c_insert_attributes): Set #pragma address decls volatile.
13119         (pragma_entry_eq): New.
13120         (pragma_entry_hash): New.
13121         (m32c_note_pragma_address): New.
13122         (m32c_get_pragma_address): New.
13123         (m32c_output_aligned_common): New.
13124         * doc/extend.texi: Document the new pragma.
13125
13126         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
13127         also.
13128         * config/m32c/predicates.md (m32c_any_operand): Check the code
13129         instead of memory_operand so as to allow matching volatile MEMs.
13130         (m32c_nonimmediate_operand): Likewise.
13131         (mra_operand): Allow volatiles.
13132
13133 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
13134
13135         PR debug/44610
13136         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13137         address if the offset is unknown.
13138
13139 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
13140
13141         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13142         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13143         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13144         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13145         to ia64_start_function. Invoke it.
13146         * config/ia64/ia64.c (ia64_start_function): Call new function
13147         dwarf2out_vms_debug_main_pointer.
13148
13149 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13150
13151         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13152         statements computing the true predicate.
13153
13154 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13155
13156         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13157         to boolean_true_node.
13158         (reset_bb_predicate): New.
13159         (predicate_bbs): Call reset_bb_predicate.
13160
13161 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13162
13163         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13164         (tree_if_conversion): Returns true when something has been changed.
13165         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13166         changed something.
13167
13168 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13169
13170         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13171         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13172         * tree-if-conv.c: Include dbgcnt.h.
13173         (tree_if_conversion): Use if_conversion_tree to count the number of
13174         if-convertible loops.
13175
13176 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
13177
13178         * common.opt (fprefetch-loop-arrays): Re-define
13179         -fprefetch-loop-arrays as a tri-state option with the initial
13180         value of -1.
13181         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13182         pass only when flag_prefetch_loop_arrays > 0.
13183         * toplev.c (process_options): Note that, with tri-states,
13184         flag_prefetch_loop_arrays>0 means prefetching is enabled.
13185         * config/i386/i386.c (override_options): Enable prefetching at -O3
13186         for a set of CPUs that sw prefetching is helpful.
13187         (software_prefetching_beneficial_p): New.  Return TRUE if software
13188         prefetching is beneficial for the given CPU.
13189
13190 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13191
13192         PR rtl-optimization/44326
13193         * implicit-zee.c (find_removable_zero_extends): Replace
13194         INSN_P with NONDEBUG_INSN_P.
13195
13196 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13197
13198         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13199         (struct ipa_node_params): Removed the modification_analysis_done flag.
13200         (ipa_is_param_modified): Removed.
13201         (ipa_analyze_node): Declare.
13202         (ipa_compute_jump_functions): Remove declaration.
13203         (ipa_count_arguments): Likewise.
13204         (ipa_detect_param_modifications): Likewise.
13205         (ipa_analyze_params_uses): Likewise.
13206         * ipa-prop.c (struct param_analysis_info): New type.
13207         (visit_store_addr_for_mod_analysis): Removed.
13208         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13209         moved down in the file.
13210         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13211         (ipa_count_arguments): Made static.
13212         (mark_modified): New function.
13213         (is_parm_modified_before_call): New function.
13214         (compute_pass_through_member_ptrs): New parameter parms_info, call
13215         is_parm_modified_before_call instead of ipa_is_param_modified.
13216         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13217         it to compute_pass_through_member_ptrs.
13218         (ipa_compute_jump_functions): New parameter parms_info, pass it to
13219         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
13220         on the callee if it is analyzed.  Made static.
13221         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13222         is_parm_modified_before_call instead of ipa_is_param_modified.
13223         (ipa_analyze_call_uses): New parameter parms_info, pass it to
13224         ipa_analyze_indirect_call_uses.
13225         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13226         ipa_analyze_call_uses.
13227         (ipa_analyze_params_uses): New parameter parms_info, pass it to
13228         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
13229         (ipa_analyze_node): New function.
13230         (ipa_print_node_params): Do not dump the modified flag.
13231         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13232         it.  Do not stream the modified parameter flag.
13233         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13234         it.  Do not stream the modified parameter flag.
13235         * ipa-cp.c (ipcp_analyze_node): Removed.
13236         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13237         with only a call to ipa_analyze_node.
13238         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13239         node with only a call to ipa_analyze_node.
13240
13241 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13242
13243         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13244
13245 2010-06-25  Jan Hubicka  <jh@suse.cz>
13246
13247         * tree-pass.h (pass_split_functions): Declare.
13248         * opts.c (decode_options): Enable function splitting at -O2
13249         * timevar.def (TV_IPA_FNSPLIT): New macro.
13250         * ipa-split.c: New file.
13251         * common.opt (-fpartial-inlining): New flag.
13252         * Makefile.in (ipa-split.o): New object file.
13253         * passes.c (init_optimization_passes): Add ipa-split.
13254         * params.def (partial-inlining-entry-probability): New parameters.
13255         * doc/invoke.texi (-fpartial-inlining): New.
13256
13257 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13258
13259         PR 44665
13260         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13261         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13262         (gimplify_expr): Likewise.
13263
13264 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13265
13266         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13267         statements instead of bailing out on them.
13268         (ipa_analyze_indirect_call_uses): Do not require that loads from the
13269         parameter are in the same BB as the condition.  Update comments.
13270
13271 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
13272
13273         PR middle-end/43866
13274         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13275         true or always false, return NULL_TREE.
13276         (tree_unswitch_single_loop): Optimize conditions even when reaching
13277         max-unswitch-level parameter.  If num > 0, optimize first all conditions
13278         using entry checks, then do still reachable block discovery and consider
13279         only conditions in still reachable basic blocks in the loop.
13280
13281         PR tree-optimization/44539
13282         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13283         the call doesn't have LHS, but has VDEF.
13284
13285 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13286
13287         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13288         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13289         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13290         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13291         * system.h (MODIFY_TARGET_NAME): Poison.
13292
13293 2010-06-25  Alan Modra  <amodra@gmail.com>
13294
13295         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13296         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13297         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13298         CMODEL_LARGE as default.
13299         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13300         (offsettable_ok_by_alignment): Delete.
13301         (rs6000_emit_move): Remove mcmodel=medium optimization.
13302
13303 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13304
13305         With large parts from Jim Wilson:
13306         PR target/43902
13307         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13308         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13309         * optabs.c (optab_for_tree_code): Likewise.
13310         (expand_widen_pattern_expr): Likewise.
13311         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13312         out of execute_optimize_widening_mul.
13313         (convert_plusminus_to_widen): New function.
13314         (execute_optimize_widening_mul): Use the two new functions.
13315         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13316         Remove code to generate widening multiply-accumulate.  Add support
13317         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13318         * gimple-pretty-print.c (dump_ternary_rhs): New function.
13319         (dump_gimple_assign): Call it when appropriate.
13320         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13321         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13322         (expand_gimple_stmt_1): Likewise.
13323         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13324         WIDEN_MULT_MINUS_EXPR.
13325         * tree-ssa-operands.c (get_expr_operands): Likewise.
13326         * tree-inline.c (estimate_operator_cost): Likewise.
13327         * gimple.c (extract_ops_from_tree_1): Renamed from
13328         extract_ops_from_tree.  Add new arg for a third operand; fill it.
13329         (gimple_build_assign_stat): Support operations with three operands.
13330         (gimple_build_assign_with_ops_stat): Likewise.
13331         (gimple_assign_set_rhs_from_tree): Likewise.
13332         (gimple_assign_set_rhs_with_ops_1): Renamed from
13333         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
13334         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13335         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13336         WIDEN_MULT_MINUS_EXPR.
13337         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13338         (extract_ops_from_tree_1): Adjust declaration.
13339         (gimple_assign_set_rhs_with_ops_1): Likewise.
13340         (gimple_build_assign_with_ops): Pass NULL for last operand.
13341         (gimple_build_assign_with_ops3): New macro.
13342         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13343         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13344         functions.
13345         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13346         (verify_gimple_assign): Call it.
13347         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13348         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13349         functions for dealing with three-operand statements.
13350         * tree.c (commutative_ternary_tree_code): New function.
13351         * tree.h (commutative_ternary_tree_code): Declare it.
13352         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13353         ternary statements.
13354         (gimple_assign_nonzero_warnv_p): Likewise.
13355         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13356         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13357         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
13358         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13359         (struct hashtable_expr): New member ternary in the union.
13360         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13361         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
13362         (iterative_hash_hashable_expr): Likewise.
13363         (print_expr_hash_elt): Handle EXPR_TERNARY.
13364         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13365         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13366         statements.  Handle GIMPLE_TERNARY_RHS.
13367
13368 2010-06-25  Jan Hubicka  <jh@suse.cz>
13369
13370         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13371
13372 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
13373
13374         PR c/44517
13375         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13376         parameters are not good.
13377         (c_parser_parameter_declaration): Error unknown type name if the type
13378         name can't start declaration specifiers.
13379
13380 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13381
13382         * gcc.c (translate_options): Don't mention +e in comment.
13383         (process_command): Don't handle +e specially.
13384
13385 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13386
13387         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13388
13389         * ira-build.c (merge_hard_reg_conflicts): New function.
13390         (create_cap_allocno, copy_info_to_removed_store_destinations,
13391         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13392         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13393         (remove_unnecessary_allocnos, remove_low_level_allocnos)
13394         copy_nifo_to_removed_store_destination): Use them.
13395         * ira-lives.c (make_hard_regno_born): New function, split out of
13396         make_regno_born.
13397         (make_allocno_born): Likewise.
13398         (make_hard_regno_dead): New function, split out of make_regno_dead.
13399         (make_allocno_dead): Likewise.
13400         (inc_register_pressure): New function, split out of set_allocno_live.
13401         (dec_register_pressure): New function, split out of clear_allocno_live.
13402         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13403         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
13404         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13405         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
13406         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13407         mark_pseudo_regno_live.
13408         (process_bb_node_lives): Use mark_pseudo_regno_live,
13409         make_hard_regno_born and make_allocno_dead.
13410         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13411         set_allocno_live, clear_allocno_live): Delete functions.
13412
13413         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13414         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13415         functions.
13416         (ira_flattening): Use ira_parent_allocno.
13417         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13418         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13419
13420         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13421         statement.
13422
13423         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13424         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13425         minmax_set_iter_cond, minmax_set_iter_next,
13426         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13427         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13428         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13429         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
13430         uses changed.
13431
13432         * ira-int.h (struct live_range, live_range_t): Renamed from struct
13433         ira_allocno_live_range and allocno_live_range_t; all uses changed.
13434         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13435         All uses changed.
13436
13437 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
13438
13439         * thumb2.md (thumb2_tlobits_cbranch): Delete.
13440         (peephole2 to convert zero_extract/compare of single bit to
13441          lshift/compare): New.
13442
13443 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
13444
13445         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13446         recursive call and call to 'int_const_binop'.
13447         (build_range_check, fold_cond_expr_with_comparison, unextend,
13448         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13449         multiple_of_p): Adjust call to const_binop.
13450
13451 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
13452
13453         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13454         determine size of XFmode operand.
13455         (XFmode extended DFmode push splitter): Ditto.
13456         (XFmode extended SFmode push splitter): Ditto.
13457
13458 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13459
13460         PR target/44588
13461         * config/i386/i386.md (extract_code): New.
13462         (<u>divmodqi4): Likewise.
13463         (divmodhiqi3): Likewise.
13464         (udivmodhiqi3): Likewise.
13465         (<u>divqi3): Remvoved.
13466
13467 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
13468
13469         PR middle-end/44492
13470         * recog.h (struct recog_data): Add is_asm field.
13471         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13472         present in constraints of inline-asm operand and memory operand
13473         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13474         (extract_insn): Initialize recog_data.is_asm.
13475         * doc/md.texi (Constraints): Document operand side-effect rules.
13476
13477 2010-06-24  Andi Kleen  <ak@linux.intel.com>
13478
13479         * c-parser.c (c_parser_conditional_expression): Call
13480         warn_for_omitted_condop.
13481         * doc/invoke.texi: Document omitted condop warning.
13482
13483 2010-06-24  Nick Clifton<nickc@redhat.com>
13484
13485         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13486         insn in the sequence is a jump insn before setting its label.
13487
13488 2010-06-24  Alan Modra  <amodra@gmail.com>
13489
13490         * collect2.c (main): Match exactly --version and --help.
13491
13492 2010-06-24  DJ Delorie  <dj@redhat.com>
13493
13494         * config/m32c/m32c-pragma.c: Don't include rtl.h.
13495
13496 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
13497
13498         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13499         using X87MODEF mode iterator.
13500         (pushsf splitter): Macroize splitter using P mode iterator.
13501         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13502         mode iterator.
13503
13504         (*movxf_internal): Rename from *movxf_integer.
13505         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13506         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13507         (*movdf_internal): Rename from *movdf_integer.
13508         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13509         (*movsf_internal): Rename from *movdf_1.
13510
13511 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
13512
13513         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13514         (const_gimple_seq_node): Removed typedefs.
13515
13516         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13517         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13518
13519 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13520
13521         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13522         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13523         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13524         and CODE_FOR_vec_extract_lo_v4df.
13525
13526         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13527         Changed to define_insn_and_split.
13528         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13529         (vec_extract_lo_v16hi): Likewise.
13530         (vec_extract_lo_v32qi): Likewise.
13531         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13532         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13533
13534 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13535
13536         PR target/44640
13537         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13538         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13539         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13540         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13541         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13542
13543         PR target/44640
13544         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13545
13546         PR other/44644
13547         * df-core.c (struct df): Rename to df_d.
13548         * df.h (struct df): Likewise.
13549         * dse.h (struct df): Remove forward declaration.
13550         * recog.h (struct insn_data): Rename to:
13551         (struct_insn_data_d).  Adjusted all users.
13552
13553 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13554
13555         PR ada/22220
13556         * doc/install.texi: Update requirements to build GNAT.
13557
13558 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13559
13560         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13561         enum type.
13562         (m68k_sched_attr_opx_type): Remove unreachable return.
13563         (m68k_sched_attr_opy_type): Likewise.
13564         (m68k_sched_attr_size): Likewise.
13565         (sched_get_opxy_mem_type): Likewise.
13566         (m68k_sched_attr_op_mem): Likewise.
13567
13568 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13569
13570         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13571         new statement and adjust VDEF only if necessary.  Remove superfluous
13572         call to maybe_clean_or_replace_eh_stmt.
13573         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13574         copy the flags.
13575         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13576         * tree-inline.c (copy_bb): ...and not there.
13577
13578 2010-06-22  Cary Coutant  <ccoutant@google.com>
13579
13580         * dwarf2out.c (is_nested_in_subprogram): New function.
13581         (should_move_die_to_comdat): Use it.
13582         (copy_ancestor_tree): Don't mark DIEs here.
13583         (copy_decls_walk): Start walk from root of newly-added tree;
13584         mark DIEs here instead.
13585
13586 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13587
13588         * config/i386/i386.md (unit): Also check sseishft1.
13589
13590 2010-06-22  Jan Hubicka  <jh@suse.cz>
13591
13592         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13593         enabled.
13594
13595 2010-06-22  Jan Hubicka  <jh@suse.cz>
13596
13597         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13598         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13599         Return true if something changed.
13600         * df.h (df_confluence_function_n): Return bool.
13601         * df-core.c (df_worklist_propagate_forward,
13602         df_worklist_propagate_backward): Track changes and ages.
13603         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13604         track ages.
13605         * dse.c (dse_confluence_n): Return always true.
13606
13607 2010-06-22  Jan Hubicka  <jh@suse.cz>
13608
13609         * bitmap.c (bitmap_clear_bit): Micro optimize.
13610
13611 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13612
13613         * config/i386/i386.md (SWI1248x): New mode iterator.
13614         (SWI48x): Ditto.
13615         (SWI12): Ditto.
13616         (SWI24): Ditto.
13617
13618         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13619         SWI1248x mode iterator.
13620         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13621         using SWI124 mode iterator.
13622         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13623         mode iterator.
13624         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13625         *pushdi2_prologue_rex64 using P mode iterator.
13626         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13627         using SWI48 mode iterator.
13628         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13629         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13630         using SWI1248x mode iterator.
13631         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13632         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13633         SWI48 mode iterator.
13634         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13635         iterator.
13636         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13637         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13638         SWI12 mode iterator.
13639         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13640         SWI12 mode iterator.
13641         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13642         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13643         SWI24 mode iterator.
13644         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13645         SWI48 mode iterator.
13646         (mov<mode>_insn_1): New expander.
13647         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13648         using SWI48x mode iterator.
13649
13650         (*movoi_internal_avx): Rename from *movoi_internal.
13651         (*movti_internal_rex64): Rename from *movti_rex64.
13652         (*movti_internal_sse): Rename from *movti_sse.
13653         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13654         (*movdi_internal): Rename from *movdi_2.
13655         (*movsi_internal): Rename from *movsi_1.
13656         (*movhi_internal): Rename from *movhi_1.
13657         (*movqi_internal): Rename from *movqi_1.
13658
13659         (insv): Update the call to gen_movsi_insv_1 for rename.
13660         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13661
13662 2010-06-22  Jan Hubicka  <jh@suse.cz>
13663
13664         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13665         to ...
13666         (execute_todo) ... this one.
13667
13668 2010-06-22  Alan Modra  <amodra@gmail.com>
13669
13670         PR target/44364
13671         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13672         * caller-save.c (insert_restore, insert_save): Use non-validate
13673         form of adjust_address.
13674
13675 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13676
13677         PR target/39690
13678         * config/pa/pa.c (override_options): Disable
13679         -freorder-blocks-and-partition.
13680
13681 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13682
13683         PR target/44615
13684         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13685
13686         * config/i386/i386.md (type): Add sseishft1
13687
13688         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13689         (ppro_insn_load): Likewise.
13690         (ppro_insn_store): Likewise.
13691         (ppro_insn_both): Likewise.
13692
13693         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13694         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13695         for type.
13696         (*vec_extractv2di_1_avx): Likewise.
13697         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13698         type.  Remove atom_unit.
13699         (*vec_extractv2di_1_sse2): Likewise.
13700
13701 2010-06-21  DJ Delorie  <dj@redhat.com>
13702
13703         * diagnostic.h (diagnostic_classification_change_t): New.
13704         (diagnostic_context): Add history and push/pop list.
13705         (diagnostic_push_diagnostics): Declare.
13706         (diagnostic_pop_diagnostics): Declare.
13707         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13708         from pragmas in a history chain instead of the global table.
13709         (diagnostic_push_diagnostics): New.
13710         (diagnostic_pop_diagnostics): New.
13711         (diagnostic_report_diagnostic): Scan history chain to find state
13712         of diagnostics as of the diagnostic location.
13713         * opts.c (set_option): Pass UNKNOWN_LOCATION to
13714         diagnostic_classify_diagnostic.
13715         (enable_warning_as_error): Likewise.
13716         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13717         use in the history chain.
13718         * doc/extend.texi: Document pragma GCC diagnostic changes.
13719
13720 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
13721
13722         * dwarf2out.c (add_linkage_name): New function.  Don't add
13723         anything to DW_TAG_member DIEs.
13724         (add_name_and_src_coords_attributes): Use it.
13725         (gen_variable_die): Call it for C++ static data members if
13726         specification is DW_TAG_member.
13727
13728         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13729         C++ char16_t and char32_t.
13730
13731         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13732         * genattrtab.c: Include vecprim.h.
13733         (cached_attrs, cached_attr_count, attrs_seen_once,
13734         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13735         attrs_cached_after): New variables.
13736         (find_attrs_to_cache): New function.
13737         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13738         (write_test_expr): Add attrs_cached argument, return it too,
13739         attempt to cache non-const attributes used more than once in
13740         a single case handling.
13741         (write_attr_get): Use find_attrs_to_cache, for caching candidates
13742         emit cached_* variables.  Adjust write_attr_set callers.
13743         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13744         to find attributes that should be cached in this block.  Adjust
13745         write_test_expr callers.
13746         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
13747         callers.
13748         (make_automaton_attrs): Adjust write_test_expr caller.
13749
13750         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13751         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13752         (make_automaton_attrs): If find_tune_attr returns non-NULL,
13753         write separate internal_dfa_insn_code_* and insn_default_latency_*
13754         functions for each attribute's value and emit init_sched_attrs
13755         function and function pointers.
13756         * genattr.c (const_attrs, reservations): New variables.
13757         (gen_attr): Add const attributes to const_attrs vector.
13758         (check_tune_attr, find_tune_attr): New functions.
13759         (main): Add reservations to reservations vector.  If find_tune_attr
13760         returns true, add prototype for init_sched_attrs and make
13761         internal_dfa_insn_code and insn_default_latency function pointers,
13762         otherwise define init_sched_attrs as dummy macro.
13763         * cfgexpand.c: Include insn-attr.h.
13764         (gimple_expand_cfg): Call init_sched_attrs.
13765
13766         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13767
13768         PR target/44575
13769         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13770         va_arg from a set of register save slots into a temporary,
13771         if the container is bigger than type size, do the copying
13772         using smaller mode or using memcpy.
13773
13774         PR bootstrap/44426
13775         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13776         prototype.
13777         (sel_print_to_dot): Remove macro.
13778         (sel_print): Likewise.  New prototype.
13779         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13780         (sel_print): New function.
13781
13782 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13783
13784         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13785         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13786
13787 2010-06-21  Nick Clifton  <nickc@redhat.com>
13788
13789         * config/rx/rx.h (PTRDIFF_TYPE): Define.
13790         (SMALL_REGISTER_CLASS): Define (to zero).
13791         (PRINT_OPERAND): Delete.
13792         (PRINT_OPERAND_ADDRESS): Delete.
13793         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13794         (rx_print_operand_address): Delete prototype.
13795         * config/rx/rx.c (rx_print_operand): Make static.
13796         Allow %H and %L to handle CONST_DOUBLEs.
13797         (rx_print_operand_address): Make static.
13798         (rx_gen_move_template): Rename local variable 'template' to
13799         out_template.
13800         (rx_function_arg): Do not pass unknown sized objects in registers.
13801         (TARGET_PRINT_OPERAND): Define.
13802         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13803
13804 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
13805
13806         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13807
13808 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
13809
13810         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13811         stack-alignment for simple leaf-functions.
13812
13813 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13814
13815         * doc/install.texi: Document bootstrap-lto.
13816
13817 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13818
13819         PR debug/44248
13820         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13821         (input_function): Drop them here, if VTA is disabled.
13822
13823 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
13824
13825         PR target/44546
13826         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13827         New predicate.
13828         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13829         ix86_swapped_fp_comparsion_operator instead of
13830         ix86_fp_comparison_operator.
13831
13832         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13833         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13834         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13835         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13836         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13837         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13838
13839 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
13840
13841         PR other/32998
13842         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13843         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13844         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13845         (decode_cmdline_option): Update for this return value.  Set
13846         orig_option_with_args_text field.  Set arg field for unknown
13847         options.  Make static.
13848         (decode_cmdline_options_to_array): New.
13849         (prune_options): Update handling of find_opt return value.
13850         * opts.c (read_cmdline_option): Take decoded option.  Return void.
13851         (read_cmdline_options): Take decoded options.
13852         (decode_options): Add parameters for decoded options.  Use
13853         decode_cmdline_options_to_array.  Use decoded options for -O
13854         scan.  Use integral_argument for -O parameters.  Update call to
13855         read_cmdline_options.
13856         (enable_warning_as_error): Update handling of find_opt return value.
13857         * opts.h: Update comment on unknown options.
13858         (struct cl_decoded_option): Update comments on opt_index and arg.
13859         Add orig_option_with_args_text.
13860         (decode_cmdline_option): Remove.
13861         (decode_cmdline_options_to_array): Declare.
13862         (decode_options): Update prototype.
13863         * toplev.c (save_argv): Remove.
13864         (save_decoded_options, save_decoded_options_count): New.
13865         (read_integral_parameter): Remove.
13866         (print_switch_values): Use decoded options.
13867         (toplev_main): Don't set save_argv.  Update call to decode_options.
13868         * toplev.h (read_integral_parameter): Remove.
13869         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
13870
13871 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
13872
13873         PR target/44072
13874         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
13875         immediate.
13876         * constraints.md (Pw, Px): New constraints.
13877         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
13878
13879 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
13880
13881         * config/i386/sse.md (fma4modesuffixf4): Removed.
13882         (ssemodesuffixf2s): Likewise.
13883         (ssemodesuffixf4): Likewise.
13884         (ssemodesuffixf2c): Likewise.
13885         (ssescalarmodesuffix2s): Likewise.
13886         (avxmodesuffixf2c): Likewise.
13887         (ssemodesuffix): New.
13888         (ssescalarmodesuffix): Likewise.
13889         Update patterns with ssemodesuffix and ssescalarmodesuffix.
13890
13891 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
13892
13893         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
13894
13895 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13896
13897         * stor-layout.c (debug_rli): Remove unused local variables.
13898
13899 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13900
13901         PR rtl-optimization/40900
13902         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
13903         original expression for later reuse.
13904         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
13905         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
13906
13907 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
13908
13909         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
13910         double_int_fits_in_uhwi_p): Implement as static inline.
13911         (double_int_xor): New inline function.
13912         (double_int_lrotate, double_int_rrotate, double_int_max,
13913         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13914         double_int_smin): Declare.
13915         (lrotate_double, rrotate_double): Remove declaration.
13916         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
13917         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
13918         (double_int_lrotate, double_int_rrotate, double_int_max,
13919         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13920         double_int_smin): New function.
13921         * fold-const.c (int_const_binop): Clean up, use double_int_*
13922         functions.
13923         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
13924         double_int_* and immed_double_int_const functions.
13925
13926 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13927
13928         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
13929         * function.c (types_used_by_cur_var_decl): Likewise.
13930         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
13931
13932 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13933
13934         * tree.h (record_layout_info): Change type of pending_statics field
13935         to a VEC.
13936         * stor-layout.c (start_record_layout): Store NULL into
13937         pending_statics.
13938         (debug_rli): Call debug_vec_tree instead of debug_tree.
13939         (place_field): Likewise.
13940         (finish_record_layout): Likewise.
13941
13942 2010-06-18  Alan Modra  <amodra@gmail.com>
13943
13944         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
13945
13946 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13947
13948         PR target/43740
13949         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
13950         for SET source operand from SET destination operand.
13951
13952 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
13953
13954         PR rtl-optimization/39871
13955         * reload1.c (init_eliminable_invariants): For flag_pic, disable
13956         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
13957         (function_invariant_p): Rule out a plus of frame or arg pointer with
13958         a SYMBOL_REF.
13959         * ira.c (find_reg_equiv_invariant_const): Likewise.
13960
13961 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
13962
13963         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
13964         print_operand_address and puts to output the operand for CONST.
13965
13966 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
13967
13968         PR debug/44572
13969         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
13970         hook.
13971
13972 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13973
13974         * v850-protos.h (print_operand): Delete.
13975         (print_operand_address): Delete.
13976         * v850.h (PRINT_OPERAND): Delete.
13977         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13978         (PRINT_OPERAND_ADDRESS): Delete.
13979         * v850.c (print_operand_address): Rename to...
13980         (v850_print_operand_address): ...this.  Make static. Call
13981         v850_print_operand.
13982         (print_operand): Rename to...
13983         (v850_print_operand): ...this.  Make static.  Call
13984         v850_print_operand_address.
13985         (v850_print_operand_punct_valid_p): New function.
13986         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13987         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13988
13989 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13990
13991         * config/sh/sh-protos.h (print_operand): Delete.
13992         (print_operand_address): Delete.
13993         * config/sh/sh.h (PRINT_OPERAND): Delete.
13994         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13995         (PRINT_OPERAND_ADDRESS): Delete.
13996         * config/sh/sh.c (sh_print_operand_address): Make static.
13997         (sh_print_operand): Make static.  Call sh_print_operand_address
13998         and sh_print_operand.
13999         (sh_print_operand_punct_valid_p): New function.
14000         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14001         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14002
14003 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14004
14005         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
14006         (mcore_print_operand_address): Delete.
14007         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
14008         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14009         (PRINT_OPERAND_ADDRESS): Delete.
14010         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
14011         (mcore_print_operand): Make static.
14012         (mcore_print_operand_punct_valid_p): New function.
14013         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
14014         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14015
14016 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14017
14018         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
14019         (print_operand_address): Delete.
14020         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
14021         (PRINT_OPERAND_ADDRESS): Delete.
14022         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
14023         static.
14024         (m68hc11_print_operand): Make static.
14025         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14026
14027 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14028
14029         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
14030         (m32r_print_operand_address): Delete.
14031         * config/m32r/m32r.h (m32r_punct_chars): Delete.
14032         (PRINT_OPERAND): Delete.
14033         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14034         (PRINT_OPERAND_ADDRESS): Delete.
14035         * config/m32r/m32r.c (m32r_punct_chars): Make static.
14036         (m32r_print_operand_address): Make static.
14037         (m32r_print_operand): Make static.
14038         (m32r_print_operand_punct_valid_p): New function.
14039         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14040         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14041
14042 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14043
14044         * config/iq2000/iq2000-protos.h (print_operand): Delete.
14045         (print_operand_address): Delete.
14046         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
14047         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14048         (PRINT_OPERAND_ADDRESS): Delete.
14049         (iq2000_print_operand_punct): Delete.
14050         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
14051         (iq2000_print_operand_address): Make static.
14052         (iq2000_print_operand): Make static.
14053         (iq2000_print_operand_punct_valid_p): New function.
14054         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14055         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14056
14057 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14058
14059         * config/frv/frv-protos.h (frv_print_operand): Delete.
14060         (frv_print_operand_address): Delete.
14061         * config/frv/frv.h (PRINT_OPERAND): Delete.
14062         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14063         (PRINT_OPERAND_ADDRESS): Delete.
14064         * config/frv/frv.c (frv_print_operand_address): Make static.
14065         (frv_print_operand): Make static.
14066         (frv_print_operand_punct_valid_p): New function.
14067         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14068         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14069
14070 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14071
14072         * tree.h (vec_member): Declare.
14073         * tree.c (vec_member): Define.
14074
14075 2010-06-17  Richard Guenther  <rguenther@suse.de>
14076
14077         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
14078         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
14079
14080 2010-06-17  Richard Guenther  <rguenther@suse.de>
14081
14082         * tree-inline.c (declare_return_variable): Remove bogus code.
14083
14084 2010-06-17  Richard Guenther  <rguenther@suse.de>
14085
14086         * gimplify.c (gimplify_bind_expr): Always promote complex
14087         and vector variables to registers if possible.
14088
14089 2010-06-17  Richard Guenther  <rguenther@suse.de>
14090
14091         * expr.c (get_inner_reference): Use double_int for bit_offset
14092         calculation.
14093
14094 2010-06-16  DJ Delorie  <dj@redhat.com>
14095
14096         * common.opt (-fstrict-volatile-bitfields): new.
14097         * doc/invoke.texi: Document it.
14098         * fold-const.c (optimize_bit_field_compare): For volatile
14099         bitfields, use the field's type to determine the mode, not the
14100         field's size.
14101         * expr.c (expand_assignment): Likewise.
14102         (get_inner_reference): Likewise.
14103         (expand_expr_real_1): Likewise.
14104         * expmed.c (store_fixed_bit_field): Likewise.
14105         (extract_bit_field_1): Likewise.
14106         (extract_fixed_bit_field): Likewise.
14107
14108 2010-06-16  Richard Guenther  <rguenther@suse.de>
14109
14110         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
14111
14112 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
14113
14114         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
14115         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
14116         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
14117         * debug.c: Likewise.
14118         * sdbout.c: Likewise.
14119         * vmsdbgout.c: Likewise.
14120         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
14121         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
14122         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
14123         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
14124         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
14125         * dwarf2out.c (dw_fde_struct): New fields
14126         dw_fde_vms_{end,begin}_prologue.
14127         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
14128         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
14129         (dwarf2out_vms_end_prologue): New function.
14130         (dwarf2out_vms_begin_epilogue): New function.
14131         (dw_val_struct): New value dw_val_class_vms_delta.
14132         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
14133         begin_epilogue for VMS.
14134         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
14135         new static functions.
14136         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14137         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14138         static functions.
14139         (print_die): New case dw_val_class_vms_delta.
14140         (attr_checksum): Likewise.
14141         (same_dw_val_p: Likewise.
14142         (size_of_die): Likewise.
14143         (value_format): Likewise.
14144         (output_die): Likewise.
14145         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14146         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14147         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14148         dwarf2out_cfi_begin_epilogue
14149         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14150
14151 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14152
14153         * config/cris/cris-protos.h (cris_print_operand): Delete.
14154         (cris_print_operand_address): Delete.
14155         * config/cris/cris.h (PRINT_OPERAND): Delete.
14156         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14157         (PRINT_OPERAND_ADDRESS): Delete.
14158         * config/cris/cris.c (cris_print_operand_address): Make static.
14159         (cris_print_operand): Make static.
14160         (cris_print_operand_punct_valid_p): New function.
14161         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14162         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14163
14164 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14165
14166         * config/arm/arm-protos.h (arm_print_operand): Delete.
14167         (arm_print_operand_address): Delete.
14168         * config/arm/arm.h (PRINT_OPERAND): Delete.
14169         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14170         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14171         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14172         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
14173         (arm_print_operand): Make static.
14174         (arm_print_operand_punct_valid_p): New function.
14175         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14176         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14177
14178 2010-06-16  Nick Clifton  <nickc@redhat.com>
14179
14180         * config/rx/constraints.md (NEGint4): New constraint.
14181         * config/rx/rx.md (attr cc): Add set_zsc.
14182         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14183         initialised.
14184         (cmpsf): Likewise.
14185         (call_internal): Clobber the cc0 register.
14186         (call_value_internal): Likewise.
14187         (cstoresi4): Likewise.
14188         (movsieq): Likewise.
14189         (movsine): Likewise.
14190         (addsi3): Add alternative to handle small negative constants.
14191         (sunsi3): Likewise.
14192         (addsi3): Do not set the O bit in the cc0 register.
14193         (adddi3): Likewise.
14194         (subsi3): Likewise.
14195         (subdi3): Likewise.
14196         (andsi3): Reorder alternatives to prefer shorter forms.
14197         (mulsi3): Likewise.
14198         (iorsi3): Likewise.
14199         (negsi2): Note that the cc0 flags are set.
14200         (rotlsi3): Note that only the Z and S bits are set in cc0.
14201         (lshrsi3): Likewise.
14202         (ashlsi3): Likewise.
14203         (subsf3): Use %Q for the MEM operand.
14204         (fix_truncsfsi2): Likewise.
14205         (floatsisf2): Likewise.
14206         (bitset): Remove early clobber from destination.
14207         (bitset_in_memory): Likewise.
14208         (lrintsf2): Clobber the cc0 register.
14209         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14210         (rx_print_operand): Handle %N.
14211
14212 2010-06-16  Jan Hubicka  <jh@suse.cz>
14213
14214         * df-core.c (df_compact_blocks): Free problem_temps vector.
14215
14216 2010-06-16  Martin Jambor  <mjambor@suse.cz>
14217
14218         PR tree-optimization/43905
14219         * tree-sra.c: Include tree-inline.h.
14220         (create_abstract_origin): Removed.
14221         (modify_function): Version the call graph node instead of creating
14222         abstract origins and dealing with same_body aliases.
14223         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14224         function is versionable.
14225         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14226
14227 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14228
14229         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14230         (CHOOSE_DYNAMIC_LINKER): Update.
14231
14232 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
14233
14234         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
14235         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14236         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14237         *prefetch_3dnow_rex.
14238
14239 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
14240
14241         * target.h (struct asm_out):Add declare_constant_name field.
14242         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14243         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14244         * output.h (default_asm_declare_constant_name): Declare.
14245         (assemble_label): Update prototype.
14246         * varasm.c (assemble_constant_contents): Use
14247         targetm.asm_out.declare_constant_name target hook.
14248         (assemble_label): Add 'file' argument.
14249         (default_asm_declare_constant_name): New function.
14250         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14251         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14252         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14253
14254         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14255         * config/darwin.c (darwin_asm_declare_constant_name): New function.
14256         (machopic_output_indirection): Update assemble_label argument list.
14257         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14258         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14259
14260 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
14261
14262         PR middle-end/44391
14263         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14264         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
14265
14266 2010-06-15  Richard Guenther  <rguenther@suse.de>
14267
14268         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14269
14270 2010-06-15  Paul Brook  <paul@codesourcery.com>
14271
14272         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14273         hard-float ABI.
14274
14275 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
14276
14277         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14278         don't get a vector type for output.
14279
14280 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
14281
14282         PR fortran/44536
14283         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14284         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14285         (LANG_HOOKS_DECLS): Add it.
14286         * gimplify.c (omp_notice_variable): Call
14287         lang_hooks.decls.omp_report_decl.
14288
14289 2010-06-15  Martin Jambor  <mjambor@suse.cz>
14290
14291         PR lto/44464
14292         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14293         on the newly dead SSA name.
14294
14295 2010-06-15  Alan Modra  <amodra@gmail.com>
14296
14297         * doc/invoke.texi: Add mcmodel to powerpc options.
14298         * configure.ac: Add HAVE_LD_LARGE_TOC test.
14299         * configure: Regenerate.
14300         * config.in: Regenerate.
14301         * config/rs6000/linux64.opt (mcmodel): New.
14302         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14303         (TARGET_CMODEL, SET_CMODEL): Define.
14304         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14305         select CMODEL_MEDIUM default.
14306         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14307         (TARGET_CMODEL): Define default.
14308         * config/rs6000/rs6000.c (cmodel): New variable.
14309         (rs6000_explicit_options): Add cmodel field.
14310         (rs6000_handle_option): Handle -mcmodel.
14311         (create_TOC_reference): Add largetoc_reg param.  Generate high,
14312         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
14313         (rs6000_delegitimize_address): Recognise new toc reference rtl
14314         and minimal-toc rtl.
14315         (rs6000_legitimize_reload_address): Handle new toc references.
14316         (print_operand_address): Handle legitimate_constant_pool_address_p
14317         match before lo_sum.
14318         (rs6000_eliminate_indexed_memrefs): Tidy.
14319         (rs6000_emit_move): Tweak threshold for inlining constants.
14320         Keep rs6000_emit_allocate_stack large stack frame offsets
14321         loaded into r0 inline.
14322         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14323         (tocrel_base, tocrel_offset): New variables.
14324         (toc_relative_expr_p): Set them here.
14325         (print_operand_address): Skip over any offset on constant pool address.
14326         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14327         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14328         (offsettable_ok_by_alignment): New function.
14329         (rs6000_emit_move): Address suitably aligned local symbol_refs
14330         relative to the toc pointer for -mcmodel=medium.
14331         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
14332         strict param.  Allow lo_sum version of addressing.  Verify reg
14333         used for -mminimal-toc and -mcmodel != small.  Update all callers.
14334         * config/rs6000/constraints.md: Update for above change.
14335         * config/rs6000/predicates.md: Likewise.
14336         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14337         code.
14338         (tls_gd): Split for -mcmodel=medium/large.
14339         (tls_gd_high, tls_gd_low): New.
14340         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14341         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14342         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14343         (largetoc_high, largetoc_low): New.
14344         (cmptf_internal2): Add clobber.
14345         * config/rs6000/rs6000-protos.h: Update.
14346
14347 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
14348
14349         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
14350         true if no prefetch is going to be generated for a given group.
14351         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14352         estimate the prefetch_count.
14353         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14354         prefetch count by considering the unroll_factor and prefetch_mod
14355         for is_loop_prefetching_profitable.
14356
14357 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
14358
14359         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14360         anything if the argument is not a MEM.
14361
14362 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14363
14364         PR debug/43650
14365         PR debug/44181
14366         PR debug/44247
14367         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14368         debug stmts.
14369         (canonicalize_loop_ivs): Likewise.
14370
14371 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14372
14373         PR debug/43656
14374         * haifa-sched.c (setup_insn_reg_pressure_info,
14375         update_register_pressure): Reject debug insns.
14376         (ready_sort): Don't setup reg pressure for debug insns.
14377         (schedule_insn): Don't update reg pressure for debug insns.
14378
14379 2010-06-14  Richard Guenther  <rguenther@suse.de>
14380
14381         * lto-streamer.c (cached_bp): Remove.
14382         (bitpack_delete): Likewise.
14383         (bitpack_create): Likewise.
14384         (bp_get_next_word): Likewise.
14385         (bp_pack_value, bp_unpack_value): Move ...
14386         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14387         Re-implement.
14388         (struct bitpack_d): Likewise.
14389         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14390         New inline functions.
14391         * lto-streamer-out.c (lto_output_bitpack): Remove.
14392         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14393         (pack_value_fields): Adjust.
14394         (lto_write_tree): Likewise.
14395         (output_gimple_stmt): Likewise.
14396         (output_function): Likewise.
14397         * lto-streamer-in.c (input_gimple_stmt): Adjust.
14398         (input_function): Likewise.
14399         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14400         (lto_input_bitpack): Remove.
14401         (lto_materialize_tree): Adjust.
14402         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14403         * lto-cgraph.c (lto_output_edge): Adjust.
14404         (lto_output_node): Likewise.
14405         (lto_output_varpool_node): Likewise.
14406         (lto_output_ref): Likewise.
14407         (input_node): Likewise.
14408         (input_varpool_node): Likewise.
14409         (input_ref): Likewise.
14410         (input_edge): Likewise.
14411         (output_node_opt_summary): Likewise.
14412         (input_node_opt_summary): Likewise.
14413         * ipa-pure-const.c (pure_const_write_summary): Likewise.
14414         (pure_const_read_summary): Likewise.
14415         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14416         (ipa_read_indirect_edge_info): Likewise.
14417         (ipa_write_node_info): Likewise.
14418         (ipa_read_node_info): Likewise.
14419
14420 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14421
14422         PR target/44534
14423         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14424         (vec_extract_lo_v16hi): Likewise.
14425         (vec_extract_lo_v32qi): Likewise.
14426
14427 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14428
14429         PR bootstrap/44426
14430         * tree.h (build_call_expr): Don't define as vararg macro, instead
14431         add a prototype.
14432         * builtins.c (build_call_nofold): Remove.
14433         (expand_builtin_int_roundingfn, expand_builtin_pow,
14434         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14435         expand_builtin_memset_args, expand_builtin_strcmp,
14436         expand_builtin_strncmp, expand_builtin_memory_chk): Use
14437         build_call_nofold_loc instead of build_call_nofold.
14438         (build_call_expr): New function.
14439
14440         PR tree-optimization/44508
14441         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14442         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14443         don't eliminate trivially dead stmts.
14444         * tree-vrp.c (vrp_finalize): Pass false as last argument
14445         to substitute_and_fold.
14446         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14447         to substitute_and_fold.
14448         * tree-ssa-ccp.c (ccp_finalize): Likewise.
14449
14450         PR bootstrap/44509
14451         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14452
14453 2010-06-14  Ira Rosen  <irar@il.ibm.com>
14454
14455         PR tree-optimization/44507
14456         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14457         to build initial vector for BIT_AND_EXPR.
14458         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14459
14460 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14461
14462         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14463         adjust z10prop set_attr.
14464
14465 2010-06-13  Jan Hubicka  <jh@suse.cz>
14466
14467         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14468         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14469         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14470         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14471         datastructure checks into checking asserts.
14472         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14473         * tree-ssa-sccvn.c (VN_INFO): Likewise.
14474         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14475         df_ref_create_structure): Likewise.
14476         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14477         pool_free): Use gcc_checking_assert.
14478         * alias.c (get_alias_set): Likewise.
14479         * var-tracking.c (variable_htab_free, shared_hash_copy,
14480         canonicalize_values_mark, variable_merge_over_cur): Likewise.
14481         * lto-streamer.c (bp_unpack_value): Likewise.
14482
14483 2010-06-13  Richard Guenther  <rguenther@suse.de>
14484
14485         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14486         Do not stream but initialize TYPE_CANONICAL to NULL.
14487         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14488         * gimple.c (gimple_types_compatible_p): Disregard
14489         TYPE_STRUCTURAL_EQUALITY_P.
14490         (gimple_register_type): Use TYPE_CANONICAL as cache.
14491         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14492         before registering common types.
14493         * config/i386/i386.c (ix86_function_arg_boundary): Do not
14494         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14495         * tree.h (TYPE_CANONICAL): Clarify documentation.
14496
14497 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
14498
14499         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14500         LIBCALL_VALUE): Remove macros.
14501         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14502         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14503         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14504         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14505         (ia64_function_value): Make static. Handle receiving the function
14506         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14507
14508 2010-06-12  Jan Hubicka  <jh@suse.cz>
14509
14510         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14511         at correct place.
14512
14513 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
14514
14515         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14516
14517 2010-06-12  Jan Hubicka  <jh@suse.cz>
14518
14519         * df-core.c (df_clear_bb_info): New function.
14520         (df_set_blocks): bb_info is always allocated.
14521         (df_get_bb_info): Use block_info_elt_size.
14522         (df_set_bb_info): Likewise.
14523         (df_compact_blocks): Update for new block_info.
14524         (grow_bb_info): New function.
14525         * df-problems.c (df_grow_bb_info): Move to df-core.c
14526         (df_rd_set_bb_info): Remove.
14527         (df_rd_free_bb_info): Do not free block pool.
14528         (df_rd_alloc): Do not create pool, use check for
14529         obstack presence instead of NULL pointer for new blocks.
14530         (df_rd_free): DO not free alloc pool; clear block_info.
14531         (problem_RD): Add size of block info structure.
14532         (df_lr_set_bb_info): Remove.
14533         (df_lr_free_bb_info): Do not free block pool.
14534         (df_lr_alloc): Do not create pool, use check for
14535         obstack presence instead of NULL pointer for new blocks.
14536         (df_lr_free): DO not free alloc pool; clear block_info.
14537         (problem_LR): Add size of block info structure.
14538         (df_live_set_bb_info): Remove.
14539         (df_live_free_bb_info): Do not free block pool.
14540         (df_live_alloc): Do not create pool, use check for
14541         obstack presence instead of NULL pointer for new blocks.
14542         (df_live_free): DO not free alloc pool; clear block_info.
14543         (problem_LIVE): Add size of block info structure.
14544         (problem_CHAIN): Add size of block info structure.
14545         (df_byte_lr_set_bb_info): Remove.
14546         (df_byte_lr_free_bb_info): Do not free block pool.
14547         (df_byte_lr_alloc): Do not create pool, use check for
14548         obstack presence instead of NULL pointer for new blocks.
14549         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14550         (problem_BYTE_LR): Add size of block info structure.
14551         (problem_NOTE): Add size of block info structure.
14552         (df_byte_MD_set_bb_info): Remove.
14553         (df_byte_MD_free_bb_info): Do not free block pool.
14554         (df_byte_MD_alloc): Do not create pool, use check for
14555         obstack presence instead of NULL pointer for new blocks.
14556         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14557         (problem_BD): Add size of block info structure.
14558         * df-scan.c (df_scan_free_internal): Free block pool.
14559         (df_scan_set_bb_info): Remove.
14560         (df_scan_free_bb_info): Check for artificial_defs instead
14561         of bb_info being non-NULL.
14562         (df_scan_alloc): DO not create df_scan_block pool.
14563         (problem_SCAN): Set size of block info.
14564         (df_bb_refs_record): Do not allocate bb_info.
14565         * df.h (df_problem): Add block_info_elt_size.
14566         (struct dataflow): Change block_info to void *.
14567         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14568         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14569         in-line structures.
14570
14571 2010-06-12  Jan Hubicka  <jh@suse.cz>
14572
14573         PR tree-optimize/44485
14574         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14575         containing use of return value of noreturn function.
14576
14577 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14578
14579         * targhooks.c (default_function_value): Don't use
14580         FUNCTION_OUTGOING_VALUE.
14581         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14582         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14583
14584 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14585
14586         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14587         Add crtfastmath.o to extra_parts.
14588         * config/mips/crtfastmath.c: New.
14589         * config/mips/linux.h (ENDFILE_SPEC): New.
14590
14591 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14592
14593         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14594         old_type in parameter.
14595         (gcc_type_for_value): Update call to gcc_type_for_interval.
14596         (compute_type_for_level_1): Renamed compute_type_for_level.
14597         Update call to gcc_type_for_interval.
14598
14599 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14600
14601         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14602         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14603
14604 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14605
14606         * opts-common.c: Include options.h.
14607         (integral_argument): Move from opts.c.
14608         (decode_cmdline_option): New.  Based on read_cmdline_option.
14609         * opts.c (integral_argument): Move to opts-common.c.
14610         (read_cmdline_option): Move most contents to
14611         decode_cmdline_option.  Use %qs in diagnostics.
14612         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14613         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14614         decode_cmdline_option): New.
14615
14616 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14617
14618         PR target/44481
14619         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14620         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14621         (partiysi2_cmp): Ditto.
14622         (*partiyhi2_cmp): Ditto.
14623         (*parityqi2_cmp): Remove.
14624
14625 2010-06-11  Jan Hubicka  <jh@suse.cz>
14626
14627         * bitmap.h (bmp_iter_next_bit): New.
14628         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14629
14630 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14631             Eric Botcazou  <ebotcazou@adacore.com>
14632
14633         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14634         computed cost.
14635
14636 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14637
14638         * config/i386/i386.md (unspec): New define_c_enum.
14639         (unspecv): Ditto.
14640
14641 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14642
14643         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14644
14645 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14646
14647         PR middle-end/44483
14648         * tree-if-conv.c (bb_predicate_s): New struct.
14649         (bb_predicate_p): New.
14650         (bb_has_predicate): New.
14651         (bb_predicate): New.
14652         (set_bb_predicate): New.
14653         (bb_predicate_gimplified_stmts): New.
14654         (set_bb_predicate_gimplified_stmts): New.
14655         (add_bb_predicate_gimplified_stmts): New.
14656         (init_bb_predicate): New.
14657         (free_bb_predicate): New.
14658         (is_predicated): Use bb_predicate.
14659         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14660         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14661         before processing their successors.
14662         (clean_predicate_lists): Removed.
14663         (find_phi_replacement_condition): Use bb_predicate.
14664         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14665         computations.
14666         (insert_gimplified_predicates): New.
14667         (combine_blocks): Call insert_gimplified_predicates.
14668         (tree_if_conversion): Call free_bb_predicate instead of
14669         clean_predicate_lists.
14670
14671 2010-10-11  Paul Brook  <paul@codesourcery.com>
14672
14673         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14674         * config/arm/arm.c (all_architectures): Change v7e-m default to
14675         cortexm4.
14676         * config/arm/arm-cores.def: Add cortex-m4.
14677         * config/arm/arm-tune.md: Regenerate.
14678
14679 2010-06-11  Jan Hubicka  <jh@suse.cz>
14680
14681         * ipa-pure-const.c (special_builtlin_state): New function.
14682         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14683         (propagate_pure_const): Use it.
14684
14685 2010-06-11  Jan Hubicka  <jh@suse.cz>
14686
14687         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14688         (df_live_alloc): Initialize df_live_scratch when initializing
14689         problem_data.
14690         (df_live_transfer_function): Update uses of df_live_scratch.
14691         (df_live_free): Free problem_data; clear df_live_scratch before
14692         releasing the obstack.
14693         (df_md_free): Free problem data.
14694
14695 2010-06-11  Jan Hubicka  <jh@suse.cz>
14696
14697         * doc/invoke.texi (Wsuggest-attribute): Document.
14698         (Wmissing-noreturn): Remove.
14699         * ipa-pure-const.c (warn_function_noreturn): New function.
14700         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14701         warn_missing_noreturn.
14702         * common.opt (Wsuggest-attribute=noreturn): New.
14703         * tree-flow.h (warn_function_noreturn): Declare.
14704         * tree-cfg.c (execute_warn_function_noreturn): Use
14705         warn_function_noreturn.
14706         (gate_warn_function_noreturn): New.
14707         (pass_warn_function_noreturn): Update.
14708
14709 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14710
14711         * c-typeck.c (handle_warn_cast_qual): Add loc
14712         parameter. Improve warning message.
14713         (build_c_cast): Pass location to handle_warn_cast_qual.
14714
14715 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14716
14717         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14718         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
14719         insn mnemonic.
14720         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14721
14722 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
14723
14724         Fix bootstap on mips
14725         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14726         be naming typedefs.
14727
14728 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
14729
14730         * system.h (helper_const_non_const_cast): New inline for
14731         gcc version <= 4.0.
14732         (CONST_CAST2): For gcc version <= 4.0 use
14733         new helper to do const/non-const casting.
14734
14735 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14736
14737         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14738         * Makefile.in (OBJS-common): Include insn-enums.o.
14739         (insn-enums.o): New rule.
14740         (simple_generated_c): Add insn-enums.c.
14741         (build/genenums.o): New rule.
14742         (genprogmd): Add "enums".
14743         * genconstants.c (print_enum_type): Declare a C string array
14744         for each enum.
14745         * genenums.c: New file.
14746         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14747         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
14748         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14749
14750 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14751
14752         * doc/md.texi (define_enum_attr): Document.
14753         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14754         * read-md.h (lookup_enum_type): Declare.
14755         * read-md.c (lookup_enum_type): New function.
14756         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14757         * genattrtab.c (attr_desc): Add an enum_name field.
14758         (evaluate_eq_attr): Take the associated attribute as argument.
14759         Get the enum prefix from the enum_name field, if defined.
14760         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
14761         (simplify_test_exp): Pass attr to evaluate_eq_attr.
14762         (add_attr_value): New function, split out from...
14763         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
14764         (write_test_expr): Pass attr to evaluate_eq_attr.
14765         (write_attr_get): Use the enum_name as the enum tag, if defined.
14766         (write_attr_valueq): Use the enum_name as a prefix, if defined.
14767         (find_attr): Initialize enum_name.
14768         (main): Handle DEFINE_ENUM_ATTR.
14769         * gensupport.c (process_rtx): Likewise.
14770         * config/mips/mips.h (mips_tune_attr): Delete.
14771         * config/mips/mips.md (cpu): Use define_attr_enum.
14772
14773 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14774
14775         * doc/md.texi (define_c_enum, define_enum): Document.
14776         * read-md.h (md_constant): Add a parent_enum field.
14777         (enum_value, enum_type): New structures.
14778         (upcase_string, traverse_enum_types): Declare.
14779         * read-md.c (enum_types): New variable.
14780         (upcase_string, add_constant): New functions.
14781         (handle_constants): Don't create the hash table here.
14782         Use add_constant.
14783         (traverse_md_constants): Don't check for a null md_constants.
14784         (decimal_string, handle_enum, traverse_enum_types): New functions.
14785         (read_md_files): Initialize md_constants and md_enums.
14786         * genconstants.c (print_md_constant): Ignore info argument.
14787         Only print constants that belong to no enum.
14788         (print_enum_type): New function.
14789         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
14790         for each defined enum type.
14791         * config/mips/mips.md (processor): New define_enum.
14792         (unspec): New define_c_enum.
14793         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14794         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14795         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14796         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14797         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14798         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14799         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14800         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14801         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14802         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14803         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14804         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14805         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14806         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14807         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14808         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14809         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14810         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14811         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14812         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14813         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14814         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14815         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14816         (UNSPEC_RDDSP): Move to mips-dsp.md.
14817         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14818         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14819         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14820         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14821         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14822         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14823         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14824         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14825         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14826         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14827         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14828         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14829         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14830         Moved to mips-dspr2.md.
14831         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14832         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14833         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14834         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14835         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14836         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14837         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14838         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14839         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14840         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14841         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14842         UNSPEC_LOONGSON_PSADBH)
14843         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14844         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14845         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14846         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14847         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14848         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14849         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14850         (cpu): Update comment.
14851         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14852         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14853         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14854         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14855         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14856         UNSPEC_LOONGSON_PCMPEQ)
14857         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
14858         UNSPEC_LOONGSON_PINSR_0)
14859         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14860         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14861         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14862         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14863         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14864         UNSPEC_LOONGSON_PSADBH)
14865         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14866         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14867         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
14868         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14869         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14870         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14871         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
14872         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
14873         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
14874         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
14875         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
14876         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
14877         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
14878         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
14879         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
14880         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
14881         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
14882         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
14883         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
14884         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
14885         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
14886         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
14887         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
14888         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
14889         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
14890         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
14891         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14892         (UNSPEC_RDDSP): Moved from mips.md.
14893         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
14894         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
14895         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
14896         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
14897         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
14898         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
14899         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
14900         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
14901         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
14902         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
14903         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
14904         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
14905         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
14906         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
14907         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
14908         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
14909         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
14910         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
14911         (UNSPEC_SCC): Moved from mips.md.
14912         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
14913         "processor_type" to "processor".
14914         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
14915         * config/mips/mips.h (processor_type): Delete.
14916         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
14917         "processor_type" to "processor".
14918
14919 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14920
14921         * configure.ac (tm_include_list): Add insn-constants.h.
14922         * configure: Regenerate.
14923         * Makefile.in (GTM_H): Move insn-constants.h here from...
14924         (TM_H): ...here.
14925         * mkconfig.sh: Remove special handling for insn-constants.h.
14926
14927 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14928
14929         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
14930         (BUILD_MD): ...this new variable.
14931         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
14932         that include the old contents of simple_generated_h and
14933         simple_generated_c.
14934         (simple_generated_h, simple_generated_c): Include them.  Add
14935         insn-constants.h.
14936         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
14937         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
14938         Remove these dependencies from the main rule and include
14939         insn-conditions.md in the command line only if it appears
14940         in the dependency list.
14941         (insn-constants.h, s-constants): Delete.
14942         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
14943         or gensupport.h.
14944         (build/genmddeps.o): Likewise.
14945         (genprogrtl): New variable that contains everything from genprogmd
14946         except mddeps and constants.
14947         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
14948         depend on $(BUILD_MD)
14949         (genprog): New variable.  Make these programs depend on
14950         $(BUILD_ERRORS).
14951         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
14952         (main): Use read_md_files instead of init_rtx_reader_args.
14953         * genconstants.c: As for genmddeps.c.
14954         * read-md.h (read_skip_construct): Declare.
14955         * read-md.c (read_skip_construct): New function.
14956         (handle_file): Allow a null handle_directive, skipping the
14957         construct if so.
14958         (parse_include): Update the comment accordingly.
14959
14960 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14961
14962         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
14963         * genmddeps.c: Include read-md.h.
14964         (main): Call init_rtx_reader_args instead of init_md_reader_args.
14965         * genattr.c (main): Likewise.
14966         * genattrtab.c (main): Likewise.
14967         * genautomata.c (main): Likewise.
14968         * gencodes.c (main): Likewise.
14969         * genconditions.c (main): Likewise.
14970         * genconfig.c (main): Likewise.
14971         * genconstants.c (main): Likewise.
14972         * genemit.c (main): Likewise.
14973         * genextract.c (main): Likewise.
14974         * genflags.c (main): Likewise.
14975         * genopinit.c (main): Likewise.
14976         * genoutput.c (main): Likewise.
14977         * genpeep.c (main): Likewise.
14978         * genrecog.c (main): Likewise.
14979         * genpreds.c (main): Likewise.
14980         * gensupport.h (in_fname): Move to read-md.h.
14981         (init_md_reader_args_cb): Rename to...
14982         (init_rtx_reader_args_cb): ...this and return a bool.
14983         (init_md_reader_args): Rename to...
14984         (init_rtx_reader_args): ...this and return a bool.
14985         (include_callback): Move to read-md.h.
14986         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
14987         (file_name_list, first_dir_md_include): Move to read-md.c
14988         (first_bracket_include): Delete unused variable.
14989         (last_dir_md_include): Move to read-md.c.
14990         (process_include): Delete, moving code to read-md.c:handle_include.
14991         (process_rtx): Don't handle INCLUDE.
14992         (save_string): Delete.
14993         (rtx_handle_directive): New function.
14994         (init_md_reader_args_cb): Rename to...
14995         (init_rtx_reader_args_cb): ...this and return a boolean success value.
14996         Use read_md_args.
14997         (init_md_reader_args): Rename to...
14998         (init_rtx_reader_args): ...this and return a boolean success value.
14999         * rtl.def (INCLUDE): Delete.
15000         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
15001         argument.
15002         * read-rtl.c (read_conditions): Don't gobble ')' here.
15003         (read_mapping): Likewise.
15004         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
15005         Handle top-level non-rtx constructs here rather than in read_rtx_1.
15006         Store the whole queue in *X.  Remove call to init_md_reader.
15007         (read_rtx_1): Rename to...
15008         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
15009         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
15010         here.
15011         (read_nested_rtx): New function.  Handle (nil) here rather than
15012         in read_rtx_code.
15013         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
15014         gobble ')' here.
15015         * read-md.h (directive_handler_t): New type.
15016         (in_fname, include_callback): Moved from read-md.h.
15017         (read_constants, init_md_reader): Delete.
15018         (read_md_files): Declare.
15019         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
15020         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
15021         from gensupport.c.
15022         (read_constants): Rename to...
15023         (handle_constants): ...this.  Don't gobble ')' here.
15024         (handle_include, handle_file, handle_toplevel_file)
15025         (parse_include): New functions, mostly taken from gensupport.c.
15026         (init_md_reader): Subsume into...
15027         (read_md_files): ...this new function.
15028
15029 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15030
15031         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
15032         (unread_char): Decrement read_md_lineno after putting back '\n'.
15033         * read-md.c (fatal_with_file_and_line): Push back any characters
15034         that we decide not to add to the context.
15035         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
15036         fatal_expected_char in cases where '/' ends a line (for example).
15037         (read_name): Don't increment read_md_lineno here.
15038         (read_escape): Likewise.
15039         (read_quoted_string): Likewise.
15040         (read_braced_string): Likewise.
15041
15042 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15043
15044         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
15045         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
15046         * genconstants.c: Include read-md.h.
15047         * read-rtl.c (md_constants): Move to read-md.c.
15048         (md_name): Move to read-md.h.
15049         (initialize_iterators): Use leading_string_hash instead of def_hash
15050         and leading_string_eq_p instead of def_name_eq_p.
15051         (read_name): Move to read-md.c.
15052         (def_hash, def_name_eq_p): Delete.
15053         (read_constants, traverse_md_constants): Move to read-md.c.
15054         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
15055         * read-md.h: Include hashtab.h.
15056         (md_name): Moved from read-rtl.c.
15057         (md_constant): Moved from read-md.h.
15058         (leading_string_hash, leading_string_eq_p, read_name)
15059         (read_constants, traverse_md_constants): Declare.
15060         * read-md.c (md_constants): Moved from read-rtl.c.
15061         (leading_string_hash, leading_string_eq_p): New functions.
15062         (read_name, read_constants, traverse_md_constants): Moved from
15063         read-rtl.c.
15064
15065 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15066
15067         * read-rtl.c (md_name): New structure.
15068         (read_name): Take an md_name instead of a buffer pointer.
15069         Use the "string" field instead of strcpy when expanding constants.
15070         (read_constants): Remove the tmp_char argument.  Update the calls
15071         to read_name, using two local name buffers instead of the tmp_char
15072         argument.  Merge the constant-creation code.
15073         (read_conditions): Remove the tmp_char argument.  Update the calls
15074         to read_name, using a local name buffer instead of the tmp_char
15075         argument.
15076         (read_mapping): Replace tmp_char variable with a local name buffer.
15077         Update the calls to read_name.
15078         (read_rtx_1): Likewise.  Update the calls to read_constants and
15079         read_conditions.
15080
15081 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15082
15083         * Makefile.in (build/read-md.o): Depend on errors.h.
15084         * read-md.h (error_with_line): Declare.
15085         * read-md.c: Include errors.h.
15086         (message_with_line_1): New function, extracted from...
15087         (message_with_line): ...here.
15088         (error_with_line): New function.
15089         * genattrtab.c: If a call to message_with_line is followed by
15090         "have_error = 1;", replace both statements with a call to
15091         error_with_line.
15092         * genoutput.c: Likewise.
15093         * genpreds.c: Likewise.
15094         * genrecog.c: If a call to message_with_line is followed by
15095         "error_count++;", replace both statements with a call to
15096         error_with_line.
15097         (errorcount): Delete.
15098         (main): Don't check it.
15099         * gensupport.c: If a call to message_with_line is followed by
15100         "errors = 1;", replace both statements with a call to error_with_line.
15101         (errors): Delete.
15102         (process_define_cond_exec): Check have_error instead of errors.
15103         (init_md_reader_args_cb): Likewise.  Don't set errors.
15104
15105 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15106
15107         * read-md.h (read_md_file): Declare.
15108         (read_char, unread_char): New functions.
15109         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15110         (read_quoted_string, read_string): Remove FILE * argument.
15111         * read-md.c (read_md_file): New variable.
15112         (read_md_filename, read_md_lineno): Update comments and remove
15113         unnecessary initialization.
15114         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15115         (read_escape, read_quoted_string, read_braced_string, read_string):
15116         Remove FILE * argument.  Update calls accordingly, using read_char
15117         and unread_char instead of getc and ungetc.
15118         * rtl.h (read_rtx): Remove FILE * argument.
15119         * read-rtl.c (iterator_group): Remove FILE * argument from
15120         "find_builtin".
15121         (iterator_traverse_data): Remove "infile" field.
15122         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
15123         (add_mapping, read_name, read_constants, read_conditions)
15124         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
15125         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
15126         Remove file arguments from all calls, using read_char and unread_char
15127         instead of getc and ungetc.
15128         * gensupport.c (process_include): Preserve read_md_file around
15129         the include.  Set read_md_file to the handle of the included file.
15130         Update call to read_rtx.
15131         (init_md_reader_args_cb): Set read_md_file to the handle of the file
15132         and remove local FILE *.  Update calls to read_rtx.
15133
15134 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15135
15136         * read-md.h (read_rtx_lineno): Rename to...
15137         (read_md_lineno): ...this.
15138         (read_rtx_filename): Rename to...
15139         (read_md_filename): ...this.
15140         (copy_rtx_ptr_loc): Rename to...
15141         (copy_md_ptr_loc): ...this.
15142         (print_rtx_ptr_loc): Rename to...
15143         (print_md_ptr_loc): ...this.
15144         * read-md.c: Likewise.  Update references after renaming.
15145         (string_obstack): Replace RTL with MD in comment.
15146         (set_rtx_ptr_loc): Rename to...
15147         (set_md_ptr_loc): ...this.
15148         (get_rtx_ptr_loc): Rename to...
15149         (get_md_ptr_loc): ...this.
15150         * genconditions.c: Update references after renaming.
15151         * genemit.c: Likewise.
15152         * genoutput.c: Likewise.
15153         * genpreds.c: Likewise.
15154         * gensupport.c: Likewise.
15155         * read-rtl.c: Likewise.
15156
15157 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15158
15159         * Makefile.in (READ_MD_H): New variable.
15160         (BUILD_RTL): Add build/read-md.o.
15161         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15162         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15163         (build/genattrtab.o, build/genconditions.o build/genemit.o)
15164         (build/genextract.o, build/genflags.o, build/genoutput.o)
15165         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15166         (build/read-md.o): New rule.
15167         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15168         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15169         * coretypes.h: ...here.
15170         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15171         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15172         * genattr.c: Include read-md.h.
15173         * genattrtab.c: Likewise.
15174         * genconditions.c: Likewise.
15175         * genemit.c: Likewise.
15176         * genextract.c: Likewise.
15177         * genflags.c: Likewise.
15178         * genoutput.c: Likewise.
15179         * genpreds.c: Likewise.
15180         * genrecog.c: Likewise.
15181         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15182         (join_c_conditions, print_c_condition, read_rtx_filename)
15183         (read_rtx_lineno): Move to read-md.h.
15184         * read-rtl.c: Include read-md.h.
15185         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15186         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15187         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15188         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15189         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15190         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15191         (read_braced_string, read_string): Move to read-md.c.
15192         (read_rtx): Move some initialization to init_md_reader and call
15193         init_md_reader here.
15194         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15195         Move to read-md.h.
15196         * gensupport.c: Include read-md.h.
15197         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15198         * read-md.h, read-md.c: New files.
15199
15200 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
15201
15202         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15203         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15204         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15205         * config/moxie/moxie.c (moxie_function_value): Make static.
15206         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15207         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15208
15209 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15210
15211         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15212         * dbgcnt.def (tree_sra): New counter.
15213         * tree-sra.c: Include dbgcnt.h.
15214         (gate_intra_sra): Check tree_sra debug counter.
15215
15216 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15217
15218         PR tree-optimization/44258
15219         * tree-sra.c (build_access_subtree): Return false iff there is a
15220         partial overlap.
15221         (build_access_trees): Likewise.
15222         (analyze_all_variable_accesses): Disqualify candidates if
15223         build_access_trees returns true for them.
15224
15225 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
15226
15227         PR debug/41371
15228         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15229         tail-recurse into canonical node.  Fast-forward over
15230         non-canonical VALUEs.
15231
15232 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15233
15234         PR boostrap/44470
15235         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15236         (*addsi_1_zext) <TYPE_LEA>: Likewise.
15237         (add lea splitter): Likewise.
15238         (add_zext lea splitter): Likewise.
15239
15240 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
15241
15242         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15243
15244 2010-06-10  Jan Hubicka  <jh@suse.cz>
15245
15246         * df-problems.c (df_live_problem_data): Add live_bitmaps.
15247         (df_live_alloc): Initialize problem data and live_osbtacks.
15248         (df_live_finalize): Remove obstack, problem data; do not
15249         clear all bitmaps.
15250         (df_live_top_dump, df_live_bottom_dump): Do not dump old
15251         data when not allocated.
15252         (df_live_verify_solution_start): Do not allocate problem data.
15253         (df_live_verify_solution_end): Check if out is allocated.
15254         (struct df_md_problem_data): New structure.
15255         (df_md_alloc): Allocate problem data.
15256         (df_md_free): Free problem data; do not clear bitmaps.
15257
15258 2010-06-10  Jan Beulich  <jbeulich@novell.com>
15259
15260         PR bootstrap/37304
15261         * configure.ac: Replace $() with ${} when intending to expand
15262         variables rather than invoking commands.
15263         * configure: Re-generate.
15264
15265 2010-06-10  Jan Hubicka  <jh@suse.cz>
15266
15267         PR rtl-optimization/44460
15268         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15269         TYPE_NEEDS_CONSTRUCTING sanity check.
15270
15271 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
15272
15273         * doc/include/fdl.texi: Move to GFDL version 1.3.
15274
15275         * doc/cpp.texi: Move to GFDL version 1.3.
15276         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
15277         * doc/gccint.texi: Move to GFDL version 1.3.
15278         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
15279         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
15280         * doc/invoke.texi: Move to GFDL version 1.3.
15281
15282 2010-06-09  Jan Hubicka  <jh@suse.cz>
15283
15284         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15285         Break out from ...
15286         (propagate) ... here; swap the order.
15287
15288 2010-06-09  Jan Hubicka  <jh@suse.cz>
15289
15290         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15291         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15292         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15293         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15294
15295 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15296
15297         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15298         Do not the gather memory reference in the outer loop if the step
15299         is not a constant.
15300
15301 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15302
15303         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15304         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15305         8 to 4.  Minor change of the related comments.
15306
15307 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15308
15309         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15310         the scev analysis when the variable is not used outside the loop
15311         in a close phi node: call compute_overall_effect_of_inner_loop.
15312
15313 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15314
15315         * graphite-sese-to-poly.c (single_pred_cond): Renamed
15316         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
15317         (build_sese_conditions_before): Renamed call to single_pred_cond.
15318         (build_sese_conditions_after): Same.
15319
15320 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15321
15322         * graphite-poly.h: Fix comments and indentation.
15323         * graphite-sese-to-poly.c: Same.
15324         (build_sese_conditions_before): Compute stmt and gbb only when needed.
15325         * tree-chrec.c: Fix comments and indentation.
15326         (tree-ssa-loop-niter.c): Same.
15327
15328 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15329
15330         PR rtl-optimization/42461
15331         * dce.c (deletable_insn_p): Return true for const or pure calls again.
15332         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15333
15334 2010-06-09  Jan Hubicka  <jh@suse.cz>
15335
15336         * bitmap.c (bitmap_and): Walk array forward.
15337         (bitmap_and_compl_into): Likewise.
15338         (bitmap_xor): Likewise.
15339         (bitmap_xor_into):  Likewise.
15340         (bitmap_equal_p): Likewise.
15341         (bitmap_intersect_p): Likewise.
15342         (bitmap_intersect_compl_p): Likewise.
15343         (bitmap_ior_and_into): Likewise.
15344         (bitmap_elt_copy): Likewise.
15345         (bitmap_and_compl): Likewise.
15346         (bitmap_elt_ior): Likewise.
15347
15348 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
15349
15350         * opts-common.c (prune_options): Ensure replacement argv array
15351         is correctly terminated by a NULL entry.
15352
15353 2010-06-09  Jan Hubicka  <jh@suse.cz>
15354
15355         * cgraph.h (varpool_first_static_initializer,
15356         varpool_next_static_initializer): Make checking only when
15357         checking enabled.
15358         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15359         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15360         gcc_assert to gcc_checking_assert.
15361         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15362         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15363         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15364         op_iter_init_phiuse, op_iter_init_phidef,
15365         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15366         gcc_checking_assert.
15367         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15368         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15369         partition_is_global, live_on_entry, live_on_exit,
15370         live_merge_and_clear): Likewise.
15371         * system.h (gcc_checking_assert): New macro.
15372         * gimple.h (set_bb_seq): Use gcc_checking_assert.
15373
15374 2010-06-09  Jason Merrill  <jason@redhat.com>
15375
15376         * Makefile.in (TAGS): Collect tags info from c-family.
15377
15378 2010-06-09  Jan Hubicka  <jh@suse.cz>
15379
15380         * gimple.h (gcc_gimple_checking_assert): New macro.
15381         (gimple_set_def_ops, gimple_set_use_ops,
15382         gimple_set_vuse, gimple_set_vdef,
15383         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15384         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15385         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15386         gimple_asm_output_op, gimple_asm_output_op_ptr,
15387         gimple_asm_set_output_op, gimple_asm_clobber_op,
15388         gimple_asm_set_clobber_op, gimple_asm_label_op,
15389         gimple_asm_set_label_op, gimple_try_set_kind,
15390         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15391         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15392         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15393         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15394         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15395         gimple_omp_for_set_initial, gimple_omp_for_final,
15396         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15397         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15398         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15399         conditional with ENABLE_GIMPLE_CHECKING.
15400         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15401
15402 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
15403
15404         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15405         (get_computation_cost_at): Use it.
15406         (determine_use_iv_cost_condition): Likewise.
15407         (determine_iv_cost): Likewise.
15408
15409 2010-06-09  Richard Guenther  <rguenther@suse.de>
15410
15411         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15412         replace constants.
15413
15414 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
15415
15416         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15417
15418 2010-06-09  Martin Jambor  <mjambor@suse.cz>
15419
15420         PR tree-optimization/44423
15421         * tree-sra.c (dump_access): Dump also grp_assignment_read.
15422         (analyze_access_subtree): Pass negative allow_replacements to children
15423         if the current type is scalar.
15424
15425 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15426
15427         PR testsuite/42843
15428         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15429         * doc/plugins.texi (Plugin license check): Update information
15430         on type of plugin_is_GPL_compatible.
15431         * Makefile.in (PLUGINCC): Define as $(COMPILER).
15432         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15433
15434 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15435
15436         * config/arm/arm.c (thumb2_reorg): New function.
15437         (arm_reorg): Call it.
15438         * config/arm/thumb2.md (define_peephole2 for flag clobbering
15439         arithmetic operations): Delete.
15440
15441 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
15442
15443         PR target/44067
15444         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15445         e500v2 target.
15446
15447 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15448
15449         PR plugins/44459
15450         * gcc-plugin.h: Encapsulate all declarations in extern "C".
15451
15452 2010-06-08  Jan Hubicka  <jh@suse.cz>
15453
15454         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15455         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15456
15457 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
15458
15459         PR tree-optimization/39874
15460         PR middle-end/28685
15461         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15462         Declare.
15463         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15464         same_bool_result_p): New.
15465         (and_var_with_comparison, and_var_with_comparison_1,
15466         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15467         (or_var_with_comparison, or_var_with_comparison_1,
15468         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15469         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15470         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15471         of combine_comparisons.
15472         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15473
15474 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
15475
15476         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15477         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15478         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15479         pdp11_function_value_regno_p): New functions.
15480         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15481         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15482
15483 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
15484
15485         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15486         Thumb-2 in the MINUS case.
15487
15488 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15489
15490         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15491
15492         * doc/gty.texi (GTY Options): Document typed GC allocation and
15493         variable_size GTY option.
15494
15495         * ggc-internal.h: New.
15496
15497         * ggc.h: Update copyright year.
15498         (digit_string): Move to stringpool.c.
15499         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15500         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15501         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15502         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15503         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15504         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15505         (ggc_force_collect, ggc_get_size, ggc_statistics)
15506         (ggc_print_common_statistics): Move to ggc-internal.h.
15507         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15508         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15509         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15510         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15511         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15512         (ggc_alloc_zone_pass_stat): Remove.
15513         (ggc_internal_alloc_stat, ggc_internal_alloc)
15514         (ggc_internal_cleared_alloc_stat): New.
15515         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15516         (ggc_internal_vec_alloc_stat)
15517         (ggc_internal_cleared_vec_alloc_stat)
15518         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15519         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15520         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15521         (ggc_cleared_alloc_ptr_array_two_args): New.
15522         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15523         (ggc_splay_alloc): Change the type of the first argument to
15524         enum gt_types_enum.
15525         (ggc_alloc_string): Make macro.
15526         (ggc_alloc_string_stat): New.
15527         (ggc_strdup): Redefine.
15528         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15529         (ggc_alloc_rtvec_sized): New.
15530         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15531         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15532         (ggc_internal_cleared_alloc_zone_stat)
15533         (ggc_internal_zone_alloc_stat)
15534         (ggc_internal_zone_cleared_alloc_stat)
15535         (ggc_internal_zone_vec_alloc_stat)
15536         (ggc_alloc_zone_rtx_def_stat)
15537         (ggc_alloc_zone_tree_node_stat)
15538         (ggc_alloc_zone_cleared_tree_node_stat)
15539         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15540
15541         * ggc-common.c: Include ggc-internal.h.
15542         (ggc_internal_cleared_alloc_stat): Rename from
15543         ggc_alloc_cleared_stat.
15544         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15545         (ggc_calloc): Remove.
15546         (ggc_cleared_alloc_htab_ignore_args): New.
15547         (ggc_cleared_alloc_ptr_array_two_args): New.
15548         (ggc_splay_alloc): Add obj_type parameter.
15549         (init_ggc_heuristics): Formatting fixes.
15550
15551         * ggc-none.c: Update copyright year.
15552         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15553         (ggc_alloc_cleared_stat): Rename to
15554         ggc_internal_cleared_alloc_stat.
15555         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15556
15557         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15558         Remove references to ggc_alloc in comments.
15559         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15560         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15561         (new_ggc_zone, destroy_ggc_zone): Remove.
15562         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15563
15564         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15565         ggc_alloc in comments.
15566         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15567         (ggc_internal_alloc_zone_pass_stat): New.
15568         (ggc_internal_cleared_alloc_zone_stat): New.
15569         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15570         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15571         (new_ggc_zone, destroy_ggc_zone): Remove.
15572
15573         * stringpool.c: Update copyright year.  Include ggc-internal.h
15574         (digit_vector): Make static.
15575         (digit_string): Moved from ggc.h.
15576         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15577         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15578
15579         * Makefile.in (GGC_INTERNAL_H): New.
15580         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15581         $(GGC_INTERNAL_H) to dependencies.
15582
15583         * gentype.c: Update copyright year.
15584         (walk_type): Accept variable_size GTY option.
15585         (USED_BY_TYPED_GC_P): New macro.
15586         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15587         whitespace at the end of strings.
15588         (get_type_specifier, variable_size_p): New functions.
15589         (alloc_quantity, alloc_zone): New enums.
15590         (write_typed_alloc_def): New function.
15591         (write_typed_struct_alloc_def): Likewise.
15592         (write_typed_typed_typedef_alloc_def): Likewise.
15593         (write_typed_alloc_defns): Likewise.
15594         (output_typename, write_splay_tree_allocator_def): Likewise.
15595         (write_splay_tree_allocators): Likewise.
15596         (main): Call write_typed_alloc_defns and
15597         write_splay_tree_allocators.
15598
15599         * lto-streamer.h (lto_file_decl_data_ptr): New.
15600
15601         * passes.c (order): Define using cgraph_node_ptr.
15602
15603         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15604         ht_identifier_ptr.
15605
15606         * gimple.h (union gimple_statement_d): Likewise.
15607
15608         * rtl.h (struct rtx_def): Likewise.
15609         (struct rtvec_def): Likewise.
15610
15611         * tree.h (union tree_node): Likewise.
15612
15613         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15614
15615         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15616
15617         * tree-scalar-evolution.c (scev_initialize): Likewise.
15618
15619         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15620
15621         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15622
15623         * omp-low.c (lower_omp_critical): Likewise.
15624
15625         * bitmap.h (struct bitmap_head_def): Update comment to not
15626         reference ggc_alloc.
15627
15628         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15629
15630         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15631
15632         * ipa-prop.c (duplicate_ggc_array): Rename to
15633         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15634         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15635
15636         * gimple.c (gimple_alloc_stat): Use
15637         ggc_alloc_cleared_gimple_statement_d_stat.
15638
15639         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15640
15641         * tree.c (make_node_stat): Use
15642         ggc_alloc_zone_cleared_tree_node_stat.
15643         (make_tree_vec_stat): Likewise.
15644         (build_vl_exp_stat): Likewise.
15645         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15646         (make_tree_binfo_stat): Likewise.
15647         (tree_cons_stat): Likewise.
15648
15649         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15650         (shallow_copy_rtx_stat): Likewise.
15651         (make_node_stat): Likewise.
15652
15653         * lto-symtab.c: Fix comment.
15654
15655         * tree-cfg.c (create_bb): Update comment to not reference
15656         ggc_alloc_cleared.
15657         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15658
15659         * varpool.c (varpool_node): Use typed GC allocation.
15660         (varpool_extra_name_alias): Likewise.
15661
15662         * varasm.c (emutls_decl): Likewise.
15663         (get_unnamed_section): Likewise.
15664         (get_noswitch_section): Likewise.
15665         (get_section): Likewise.
15666         (get_block_for_section): Likewise.
15667         (build_constant_desc): Likewise.
15668         (create_constant_pool): Likewise.
15669         (force_const_mem): Likewise.
15670
15671         * tree.c (build_vl_exp_stat): Likewise.
15672         (build_real): Likewise.
15673         (build_string): Likewise.
15674         (decl_debug_expr_insert): Likewise.
15675         (decl_value_expr_insert): Likewise.
15676         (type_hash_add): Likewise.
15677         (build_omp_clause): Likewise.
15678
15679         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15680
15681         * tree-ssa.c (init_tree_ssa): Likewise.
15682
15683         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15684
15685         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15686
15687         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15688
15689         * tree-ssa-alias.c (get_ptr_info): Likewise.
15690
15691         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15692
15693         * tree-phinodes.c (allocate_phi_node): Likewise.
15694
15695         * tree-iterator.c (tsi_link_before): Likewise.
15696         (tsi_link_after): Likewise.
15697
15698         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15699
15700         * tree-dfa.c (create_var_ann): Likewise.
15701
15702         * tree-cfg.c (create_bb): Likewise.
15703
15704         * toplev.c (alloc_for_identifier_to_locale): Likewise.
15705         (general_init): Likewise.
15706
15707         * stringpool.c (stringpool_ggc_alloc): Likewise.
15708         (gt_pch_save_stringpool): Likewise.
15709
15710         * sese.c (if_region_set_false_region): Likewise.
15711
15712         * passes.c (do_per_function_toporder): Likewise.
15713
15714         * optabs.c (set_optab_libfunc): Likewise.
15715         (set_conv_libfunc): Likewise.
15716
15717         * lto-symtab.c (lto_symtab_register_decl): Likewise.
15718
15719         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15720         (input_eh_region): Likewise.
15721         (input_eh_lp): Likewise.
15722         (make_new_block): Likewise.
15723         (unpack_ts_real_cst_value_fields): Likewise.
15724
15725         * lto-section-in.c (lto_new_in_decl_state): Likewise.
15726
15727         * lto-cgraph.c (input_node_opt_summary): Likewise.
15728
15729         * loop-init.c (loop_optimizer_init): Likewise.
15730
15731         * lambda.h (lambda_vector_new): Likewise.
15732
15733         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15734
15735         * ira.c (update_equiv_regs): Likewise.
15736
15737         * ipa.c (cgraph_node_set_new): Likewise.
15738         (cgraph_node_set_add): Likewise.
15739         (varpool_node_set_new): Likewise.
15740         (varpool_node_set_add): Likewise.
15741
15742         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15743         (duplicate_ipa_jump_func_array): Likewise.
15744         (ipa_read_node_info): Likewise.
15745
15746         * ipa-cp.c (ipcp_create_replace_map): Likewise.
15747
15748         * integrate.c (get_hard_reg_initial_val): Likewise.
15749
15750         * gimple.c (gimple_alloc_stat): Likewise.
15751         (gimple_build_omp_for): Likewise.
15752         (gimple_seq_alloc): Likewise.
15753         (gimple_copy): Likewise.
15754
15755         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15756         (gsi_insert_after_without_update): Likewise.
15757
15758         * function.c (add_frame_space): Likewise.
15759         (insert_temp_slot_address): Likewise.
15760         (assign_stack_temp_for_type): Likewise.
15761         (allocate_struct_function): Likewise.
15762         (types_used_by_var_decl_insert): Likewise.
15763
15764         * except.c (init_eh_for_function): Likewise.
15765         (gen_eh_region): Likewise.
15766         (gen_eh_region_catch): Likewise.
15767         (gen_eh_landing_pad): Likewise.
15768         (add_call_site): Likewise.
15769
15770         * emit-rtl.c (get_mem_attrs): Likewise.
15771         (get_reg_attrs): Likewise.
15772         (start_sequence): Likewise.
15773         (init_emit): Likewise.
15774
15775         * dwarf2out.c (new_cfi): Likewise.
15776         (queue_reg_save): Likewise.
15777         (dwarf2out_frame_init): Likewise.
15778         (new_loc_descr): Likewise.
15779         (find_AT_string): Likewise.
15780         (new_die): Likewise.
15781         (add_var_loc_to_decl): Likewise.
15782         (clone_die): Likewise.
15783         (clone_as_declaration): Likewise.
15784         (break_out_comdat_types): Likewise.
15785         (new_loc_list): Likewise.
15786         (loc_descriptor): Likewise.
15787         (add_loc_descr_to_each): Likewise.
15788         (add_const_value_attribute): Likewise.
15789         (tree_add_const_value_attribute): Likewise.
15790         (add_comp_dir_attribute): Likewise.
15791         (add_name_and_src_coords_attributes): Likewise.
15792         (lookup_filename): Likewise.
15793         (store_vcall_insn): Likewise.
15794         (dwarf2out_init): Likewise.
15795
15796         * dbxout.c (dbxout_init): Likewise.
15797
15798         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15799
15800         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15801
15802         * config/score/score7.c (score7_output_external): Likewise.
15803
15804         * config/score/score3.c (score3_output_external): Likewise.
15805
15806         * config/s390/s390.c (s390_init_machine_status): Likewise.
15807
15808         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15809         (rs6000_init_machine_status): Likewise.
15810         (output_toc): Likewise.
15811
15812         * config/pa/pa.c (pa_init_machine_status): Likewise.
15813         (get_deferred_plabel): Likewise.
15814
15815         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15816
15817         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15818
15819         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15820
15821         * config/mep/mep.c (mep_init_machine_status): Likewise.
15822         (mep_note_pragma_flag): Likewise.
15823
15824         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15825
15826         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15827
15828         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15829
15830         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15831         (i386_pe_maybe_record_exported_symbol): Likewise.
15832
15833         * config/i386/i386.c (get_dllimport_decl): Likewise.
15834         (ix86_init_machine_status): Likewise.
15835         (assign_386_stack_local): Likewise.
15836
15837         * config/frv/frv.c (frv_init_machine_status): Likewise.
15838
15839         * config/darwin.c (machopic_indirection_name): Likewise.
15840
15841         * config/cris/cris.c (cris_init_machine_status): Likewise.
15842
15843         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15844
15845         * config/avr/avr.c (avr_init_machine_status): Likewise.
15846
15847         * config/arm/arm.c (arm_init_machine_status): Likewise.
15848
15849         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15850         (alpha_need_linkage): Likewise.
15851         (alpha_use_linkage): Likewise.
15852
15853         * cgraph.c (cgraph_allocate_node): Likewise.
15854         (cgraph_create_edge_1): Likewise.
15855         (cgraph_create_indirect_edge): Likewise.
15856         (cgraph_add_asm_node): Likewise.
15857
15858         * cfgrtl.c (init_rtl_bb_info): Likewise.
15859
15860         * cfgloop.c (alloc_loop): Likewise.
15861         (rescan_loop_exit): Likewise.
15862
15863         * cfg.c (init_flow): Likewise.
15864         (alloc_block): Likewise.
15865         (unchecked_make_edge): Likewise.
15866
15867         * c-parser.c (c_parse_init): Likewise.
15868         (c_parse_file): Likewise.
15869
15870         * c-decl.c (bind): Likewise.
15871         (record_inline_static): Likewise.
15872         (push_scope): Likewise.
15873         (make_label): Likewise.
15874         (lookup_label_for_goto): Likewise.
15875         (finish_struct): Likewise.
15876         (finish_enum): Likewise.
15877         (c_push_function_context): Likewise.
15878
15879         * bitmap.c (bitmap_element_allocate): Likewise.
15880         (bitmap_gc_alloc_stat): Likewise.
15881
15882         * alias.c (record_alias_subset): Likewise.
15883         (init_alias_analysis): Likewise.
15884
15885 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
15886
15887         * fold-const.c (fold_comparison): Remove redundant parenthesis.
15888         * tree-inline.c (expand_call_inline): Pass translated return value of
15889         cgraph_inline_failed_string to diagnostic function.
15890
15891 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
15892             Shujing Zhao  <pearly.zhao@oracle.com>
15893
15894         PR c/37724
15895         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
15896         implicit bad conversions is initialization.
15897         (error_init): Use gmsgid instead of msgid for argument name and change
15898         the call for error.
15899         (pedwarn_init): Use gmsgid instead of msgid for argument name and
15900         change the call for pedwarn.
15901         (warning_init): Use gmsgid instead of msgid for argument name and
15902         change the call for warning.
15903
15904 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
15905
15906         * config/mips/mips-protos.h (mips_print_operand): Delete.
15907         (mips_print_operand_address): Delete.
15908         * config/mips/mips.h (mips_print_operand_punct): Delete.
15909         (PRINT_OPERAND): Delete.
15910         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15911         (PRINT_OPERAND_ADDRESS): Delete.
15912         * config/mips/mips.c (mips_print_operand_punct): Make static.
15913         (mips_print_operand_address): Make static.
15914         (mips_print_operand): Make static.  Call
15915         mips_print_operand_punct_valid_p.
15916         (mips_print_operand_punct_valid_p): New function.
15917         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15918         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15919
15920 2010-06-07  Jan Hubicka  <jh@suse.cz>
15921
15922         PR middle-end/44454
15923         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
15924         are allocated.
15925
15926 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15927
15928         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
15929         name of RECORD.
15930
15931 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15932
15933         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15934         attributes): Document gas.
15935
15936 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
15937
15938         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
15939         <TYPE_LEA>: Split instruction.
15940         <default>: Remove alternative 2 handling.
15941         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
15942         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
15943         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
15944
15945         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
15946         (ashift_zext lea splitter): Use DImode for multiplication.
15947
15948         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
15949         to generate addition.
15950
15951 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
15952
15953         * common.opt (fira-verbose): Use Var.
15954         (fpcc-struct-return): Use Init instead of VarExists.
15955         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
15956         toplev.c.
15957         * flags.h (flag_signed_char, flag_short_enums,
15958         flag_pcc_struct_return, flag_ira_verbose,
15959         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
15960         * toplev.c (flag_detailed_statistics, flag_signed_char,
15961         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
15962         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
15963         * toplev.h (flag_crossjumping, flag_if_conversion,
15964         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
15965         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
15966         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
15967         flag_cprop_registers, time_report, flag_ira_loop_pressure,
15968         flag_ira_coalesce, flag_ira_move_spills,
15969         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
15970
15971 2010-06-07  Jan Hubicka  <jh@suse.cz>
15972
15973         * df-core.c (df_analyze_problem): Do verification after allocation.
15974
15975         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
15976         (df_lr_alloc): Initialize problem data; move bitmaps to
15977         lr_bitmaps obstack.
15978         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
15979         (df_lr_verify_solution_start): Do not initialize problem data;
15980         allocate bitmaps in lr_bitmaps.
15981         (df_lr_verify_solution_end): Do not free problem data.
15982
15983 2010-06-07  Jan Hubicka  <jh@suse.cz>
15984
15985         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
15986         if caller is noreturn.
15987         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
15988         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
15989         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
15990         * ipa-pure-const.c (check_decl): Add IPA parameter.
15991         (state_from_flags): New function.
15992         (better_state, worse_state): New functions.
15993         (check_call): When in IPA mode, do not care about callees.
15994         (check_load, check_store): Update.
15995         (check_ipa_load, check_ipa_store): New.
15996         (check_stmt): When in IPA mode, use IPA checkers.
15997         (analyze_function): Use state_from_flags.
15998         (propagate): Check indirect edges and references.
15999
16000 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
16001
16002         PR rtl-optimization/44404
16003         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
16004         of count_occurrences to see if it's safe to modify mem_insn.
16005
16006 2010-06-07  Richard Guenther  <rguenther@suse.de>
16007
16008         * gimplify.c (gimplify_cleanup_point_expr): For empty body
16009         and EH-only cleanup drop the cleanup instead of inserting it
16010         unconditionally.
16011
16012 2010-06-07  Ira Rosen  <irar@il.ibm.com>
16013
16014         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
16015         documentation.
16016         * targhooks.c (default_builtin_vectorization_cost): New function.
16017         * targhooks.h (default_builtin_vectorization_cost): Declare.
16018         * target.h (enum vect_cost_for_stmt): Define.
16019         (builtin_vectorization_cost): Change argument and comment.
16020         * tree-vectorizer.h: Remove cost model macros.
16021         * tree-vect-loop.c: Include target.h.
16022         (vect_get_cost): New function.
16023         (vect_estimate_min_profitable_iters): Replace cost model macros with
16024         calls to vect_get_cost.
16025         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
16026         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
16027         default implementation.
16028         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
16029         calls to target hook builtin_vectorization_cost.
16030         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
16031         Likewise.
16032         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
16033         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
16034         implementation to return costs.
16035         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16036         * config/spu/spu.h: Remove vectorizer cost model macros.
16037         * config/i386/i386.h: Likewise.
16038         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
16039         a call to target hook builtin_vectorization_cost.
16040
16041 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
16042
16043         PR target/44319
16044         * config/i386/i386.c (override_options): Turn zee pass on for level 2
16045         and above and defer till target is known.
16046         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
16047         turn off otherwise.
16048
16049 2010-05-25  Jan Hubicka  <jh@suse.cz>
16050
16051         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
16052         (df_compact_blocks): Likewise.
16053         * df.h (struct df): Turn hardware_regs_used,
16054         regular_block_artificial_uses, eh_block_artificial_uses,
16055         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
16056         bitmap_head.
16057         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
16058         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
16059         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
16060         df_scan_blocks, df_insn_delete, df_insn_rescan,
16061         df_insn_rescan_debug_internal, df_insn_rescan_all,
16062         df_process_deferred_rescans, df_process_deferred_rescans,
16063         df_notes_rescan, df_get_call_refs, df_get_call_refs,
16064         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
16065         df_record_entry_block_defs, df_record_exit_block_uses,
16066         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
16067         df_scan_verify): Update.
16068
16069 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
16070
16071         PR c++/44188
16072         * c-common.c (is_typedef_decl): Move this definition ...
16073         * tree.c (is_typedef_decl): ... here.
16074         (typdef_variant_p): Move definition here from cp/tree.c.
16075         * c-common.h (is_typedef_decl): Move this declaration ...
16076         * tree.h (is_typedef_decl): ... here.
16077         (typedef_variant_p): Move declaration here from cp/cp-tree.h
16078         * dwarf2out.c (is_naming_typedef_decl): New function.
16079         (gen_tagged_type_die): Split out of ...
16080         (gen_type_die_with_usage): ... this function. When an anonymous
16081         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16082         is emitted for the typedef.
16083         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16084         anonymous tagged types.
16085
16086 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16087
16088         PR c/20000
16089         * c-decl.c (grokdeclarator): Delete warning.
16090
16091 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16092
16093         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
16094         newly built CALL_EXPR.
16095         * tree-profile.c (tree_profiling): Don't profile functions produced
16096         for built-in stuff.
16097
16098 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
16099
16100         PR bootstrap/44427
16101         PR bootstrap/44428
16102         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
16103         endianness-independent.
16104
16105 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
16106
16107         * c-common.c: Move to c-family/.
16108         * c-common.def: Likewise.
16109         * c-common.h: Likewise.
16110         * c-cppbuiltin.c: Likewise.
16111         * c-dump.c: Likewise.
16112         * c-format.c: Likewise.
16113         * c-format.h : Likewise.
16114         * c-gimplify.c: Likewise.
16115         * c-lex.c: Likewise.
16116         * c-omp.c: Likewise.
16117         * c.opt: Likewise.
16118         * c-opts.c: Likewise.
16119         * c-pch.c: Likewise.
16120         * c-ppoutput.c: Likewise.
16121         * c-pragma.c: Likewise.
16122         * c-pragma.h: Likewise.
16123         * c-pretty-print.c: Likewise.
16124         * c-pretty-print.h: Likewise.
16125         * c-semantics.c: Likewise.
16126         * stub-objc.c: Likewise.
16127
16128         * gengtype.c (get_file_langdir): Special-case files in c-family/.
16129         (get_output_file_with_visibility): Fix name for c-common.h.
16130         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
16131
16132         * c-tree.h: Update include path for moved files.
16133         * c-lang.c: Likewise.
16134         * c-lang.h: Likewise.
16135         * c-parser.c: Likewise.
16136         * c-convert.c: Likewise.
16137         * c-decl.c: Likewise.
16138         * c-objc-common.c: Likewise.
16139         * configure.ac: Make sure c-family/ exists in the build directory.
16140         * configure: Regenerate.
16141         * Makefile.in: Update paths for moved files.  Regroup files per
16142         location and update dependencies.  Move generated_files down after
16143         ALL_GTFILES_H.
16144
16145         * config/spu/spu-c.c: Update paths for moved files.
16146         * config/mep/mep-pragma.c: Likewise.
16147         * config/darwin-c.c: Likewise.
16148         * config/i386/msformat-c.c: Likewise.
16149         * config/i386/i386-c.c: Likewise.
16150         * config/avr/avr-c.c: Likewise.
16151         * config/sol2-c.c: Likewise.
16152         * config/ia64/ia64-c.c: Likewise.
16153         * config/rs6000/rs6000-c.c: Likewise.
16154         * config/arm/arm.c: Likewise.
16155         * config/arm/arm-c.c: Likewise.
16156         * config/h8300/h8300.c: Likewise.
16157         * config/v850/v850-c.c: Likewise.
16158
16159         * config/t-darwin: Fix dependencies for moved files.
16160         * config/t-sol2: Fix dependencies for moved files.
16161         * config/mep/t-mep: Fix dependencies for moved files.
16162         * config/ia64/t-ia64: Fix dependencies for moved files.
16163         * config/rs6000/t-rs6000: Fix dependencies for moved files.
16164         * config/v850/t-v850: Fix dependencies for moved files.
16165         * config/v850/t-v850e: Fix dependencies for moved files.
16166
16167         * config/m32c/m32c-pragma.c
16168
16169         * po/exgettext: Look in c-family/ also.
16170
16171 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
16172
16173         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16174         (mark_control_dependent_edges_necessary): Call it instead of marking
16175         the last statement manually.
16176         (propagate_necessity): Likewise.
16177
16178 2010-06-05  Jan Hubicka  <jh@suse.cz>
16179
16180         * basic-block.h (compute_dominance_frontiers): Updated.
16181         (compute_idf): Likewise.
16182
16183         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16184         for dominance frontiers.
16185         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16186         (insert_updated_phi_nodes_for): Likewise.
16187         (update_ssa): Likewise.
16188         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16189         (compute_dominance_frontiers): Likewise.
16190         (compute_idf): Likewise.
16191         * df-problems.c (df_md_local_compute): Likewise.
16192
16193 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
16194
16195         * target.h (struct gcc_target): Add memory_move_cost field.
16196         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16197         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16198         * targhooks.c (default_memory_move_cost): New function.
16199         * targhooks.h (default_memory_move_cost): Declare function.
16200         * reload.h (memory_move_cost): Declare.
16201         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16202         * reginfo.c (memory_move_cost): New function.
16203         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16204         * ira.h (ira_memory_move_cost): Update comment.
16205         * ira.c (ira_memory_move_cost): Update comment.
16206         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16207         with memory_move_cost.
16208         * postreload.c (reload_cse_simplify_set): (Ditto.).
16209         * reload1.c (choose_reload_regs): (Ditto.).
16210         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16211         (MEMORY_MOVE_COST):  Revise documentation.
16212
16213         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16214         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16215         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16216         type of 'in' argument to bool.
16217         (TARGET_MEMORY_MOVE_COST): Define.
16218
16219 2010-06-05  Jan Hubicka  <jh@suse.cz>
16220
16221         * ipa-pure-const.c (propagate): Fix typo in handling of functions
16222         that cannot return.  Be more careful when merging the results with
16223         previously known ones.
16224
16225 2010-06-05  Matthias Klose  <doko@ubuntu.com>
16226
16227         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16228         function to add the -iplugindir option.
16229         (find_plugindir_spec_function): Add new declaration and function.
16230         (static_spec_func): Use it for "find-plugindir".
16231
16232 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
16233
16234         PR c++/44361
16235         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16236         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16237         statement expression.
16238
16239 2010-06-05  Jan Hubicka  <jh@suse.cz>
16240
16241         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16242         (df_rd_problem_data): Convert sparse_invalidated_by_call,
16243         dense_invalidated_by_call to bitmap head.
16244         (df_rd_alloc, df_rd_bb_local_compute_process_def,
16245         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16246         df_rd_start_dump, df_lr_verify_transfer_functions,
16247         df_live_verify_transfer_functions, df_chain_create_bb,
16248         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16249         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16250         df_simulate_one_insn_forwards, df_md_alloc,
16251         df_md_bb_local_compute_process_def,
16252         df_md_bb_local_compute_process_def, df_md_local_compute,
16253         df_md_transfer_function df_md_free): Update.
16254
16255 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
16256
16257         PR c/44322
16258         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16259         target type for ADDR_EXPR; require no changes to qualifiers except
16260         for function types.
16261         * c-tree.h (c_build_type_variant): Remove.
16262
16263 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16264
16265         * genautomata.c (get_excl_set): Do work per element, not per char.
16266         (check_presence_pattern_sets): Similar.
16267         (check_absence_pattern_sets): Similar.
16268
16269 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16270
16271         * genautomata.c (curr_state_pass_num): Delete.
16272         (min_issue_delay_pass_states): Delete.
16273         (min_issue_delay): Delete.
16274         (initiate_min_issue_delay_pass_states): Delete.
16275         (output_min_issue_delay_table): Compute min_issue_delay_vect
16276         using a breadth-first search variant.
16277         (output_tables): Don't call initiate_min_issue_delay_pass_states.
16278
16279 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16280
16281         PR boostrap/44421
16282         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16283         (df_byte_lr_bb_local_compute): Likewise.
16284
16285 2010-06-03  Jason Merrill  <jason@redhat.com>
16286
16287         Implement noexcept operator (5.3.7)
16288         * c-common.c (c_common_reswords): Add noexcept.
16289         * c-common.h (enum rid): Add RID_NOEXCEPT.
16290
16291 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
16292
16293         * config/darwin-driver.c (darwin_default_min_version): Use
16294         GCC-specific formats in diagnostics.
16295         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16296         diagnostics.
16297         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16298         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16299         eval_spec_function, handle_braces, process_brace_body, main,
16300         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16301         getenv_spec_function, compare_version_strings,
16302         version_compare_spec_function): Use GCC-specific formats in
16303         diagnostics.
16304
16305 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16306
16307         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16308         that operand 0 and operand 1 are equal.
16309         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16310         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16311         and operand 1 are equal.
16312         <default>: Ditto.  Remove ??? comment.
16313         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16314         and operand 1 are equal.
16315         <default>: Ditto.  Remove ??? comment.
16316         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16317         are equal.
16318         (*add<mode>_4) <default>: Ditto.
16319         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16320
16321 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
16322
16323         * config/i386/i386-protos.h (ix86_print_operand): Declare.
16324         * config/i386/i386.c (ix86_print_operand): Make non-static.
16325         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16326         * output.h (output_operand): Declare.
16327         * final.c (output_operand): Make non-static.
16328
16329 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
16330
16331         PR rtl-optimization/44013
16332         * sched-deps.c (add_dependence_list_and_free): Don't free lists
16333         when processing debug insns.
16334
16335         PR debug/41371
16336         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16337         recursing.  Check that recursion is bounded.  Rename inner var
16338         to avoid hiding incoming argument.
16339
16340 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16341
16342         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16343         operands[2] == 255.
16344         (*addqi_3): Ditto.
16345         (*addqi_4): Ditto.
16346         (*addqi_5): Ditto.
16347         (*addqi_ext_1_rex64): Ditto.
16348         (*addqi_ext_1): Ditto.
16349
16350         (*addqi_4): Check for incdec_operand in QImode.
16351
16352         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16353         using SWI mode iterator.
16354         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16355         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16356         mode iterator.
16357         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16358         using SWI mode iterator.
16359
16360 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16361
16362         PR c/25880
16363         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16364         * c-format.c (gcc_diag_flag_specs): Add hash.
16365         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16366         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16367         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16368         pp_c_cv_qualifiers. Handle qualifiers spelling here.
16369         (pp_c_type_qualifier_list): Call the function above.
16370         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16371         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16372         (WARN_FOR_QUALIFIERS): New macro.
16373         (convert_for_assignment): Use it.
16374
16375 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
16376
16377         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16378
16379 2010-06-04  Jan Hubicka  <jh@suse.cz>
16380
16381         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16382         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16383         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16384         DF_BYTE_LR_OUT): Update for embedded bitmaps.
16385         * fwprop.c (single_def_use_enter_block): Likewise.
16386         * ddg.c (create_ddg_dep_from_intra_loop_link,
16387         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16388         * loop-iv.c (latch_dominating_def): Likewise.
16389         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16390         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16391         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16392         df_rd_transfer_function, df_rd_top_dump,
16393         df_rd_bottom_dump): Update.
16394         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16395         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16396         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16397         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16398         df_lr_verify_solution_start, df_lr_verify_solution_end,
16399         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16400         df_live_free_bb_info, df_live_alloc, df_live_reset,
16401         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16402         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16403         df_live_verify_solution_start, df_live_verify_solution_end,
16404         df_live_verify_transfer_functions, df_chain_create_bb,
16405         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16406         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16407         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16408         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16409         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16410         df_byte_lr_transfer_function, df_byte_lr_top_dump,
16411         df_byte_lr_bottom_dump, df_create_unused_note,
16412         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16413         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16414         df_md_transfer_function, df_md_init, df_md_confluence_0,
16415         df_md_confluence_n,
16416         df_md_top_dump, df_md_bottom_dump): Update.
16417         (struct df_lr_problem_data): Embedd bitmap headers.
16418
16419 2010-06-04  Jan Hubicka  <jh@suse.cz>
16420
16421         * dce.c (dce_process_block): Do not re-scan already marked
16422         instructions.
16423
16424 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16425
16426         PR rtl-optimization/39871
16427         PR rtl-optimization/40615
16428         PR rtl-optimization/42500
16429         PR rtl-optimization/42502
16430         * ira.c (init_reg_equiv_memory_loc: New function.
16431         (ira): Call it twice.
16432         * reload.h (calculate_elim_costs_all_insns): Declare.
16433         * ira-costs.c: Include "reload.h".
16434         (regno_equiv_gains): New static variable.
16435         (init_costs): Allocate it.
16436         (finish_costs): Free it.
16437         (ira_costs): Call calculate_elim_costs_all_insns.
16438         (find_costs_and_classes): Take estimated elimination costs
16439         into account.
16440         (ira_adjust_equiv_reg_cost): New function.
16441         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16442         * reload1.c (init_eliminable_invariants, free_reg_equiv,
16443         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16444         (elim_bb): New static variable.
16445         (reload): Move code out of here into init_eliminable_invariants and
16446         free_reg_equiv.  Call them.
16447         (calculate_elim_costs_all_insns): New function.
16448         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
16449         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
16450         but call note_reg_elim_costly if we turned a valid memory address
16451         into an invalid one.
16452         * Makefile.in (ira-costs.o): Depend on reload.h.
16453
16454 2010-06-04  Julian Brown  <julian@codesourcery.com>
16455
16456         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16457         for pool ranges.
16458
16459 2010-06-04  Richard Guenther  <rguenther@suse.de>
16460
16461         PR lto/41584
16462         * cgraph.h (struct varpool_node): Add lto_file_data field.
16463         * lto-cgraph.c (input_varpool_node): Initialize it.
16464
16465 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16466
16467         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16468         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16469         predicate in "type" attribute calculation.
16470         (*addsi_1_zext): Ditto.
16471         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16472         (*addsi_2_zext): Ditto.
16473         (*add<mode>_3): Ditto.
16474         (*addsi_3_zext): Ditto.
16475         (*add<mode>_5): Ditto.
16476
16477 2010-06-03  Jan Hubicka  <jh@suse.cz>
16478
16479         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16480         of bitmap_bit_p.
16481         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16482
16483 2010-06-03  Jan Hubicka  <jh@suse.cz>
16484
16485         * df-problems.c (df_create_unused_note, df_note_bb_compute):
16486         micro-optimize the checks when to add new note.
16487
16488 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
16489
16490         * final.c (output_asm_insn): Call
16491         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
16492         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
16493         (output_address): Call targetm.asm_out.print_operand_address.
16494         Update comments.
16495         * target.h (struct gcc_target): Add print_operand,
16496         print_operand_address, and print_operand_punct_valid_p fields.
16497         * targhooks.h (default_print_operand): Declare.
16498         (default_print_operand_address): Declare.
16499         (default_print_operand_punct_valid_p): Declare.
16500         * targhooks.c (default_print_operand): Define.
16501         (default_print_operand_address): Define.
16502         (default_print_operand_punct_valid_p): Define.
16503         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16504         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16505         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16506         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16507         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16508         * vmsdbgout.c (addr_const_to_string): Update comment.
16509         * config/i386/i386.c (print_operand): Rename to...
16510         (ix86_print_operand): ...this.  Make static.
16511         (print_operand_address): Rename to...
16512         (ix86_print_operand_address): ...this.  Make static.  Call
16513         ix86_print_operand instead of PRINT_OPERAND.
16514         (ix86_print_operand_punct_valid_p): New function.
16515         (TARGET_PRINT_OPERAND): Define.
16516         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16517         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16518         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16519         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16520         (PRINT_OPERAND): Delete.
16521         (PRINT_OPERAND_ADDRESS): Delete.
16522         * config/i386/i386-protos.h (print_operand): Delete prototype.
16523         (print_operand_address): Delete prototype.
16524
16525 2010-06-03  Richard Guenther  <rguenther@suse.de>
16526
16527         PR tree-optimization/44403
16528         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16529         Preserve pointer qualifiers.
16530         (vect_create_data_ref_ptr): Likewise.
16531
16532 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16533
16534         PR c++/44294
16535         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16536
16537         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16538
16539 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16540
16541         PR debug/44375
16542         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16543         return false if merging the bbs would lead to goto_locus
16544         location being lost from the IL.
16545
16546 2010-06-03  Jan Hubicka  <jh@suse.cz>
16547             Jakub Jelinek  <jakub@redhat.com>
16548
16549         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16550         set->regs[i] is NULL or has just one entry.
16551
16552 2010-06-03  Jan Hubicka  <jh@suse.cz>
16553
16554         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16555         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16556
16557 2010-06-03  Paul Brook  <paul@codesourcery.com>
16558
16559         * config/arm/arm.c (FL_TUNE): Define.
16560         (arm_default_cpu, arm_cpu_select): Remove.
16561         (all_cores): Populate core field.
16562         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16563         (arm_find_cpu): New function.
16564         (arm_handle_option): Lookup cpu/architecture names.
16565         (arm_override_options): Cleanup mcpu/march/mtune handling.
16566         (arm_file_start): Ditto.
16567
16568 2010-06-03  Alan Modra  <amodra@gmail.com>
16569
16570         PR target/44169
16571         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16572         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16573         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16574         (rs6000_emit_load_toc_table): Likewise.
16575
16576 2010-06-02  Jan Hubicka  <jh@suse.cz>
16577
16578         * passes.c (init_optimization_passes): Put ipa reference
16579         after ipa pure-const.
16580
16581 2010-06-02  Jan Hubicka  <jh@suse.cz>
16582
16583         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16584         calls_read_all and calls_write_all.
16585         (get_reference_optimization_summary): Fix formatting.
16586         (is_proper_for_analysis): Check that decl is not readonly.
16587         (propagate_bits): Check CONST/PURE/noreturn flags.
16588         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16589         (analyze_function): Ignore indirect edges.
16590         (copy_global_bitmap): For all module statics, do nothing.
16591         (generate_summary): Do not print calls_read_all/calls_write_all.
16592         (read_write_all_from_decl): Take node as argument; check
16593         cgraph_node_cannot_return.
16594         (propagate): Reorganize read_all/write_all computation;
16595         check indirect edges; check ecf flags; use all_module_statics
16596         in the results; do not free all_module_statics.
16597         (stream_out_bitmap): Handle all_module_statics.
16598         (ipa_reference_write_optimization_summary): Likewise; use
16599         varpool/cgraph encoders to get boundaries.
16600         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16601         use it when possible.
16602
16603 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16604
16605         PR target/44218
16606         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16607         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16608
16609         * doc/extend.texi (powerpc builtins): Document vec_recip,
16610         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16611
16612         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16613         (rs6000_emit_swrsqrt): Ditto.
16614         (rs6000_emit_swdivsf): Delete.
16615         (rs6000_emit_swdivdf): Ditto.
16616         (rs6000_emit_swrsqrtsf): Ditto.
16617
16618         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16619         describe the reciprocal estimate support for each type.
16620         (recip_options): Map -mrecip=<opt> into option bits.
16621         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16622         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16623         reciprocal estimate instructions.
16624         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16625         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16626         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16627         cost information if -mdebug=cost or -mdebug=reg.
16628         (rs6000_override_options): Set -mrecip-precision for power6, and
16629         power7 machines.  If -mvsx or -mdfp, enable various options that
16630         came in previous instruction set ISAs, unless the option was
16631         explicitly disabled by the command line option.  Parse
16632         -mrecip=<opt> options.
16633         (rs6000_builtin_vectorized_function): Add support for vectorizing
16634         the reciprocal estimate builtins and expansions.
16635         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16636         (bdesc_2arg): Add reciprocal estimate builtins.
16637         (bdesc_1arg): Add reciprocal square root estimate builtins.
16638         (rs6000_expand_builtin): Rewrite to use a switch statement,
16639         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16640         (rs6000_init_builtins): Create declarations for reciprocal
16641         estimate builtins.
16642         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16643         sized, prefer traditional floating point registers, if integer
16644         vector types, prefer altivec registers.  Don't actually look at
16645         the memory address any more.
16646         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16647         builtins.
16648         (rs6000_load_constant_and_splat): New helper function to load up
16649         the constant for reciprocal estimate instructions.
16650         (rs6000_emit_madd): New helper function for generating
16651         multiply/add type instructions, based on the current switches.
16652         (rs6000_emit_msub): Ditto.
16653         (rs6000_emit_mnsub): Ditto.
16654         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16655         replace a divide with a reciprocal estimate and fixup, adding
16656         support for machines with high precision and vectors.
16657         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16658         low precision machines.
16659         (rs6000_emit_swdiv): New common function to be called to replace a
16660         division with reciprocal estimate and fixup.
16661         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16662         for double and vector types.  Add support for high precision machines.
16663
16664         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16665         the reciprocal estimate instructions can be generated.
16666         (TARGET_FRE): Ditto.
16667         (TARGET_FRSQRTES): Ditto.
16668         (TARGET_FRSQRTE): Ditto.
16669         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16670
16671         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16672         square root estimate on vectors.
16673         (re<mode>2): New insn for reciprocal division estimate on vectors.
16674
16675         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16676         New builtin.
16677         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16678         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16679         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16680         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16681         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16682         (RS6000_BUILTIN_RSQRT): Ditto.
16683         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16684         floating point builtin.
16685
16686         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16687         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16688         __RECIP_PRECISION__ based on the command line switches.
16689         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16690
16691         * config/rs6000/rs6000.opt (-mrecip): Document add support for
16692         replacing division instructions with reciprocal estimate and fixup.
16693         (-mrecip=<opt>): New option.
16694         (-mrecip-precision): Ditto.
16695
16696         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16697         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16698         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16699         precision scalar.
16700
16701         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16702         (UNSPEC_VREFP): Ditto.
16703         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16704         conterparts with regard to support of -mno-fused-madd and -ffast-math.
16705         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16706         reciprocal estimate instructions to be generated.
16707         (altivec_vrefp): Ditto.
16708
16709         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16710         estimate support.
16711         (rreg): New mode attribute for reciprocal estimate support.
16712         (recip<mode>3): New insn for division using reciprocal estimate
16713         and fixup builtins.
16714         (divide define_split): New define_split to convert floating point
16715         division to use reciprocal estimate if the user used the
16716         appropriate options and the split is run when we can add new
16717         pseudo registers for the fixup.
16718         (rsqrt<mode>2): New insn for reciprocal square root support.
16719         (recipsf3): Move into recip<mode>3.
16720         (recipdf3): Ditto.
16721         (fres): Use TARGET_FRES.
16722         (rsqrtsf2): Move into rsqrt<mode>2.
16723         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16724         (copysignsf3): Add support for VSX.
16725         (fred): Use TARGET_FRE.
16726         (fred_fpr): Ditto.
16727         (rsqrtdf_internal1): New function for frsqrte instruciton.
16728
16729         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16730         (vec_rsqrt): Ditto.
16731
16732 2010-06-03  Richard Guenther  <rguenther@suse.de>
16733
16734         PR middle-end/44291
16735         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16736         (set_user_assembler_libfunc): Likewise.
16737
16738 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16739
16740         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16741         defaults.h.
16742         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16743         to defaults.h
16744         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16745         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16746         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16747         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16748         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16749         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16750         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16751         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16752         * defaults.h: Updated for above mentioned changes.
16753
16754 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
16755
16756         * c-common.c: Remove header include of tm_p.h.
16757         * Makefile.in (c-common.o): Remove TM_P_H dependency.
16758
16759 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
16760
16761         * tree.h (struct tree_decl_map): New type.
16762         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16763         (tree_decl_map_hash): New prototype.
16764         (debug_expr_for_decl, value_expr_for_decl): Change into
16765         tree_decl_map hashtab from tree_map.
16766         (init_ttree): Adjust initialization.
16767         (tree_decl_map_hash): New function.
16768         (decl_debug_expr_lookup, decl_debug_expr_insert,
16769         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16770
16771 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16772
16773         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16774         linker emulations.
16775         * configure: Regenerate.
16776         * config.in: Regenerate.
16777
16778         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16779         (X86_64_EMULATION): Define.
16780         (TARGET_LD_EMULATION): Use them.
16781
16782         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16783         (SPARC64_EMULATION): Define.
16784         (LINK_ARCH_SPEC): Use them.
16785
16786 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16787
16788         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16789         smallest_mode_for_size for computing the precision types of new
16790         graphite IVs.  Do not call lang_hooks.types.type_for_size.
16791
16792 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16793
16794         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16795         information.
16796         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16797
16798 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16799
16800         PR middle-end/44363
16801         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16802         return false instead.
16803
16804 2010-06-02  Jan Hubicka  <jh@suse.cz>
16805
16806         PR middle-end/44295
16807         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16808         create new cgraph node to check callee.
16809
16810 2010-06-02  Richard Guenther  <rguenther@suse.de>
16811
16812         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16813
16814 2010-06-02  Richard Guenther  <rguenther@suse.de>
16815
16816         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16817         (lto_wrapper_cleanup): ... this.  Do not exit.
16818         (fatal): Adjust.  Exit here.
16819         (fatal_perror): Likewise.
16820         (fatal_signal): New function.
16821         (main): Set up signal handlers to cleanup temporary files.
16822         * Makefile.in (lto-wrapper.o): Adjust dependencies.
16823
16824 2010-06-02  Richard Guenther  <rguenther@suse.de>
16825
16826         PR tree-optimization/44377
16827         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16828
16829 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16830
16831         * config/s390/2097.md (z10_fhex): Remove insn reservation.
16832         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16833         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16834         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16835         instruction.
16836         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16837
16838 2010-06-02  Jan Hubicka  <jh@suse.cz>
16839
16840         * bitmap.c (bitmap_descriptor): Add search_iter.
16841         (bitmap_find_bit): Increment it.
16842         (print_statistics): Print it.
16843
16844 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
16845
16846         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16847         instead of gimple_build_call_vec.  Delete unnecessary local variable.
16848
16849 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16850
16851         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16852         change from yesterday.
16853
16854 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16855
16856         * c-ada-spec.c: Clean up redundant includes.
16857
16858 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
16859
16860         * gimplify.c: Do not include except.h and optabs.h.
16861         (gimplify_body): Do not initialize RTL profiling.
16862         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
16863         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
16864         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
16865         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
16866         langhooks.h.
16867
16868         * tree-pretty-print.h: Include pretty-print.h.
16869         * gimple-pretty-print.h: Include pretty-print.h.
16870
16871         * tree-pretty-print.c: Do not include diagnostic.h.
16872         * tree-vrp.c: Likewise.
16873         * tree-tailcall.c: Likewise
16874         * tree-scalar-evolution.c: Likewise
16875         * tree-ssa-dse.c: Likewise
16876         * tree-chrec.c: Likewise
16877         * tree-ssa-sccvn.c: Likewise
16878         * tree-ssa-copyrename.c: Likewise
16879         * tree-nomudflap.c: Likewise
16880         * tree-call-cdce.c: Likewise
16881         * tree-stdarg.c: Likewise
16882         * tree-ssa-math-opts.c: Likewise
16883         * tree-nrv.c: Likewise
16884         * tree-ssa-sink.c: Likewise
16885         * tree-browser.c: Likewise
16886         * tree-ssa-loop-ivcanon.c: Likewise
16887         * tree-ssa-loop.c: Likewise
16888         * tree-parloops.c: Likewise
16889         * tree-ssa-address.c: Likewise
16890         * tree-ssa-ifcombine.c: Likewise
16891         * tree-if-conv.c: Likewise
16892         * tree-data-ref.c: Likewise
16893         * tree-affine.c: Likewise
16894         * tree-ssa-phiopt.c: Likewise
16895         * tree-ssa-coalesce.c: Likewise
16896         * tree-ssa-pre.c: Likewise
16897         * tree-ssa-live.c: Likewise
16898         * tree-predcom.c: Likewise
16899         * tree-ssa-forwprop.c: Likewise
16900         * tree-ssa-dce.c: Likewise
16901         * tree-ssa-ter.c: Likewise
16902         * tree-ssa-loop-prefetch.c: Likewise
16903         * tree-optimize.c: Likewise
16904         * tree-ssa-phiprop.c: Likewise
16905         * tree-object-size.c: Likewise
16906         * tree-outof-ssa.c: Likewise
16907         * tree-ssa-structalias.c: Likewise
16908         * tree-switch-conversion.c: Likewise
16909         * tree-ssa-reassoc.c: Likewise
16910         * tree-ssa-operands.c: Likewise
16911         * tree-vectorizer.c: Likewise
16912         * tree-vect-data-refs.c: Likewise
16913         * tree-vect-generic.c: Likewise
16914         * tree-vect-stmts.c: Likewise
16915         * tree-vect-patterns.c: Likewise
16916         * tree-vect-slp.c: Likewise
16917         * tree-vect-loop.c: Likewise
16918         * tree-ssa-loop-ivopts.c: Likewise
16919         * tree-ssa-loop-im.c: Likewise
16920         * tree-ssa-loop-niter.c: Likewise
16921         * tree-ssa-loop-unswitch.c: Likewise
16922         * tree-ssa-loop-manip.c: Likewise
16923         * tree-ssa-loop-ch.c: Likewise
16924         * tree-dump.c: Likewise
16925         * tree-complex.c: Likewise
16926
16927         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
16928         * tree-ssa-uninit.c: Likewise
16929         * tree-ssa-threadupdate.c: Likewise
16930         * tree-ssa-uncprop.c: Likewise
16931         * tree-ssa-ccp.c: Likewise
16932         * tree-ssa-dom.c: Likewise
16933         * tree-ssa-propagate.c: Likewise
16934         * tree-ssa-alias.c: Likewise
16935         * tree-dfa.c: Likewise
16936         * tree-cfgcleanup.c: Likewise
16937         * tree-sra.c: Likewise
16938         * tree-ssa-copy.c: Likewise
16939         * tree-ssa.c: Likewise
16940         * tree-profile.c: Likewise
16941         * tree-cfg.c: Likewise
16942         * tree-ssa-threadedge.c: Likewise
16943         * tree-vect-loop-manip.c: Likewise
16944
16945         * tree-inline.c: Do not include diagnostic.h and expr.h.
16946         Include rtl.h.
16947         (copy_decl_for_dup_finish): Do not use NULL_RTX.
16948
16949         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
16950         * tree-loop-distribution.c: Likewise.
16951
16952 2010-06-01  Jan Hubicka  <jh@suse.cz>
16953
16954         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
16955
16956 2010-06-01  Jan Hubicka  <jh@suse.cz>
16957
16958         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
16959         remove return value.
16960         (split_bbs_on_noreturn_calls) .... here.
16961         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
16962         * tree-flow.h (fixup_noreturn_call): New.
16963
16964 2010-06-01  Jan Hubicka  <jh@suse.cz>
16965
16966         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16967
16968 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
16969
16970         * tree.h (build_nt_call_list): Delete.
16971         * tree.c (build_nt_call_list): Delete.
16972
16973 2010-06-01  Jan Hubicka  <jh@suse.cz>
16974
16975         * fwprop.c: Make emit-rtl.h include last.
16976         * rtlanal.c: Include emit-rtl.h.
16977         * genautomata.c: Output emit-rtl include into insn-automata.c
16978         * df-scan.c: Include emit-rtl.h.
16979         * haifa-sched.c: Indlude emit-rtl.h.
16980         * mode-switching.c: Indlude emit-rtl.h.
16981         * graph.c: Indlude emit-rtl.h.
16982         * sel-sched.c: Include emit-rtl.h.
16983         * sel-sched-ir.c: Include emit-rtl.h.
16984         * ira-build.c: Include emit-rtl.h.
16985         * emit-rtl.c (first_insn, last_insn): Remove defines.
16986         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
16987         Move to emit-rtl.h.
16988         (set_new_first_and_last_insn, get_last_insn_anywhere,
16989         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
16990         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
16991         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
16992         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
16993         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
16994         Use accessor functions.
16995         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16996          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16997         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16998         mem_expr_equal_p): Move here from rtl.h.
16999         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
17000         Move here from emit-rtl.c; make inline.
17001         * cfglayout.h: Include emit-rtl.h.
17002         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17003          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17004         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17005         mem_expr_equal_p, get_insns, set_first-insn,
17006         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
17007         * reg-stack.c: Include emit-rtl.h.
17008         * dce.c: Likewise.
17009
17010 2010-06-01  Jan Hubicka  <jh@suse.cz>
17011
17012         * cgraph.h (tree_function_versioning): Update prototype.
17013         (cgraph_function_versioning): Update prototype.
17014         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
17015         bitmap.
17016         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
17017         (cgraph_materialize_clone, save_inline_function_body): Update use of
17018         tree_function_versioning.
17019         * tree-inline.c (copy_bb): Look for previous copied block to link
17020         after; fix debug output.
17021         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
17022         (copy_body): Likewise.
17023         (expand_call_inline): Update use of copy_body.
17024         (tree_function_versioning): Update use of copy body; accept
17025         blocks_to_copy and new_entry.
17026
17027 2010-06-01  Jan Hubicka  <jh@suse.cz>
17028
17029         * gegenrtl.c: Remove unnecesary prototypes.
17030         (gendecl): Remove.
17031         (gendef): Produce static inline.
17032         (gencode): Remove.
17033         (main): Do not decode parameters; generate header only.
17034         * Makefile.in (genrtl.c): Remove.
17035
17036 2010-06-01  Jan Hubicka  <jh@suse.cz>
17037
17038         * tree-switch-conversion.c (build_one_array): Make it readonly.
17039
17040 2010-06-01  Richard Guenther  <rguenther@suse.de>
17041
17042         * optabs.c (init_optabs): Guard all accesses to reinit.
17043         * ipa-pure-const.c (propagate): Fix another typo.
17044         * opts.c (common_handle_option): Split assignment to bool.
17045         * c-opts.c (c_common_handle_option): Likewise.
17046
17047 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
17048             Matthew Gingell  <gingell@adacore.com>
17049
17050         * doc/invoke.texi: Mention -fdump-ada-spec.
17051         * tree-dump.c (dump_files): Add ada-spec.
17052         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
17053         * tree-pass.h (tree_dump_index): Add TDI_ada.
17054         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
17055         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
17056         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
17057         * c-decl.c: Include c-ada-spec.h.
17058         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
17059         functions.
17060         (c_write_global_declarations): Add handling of -fdump-ada-spec.
17061         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
17062         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
17063         * c-ada-spec.h, c-ada-spec.c: New files.
17064
17065 2010-06-01  Richard Guenther  <rguenther@suse.de>
17066
17067         PR lto/43853
17068         * ipa-pure-const.c (get_function_state): Hand back varying state
17069         if we do not have one.
17070         (has_function_state): New function.
17071         (duplicate_node_data): Adjust.
17072         (remove_node_data): Likewise.
17073         (pure_const_write_summary): Likewise.
17074         (propagate): Likewise.  Fix typo.
17075
17076 2010-06-01  Jan Hubicka  <jh@suse.cz>
17077
17078         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
17079         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
17080         (execute_all_ipa_transforms): Do not play with the states.
17081
17082 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17083
17084         * config/arm/t-linux-androideabi: New.
17085         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
17086
17087 2010-06-01  Jan Hubicka  <jh@suse.cz>
17088
17089         * tree-inline.c (estimate_num_insns): For stdarg functions look
17090         into call statement to count cost of argument passing.
17091
17092 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
17093
17094         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
17095         argument for fprintf.
17096         (ix86_output_addr_diff_elt): Likewise.
17097         (x86_function_profiler): Likewise.
17098         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
17099         (LPREFIX): Likewise.
17100         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17101
17102 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17103
17104         PR target/44338
17105         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
17106         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
17107         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
17108         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
17109         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
17110         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
17111         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
17112         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
17113         TARGET_FUSED_MADD.
17114
17115 2010-05-31  Jan Hubicka  <jh@suse.cz>
17116
17117         * tree.h (tree_range_check_failed): Declare noreturn.
17118
17119 2010-05-31  Jan Hubicka  <jh@suse.cz>
17120
17121         * gimple.c (gimple_call_builtin_p): New function.
17122         * gimple.h (gimple_call_builtin_p): Declare.
17123         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
17124         to exit.
17125         (execute_warn_function_return): BUILT_IN_RETURN is return.
17126         (split_critical_edges): Return edges are not critical.
17127         (is_ctrl_altering_stmt): Builtin_in_return is altering.
17128         (gimple_verify_flow_info): Handle built_in_return.
17129         (execute_warn_function_return): Handle built_in_return.
17130         * ipa-pure-const.c (check_call): Ignore builtin_return.
17131
17132 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17133
17134         PR middle-end/44337
17135         * expr.c (expand_assignment): Don't store anything for out-of-bounds
17136         array accesses with non-MEM.
17137
17138         PR tree-optimization/44182
17139         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17140         newly needs to end a bb is followed by debug stmts, instead return
17141         true from the function at the end.
17142         (maybe_move_debug_stmts_to_successors): New function.
17143         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17144
17145 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
17146
17147         PR target/44161
17148         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17149
17150 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17151
17152         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17153         for nested functions in non-optimized compilation.
17154
17155 2010-05-31  Richard Guenther  <rguenther@suse.de>
17156
17157         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17158
17159 2010-05-30  Jan Hubicka  <jh@suse.cz>
17160
17161         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17162
17163 2010-05-30  Richard Guenther  <rguenther@suse.de>
17164
17165         PR lto/42975
17166         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17167         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17168         no longer needed.
17169
17170 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
17171
17172         * config/darwin.c (output_objc_section_asm_op): Add comment.
17173         (name_needs_quotes): Add '_' to list of valid comment chars.
17174         (machopic_output_function_base_name): Remove unneeded quotes.
17175         (darwin_encode_section_info): Adjust asm whitespace.
17176         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17177         (ASM_OUTPUT_LOCAL): Ditto.
17178         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17179         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17180         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17181
17182 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
17183
17184         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17185         RS6000_OUTPUT_BASENAME unconditionally.
17186         (rs6000_output_function_epilogue): Likewise.
17187
17188 2010-05-30  Jan Hubicka  <jh@suse.cz>
17189
17190         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17191         nodes.
17192
17193 2010-05-30  Richard Guenther  <rguenther@suse.de>
17194
17195         * tree-cfg.c (verify_gimple_assign_single): Implement
17196         verification for COND_EXPR rhs.
17197
17198 2010-05-30  Jan Hubicka  <jh@suse.cz>
17199
17200         * cgraph.h (cgraph_dump_file): Declare.
17201         * cgraphunit.c (cgraph_dump_file): Export.
17202         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17203
17204 2010-05-30  Jan Hubicka  <jh@suse.cz>
17205
17206         * dwarf2out.c (reference_to_unused,
17207         premark_types_used_by_global_vars_helper): Avoid creation of new
17208         varpool nodes.
17209
17210 2010-05-30  Jan Hubicka  <jh@suse.cz>
17211
17212         * cgraph.h (cgraph_node_cannot_return,
17213         cgraph_edge_cannot_lead_to_return): New functions.
17214         * cgraph.c (cgraph_node_cannot_return,
17215         cgraph_edge_cannot_lead_to_return): Use them.
17216         * ipa-pure-const.c (pure_const_names): New static var.
17217         (check_call): Handle calls not leading to return.
17218         (pure_const_read_summary): Dump info read.
17219         (propagate): Dump info about propagation process; ignore side effects
17220         of functions not leading to exit; fix handling of pure functions.
17221
17222 2010-05-30  Jan Hubicka  <jh@suse.cz>
17223
17224         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17225         for tail call epilogues.
17226
17227 2010-05-30  Jan Hubicka  <jh@suse.cz>
17228
17229         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17230         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17231         dump files.
17232
17233 2010-05-29  Jan Hubicka  <jh@suse.cz>
17234
17235         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17236         node; remove references in node we no longer keep in cgrpah but need
17237         body of.
17238
17239 2010-05-29  Jan Hubicka  <jh@suse.cz>
17240
17241         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17242
17243 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17244
17245         PR target/44165
17246         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17247
17248 2010-05-29  Jan Hubicka  <jh@suse.cz>
17249
17250         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17251         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17252         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17253         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17254         debug_names_replaced_by, debug_update_ssa): Likewise.
17255         * sbitmap.c (debug_sbitmap): Likewise.
17256         * genrecog.c (debug_decision, debug_decision_list): Likewise.
17257         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17258         debug_tree_chain): Likewise.
17259         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17260         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17261         * optabs.c (debug_optab_libfuncs): Likewise.
17262         (verify_loop_closed_ssa): Likewise.
17263         * value-prof.c (verify_histograms): Likewise.
17264         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17265         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17266         * cfghooks.c (verify_flow_info): Likewise.
17267         * fold-const.c (debug_fold_checksum): Likewise.
17268         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17269         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17270         Likewise.
17271         * omega.c (debug_omega_problem): Likewise.
17272         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17273         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17274         * dominance.c (verify_dominators, debug_dominance_info,
17275         debug_dominance_tree): Likewise.
17276         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17277         * df_regno_debug, df_ref_debug,
17278         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17279         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17280         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17281         * sel-sched.c (debug_state): Likewise.
17282         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17283         Likewise.
17284         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17285         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17286         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17287         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17288         Likewise.
17289         * c-pretty-print.c (debug_c_tree): Likewise.
17290         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17291         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17292         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17293         * ebitmap.c (debug_ebitmap): Likewise.
17294         * function.c (debug_find_var_in_block_tree): Likewise.
17295         * print-rtl.c (debug_rtx): Likewise.
17296         (debug_rtx_count): Likewise.
17297         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17298         * stor-layout.c (debug_rli): Likewise.
17299         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17300         * tree-data-ref.c (debug_data_references,
17301         debug_data_dependence_relations, debug_data_reference,
17302         debug_data_dependence_relation, debug_rdg_vertex,
17303         debug_rdg_component, debug_rdg): Likewise.
17304         * tree-affine.c (debug_aff): Likewise.
17305         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17306         Likewise.
17307         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17308         * emit-rtl.c (verify_rtl_sharing): Likewise.
17309         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17310         debug_value_expressions): Likewise.
17311         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17312         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17313         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17314         * cfglayout.c (verify_insn_chain): Likewise.
17315         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17316         debug_clast_stmt, debug_generated_program): Likewise.
17317         * ggc-page.c (debug_print_page_list): Likewise.
17318         * tree-ssa-ter.c (debug_ter): Likewise.
17319         * graphite-dependences.c (debug_pddr): Likewise.
17320         * sched-deps.c (debug_ds): Likewise.
17321         * tree-ssa.c (verify_ssa): Likewise.
17322         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17323         debug_scattering_functions, debug_iteration_domains, debug_pdr,
17324         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17325         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17326         * tree-inline.c (debug_find_tree): Likewise.
17327         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17328         debug_ppl_powerset_matrix): Likewise.
17329         * var-tracking.c (debug_dv): Likewise.
17330         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17331         * cfgloop.c (verify_loop_structure): Likewise.
17332         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17333         * c-common.c (verify_sequence_points): Likewise.
17334         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17335         debug_candidates, debug_rgn_dependencies): Likewise.
17336         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17337         * debug_constraint_graph, debug_solution_for_var,
17338         debug_sa_points_to_info): Likewise.
17339         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17340         Likewie.
17341         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17342         debug_loops, debug_loop, debug_loop_num): Likewise.
17343         * passes.c (debug_pass): Likewise.
17344         (dump_properties): Likewise; add cfglayout property.
17345         (debug_properties): Likewise.
17346         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17347         * varpool.c (debug_varpool): Likewise.
17348         * regcprop.c (debug_value_data): Likewise.
17349         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17350         debug_immediate_uses_for): Likewise.
17351
17352 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17353
17354         PR bootstrap/44315
17355         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17356         Filter out insn-flags.h.
17357
17358 2010-05-29  Jan Hubicka  <jh@suse.cz>
17359
17360         * cgraph.h (struct varpool_node_set_def,
17361         struct cgraph_node_set_def): Remove unused AUX pointer.
17362         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17363         VEC_empty macro.
17364
17365 2010-05-29  Jan Hubicka  <jh@suse.cz>
17366
17367         PR middle-end/44324
17368         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17369
17370 2010-05-29  Richard Guenther  <rguenther@suse.de>
17371
17372         * lto-streamer.c (cached_bp): New global variable.
17373         (bitpack_create): Return the cached bitpack, if available.
17374         (bitpack_delete): Clear and cache the bitpack, if appropriate.
17375         (bp_pack_value): Remove redundant asserts.
17376
17377 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17378
17379         PR middle-end/44306
17380         * tree-if-conv.c (is_true_predicate): New.
17381         (is_predicated): Use is_true_predicate.
17382         (add_to_predicate_list): Same.  Do not use unshare_expr.
17383         (add_to_dst_predicate_list): Same.
17384
17385 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17386
17387         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17388         field on edges.
17389         (predicate_bbs): Same.
17390         (clean_predicate_lists): Same.
17391         (find_phi_replacement_condition): Do not AND the predicate from
17392         edge->aux.
17393
17394 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17395
17396         PR bootstrap/44315
17397         * Makefile.in (build/gencondmd.o): Add a missing `\'.
17398
17399 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17400
17401         PR target/44261
17402         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17403         (negdf2): Adjust expander pattern and use negdf2_slow.
17404         (negsf2): Likewise.
17405
17406 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
17407
17408         * basic-block.h (struct control_flow_graph): Move last_label_uid field
17409         up.
17410         * df.h (struct df_base_ref): Move regno field up.
17411         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17412         * expr.h (struct separate_ops): Move location field up.
17413         * optabs.h (struct optab_d): Move libcall_basename field down.
17414         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17415         * config/i386/i386.h (struct machine_function): Convert call_abi field
17416         into a bitfield.  Move cfa field to the end of the structure.
17417
17418 2010-05-29  Jan Hubicka  <jh@suse.cz>
17419
17420         * varpool.c (varpool_get_node): Fix lookup.
17421
17422 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17423
17424         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
17425         RTL specific prototypes with #ifdef RTX_CODE.
17426         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17427         * config/spu/t-spu-elf: Fix dependencies.
17428
17429         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17430
17431 2010-05-29  Mike Stump  <mikestump@comcast.net>
17432
17433         PR bootstrap/44315
17434         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17435         TM_H when building to avoid dependency loops.
17436
17437 2010-05-29  Jan Hubicka  <jh@suse.cz>
17438
17439         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17440         refs and body; not the whole node for masters of materialized clones.
17441
17442 2010-05-29  Mike Stump  <mikestump@comcast.net>
17443
17444         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17445
17446 2010-05-29  Jan Hubicka  <jh@suse.cz>
17447
17448         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17449         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17450         use of clone_function_name.
17451         * cgraph.h (cgraph_create_virtual_clone,
17452         cgraph_function_versioning): update prototypes.
17453         (clone_function_name): Declare.
17454         * ipa-cp.c (ipcp_insert_stage): Update call of
17455         cgraph_create_virtual_clone.
17456         * omp-low.c (create_omp_child_function_name): Use
17457         cgraph_create_virtual_clone.
17458         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17459         (cgraph_function_versioning): Take SUFFIX argument; produce new name
17460         and make decl local.
17461
17462 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17463
17464         * vec.h: Include statistics.h
17465         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
17466         with VEC_H.
17467
17468 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17469
17470         * c-lex.c: Do not include c-tree.h.
17471         * c-pretty-print.c: Likewise.
17472         * c-opts.c: Likewise.
17473         * c-gimplify.c: Likewise.
17474         * c-common.c: Likewise.
17475         * c-dump.c: Likewise.  Include c-common.h.
17476
17477 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17478
17479         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17480         before including diagnostic-core.h.
17481         (c_cpp_error): New prototype moved from c-tree.h.
17482         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17483         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17484         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17485         (c_cpp_error): Prototype moved to c-common.h.
17486         * Makefile.in: Update dependency for C_COMMON_H.
17487
17488 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17489
17490         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17491         * c-common.c (c_register_addr_space): Remove here.
17492         * c-decl.c (c_register_addr_space): Re-add here.
17493
17494 2010-05-28  Mike Stump  <mikestump@comcast.net>
17495
17496         * config/darwin-c.c: Remove c-tree.h include.
17497
17498 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17499
17500         * gcc.c: Include diagnostic.h.
17501         (error_count): Remove.  All users changed to use errorcount.
17502         (programname): Remove.  All users changed to use progname.
17503         (fancy_abort, internal_error, fatal_error, error, warning, inform,
17504         fnotice): Remove.
17505         (execute): Don't include "Internal error" and bug reporting
17506         information in argument of internal_error call.
17507         (process_command): Don't increment error_count after calling
17508         perror_with_name.
17509         (input_filename): Rename to gcc_input_filename.  All users
17510         changed.
17511         (main): Call diagnostic_initialize.  Register delete_temp_files
17512         with atexit.  Use seen_error to test for errors.
17513         * gcc.h: Include diagnostic-core.h.
17514         (fatal_error, error, warning): Remove.
17515         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17516         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17517         (gcc.o): Update dependencies.
17518
17519 2010-05-28  Jeff Law  <law@redhat.com>
17520
17521         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17522         functions.
17523         * ira.h (ira_bad_reload_regno): Declare
17524         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17525
17526         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17527         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17528         (allocno_reload_assign): Likewise.
17529
17530 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17531
17532         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17533         build1_stat.
17534
17535 2010-05-28  Richard Guenther  <rguenther@suse.de>
17536
17537         PR lto/44312
17538         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17539         Stream fixed-point constants mode.
17540         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17541         and TYPE_PRECISION.
17542         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17543         Stream fixed-point constants mode.
17544         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17545         and TYPE_PRECISION.
17546
17547 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17548
17549         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17550         only place it was called from.
17551         (number_of_latch_executions): Do not return chrec_dont_know when the
17552         may_be_zero is a runtime condition: instead, return a COND_EXPR
17553         including the may_be_zero condition.
17554         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17555         of nb_iterations.
17556         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17557         COND_EXPRs.
17558
17559 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17560
17561         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17562         generate COND_EXPRs for degenerate_phi_result.
17563
17564 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17565
17566         PR middle-end/44293
17567         * tree-if-conv.c (if_convertible_loop_p): Check the
17568         if-convertibility of phi nodes in non predicated BBs.
17569
17570 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17571
17572         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17573
17574 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17575
17576         PR driver/15303
17577         * gcc.c (inform, warning, inform): New functions.
17578         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17579         gmsgid.  All callers changed.
17580         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17581         (fatal_error): Rename to fatal_signal.  All users changed.
17582         (fatal): Rename to fatal_error; change cmsgid parameter to
17583         gmsgid.  All callers changed.
17584         (process_command): Use warning instead of error for warnings.
17585         (end_going_arg): Don't use _() around argument of error.
17586         (do_spec_1): Use inform for message from %n specs.  Use warning
17587         instead of error for warnings.
17588         (main): Use inform for comparison messages.  Use warning for
17589         message about unused linker input.
17590         (error): Increment error_count.  Print "error: ".
17591         * gcc.h (fatal): Change to fatal_error.
17592         (warning): Declare.
17593         * config/darwin-driver.c (darwin_default_min_version): Use warning
17594         instead of fprintf for warnings.
17595         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17596
17597 2010-05-28  Julian Brown  <julian@codesourcery.com>
17598
17599         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17600         (*thumb2_addsi3_compare0_scratch): New.
17601         * config/arm/constraints.md (Pv): New.
17602         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17603         for ARM mode only.
17604         (*addsi3_compare0_scratch): Likewise.
17605
17606 2010-05-28  Jan Hubicka  <jh@suse.cz>
17607
17608         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17609         check.
17610         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17611         only on local statics.
17612
17613 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17614
17615         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17616
17617 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17618
17619         PR bootstrap/44314
17620         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17621         (OPTION_GLIBC): Define.
17622
17623 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17624
17625         PR debug/41048
17626         * dwarf2out.c (double_int_type_size_in_bits): New function.
17627         (round_up_to_align): Change first argument and return value to
17628         double_int.
17629         (field_byte_offset): Work internally on double_ints.
17630
17631         PR target/43636
17632         * builtins.c (expand_movstr): Use a temporary pseudo instead
17633         of target even when target is not NULL and not const0_rtx, but
17634         fails movstr predicate.
17635         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17636
17637 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17638
17639         * final.c (rest_of_clean_state): Use %m in errors instead of
17640         strerror (errno).
17641         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17642         instead of strerror.
17643         * toplev.c (process_options): Use %m in errors instead of strerror
17644         (errno).
17645         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17646         (errno).
17647
17648 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17649
17650         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17651         (ix86_canonical_va_list_type): Make static.  Add declaration.
17652         (ix86_enum_va_list): Make static.  Reindent.
17653         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17654         (ix86_canonical_va_list_type): Ditto.
17655         (ix86_enum_va_list): Ditto.
17656
17657 2010-05-28  Richard Guenther  <rguenther@suse.de>
17658
17659         * lto-wrapper.c (run_gcc): With -save-temps generate a
17660         user-visible ltrans filename.  Fixup ltrans unit numbering.
17661
17662 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17663
17664         * c-common.c (c_common_nodes_and_builtins): Replace use
17665         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17666         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17667         to ix86_enum_va_list.
17668         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17669         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17670         (TARGET_ENUM_VA_LIST_P): Add hook description.
17671         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17672         * target.h (gcc_target): Add enum_va_list hook.
17673
17674         PR bootstrap/44299
17675         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17676         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17677         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17678
17679 2010-05-28  Alan Modra  <amodra@gmail.com>
17680
17681         PR target/44266
17682         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17683         emit_library_call machinery to set up __tls_get_addr calls.
17684
17685 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17686
17687         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17688
17689 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17690
17691         Revert fix for PR c++/44188
17692         * c-common.c (is_typedef_decl): Revert the moving of  this
17693         definition ...
17694         * tree.c (is_typedef_decl): ... here.
17695         (typdef_variant_p): Revert the moving of this  definition
17696         here from cp/tree.c.
17697         * c-common.h (is_typedef_decl): Revert the moving of this
17698         declaration ...
17699         * tree.h (is_typedef_decl): ... here.
17700         (typedef_variant_p): Revert the moving of this  declaration here
17701         from cp/cp-tree.h
17702         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17703         (gen_tagged_type_die): Revert the splitting out of ...
17704         (gen_type_die_with_usage): ... this function. Revert the anonymous
17705         tagged type handling.
17706         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
17707         typedefs naming anonymous tagged types.
17708
17709 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17710
17711         * config/rs6000/rs6000-modes.def (PSImode): Delete.
17712
17713 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17714
17715         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17716         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17717         throughout.
17718         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17719         "xer" to "ca".
17720         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17721         XER_REGS to CA_REGS throughout.
17722         * config/rs6000/rs6000.h: Same.
17723         (ADDITIONAL_REGISTER_NAMES): Add "xer".
17724         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
17725         that mode_iterator "P" is the size for arithmetic carries as well.
17726         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17727
17728 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17729
17730         PR bootstrap/44255
17731         * combine.c (struct rtx_subst_pair): Define unconditionally.
17732         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
17733         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17734         Call make_compound_operation on pair->to.
17735         (propagate_for_debug): Don't call make_compound_operation here.
17736         Always use simplify_replace_fn_rtx.
17737
17738 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
17739
17740         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17741         * config/xtensa/xtensa.c (override_options): Check
17742           TARGET_FORCE_NO_PIC and set flag_pic.
17743         * config/xtensa/xtensa.opt: Document -mforce-no-pic
17744
17745 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17746
17747         PR bootstrap/44299
17748         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17749         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17750
17751 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17752
17753         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
17754         toplev.h.
17755         * diagnostic.c: Don't include toplev.h.
17756         (progname): Define.  Moved from toplev.c.
17757         (seen_error): New function.
17758         * diagnostic.h: Include diagnostic-core.h.
17759         (diagnostic_t, emit_diagnostic): Don't declare here.
17760         * toplev.c (progname): Move to toplev.c.
17761         (emit_debug_global_declarations, compile_file, finalize,
17762         do_compile, toplev_main): Use seen_error.
17763         * toplev.h: Include diagnostic-core.h.
17764         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17765         internal_error, warning, warning_at, error, error_n, error_at,
17766         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17767         verbatim, fnotice, progname): Move to diagnostic-core.h.
17768         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17769         (expand_builtin_expect): Use seen_error.
17770         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17771         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17772         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17773         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17774         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17775         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17776         errorcount for errors.
17777         * c-opts.c (c_common_finish): Use seen_error.
17778         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17779         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17780         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17781         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17782         (get_coverage_counts): Use seen_error.
17783         * dwarf2out.c (dwarf2out_finish): Use seen_error.
17784         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17785         gimplify_body): Use seen_error.
17786         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17787         * ipa-pure-const.c (gate_pure_const): Use seen_error.
17788         * ipa-reference.c (gate_reference): Use seen_error.
17789         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17790         * lambda-code.c: Include diagnostic-core.h instead of
17791         diagnostic.h.
17792         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17793         * lto-compress.c: Include diagnostic-core.h instead of
17794         diagnostic.h.
17795         * lto-section-in.c: Include diagnostic-core.h instead of
17796         diagnostic.h.
17797         * lto-streamer-out.c: Include diagnostic-core.h instead of
17798         diagnostic.h.
17799         * lto-streamer.c: Include diagnostic-core.h instead of
17800         diagnostic.h.
17801         (gate_lto_out): Use seen_error.
17802         * matrix-reorg.c: Include diagnostic-core.h instead of
17803         diagnostic.h.
17804         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17805         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17806         (gate_expand_omp, lower_omp_1): Use seen_error.
17807         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17808         (rest_of_decl_compilation, rest_of_type_compilation,
17809         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17810         * tree-cfg.c (label_to_block_fn): Use seen_error.
17811         * tree-inline.c (optimize_inline_calls): Use seen_error.
17812         * tree-mudflap.c (mudflap_finish_file): Use
17813         seen_error.
17814         * tree-optimize.c (gate_all_optimizations,
17815         gate_all_early_local_passes, gate_all_early_optimizations): Use
17816         seen_error.
17817         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17818         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17819         (varpool_remove_unreferenced_decls,
17820         varpool_assemble_pending_decls): Use seen_error.
17821         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17822         (TOPLEV_H, DIAGNOSTIC_H): Update.
17823         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17824         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17825         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17826         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17827         coverage.o, lambda-code.o): Update dependencies.
17828
17829 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
17830
17831         PR c++/44188
17832         * c-common.c (is_typedef_decl): Move this definition ...
17833         * tree.c (is_typedef_decl): ... here.
17834         (typdef_variant_p): Move definition here from cp/tree.c.
17835         * c-common.h (is_typedef_decl): Move this declaration ...
17836         * tree.h (is_typedef_decl): ... here.
17837         (typedef_variant_p): Move declaration here from cp/cp-tree.h
17838         * dwarf2out.c (is_naming_typedef_decl): New function.
17839         (gen_tagged_type_die): Split out of ...
17840         (gen_type_die_with_usage): ... this function. When an anonymous
17841         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17842         is emitted for the typedef.
17843         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17844         anonymous tagged types.
17845
17846 2010-05-27  Jason Merrill  <jason@redhat.com>
17847
17848         * print-tree.c (debug_vec_tree): New fn.
17849         (print_vec_tree): New fn.
17850         * tree.h: Declare them.
17851         * gdbinit.in (pvt): New command.
17852
17853         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17854
17855         * gdbinit.in (pdd): New command.
17856
17857 2010-05-27  Jan Hubicka  <jh@suse.cz>
17858
17859         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
17860         (update_caller_keys): Return early if there are no callers;
17861         only update fibheap when decresing the key.
17862         (update_callee_keys): Avoid recursion.
17863         (decide_inlining_of_small_functions): When badness does not match;
17864         re-insert into fibheap.
17865
17866 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
17867
17868         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
17869         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
17870         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
17871         (ALL_HOST_OBJS): Now a union of the above two.
17872         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
17873         all files in ALL_HOST_FRONTEND_OBJS.
17874         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
17875
17876         * c-common.c: Pretend to be a backend file by undefining
17877         IN_GCC_FRONTEND (still need rtl.h here).
17878
17879 2010-05-27  Jan Hubicka  <jh@suse.cz>
17880
17881         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
17882         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
17883
17884 2010-05-27  Jan Hubicka  <jh@suse.cz>
17885
17886         * sched-ebb.c: Rename struct deps to struct deps_desc.
17887         * ddg.c: Likewise.
17888         * sel-sched-ir.c: Likewise.
17889         * sched-deps.c: Likewise.
17890         * sched-int.h: Likewise.
17891         * sched-rgn.c: Likewise.
17892
17893 2010-05-27  Jon Beniston  <jon@beniston.com>
17894
17895         PR 43726
17896         * config/lm32/lm32.h: Remove definition of
17897         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
17898
17899 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17900
17901         PR lto/44230
17902         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
17903
17904 2010-05-27  Richard Guenther  <rguenther@suse.de>
17905
17906         PR tree-optimization/44284
17907         * tree-vect-stmts.c (vectorizable_assignment): Handle
17908         sign-changing conversions as simple copy.
17909
17910 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17911
17912         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
17913         Bionic C library.
17914         (__gthread_active_p): Check for pthread_create if compiling against
17915         Bionic C library.
17916
17917 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17918
17919         Support compilation for Android platform.  Reimplement -mandroid.
17920
17921         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
17922         (*android*): Set ANDROID_DEFAULT.
17923         (arm*-*-linux*): Include linux-android.h.
17924         (arm*-*-eabi*): Don't include previous -mandroid implementation.
17925         * config/arm/eabi.h: Remove, move Android-specific parts ...
17926         * config/linux-android.h: ... here.  New file.
17927         * config/arm/eabi.opt: Rename to ...
17928         * config/linux-android.opt: ... this.
17929         (mandroid): Allow -mno-android option.  Initialize based on
17930         ANDROID_DEFAULT.
17931         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
17932         Move logic to corresponding LINUX_TARGET_* macros.
17933         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
17934         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
17935         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
17936         Android definitions.
17937         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
17938         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
17939         Document.
17940
17941 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17942
17943         Add support for Bionic C library
17944
17945         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
17946         macro.
17947         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
17948         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
17949
17950         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
17951         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
17952         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
17953         to support multiple C libraries.  Handle Bionic.
17954         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
17955         (BIONIC_DYNAMIC_LINKER64): Define.
17956         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
17957         Update.
17958         (TARGET_HAS_SINCOS): Enable for Bionic.
17959
17960         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
17961         the last option specified on command line take effect.
17962         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
17963         (mbionic): New.
17964         (mglibc, muclibc): Update.
17965
17966         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
17967         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
17968         DEFAULT_LIBC.
17969
17970         * doc/invoke.texi (-mglibc, -muclibc): Update.
17971         (-mbionic): Document.
17972
17973 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17974
17975         * c-common.h (c_register_addr_space): Add prototype.
17976         (ADDR_SPACE_KEYWORD): Remove.
17977         * c-common.c (c_register_addr_space): New function.
17978         (c_addr_space_name): Reimplement.
17979         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
17980
17981         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
17982         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
17983
17984         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
17985         Remove TARGET_ADDR_SPACE_KEYWORDS.
17986
17987 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17988
17989         * input.c: New file.
17990         * input.h (main_input_filename): Move declaration to toplev.h.
17991         * toplev.c (input_location, line_table): Move to input.c
17992         * toplev.h (main_input_filename): Move declaration from input.h.
17993         * tree.c (expand_location): Move to input.c.
17994         * Makefile.in (OBJS-common): Add input.o.
17995         (input.o): Add dependencies.
17996
17997 2010-05-27  Richard Guenther  <rguenther@suse.de>
17998
17999         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
18000         for non-existant files.
18001         (fork_execute): Mark args_name file as deleted.
18002
18003 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18004
18005         PR bootstrp/44287
18006         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
18007         (narrow_signed_type): Likewise.
18008
18009 2010-05-26  Jan Hubicka  <jh@suse.cz>
18010
18011         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
18012         edge only when checking is enabled; check using former_clone_of;
18013         check inline clones too.
18014         (cgraph_materialize_clone): Record former_clone_of pointer.
18015         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
18016         combining redirections; dump args_to_skip bitmap
18017         (cgraph_materialize_all_clones): Do no redirection here.
18018         * ipa-inline.c (inline_transform): Do redirection here.
18019         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
18020         cheking only).
18021
18022 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18023
18024         * config/avr/avr-c.c: Do not include regs.h.
18025         Include cpplib.h for cpp_define and tree.h for c-common.h.
18026         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
18027         * config/avr/t-avr: Fix dependencies for avr-c.o.
18028
18029 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18030
18031         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
18032         string instead of SYMBOL_REF rtx.
18033         * rtl.h (set_stack_check_libfunc): Move prototype from here...
18034         * libfuncs.h: ...to here.  Adjust for explow.c change.
18035
18036 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18037
18038         * pretty-print.c: Don't include ggc.h.
18039         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
18040         (identifier_to_locale): Use them for allocation.
18041         * pretty-print.h (identifier_to_locale_alloc,
18042         identifier_to_locale_free): Declare.
18043         * toplev.c (alloc_for_identifier_to_locale): New.
18044         (general_init): Set identifier_to_locale_alloc and
18045         identifier_to_locale_free.
18046         * Makefile.in (pretty-print.o): Update dependencies.
18047
18048 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18049
18050         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
18051         pointer types if they have different alignment or mode.
18052
18053 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
18054
18055         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18056         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18057         * config/sparc/sparc-protos.h (function_value): Remove declaration.
18058         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
18059         sparc_function_value_regno_p): New functions.
18060         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18061         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18062         (function_value): Rename to...
18063         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
18064         argument to 'outgoing'.
18065         (function_arg_record_value, function_arg_union_value,
18066         function_arg_vector_value): Update comment.
18067
18068 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18069
18070         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
18071         (fde_needed_for_eh_p): New predicate.
18072         (output_call_frame_info): Use it throughout to decide whether FDEs
18073         are needed for EH purpose.
18074         (dwarf2out_begin_prologue): Reorder assignments.
18075
18076 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18077
18078         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
18079         special case loop->header.
18080         (is_predicated): New.
18081         (if_convertible_loop_p): Call it.
18082
18083 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18084
18085         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
18086         iterator in parameter.  Do not generate code during the analysis.
18087         (tree_if_convert_cond_stmt): Removed.
18088         (tree_if_convert_stmt): Removed.
18089         (predicate_bbs): New.
18090         (if_convertible_loop_p): Call predicate_bbs.
18091         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
18092         now contains all the analysis part.
18093
18094 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18095
18096         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
18097         statements in the analysis part.
18098         (tree_if_convert_stmt): Update comment.
18099         (remove_conditions_and_labels): New.
18100         (combine_blocks): Call remove_conditions_and_labels.
18101         (tree_if_conversion): Update comment.
18102
18103 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18104
18105         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
18106         than 2 predecessors or more than 2 successors.
18107
18108 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18109
18110         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
18111         of loops in which the data dependence analysis fails.
18112
18113 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18114
18115         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
18116         CDI_POST_DOMINATORS.
18117         (tree_if_conversion): Same.
18118
18119 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18120
18121         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
18122
18123 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18124
18125         * tree-if-conv.c: Update copyright years.  Fix comments.
18126         Fix indentation.
18127
18128 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
18129
18130         * builtin-types.def (BT_INT128): New primitive type.
18131         (BT_UINT128): Likewise.
18132         * c-common.c (c_common_r): Add __int128 keyword.
18133         (c_common_type_for_size): Handle __int128.
18134         (c_common_type_for_mode): Likewise.
18135         (c_common_signed_or_unsigned_type): Likewise.
18136         (c_common_nodes_and_builtins): Add builtin type
18137         if target supports 128-bit integer scalar.
18138         * c-common.h (enum rid): Add RID_INT128.
18139         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18140         if target supports 128-bit integer scalar.
18141         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18142         (finish_declspecs): Likewise.
18143         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18144         (c_token_starts_declspecs): Likewise.
18145         (c_parser_declspecs): Likewise.
18146         (c_parser_attributes): Likewise.
18147         (c_parser_objc_selector): Likewise.
18148         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18149         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18150         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18151         * tree.c (make_or_reuse_type): Likewise.
18152         (make_unsigned_type): Likewise.
18153         (build_common_tree_nodes_2): Likewise.
18154         * tree.h (enum integer_type_kind): Add itk_int128 and
18155         itk_unsigned_int128.
18156         (int128_integer_type_node): New define.
18157         (int128_unsigned_type_node): New define.
18158         * doc/extend.texi: Add documentation about __int128 type.
18159
18160 2010-05-26  Richard Guenther  <rguenther@suse.de>
18161
18162         * tree-ssa-sccvn.c (copy_nary): Adjust.
18163         (copy_phis): Rename to ...
18164         (copy_phi): ... this.  Adjust.
18165         (copy_references): Rename to ...
18166         (copy_reference): ... this.  Adjust.
18167         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18168         result into the valid table.
18169
18170 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18171
18172         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18173         insn-config.h, insn-codes.h, recog.h, and optabs.h.
18174
18175 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18176
18177         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18178
18179 2010-05-26  Richard Guenther  <rguenther@suse.de>
18180
18181         * opts.c (common_handle_option): Handle OPT_Ofast.
18182
18183 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18184
18185         * diagnostic.c: Don't include opts.h.
18186         (permissive_error_option): Define.
18187         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
18188         for classify_diagnostic.  Don't use memset for
18189         classify_diagnostic.  Initialize new and recently added fields.
18190         (diagnostic_classify_diagnostic): Use context->n_opts instead of
18191         N_OPTS.
18192         (diagnostic_report_diagnostic): Pass context parameter to
18193         diagnostic_report_warnings_p.  Use option_enabled and option_name
18194         hooks from context.
18195         (emit_diagnostic): Use permissive_error_option.
18196         (permerror): Likewise.
18197         * diagnostic.h: Don't include options.h.
18198         (struct diagnostic_context): Add n_opts, opt_permissive,
18199         inhibit_warnings, warn_system_headers, option_enabled and
18200         option_name fields.  Change classify_diagnostic to a pointer.
18201         * opts-diagnostic.h: New file.
18202         * opts.c: Include opts-diagnostic.h.
18203         (common_handle_option): Set global_dc fields for -Wfatal-errors,
18204         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18205         (option_name): New function.
18206         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18207         (c_common_handle_option): Set global_dc->permissive for
18208         -fpermissive.
18209         * c-common.c (c_cpp_error): Save and restore
18210         global_dc->warn_system_headers, not variable warn_system_headers.
18211         * toplev.c: Include opts-diagnostic.h.
18212         (general_init): Update call to diagnostic_initialize.  Set
18213         global_dc->show_column, global_dc->option_enabled and
18214         global_dc->option_name.
18215         (process_options): Don't set global_dc fields here.
18216         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18217         (diagnostic.o, opts.o, toplev.o): Update dependencies.
18218
18219 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18220
18221         * config/picochip/picochip.md (movsi): Split a movsi from a
18222         const after reload.
18223
18224 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18225
18226         * ggc-zone.c: Update copyright year.
18227         (poison_region): Mark memory for Valgrind as undefined before
18228         memset () call and inaccessible afterwards.
18229         (ggc_pch_total_size): Change type of i to int.
18230
18231 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18232
18233         * ggc-common.c (ggc_free_overhead): Allow empty slot.
18234
18235 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18236
18237         * ggc-common.c: Update copyright year.
18238         (ggc_rlimit_bound): Remove prototype.  Compile only if
18239         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18240         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18241         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
18242         (ggc_min_heapsize_heuristic): Likewise.
18243
18244 2010-05-26  Richard Guenther  <rguenther@suse.de>
18245
18246         PR rtl-optimization/44164
18247         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18248         no-common access-path disambiguation.
18249         (indirect_ref_may_alias_decl_p): Adjust.
18250         (indirect_refs_may_alias_p): Likewise.
18251         (refs_may_alias_p_1): Likewise.
18252
18253 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18254
18255         * c-typeck.c: Do not include expr.h.
18256
18257 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18258
18259         * rtl.h (decl_default_tls_model): Move prototype from here...
18260         * output.h: ...to here.
18261         * c-decl.c: Do not include rtl.h.
18262         * c-pragma.c: Likewise.
18263         * c-parser.c: Likewise.
18264         * c-gimplify.c: Likewise.  And also not hard-reg-set.
18265         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
18266         FIXME note for it.  Add a FIXME note for expr.h.
18267         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18268         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18269         defined.
18270
18271 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
18272
18273         PR target/44199
18274         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18275         or total_size is larger than red zone size for non-V4 ABI, emit a
18276         stack_tie resp. frame_tie insn before stack pointer restore.
18277         * config/rs6000/rs6000.md (frame_tie): New insn.
18278
18279 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18280
18281         * function.h (struct function): Add can_throw_non_call_exceptions bit.
18282         * lto-streamer-in.c (input_function): Stream it in.
18283         * lto-streamer-out.c (output_function): Stream it out.
18284         * function.c (allocate_struct_function): Set it.
18285         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18286         for flag_non_call_exceptions.
18287         * cfgbuild.c (control_flow_insn_p): Likewise.
18288         (make_edges): Likewise.
18289         * cfgexpand.c (expand_stack_alignment): Likewise.
18290         * combine.c (distribute_notes): Likewise.
18291         * cse.c (cse_extended_basic_block): Likewise.
18292         * except.c (insn_could_throw_p): Likewise.
18293         * gcse.c (simple_mem): Likewise.
18294         * ipa-pure-const.c (check_call): Likewise.
18295         (check_stmt ): Likewise.
18296         * lower-subreg.c (lower-subreg.c): Likewise.
18297         * optabs.c (emit_libcall_block): Likewise.
18298         (prepare_cmp_insn): Likewise.
18299         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18300         * postreload.c (rest_of_handle_postreload): Likewise.
18301         * reload1.c (reload_as_needed): Likewise.
18302         (emit_input_reload_insns): Likewise.
18303         (emit_output_reload_insns): Likewise.
18304         (fixup_abnormal_edges): Likewise.
18305         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18306         * store-motion.c (find_moveable_store): Likewise.
18307         * tree-eh.c (stmt_could_throw_p): Likewise.
18308         (tree_could_throw_p): Likewise.
18309         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18310         * config/arm/arm.c (arm_expand_prologue): Likewise.
18311         (thumb1_expand_prologue): Likewise.
18312         * config/rx/rx.md (cbranchsf4): Likewise.
18313         (cmpsf): Likewise.
18314         * config/s390/s390.c (s390_emit_prologue): Likewise.
18315         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18316         (inline_forbidden_into_p): New predicate.
18317         (expand_call_inline): Use it to forbid inlining.
18318         (tree_can_inline_p): Likewise.
18319
18320 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18321
18322         * config/i386/i386-c.c: Do not include rtl.h.
18323         * config/i386/t-i386: Update dependencies.
18324
18325 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18326
18327         * attribs.c: Do not include rtl.h.
18328         * Makefile.in: Update dependencies.
18329
18330 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
18331
18332         * double-int.h (double_int_and): New.
18333         * combine.c (try_combine): Clean up, use double_int_* and
18334         immed_double_int_const functions.
18335
18336 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18337
18338         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18339         stderr to /dev/null instead of grep -q.
18340         * configure: Regenerate.
18341
18342 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18343
18344         * Makefile.in (EXCEPT_H): Fix typo.
18345
18346 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
18347
18348         * ira-build.c (update_conflict_hard_reg_costs): New.
18349         (ira_build): Call update_conflict_hard_reg_costs.
18350
18351 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18352
18353         PR debug/41371
18354         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18355         ENABLE_CHECKING.
18356         (intersect_loc_chains): Walk the s2var's loc_chain together
18357         with s1node chain as long as the locations are equal, don't
18358         call find_loc_in_1pdv in that case.
18359
18360         PR debug/42801
18361         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18362         (copy_bind_expr): ... instead of here.
18363         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18364         if the block hasn't been remapped.
18365         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18366         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18367
18368 2010-05-25  Richard Guenther  <rguenther@suse.de>
18369
18370         PR middle-end/44069
18371         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18372         out-of-bounds array accesses.
18373
18374 2010-05-25  Richard Guenther  <rguenther@suse.de>
18375
18376         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18377         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18378         (run_gcc): Re-organize to make cleanup easier.
18379
18380 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18381
18382         * config/s390/s390.c (optimization_options): Fix and move the
18383         flag_prefetch_loop_arrays override ...
18384         (override_options): ... here.
18385
18386 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
18387
18388         * diagnostic.c: Don't include plugin.h.
18389         (diagnostic_report_diagnostic): Don't handle plugins specially
18390         here.  Pass context to internal_error callback.
18391         * diagnostic.h (struct diagnostic_context): Add context parameter
18392         to internal_error callback.
18393         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18394         * plugin.h (struct diagnostic_context): Declare.
18395         (warn_if_plugins, plugins_internal_error_function): Declare.
18396         * toplev.c (general_init): Set global_dc->internal_error.
18397         * Makefile.in (diagnostic.o): Update dependencies.
18398
18399 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
18400
18401         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18402         * config/rs6000/t-darwin64: New.
18403         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18404         build crt2.
18405
18406 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
18407
18408         PR 44203
18409         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18410         match the original (and intended) behaviour before r159557.  This
18411         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18412         in two ways.
18413
18414 2010-05-25  Richard Guenther  <rguenther@suse.de>
18415
18416         * doc/invoke.texi: Document -Ofast.
18417         * target.h (struct gcc_target): Add handle_ofast.
18418         * target-def.h (TARGET_HANDLE_OFAST): Add.
18419         (TARGET_INITIALIZER): Adjust.
18420         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
18421         * common.opt (Ofast): Add.
18422
18423 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18424
18425         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18426         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18427
18428 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18429
18430         PR target/43610
18431         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18432         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
18433         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
18434         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18435
18436 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18437
18438         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18439         DW_OP_minus with negated offset instead of DW_OP_plus.
18440         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18441
18442 2010-05-25  Wei Guozhi  <carrot@google.com>
18443
18444         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18445         tst instruction and a new alternative.
18446         * config/arm/constraints.md (Pu): New constraint.
18447
18448 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
18449
18450         * function.c (assign_stack_local_1): Initialize variable
18451         to avoid warning when bootstrapping at -O3.
18452
18453 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18454
18455         * configure.ac (all_lang_makefiles): Remove everything related to it.
18456         * configure: Regenerate.
18457         * Makefile.in: Fix reference to ada Make-lang.in.
18458         Remove support for LANG_MAKEFILES.
18459
18460 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
18461             Sandra Loosemore  <sandra@codesourcery.com>
18462
18463         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18464         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18465         description.  Add arm_neon_fp16_ok.
18466         (Add Options): Add arm_neon and arm_neon_fp16.
18467
18468 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
18469
18470         * diagnostic.c: Don't include flags.h.
18471         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18472         context parameters.  Check flags in the context passed as a parameter.
18473         (diagnostic_build_prefix): Add context parameter.  Check
18474         show_column flag in context.
18475         (diagnostic_action_after_output): Check fatal_errors flag in context.
18476         (diagnostic_report_current_module): Check show_column flag in context.
18477         (default_diagnostic_starter): Update call to
18478         diagnostic_build_prefix.
18479         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18480         (emit_diagnostic): Pass context to permissive_error_kind.
18481         (permerror): Pass context to permissive_error_kind.
18482         * diagnostic.h (struct diagnostic_context): Add show_column,
18483         pedantic_errors, permissive and fatal_errors fields.
18484         (diagnostic_build_prefix): Update prototype.
18485         * langhooks.c
18486         * toplev.c (process_options): Set flags in global_dc from
18487         flag_show_column, flag_pedantic_errors, flag_permissive,
18488         flag_fatal_errors.
18489         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18490         to diagnostic_build_prefix.
18491         * Makefile.in (diagnostic.o): Update dependencies.
18492
18493 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18494
18495         * config/i386/ia32intrin.h (__crc32q): Define only if
18496         __SSE4_2__ is defined.
18497
18498 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
18499
18500         PR target/44132
18501         PR middle-end/43602
18502         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18503         DECL_VISIBILITY_SPECIFIED.
18504         (emutls_decl): Set DECL_PRESERVE_P and copy
18505         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18506         (emutls_finalize_control_var): New callback.
18507         (emutls_finish): Finalize emutls control variables.
18508         * toplev.c (compile_file): Move the call to emutls_finish ()
18509         before varpool_assemble_pending_decls ().
18510
18511 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
18512
18513         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18514         added to the preprocessor condition.
18515
18516 2010-05-24  Paul Brook  <paul@codesourcery.com>
18517
18518         * gengtype-lex.l: Add HARD_REG_SET.
18519         * expr.c (expand_expr_real_1): Record writes to hard registers.
18520         * function.c (rtl_data): Add asm_clobbers.
18521         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18522         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18523         Use crtl->asm_clobbers.
18524
18525 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18526
18527         * doc/makefile.texi (Makefile): Mention stages 'profile'
18528         and 'feedback' for profiledbootstrap.
18529
18530 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18531
18532         PR target/44245
18533         * config/i386/i386.c (def_builtin): Properly check
18534         OPTION_MASK_ISA_64BIT.
18535
18536 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18537
18538         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18539         typedefs with different but compatible types.  Allow duplicate
18540         typedefs with the same type except for pedantic non-C1X, but give
18541         warning for variably modified types.
18542         * c-typeck.c (tagged_types_tu_compatible_p,
18543         function_types_compatible_p, type_lists_compatible_p,
18544         comptypes_internal): Add parameter different_types_p; set
18545         *different_types_p for different but compatible types.  All
18546         callers changed.
18547         (comptypes_check_different_types): New.
18548         * c-tree.h (comptypes_check_different_types): Declare.
18549
18550 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18551
18552         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18553         * jump.c: Include basic-block.h.
18554         * profile.c: Likewise.
18555         * tree-profile.c: Likewise.
18556         * coverage.c: Likewise.
18557         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18558         (optimize_function_for_speed_p): Likewise.
18559         * function.h (optimize_function_for_size_p,
18560         optimize_function_for_speed_p): Moved here from basic-block.h.
18561         * Makefile.in: Update dependencies.
18562
18563 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18564
18565         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18566         before calling make; allow override through $MAKE.
18567         * doc/invoke.texi (Optimize Options): Document override.
18568
18569 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18570
18571         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18572         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18573         (rs6000_mode_dependent_address_ptr): Make static.
18574         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18575         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18576         Remove.
18577
18578 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18579
18580         PR target/43869
18581         * config/i386/i386.c: Make sure that the correct regparm is passed.
18582
18583 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18584
18585         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18586         * sbitmap.c: ...to here to internalize sbitmap element access.
18587         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18588         Explain why basic-block.h is included.
18589         * function.h: Include tm.h for CUMULATIVE_ARGS.
18590         * Makefile.in: Update dependencies.
18591
18592 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18593
18594         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18595         New core types.
18596         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18597         * sbitmap.c: Include sbitmap.h.
18598         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18599         hard-reg-set.h.  Split everything related to regsets out from here...
18600         * regset.h: ...to here.  New file.
18601         * df.h: Include regset.h and sbitmap.h.
18602         * tree-flow.h: Likewise.
18603         * cfgloop.h: Likewise.
18604         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18605         * cgraph.h: Include vec.h and function.h.
18606         * reload.h (struct insn_chain): Change types of live_throughout
18607         and dead_or_set from regset_head to bitmap_head.
18608         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18609         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18610         spilled_regs from regset_head to bitmap_head to avoid dependency
18611         in regset.h.
18612         * sel-sched-ir.h: Include regset.h.
18613         * reload.c: Include df.h before reload.h.
18614         * caller-save.c: Likewise.
18615         * reload1.c: Likewise.
18616         * ira.c: Likewise.
18617         (mark_elimination): Update type of r to bitmap, consistent with
18618         DF_LR_IN.
18619         * dominance.c: Include bitmap.h.
18620         * modulo-sched.c: Include df.h.
18621         * cfganal.c: Include bitmap.h and sbitmap.h.
18622         * cfgbuild.c: Include sbitmap.h.
18623         * lcm.c: Include sbitmap.h.
18624         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18625         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18626         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18627         * cselib.c: Include bitmap.h.
18628         * tree-optimize.c: Include regset.h.
18629         * stmt.c: Include bitmap.h.
18630         * Makefile.in: Update dependencies.
18631
18632 2010-05-22  Jan Hubicka  <jh@suse.cz>
18633
18634         * cgraph.h (struct varpool_node): Add same_comdat_group.
18635         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18636         pointer.
18637         (output_varpool): Update call of lto_output_varpool_node.
18638         (input_varpool): Read same_comdat_group pointer.
18639         (input_varpool_1): Fixup same_comdat_group pointer.
18640         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18641         group is needed, all are.
18642         * varpool.c (varpool_remove_node): Remove node from same comdat group
18643         linklist too.
18644         (varpool_analyze_pending_decls): Walk same comdat groups.
18645
18646 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18647
18648         * rtl.h (union rtunion_def): Remove rt_bit member.
18649         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18650         * print-rtl (print_rtx): Do not print the member.
18651         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18652         * gengenrtl.c (type_from_format): Likewise.
18653         (accessor_from_format): Likewise.
18654
18655 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18656
18657         * dbgcnt.c: Include toplev.h instead of errors.h.
18658         * ira-emit.c: Don't include errors.h.
18659         * ira.c: Include toplev.h instead of errors.h.
18660         * lto-compress.c: Include toplev.h instead of errors.h.
18661         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18662         ira.o, dbgcnt.o): Update dependencies.
18663
18664 2010-05-22  Richard Guenther  <rguenther@suse.de>
18665
18666         * gimple.c (gimple_types_compatible_p): Check type qualifications
18667         before merging pointer to complete and pointer to incomplete type.
18668         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18669         we use our own resolution algorithm.  The gold linker plugin
18670         doesn't do the job we want it to do here.
18671
18672 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18673
18674         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18675         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18676         (sparc_mode_dependent_address_p): New function.
18677
18678 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18679
18680         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18681
18682         * timevar.c: Do not include any core headers.
18683         (timevar_print): De-i18n-ize.
18684         (print_time): Likewise.
18685         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18686
18687 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18688
18689         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18690         langhooks-def.h.
18691         (diagnostic_initialize): Initialize x_data not last_function.
18692         (diagnostic_report_current_function): Move to tree-diagnostic.c.
18693         (default_diagnostic_starter): Call
18694         diagnostic_report_current_module not
18695         diagnostic_report_current_function.
18696         (diagnostic_report_diagnostic): Initialize x_data not
18697         abstract_origin.
18698         (verbatim): Likewise.
18699         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18700         x_data.
18701         (struct diagnostic_context): Change last_function to x_data.
18702         (diagnostic_auxiliary_data): Replace with
18703         diagnostic_context_auxiliary_data and
18704         diagnostic_info_auxiliary_data.
18705         (diagnostic_last_function_changed, diagnostic_set_last_function,
18706         diagnostic_report_current_function): Move to tree-diagnostic.h.
18707         (print_declaration, dump_generic_node, print_generic_stmt,
18708         print_generic_stmt_indented, print_generic_expr,
18709         print_generic_decl, debug_c_tree, dump_omp_clauses,
18710         print_call_name, debug_generic_expr, debug_generic_stmt,
18711         debug_tree_chain, default_tree_printer): Move to
18712         tree-pretty-print.h.
18713         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18714         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18715         gimple-pretty-print.h.
18716         * pretty-print.c: Don't include tree.h
18717         (pp_base_format): Don't handle %K here.
18718         (pp_base_tree_identifier): Move to tree-pretty-print.c.
18719         * pretty-print.h (text_info): Change abstract_origin to x_data.
18720         (pp_tree_identifier, pp_unsupported_tree,
18721         pp_base_tree_identifier): Move to tree-pretty-print.h.
18722         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18723         tree-pretty-print.h: New files.
18724         * tree-pretty-print.c: Include tree-pretty-print.h.
18725         (percent_K_format): New.  Moved from pretty-print.c.
18726         (pp_base_tree_identifier): Move from pretty-print.c.
18727         * c-objc-common.c: Include tree-pretty-print.h.
18728         (c_tree_printer): Handle %K here.
18729         * langhooks.c: Include tree-diagnostic.h.
18730         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18731         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18732         (default_tree_printer): Handle %K using percent_K_format.
18733         (general_init): Use default_tree_diagnostic_starter.
18734         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18735         (free_lang_data): Use default_tree_diagnostic_starter.
18736         * c-pretty-print.c: Include tree-pretty-print.h.
18737         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18738         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18739         * dwarf2out.c: Include tree-pretty-print.h.
18740         * except.c: Include tree-pretty-print.h.
18741         * gimple-pretty-print.c: Include tree-pretty-print.h and
18742         gimple-pretty-print.h.
18743         * gimplify.c: Include tree-pretty-print.h.
18744         * graphite-poly.c: Include tree-pretty-print.h and
18745         gimple-pretty-print.h.
18746         * ipa-cp.c: Include tree-pretty-print.h.
18747         * ipa-inline.c: Include gimple-pretty-print.h.
18748         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18749         * ipa-pure-const.c: Include gimple-pretty-print.h.
18750         * ipa-struct-reorg.c: Include tree-pretty-print.h and
18751         gimple-pretty-print.h.
18752         * ipa-type-escape.c: Include tree-pretty-print.h.
18753         * print-rtl.c: Include tree-pretty-print.h.
18754         * print-tree.c: Include gimple-pretty-print.h.
18755         * sese.c: Include tree-pretty-print.h.
18756         * tree-affine.c: Include tree-pretty-print.h.
18757         * tree-browser.c: Include tree-pretty-print.h.
18758         * tree-call-cdce.c: Include gimple-pretty-print.h.
18759         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18760         * tree-chrec.c: Include tree-pretty-print.h.
18761         * tree-data-ref.c: Include tree-pretty-print.h and
18762         gimple-pretty-print.h.
18763         * tree-dfa.c: Include tree-pretty-print.h.
18764         * tree-if-conv.c: Include tree-pretty-print.h and
18765         gimple-pretty-print.h.
18766         * tree-inline.c: Include tree-pretty-print.h.
18767         * tree-into-ssa.c: Include tree-pretty-print.h and
18768         gimple-pretty-print.h.
18769         * tree-nrv.c: Include tree-pretty-print.h.
18770         * tree-object-size.c: Include tree-pretty-print.h and
18771         gimple-pretty-print.h.
18772         * tree-outof-ssa.c: Include tree-pretty-print.h and
18773         gimple-pretty-print.h.
18774         * tree-parloops.c: Include tree-pretty-print.h and
18775         gimple-pretty-print.h.
18776         * tree-predcom.c: Include tree-pretty-print.h and
18777         gimple-pretty-print.h.
18778         * tree-scalar-evolution.c: Include tree-pretty-print.h and
18779         gimple-pretty-print.h.
18780         * tree-sra.c: Include tree-pretty-print.h.
18781         * tree-ssa-address.c: Include tree-pretty-print.h.
18782         * tree-ssa-alias.c: Include tree-pretty-print.h.
18783         * tree-ssa-ccp.c: Include tree-pretty-print.h and
18784         gimple-pretty-print.h.
18785         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18786         * tree-ssa-copy.c: Include tree-pretty-print.h and
18787         gimple-pretty-print.h.
18788         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18789         * tree-ssa-dce.c: Include tree-pretty-print.h and
18790         gimple-pretty-print.h.
18791         * tree-ssa-dom.c: Include tree-pretty-print.h and
18792         gimple-pretty-print.h.
18793         * tree-ssa-dse.c: Include gimple-pretty-print.h.
18794         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18795         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18796         * tree-ssa-live.c: Include tree-pretty-print.h and
18797         gimple-pretty-print.h.
18798         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18799         gimple-pretty-print.h.
18800         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18801         gimple-pretty-print.h.
18802         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18803         gimple-pretty-print.h.
18804         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18805         gimple-pretty-print.h.
18806         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18807         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18808         * tree-ssa-operands.c: Include tree-pretty-print.h and
18809         gimple-pretty-print.h.
18810         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18811         gimple-pretty-print.h.
18812         * tree-ssa-pre.c: Include tree-pretty-print.h and
18813         gimple-pretty-print.h.
18814         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18815         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18816         gimple-pretty-print.h.
18817         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18818         gimple-pretty-print.h.
18819         * tree-ssa-sink.c: Include gimple-pretty-print.h.
18820         * tree-ssa-ter.c: Include tree-pretty-print.h and
18821         gimple-pretty-print.h.
18822         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18823         * tree-ssa.c: Include tree-pretty-print.h and
18824         gimple-pretty-print.h.
18825         * tree-stdarg.c: Include gimple-pretty-print.h.
18826         * tree-switch-conversion.c: Include gimple-pretty-print.h.
18827         * tree-tailcall.c: Include tree-pretty-print.h and
18828         gimple-pretty-print.h.
18829         * tree-vect-data-refs.c: Include tree-pretty-print.h and
18830         gimple-pretty-print.h.
18831         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18832         gimple-pretty-print.h.
18833         * tree-vect-loop.c: Include tree-pretty-print.h and
18834         gimple-pretty-print.h.
18835         * tree-vect-patterns.c: Include gimple-pretty-print.h.
18836         * tree-vect-slp.c: Include tree-pretty-print.h and
18837         gimple-pretty-print.h.
18838         * tree-vect-stmts.c: Include tree-pretty-print.h and
18839         gimple-pretty-print.h.
18840         * tree-vectorizer.c: Include tree-pretty-print.h.
18841         * tree-vrp.c: Include tree-pretty-print.h and
18842         gimple-pretty-print.h.
18843         * value-prof.c: Include tree-pretty-print.h and
18844         gimple-pretty-print.h.
18845         * var-tracking.c: Include tree-pretty-print.h.
18846         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18847         (tree-diagnostic.o): New dependencies.
18848         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18849         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18850         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18851         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18852         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18853         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18854         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18855         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18856         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
18857         tree-ssa-address.o, tree-ssa-loop-niter.o,
18858         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
18859         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
18860         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
18861         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
18862         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
18863         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
18864         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
18865         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
18866         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
18867         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
18868         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
18869         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
18870         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
18871         tree-switch-conversion.o, var-tracking.o, value-prof.o,
18872         cfgexpand.o, pretty-print.o): Update dependencies.
18873
18874 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
18875
18876         * tree-ssa-structalias.c: Remove tm_p.h from include.
18877
18878 2010-05-21  Jeff Law  <law@redhat.com>
18879
18880         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
18881
18882 2010-05-21  Jason Merrill  <jason@redhat.com>
18883
18884         * tree-eh.c (cleanup_is_dead_in): New.
18885         (lower_try_finally): Don't generate a dead cleanup region.
18886         (lower_cleanup): Likewise.
18887
18888 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18889
18890         PR debug/44223
18891         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
18892         unchain each use from the cyclic next_regno_use chain first.
18893
18894 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18895
18896         * real: Do not include gmp.h, mpfr.h, and mpc.h.
18897         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
18898         (real_value_negate, real_value_abs): New prototypes.
18899         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
18900         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
18901         new include file for interface between MPFR and REAL_VALUE_TYPE.
18902         * real.c: Include realmpfr.h.
18903         (real_arithmetic2): Remove legacy function.
18904         (real_value_negate): New.
18905         (real_value_abs): New.
18906         (mfpr_from_real, real_from_mpfr): Move from here...
18907         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
18908         * builtins.c: Include realmpfr.h.
18909         * fold-const.c: Include realmpfr.h.
18910         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18911         (fold_negate_const): Likewise.
18912         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
18913         * toplev.c: Include realmpfr.h.
18914         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
18915         and real_value_negate.
18916         * fixed-value.c (check_real_for_fixed_mode): Likewise.
18917         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
18918         (vfp3_const_double_index): Likewise.
18919         (arm_print_operand): Likewise.
18920         * Makefile.in: Update dependencies.
18921
18922 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18923
18924         * config/s390/s390.c (override_options): Increase the default
18925         of max-completely-peel-times.
18926
18927 2010-05-21  Julian Brown  <julian@codesourcery.com>
18928             Mark Mitchell  <mark@codesourcery.com>
18929
18930         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
18931         sibling calls for Thumb-1.
18932         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
18933         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
18934         Thumb-2.
18935         (*call_insn, *call_value_insn): Don't use for Thumb-2.
18936         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
18937         for Thumb-2.
18938         (return): New expander.
18939         (*arm_return): New name for ARM return insn.
18940         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
18941
18942 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
18943
18944         * config.gcc (sparc64-*-rtems*): New target.
18945
18946 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18947
18948         * tree.c (build_function_decl_skip_args): Fix grammar.
18949         (build_function_type_list_1): Fix typos, adjust formatting.
18950
18951 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18952
18953         * tree.h: Include real.h and fixed-value.h as basic datatypes.
18954         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
18955         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
18956         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
18957         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
18958         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
18959         tree-pretty-print.c, tree-loop-distribution.c,
18960         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
18961         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
18962         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
18963         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
18964         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
18965         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
18966         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
18967         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
18968         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
18969         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
18970         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
18971         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
18972         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
18973         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
18974         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
18975         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
18976         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
18977         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
18978         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
18979         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
18980         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
18981         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
18982         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
18983         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
18984         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
18985         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
18986         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
18987         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
18988         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
18989         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
18990         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
18991         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
18992         config/score/score7.c, config/score/score.c, config/arm/arm.c,
18993         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
18994         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
18995         config/bfin/bfin.c: Clean up redundant includes.
18996         * Makefile.in: Update accordingly.
18997
18998 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18999
19000         PR middle-end/44204
19001         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
19002         statement has no arguments.
19003
19004 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
19005
19006         PR/44139
19007         * varasm.c (emutls_decl): Merge attributes to new decl.
19008
19009 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
19010
19011         PR middle-end/44101
19012         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
19013         around the uniquized constructor if its type requires a conversion.
19014
19015 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19016
19017         PR debug/44205
19018         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
19019         at -O0 goto_locus of any of the incoming edges differs from
19020         goto_locus of outgoing edge, or gimple_location of any of the
19021         labels differs.
19022
19023 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
19024
19025         * ira.c (ira_non_ordered_class_hard_regs): Define.
19026         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
19027         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
19028         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
19029         cost of unaligned hard regs when allocating multi-reg pseudos.
19030
19031 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19032
19033         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
19034         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
19035         for TARGET_NO_FLOAT.
19036         * config/mips/mips.c (mips_file_start): Expand conditional expression
19037         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
19038         (mips_override_options): Move -mno-float override -msoft-float and
19039         -mhard-float.
19040         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
19041         Condition(TARGET_SUPPORTS_NO_FLOAT).
19042         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
19043         __mips_no_float here.
19044         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
19045         (TARGET_SUPPORTS_NO_FLOAT): Define.
19046         * config/mips/sdemtk.opt: Delete.
19047
19048 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
19049
19050         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
19051
19052 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
19053
19054         PR target/43733
19055         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
19056         * configure: Regenerate.
19057         * config.in: Regenerate.
19058         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
19059         instead of sahf only for 64bit targets.
19060
19061 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19062
19063         PR debug/44178
19064         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
19065         setup_ref_regs for DEBUG_INSNs.
19066
19067 2010-05-20  Jan Hubicka  <jh@suse.cz>
19068
19069         PR middle-end/44197
19070         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
19071
19072 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
19073
19074         PR bootstrap/43870
19075         * df-scan.c (df_ref_compare): Stabilize sort.
19076
19077 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19078
19079         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
19080         argument.  Don't use DW_OP_piece if offset is non-zero,
19081         put offset into second DW_OP_bit_piece argument.
19082         (dw_sra_loc_expr): Adjust callers.  For memory expressions
19083         compute offset.
19084
19085 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
19086
19087         PR target/44202
19088         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
19089         settings for 16-bit-constant "addo" alternative.
19090
19091 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
19092
19093         * config/mips/mips-dsp.md (add<DSPV:mode>3,
19094         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
19095
19096         PR target/43764
19097         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
19098         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
19099         Use it.
19100
19101 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
19102
19103         * diagnostic.c (FLOAT, FFS): Don't undefine.
19104         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
19105         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
19106         include ordering.
19107
19108 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19109
19110         * combine.c (propagate_for_debug): Call make_compound_operation
19111         on the source value.
19112         (try_combine): When implementing a split chosen by find_split_point,
19113         either copy i2src or set it to null.  Assert that i2src is not null
19114         before substituting into CALL_INSN_FUNCTION_USAGE.
19115
19116 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
19117
19118         * double-int.h (double_int_ior): New function.
19119         * tree.h (build_int_cst_wide_type): Remove.
19120         * tree.c (build_int_cst_wide_type): Remove.
19121         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
19122         of build_int_cst_wide_type.
19123         * stor-layout.c (set_sizetype): (Ditto.).
19124         * dojump.c (do_jump): Use build_int_cstu instead of
19125         build_int_cst_wide_type.
19126
19127 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19128
19129         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
19130         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
19131         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
19132         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
19133         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
19134         propagate the 'data' argument to copy_tree_r.
19135         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19136         Propagate 'data' argument to walk_tree.
19137         (copy_if_shared): New function.
19138         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19139         (unmark_visited): New function.
19140         (unshare_body): Call copy_if_shared instead of doing it manually.
19141         (unvisit_body): Call unmark_visited instead of doing it manually.
19142
19143 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
19144
19145         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19146         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
19147         * hooks.c: Likewise.
19148         * target-def.h (TARGET_FOLD_BUILTIN): Define to
19149         hook_tree_tree_int_treep_bool_null.
19150         * target.h (struct gcc_target): Update signature of fold_builtin
19151         field.
19152         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19153         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19154         instead of the call expression.
19155         (fold_builtin_call_array): Pass n and argarray directly.
19156         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19157         consing a list.
19158         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
19159         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
19160         `i' and use it in place of `arity'.
19161         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19162         Dereference `args' directly.
19163         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19164
19165 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19166
19167         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19168         3dnow, sse3, sse2.
19169         (Directives): Document optional dg-require-effective-target
19170         selector.
19171
19172 2010-05-19  Richard Guenther  <rguenther@suse.de>
19173
19174         PR lto/44196
19175         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19176
19177 2010-05-19  Richard Guenther  <rguenther@suse.de>
19178
19179         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19180         * common.opt (fwhopr=): New.
19181         * opts.c (common_handle_option): Handle OPT_fwhopr.
19182         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19183         * collect2.c (main): Match -fwhopr*.
19184         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19185         Execute ltrans stage in parallel when jobs is bigger than 1.
19186
19187 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19188
19189         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19190         pentiumpro on Solaris 8/x86 with Sun as.
19191         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19192         hidden alias bug.
19193         (gcc_cv_as_ix86_quad): Check for .quad directive.
19194         * configure: Regenerate.
19195         * config.in: Regenerate.
19196         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19197
19198 2010-05-19  Martin Jambor  <mjambor@suse.cz>
19199
19200         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19201         also for indirect edges.  Actual printing moved...
19202         (ipa_print_node_jump_functions_for_edge): ...here.
19203         (ipa_compute_jump_functions): Renamed to
19204         ipa_compute_jump_functions_for_edge and made static.
19205         (ipa_compute_jump_functions): New function.
19206         (make_edge_direct_to_target): Check if the number of arguments on
19207         the newly direct edge is the same as the number of parametrs of
19208         the callee.
19209         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19210         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
19211         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19212         analysis functions unconditionally, call the new
19213         ipa_analyze_params_uses on the node instead of every edge.
19214
19215 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
19216
19217         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19218         to tree.
19219         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
19220         also checks for a constant int vs.  non-constant but
19221         loop-invariant steps.
19222         (find_or_create_group): Change the sort algorithm to only consider
19223         steps that are constant ints.
19224         (idx_analyze_ref): Adopt code to handle a tree instead of a
19225         HOST_WIDE_INT for step.
19226         (gather_memory_references_ref): Handle tree instead of int and be
19227         prepared to see a NULL_TREE.
19228         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19229         prefetches if the step cannot be calculated at compile time.
19230         (issue_prefetch_ref): Issue prefetches for non-constant but
19231         loop-invariant steps.
19232
19233 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19234
19235         Revert:
19236         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19237
19238         * tree.h (build_call_list): Remove.
19239         * tree.c (build_call_list): Remove.
19240
19241 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19242
19243         * tree.h (build_call_list): Remove.
19244         * tree.c (build_call_list): Remove.
19245
19246 2010-05-18  Jan Hubicka  <jh@suse.cz>
19247
19248         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19249
19250 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
19251
19252         PR rtl-optimization/43332
19253         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19254
19255 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
19256
19257         * tree.h (build_int_cstu): Implement as static inline.
19258         * tree.c (build_int_cstu): Remove function.
19259         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19260         sign extended.
19261
19262 2010-05-18  Richard Guenther  <rguenther@suse.de>
19263
19264         PR lto/44143
19265         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
19266         (debug): Initialize from -save-temps.
19267         (collect_execute): Print command-line when verbose.
19268         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
19269         for ltrans invocation.  Produce -dumpbase flag again.
19270         (process_args): Remove.
19271         (main): Simplify.
19272         * collect2.c (maybe_run_lto_and_relink): Only pass object
19273         files to lto-wrapper.
19274         * gcc.c (LINK_COMMAND_SPEC): Likewise.
19275
19276 2010-05-18  Jan Hubicka  <jh@suse.cz>
19277
19278         * opts.c (decode_options): Do not disable whopr at ipa_cp.
19279         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19280
19281 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19282
19283         PR lto/44184
19284         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19285         in a GIMPLE_ASM.
19286         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19287         in a GIMPLE_ASM.
19288
19289 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
19290
19291         PR debug/41371
19292         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19293         rtx_equal_p inline.
19294
19295 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19296
19297         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19298         lto-macho as lto_binary_reader.
19299
19300         * darwin.c (darwin_asm_named_section): Do not add assembler comment
19301         after .section directive; just print it before the directive instead.
19302
19303 2010-05-17  Jan Hubicka  <jh@suse.cz>
19304
19305         * cgraph.c (cgraph_create_virtual_clone): Only check
19306         versionable_function_p when not in wpa and checking is enabled.
19307         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19308         there are no more functions to materialize.
19309
19310 2010-05-17  Jan Hubicka  <jh@suse.cz>
19311
19312         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19313         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19314         New functions.
19315         (output_cgraph): Call output_cgraph_opt_summary.
19316         (input_cgrpah): Call input_cgraph_opt_summary.
19317         (output_cgraph_opt_summary_p, output_node_opt_summary,
19318         input_node_opt_summary, input_cgraph_opt_section): New functions.
19319         * lto-section-in.c (lto_section_name): Add cgraphopt.
19320         * tree-inline.c (tree_function_versioning): Handle parm_num.
19321         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19322         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19323
19324 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19325
19326         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19327         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19328         the insn to prefetch ratio heuristic to loops with known trip count.
19329
19330 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19331
19332         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19333         (schedule_prefetches): Do not generate a prefetch if the unroll factor
19334         is far from what is required by the prefetch.
19335
19336 2010-05-17  Jan Hubicka  <jh@suse.cz>
19337
19338         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19339         (ipcp_estimate_growth): Likewise.
19340         (ipcp_const_param_count): Likewise.
19341         (ipcp_insert_stage): Likewise.
19342         * ipa-prop.c (visit_load_for_mod_analysis): New function.
19343         (visit_store_addr_for_mod_analysis): Set used flag.
19344         (ipa_detect_param_modifications): Set used flag for SSE params;
19345         update use of walk_stmt_load_store_addr_ops.
19346         (ipa_print_node_params): Print used flag.
19347         (ipa_write_node_info): Stream used flag.
19348         (ipa_read_node_info): Likewise.
19349         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19350         (ipa_is_param_used): New function.
19351         (lto_ipa_fixup_call_notes): Remove unused declaration.
19352
19353 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19354
19355         PR target/44074
19356         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19357         * configure: Regenerate.
19358         * config.in: Regenerate.
19359         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19360         !HAVE_AS_IX86_REP_LOCK_PREFIX.
19361         Don't emit whitespace.
19362         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19363         (*rep_movsi): Likewise.
19364         (*rep_movsi_rex64): Likewise.
19365         (*rep_movqi): Likewise.
19366         (*rep_movqi_rex64): Likewise.
19367         (*rep_stosdi_rex64): Likewise.
19368         (*rep_stossi): Likewise.
19369         (*rep_stossi_rex64): Likewise.
19370         (*rep_stosqi): Likewise.
19371         (*rep_stosqi_rex64): Likewise.
19372         (*cmpstrnqi_nz_1): Use {%;} after repz.
19373         (*cmpstrnqi_nz_rex_1): Likewise.
19374         (*cmpstrnqi_1): Likewise.
19375         (*cmpstrnqi_rex_1): Likewise.
19376         (*strlenqi_1): Use {%;} after repnz.
19377         (*strlenqi_rex_1): Likewise.
19378         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19379         (*sync_compare_and_swap<mode>): Likewise.
19380         (sync_double_compare_and_swap<mode>): Likewise.
19381         (*sync_double_compare_and_swapdi_pic): Likewise.
19382         (sync_old_add<mode>): Likewise.
19383         (sync_add<mode>): Likewise.
19384         (sync_sub<mode>): Likewise.
19385         (sync_<code><mode>): Likewise.
19386
19387 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19388
19389         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19390         otr_token and polymorphic.
19391         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19392         (cgraph_clone_edge): Copy the above fields.
19393         * tree.c (get_binfo_at_offset): New function.
19394         * tree.h (get_binfo_at_offset): Declare.
19395         * ipa-prop.h (enum jump_func_type): Added known_type jump function
19396         type, reordered items, updated comments.
19397         (union jump_func_value): Added base_type field, reordered fields.
19398         (enum ipa_lattice_type): Moved down in the file.
19399         (struct ipa_param_descriptor): New field polymorphic.
19400         (ipa_is_param_polymorphic): New function.
19401         * ipa-prop.c: Include gimple.h and gimple-fold.h.
19402         (ipa_print_node_jump_functions): Print known type jump functions.
19403         (compute_complex_pass_through): Renamed to...
19404         (compute_complex_assign_jump_func): this.
19405         (compute_complex_ancestor_jump_func): New function.
19406         (compute_known_type_jump_func): Likewise.
19407         (compute_scalar_jump_functions): Create known type and complex ancestor
19408         jump functions.
19409         (ipa_note_param_call): New parameter polymorphic, set the corresponding
19410         flag in the call note accordingly.
19411         (ipa_analyze_call_uses): Renamed to...
19412         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
19413         variable var only in the block where it is used.
19414         (ipa_analyze_virtual_call_uses): New function.
19415         (ipa_analyze_call_uses): Likewise.
19416         (combine_known_type_and_ancestor_jfs): Likewise.
19417         (update_jump_functions_after_inlining): Implemented handling of a
19418         number of new jump function types combination.
19419         (print_edge_addition_message): Removed.
19420         (make_edge_direct_to_target): New function.
19421         (try_make_edge_direct_simple_call): Likewise.
19422         (try_make_edge_direct_virtual_call): Likewise.
19423         (update_call_notes_after_inlining): Renamed to...
19424         (update_indirect_edges_after_inlining): this.  Moved edge creation for
19425         indirect calls to try_make_edge_direct_simple_call, also calls
19426         try_make_edge_direct_virtual_call for virtual calls.
19427         (ipa_print_node_params): Changed the header message.
19428         (ipa_write_jump_function): Stream also known type jump functions.
19429         (ipa_read_jump_function): Likewise.
19430         (ipa_write_indirect_edge_info): Stream new fields in
19431         cgraph_indirect_call_info.
19432         (ipa_read_indirect_edge_info): Likewise.
19433         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19434         GIMPLE_FOLD_H.
19435
19436 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19437
19438         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19439
19440 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19441
19442         * tree.h (CALL_EXPR_ARGS): Delete.
19443         (call_expr_arglist): Delete.
19444         * tree.c (call_expr_arglist): Delete.
19445         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19446         targetm.fold_builtin.
19447         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19448         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19449         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19450         arglist parameter.  Use CALL_EXPR_ARG.
19451         (picochip_expand_builtin_3op): Likewise.
19452         (picochip_expand_builtin_2opvoid): Likewise.
19453         (picochip_expand_array_get): Likewise.
19454         (picochip_expand_array_put): Likewise.
19455         (picochip_expand_array_testport): Likewise.
19456         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
19457         rather than arglist.
19458         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19459         CALL_EXPR_ARGS.
19460         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19461         than TREE_VALUE and TREE_CHAIN.
19462         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19463         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19464         the arglist.
19465
19466 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19467
19468         PR bootstrap/42347
19469         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19470         to have no fallthru edge.
19471
19472         PR middle-end/44102
19473         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19474         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19475         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19476         add BARRIER after previous bb if needed.
19477
19478 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19479
19480         * tree.c (build_function_type_list_1): Remove bogus assert condition.
19481
19482 2010-05-17  Alan Modra  <amodra@gmail.com>
19483
19484         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19485         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
19486         with copy_reg rtx param.
19487         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19488         Correct cases where code for ABI_V4 did not initialise the reg
19489         used to access frame.  Also leave frame_reg_rtx as sp for large
19490         frames that save no regs.
19491
19492 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19493
19494         PR middle-end/44133
19495         * tree-sra.c (create_access_replacement): New parameter rename, mark
19496         the replaement for renaming only when it is true.
19497         (get_access_replacement): Pass true in the rename parameter of
19498         create_access_replacement.
19499         (get_unrenamed_access_replacement): New function.
19500         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19501         replacement declaration from it.
19502
19503 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
19504
19505         * function.c (try_fit_stack_local, add_frame_space): New static
19506         functions.
19507         (assign_stack_local_1): Use them.  Look for opportunities to use
19508         space previously wasted on alignment.
19509         * function.h (struct frame_space): New.
19510         (struct rtl_data): Add FRAME_SPACE_LIST member.
19511         * reload1.c (something_was_spilled): New static variable.
19512         (alter_reg): Set it.
19513         (reload): Test it in addition to testing if the frame size changed.
19514
19515 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19516
19517         * config/s390/s390.c: Define sane prefetch settings and activate
19518         flag_prefetch_loop_arrays on -O3.
19519         * config/s390/s390.h: Declare that read can use write prefetch.
19520
19521 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19522
19523         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19524         build.
19525
19526 2010-05-16  Jan Hubicka  <jh@suse.cz>
19527
19528         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19529         function body; do not check stdarg field of struct function.
19530
19531 2010-05-16  Jan Hubicka  <jh@suse.cz>
19532
19533         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19534         * cgraph.h (cgraph_local_info): Add versionable flag.
19535         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19536         (ipcp_versionable_function_p): Use it.
19537         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19538         versionable flag.
19539
19540 2010-05-16  Jan Hubicka  <jh@suse.cz>
19541
19542         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19543         clone into hash when it is different from orig.
19544         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19545         * cgraph.h (cgraph_clone_node): Update prototype.
19546         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19547         (lto_cgraph_encoder_delete): Delete body map.
19548         (lto_cgraph_encoder_size): Move to header.
19549         (lto_cgraph_encoder_encode_body_p,
19550         lto_set_cgraph_encoder_encode_body): New.
19551         (lto_output_node): Do not take written_decls argument; output clone_of
19552         pointer.
19553         (add_node_to): Add include_body_argument; call
19554         lto_set_cgraph_encoder_encode_body on master of the clone.
19555         (add_references): Update use of add_node_to.
19556         (compute_ltrans_boundary): Likewise.
19557         (output_cgraph): Do not create written_decls bitmap.
19558         (input_node): Take nodes argument; stream in clone_of correctly.
19559         (input_cgraph_1): Update use of input_node.
19560         * lto-streamer-out.c (lto_output): Use encoder info to decide
19561         what bodies to output.
19562         * ipa-inline.c (cgraph_clone_inlined_nodes,
19563         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19564         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19565         (lto_cgraph_encoder_size): Define here.
19566         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19567         Declare.
19568
19569 2010-05-16  Richard Guenther  <rguenther@suse.de>
19570
19571         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19572         -fipa-type-escape.
19573         * ipa-type-escape.c (gate_type_escape_vars): Run when
19574         -fipa-struct-reorg runs.
19575         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19576         * common.opt (fipa-type-escape): Remove.
19577
19578 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19579
19580         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19581         (decode_options): Likewise.
19582         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19583
19584 2010-05-16  Jan Hubicka  <jh@suse.cz>
19585
19586         * ipa.c (function_and_variable_visibility): Also bring local all
19587         aliases.
19588
19589 2010-05-16  Richard Guenther  <rguenther@suse.de>
19590
19591         * alias.c (nonoverlapping_memrefs_p): Remove use of
19592         IPA type-escape information.
19593
19594 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19595
19596         * c-common.c (c_common_reswords): Add _Static_assert for C.
19597         * c-parser.c (c_token_starts_declaration,
19598         c_parser_next_token_starts_declaration,
19599         c_parser_static_assert_declaration_no_semi,
19600         c_parser_static_assert_declaration): New.
19601         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19602         Handle static assertions if static_assert_ok.
19603         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19604         c_parser_compound_statement_nostart, c_parser_label,
19605         c_parser_for_statement, c_parser_objc_methodprotolist,
19606         c_parser_omp_for_loop): All callers of
19607         c_parser_declaration_or_fndef changed.
19608         (c_parser_struct_declaration): Handle static assertions.
19609         (c_parser_compound_statement_nostart): Use
19610         c_parser_next_token_starts_declaration and
19611         c_token_starts_declaration to detect start of declarations.
19612         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19613         Likewise.
19614
19615 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19616
19617         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19618         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19619         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19620         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19621         (mmix_function_outgoing_value): Rename to...
19622         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19623         (mmix_function_value_regno_p): Make static.
19624         (mmix_libcall_value): New function.
19625         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19626         mmix_function_value_regno_p): Remove declaration.
19627
19628 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19629
19630         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19631         BUILT_IN_ALLOCA if stack checking is enabled.
19632
19633 2010-05-16  Richard Guenther  <rguenther@suse.de>
19634
19635         * var-tracking.c (vars_copy_1): Inline ...
19636         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19637         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19638         (variable_merge_over_cur): Adjust.  Merge asserts.
19639         (variable_merge_over_src): Likewise.
19640         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19641         (variable_post_merge_new_vals): Merge asserts.
19642         (variable_post_merge_perm_vals): Likewise.
19643         (find_mem_expr_in_1pdv): Likewise.
19644         (dataflow_set_different_value): Remove.
19645         (onepart_variable_different_p): Merge asserts.
19646         (variable_different_p): Likewise.
19647         (dataflow_set_different_1): Inline ...
19648         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19649         (emit_notes_for_differences_1): Merge asserts.
19650
19651 2010-05-16  Richard Guenther  <rguenther@suse.de>
19652
19653         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19654         * optabs.c (libfunc_decl_hash): Likewise.
19655         * varasm.c (emutls_decl): Likewise.
19656
19657 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19658
19659         * c-decl.c: Don't include gimple.h.
19660         (merge_decls): Do not copy gimple_body.
19661
19662 2010-05-15  Jason Merrill  <jason@redhat.com>
19663
19664         * c.opt: Add -fnothrow-opt.
19665
19666 2010-05-15  Jan Hubicka  <jh@suse.cz>
19667
19668         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19669         analyzed.
19670         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19671
19672 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19673
19674         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19675         * Makefile.in: Add it.
19676         Fix all other Makefile dependencies for changes below.
19677         * tree.h: Include it instead of defining VEC primitives here.
19678         * gimple.h: Likewise.
19679         * rtl.h: Likewise.
19680         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19681         * except.h: Include vecir.h, break dependence on tree.h.
19682
19683         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19684         Move from here...
19685         * tree-iterator.c: ...to here.
19686         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19687
19688         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19689         tm_p.h.
19690         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19691         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19692         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19693         tree-mudflap.h, and target.h.
19694         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19695         predict.h, tree-inline.h, gimple.h, and langhooks.h.
19696         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19697         Add FIXME for why gimple.h is still included (should be unnecessary
19698         since GCC 4.5 gimplification unit-at-a-time).
19699         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19700         * c-pragma.c: Add FIXME for why function.h needs to be included just
19701         for cfun, at front-end level.
19702         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19703         Do not include ggc.h, but include vecprim.h for VEC(char).
19704         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19705         Explain why target.h is included.
19706         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19707         Explain why gimple.h is included.
19708         * c-ppoutput.c: Do not include tm.h.
19709         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
19710         * c-parses.c: Explain why rtl.h is included, and that this (and only
19711         this) is also why tm.h must be included.
19712         Do not include except.h.
19713         * c-lang.c: Do not include ggc.h.
19714
19715 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
19716
19717         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19718
19719 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
19720
19721         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19722         unions by default if those structs and unions have no tags.  Do
19723         not condition anonymous struct and unions handling on flag_iso.
19724         Allow anonymous structs and unions for C1X.
19725         (finish_struct): Do not diagnose lack of named fields when
19726         anonymous structs and unions present for C1X.  Accept flexible
19727         array members in structure with anonymous structs or unions but no
19728         directly named fields.
19729         * doc/extend.texi (Unnamed Fields): Update.
19730
19731 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19732
19733         * gimple.h (compare_field_offset): Rename into...
19734         (gimple_compare_field_offset): ...this.
19735         * gimple.c (compare_field_offset): Rename into...
19736         (gimple_compare_field_offset): ...this.  Compare the full access if
19737         the offset is self-referential.
19738         (gimple_types_compatible_p): Adjust for above renaming.
19739         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
19740         DECL_NONADDRESSABLE_P flag of fields before merging them.
19741
19742 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
19743
19744         * tree.h (ctor_to_list): Delete.
19745         * tree.c (ctor_to_list): Delete.
19746
19747 2010-05-15  Jan Hubicka  <jh@suse.cz>
19748
19749         * ipa-reference.c: Include toplev.h
19750         (is_proper_for_analysis): Only add to all_module_statics
19751         if it is allocated.
19752         (write_node_summary_p, stream_out_bitmap,
19753         ipa_reference_write_optimization_summary,
19754         ipa_reference_read_optimization_summary): New.
19755         (struct ipa_opt_pass_d pass_ipa_reference): Add
19756         optimization summary streaming.
19757         * lto-cgraph.c (referenced_from_this_partition_p,
19758         reachable_from_this_partition_p): New functions.
19759         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19760         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19761         * opts.c (decode_options): Enable ipa_reference.
19762         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19763         * lto-streamer.h (referenced_from_this_partition_p,
19764         reachable_from_this_partition_p): Declare.
19765
19766 2010-05-15  Richard Guenther  <rguenther@suse.de>
19767
19768         PR tree-optimization/44038
19769         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19770         taking the address of a V_C_E of a constant.
19771
19772 2010-05-14  Jan Hubicka  <jh@suse.cz>
19773
19774         * tree.h (memory_identifier_string): Remove.
19775         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19776         (ipa_reference_global_vars_info_d): Remove statics_not_read and
19777         statics_not_written.
19778         (ipa_reference_optimization_summary_d): New structure.
19779         (ipa_reference_optimization_summary_t): New type and vector.
19780         (ipa_reference_vars_info_d): Embedd structures instead of using
19781         pointers.
19782         (reference_vars_to_consider): Remove out of GGC space.
19783         (module_statics_escape): Remove.
19784         (global_info_obstack): Rename to ...
19785         (optimization_summary_obstack): ... this one.
19786         (initialization_status_t): Remove.
19787         (memory_identifier_string): Remove.
19788         (get_reference_vars_info): Fix indenting.
19789         (set_reference_vars_info): Likewise.
19790         (get_reference_optimization_summary): New.
19791         (set_reference_optimization_summary): New.
19792         (get_global_reference_vars_info): Remove.
19793         (ipa_reference_get_read_global): Remove.
19794         (ipa_reference_get_written_global): Remove.
19795         (ipa_reference_get_not_read_global): Update.
19796         (ipa_reference_get_not_written_global): Update.
19797         (is_proper_for_analysis): Outlaw addressable.
19798         (propagate_bits): Update for new datastructures.
19799         (analyze_variable): Remove.
19800         (init_function_info): Update for new datastructures.
19801         (clean_function_local_data): Remove.
19802         (clean_function): Remove.
19803         (copy_global_bitmap): Use optimizations_summary_obstack.
19804         (duplicate_node_data): Duplicate optimization summary only.
19805         (remove_node_data): Remove optimization summary only.
19806         (generate_summary): Do not analyze variables; do not compute
19807         module_statics_escape; do not prune solutions by it.
19808         (read_write_all_from_decl): Fix typos in comments.
19809         (propagate): Doscover readonly and nonaddressable first;
19810         update for new datastructures; share global bitmaps.
19811         * ipa-reference.h (ipa_reference_get_read_global,
19812         ipa_reference_get_written_global): Remove.
19813         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19814         * Makefile.in: Remove ipa-refereference from GT files.
19815
19816 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19817
19818         PR debug/44112
19819         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19820         for all SYMBOL_REF_DECLs.
19821
19822 2010-05-14  Jan Hubicka  <jh@suse.cz>
19823
19824         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19825         (varpool_all_refs_explicit_p): New inline function.
19826         * ipa-reference.c: Update comment.
19827         (module_statics_written): Remove.
19828         (get_static_decl): Remove.
19829         (ipa_init): Do not initialize module_statics_written.
19830         (analyze_function): Likewise.
19831         (generate_summary): Likewise; do not compute module_statics_readonly
19832         and do not update variable flags.
19833         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19834         * ipa.c: Inlucde flags.h
19835         (cgraph_local_node_p): New.
19836         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19837         promote functions to local.
19838         (ipa_discover_readonly_nonaddressable_vars): New function.
19839         (function_and_variable_visibility): Use cgraph_local_node_p.
19840         * varpool.c (varpool_finalize_decl): Set force_output for
19841         DECL_PRESERVE_P vars.
19842
19843 2010-05-14  Jan Hubicka  <jh@suse.cz>
19844
19845         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19846
19847 2010-05-14  Richard Guenther  <rguenther@suse.de>
19848
19849         PR tree-optimization/44119
19850         * tree-ssa-pre.c (eliminate): Properly mark replacement of
19851         a PHI node necessary.
19852
19853 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19854
19855         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19856
19857 2010-05-14  Jason Merrill  <jason@redhat.com>
19858
19859         PR c++/44127
19860         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
19861         (gimple_call_set_nothrow): New.
19862         * gimple.c (gimple_build_call_from_tree): Call it.
19863         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
19864
19865         PR c++/44127
19866         * gimplify.c (gimplify_seq_add_stmt): No longer static.
19867         * gimple.h: Declare it.
19868         * gimple.c (gimple_build_eh_filter): No ops.
19869
19870 2010-05-14  Jan Hubicka  <jh@suse.cz>
19871
19872         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
19873         nodes already in queue.
19874         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
19875         re-enqueueing node.
19876
19877 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19878
19879         PR debug/44136
19880         * cfgexpand.c (expand_debug_expr): If non-memory op0
19881         has BLKmode, return NULL.
19882
19883 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
19884
19885         * config.gcc: Add support for --with-cpu option for bdver1.
19886         * config/i386/i386.h (TARGET_BDVER1): New macro.
19887         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
19888         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19889         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
19890         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19891         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
19892         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
19893         (processor_type): Add PROCESSOR_BDVER1.
19894         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
19895         processor_type in config/i386/i386.h.
19896         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
19897         movaps <reg, reg> instead of movapd <reg, reg> when replacing
19898         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
19899         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19900         to emit packed xor instead of packed double/packed integer
19901         xor for SSE and AVX when moving a zero value.
19902         * config/i386/sse.md: Add check for
19903         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
19904         movapd/movdqa for SSE and AVX.
19905         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
19906         single logical operations i.e and, or and xor instead of packed double
19907         logical operations for SSE and AVX.
19908         * config/i386/i386-c.c (ix86_target_macros_internal):
19909         Add PROCESSOR_BDVER1.
19910         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
19911         (has_fma4, has_xop): New.
19912         * config/i386/i386.c (bdver1_cost): New variable.
19913         (m_BDVER1): New macro.
19914         (m_AMD_MULTIPLE): Add m_BDVER1.
19915         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
19916         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
19917         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
19918         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
19919         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
19920         x86_tune_sse_partial_reg_dependency,
19921         x86_tune_sse_unaligned_load_optimal,
19922         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
19923         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
19924         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
19925         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
19926         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
19927         Enable/disable for bdver1.
19928         (processor_target_table): Add bdver1_cost.
19929         (cpu_names): Add bdver1.
19930         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
19931          processor_alias_table.
19932         (ix86_expand_vector_move_misalign): Change.
19933         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
19934         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
19935         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
19936         of movupd/movdqu for SSE and AVX.
19937         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
19938         (ix86_tune_adjust_cost): Add code for bdver1.
19939         (standard_sse_constant_opcode): Add check for
19940         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
19941         of packed double xor for SSE and AVX.
19942
19943 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
19944
19945         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
19946         result to unsigned.
19947
19948 2010-05-14  Tristan Gingold  <gingold@adacore.com>
19949
19950         * toplev.c (default_debug_hooks): Remove this variable.
19951         (process_options): Remove assignments to default_debug_hooks.
19952
19953 2010-05-14  Martin Jambor  <mjambor@suse.cz>
19954
19955         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
19956         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
19957         * langhooks.h (struct lang_hooks_for_decls): Removed field
19958         fold_obj_type_ref.
19959         * tree.c (free_lang_data): Remove assignment to
19960         lang_hooks.fold_obj_type_ref.
19961         * tree.def (OBJ_TYPE_REF): Update comment.
19962
19963 2010-05-14  Richard Guenther  <rguenther@suse.de>
19964
19965         PR tree-optimization/44124
19966         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
19967
19968 2010-05-14  Alan Modra  <amodra@gmail.com>
19969
19970         PR target/44075
19971         * config/rs6000/rs6000.c (struct machine_function): Reorder
19972         fields for better packing.  Add lr_save_state.
19973         (rs6000_ra_ever_killed): Return lr_save_state if set.
19974         (rs6000_emit_eh_reg_restore): Set lr_save_state.
19975
19976 2010-05-13  Jan Hubicka  <jh@suse.cz>
19977
19978         * varpool.c (decide_is_variable_needed): Drop code checking
19979         TREE_SYMBOL_REFERENCED.
19980
19981 2010-05-13  Jan Hubicka  <jh@suse.cz>
19982
19983         * final.c (output_addr_const): Do not call mark_decl_referenced.
19984         * cgraphunit.c (process_function_and_variable_attributes): Use
19985         mark_needed_node dirrectly.
19986         (assemble_thunk): Do not call mark_decl_referenced.
19987
19988 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
19989
19990         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
19991
19992 2010-05-13  Jeff Law  <law@redhat.com>
19993
19994         * ira-conflicts.c (print_allocno_conflicts): New function broken out
19995         from...
19996         (print_conflicts): Call print_allocno_conflicts.
19997
19998 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19999
20000         PR debug/44104
20001         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
20002         if it is NULL.
20003
20004 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
20005
20006         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
20007         t-mingw-w64 or t-mingw-w32 for multilib configuration.
20008         * config/i386/t-mingw-w32: New.
20009         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
20010
20011 2010-05-13  Martin Jambor  <mjambor@suse.cz>
20012
20013         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
20014         gimple-fold.c).
20015         * gimple-fold.c (get_base_binfo_for_type): New function.
20016         (gimple_get_relevant_ref_binfo): Likewise.
20017         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20018         (gimple_fold_obj_type_ref): Likewise.
20019         (fold_gimple_call): Simplify condition for folding virtual calls
20020         and call gimple_fold_obj_type_ref.
20021         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
20022         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20023
20024 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
20025
20026         * config/rs6000/rs6000-protos.h
20027         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
20028         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
20029         (rs6000_debug_mode_dependent_address)
20030         (rs6000_mode_dependent_address_ptr): Likewise.
20031
20032 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20033
20034         PR debug/43983
20035         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
20036         by SRA.
20037         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
20038         * tree-sra.c (create_access_replacement): Call unshare_expr before
20039         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
20040         * dwarf2out.c: Include tree-flow.h.
20041         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
20042         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
20043         Handle DW_OP_bit_piece.
20044         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
20045         construct_piece_list, adjust_piece_list): New functions.
20046         (add_var_loc_to_decl): Handle SRA optimized variables.
20047         Adjust for var_loc_note to loc field renaming.
20048         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
20049         in VAR_LOCATION note.
20050         (new_loc_descr_op_bit_piece): New function.
20051         (dw_sra_loc_expr): New function.
20052         (dw_loc_list): Use it.  Don't handle the last range after the
20053         loop, handle it inside of the loop.  Adjust for var_loc_note
20054         to loc field renaming.
20055         (add_location_or_const_value_attribute): Only special case
20056         single entry loc lists if loc is NOTE_P.  Adjust for
20057         var_loc_note to loc field renaming.
20058         (dwarf2out_var_location): Don't set newloc->var_loc_note
20059         and newloc->next here.
20060
20061 2010-05-12  Jan Hubicka  <jh@suse.cz>
20062
20063         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
20064         flag.
20065         * cgraph.h (cgraph_only_called_directly_p,
20066         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
20067         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
20068         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
20069         (assemble
20070         * ipa.c (cgraph_remove_unreachable_nodes): Use
20071         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
20072         flags.
20073         * tree-inline.c (copy_bb): Check address_taken flag.
20074         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
20075         externally_visible flag.
20076
20077 2010-05-12  Jason Merrill  <jason@redhat.com>
20078
20079         PR bootstrap/44048
20080         PR target/44099
20081         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
20082         * sdbout.c (plain_type_1): Likewise.
20083         * dwarf2out.c (is_base_type): Likewise.
20084         (gen_type_die_with_usage): Likewise.  Generate
20085         DW_TAG_unspecified_type for any LANG_TYPE.
20086
20087 2010-05-12  Jan Hubicka  <jh@suse.cz>
20088
20089         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
20090         indrect edges too.
20091         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
20092         (cgraph_clone_edge): Update.
20093         (cgraph_node_remove_callees): Remove indirect calls too.
20094         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
20095         (cgraph_create_indirect_edge): Update prototype.
20096         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
20097         is_proper_for_analysis.
20098         (add_new_function, visited_nodes, function_insertion_hook_holder,
20099         get_local_reference_vars_info, mark_address_taken, mark_address,
20100         mark_load, mark_store, check_asm_memory_clobber, check_call,
20101         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
20102         (ipa_init): Do not initialize visited_nodes;
20103         function_insertion_hook_holder.
20104         (analyze_variable): Rewrite.
20105         (analyze_function): Rewrite.
20106         (copy_local_bitmap): Remove.
20107         (duplicate_node_dat): Do not duplicate local info.
20108         (generate_summary): Simplify to only walk cgraph.
20109         (write_node_summary_p, ipa_reference_write_summary,
20110         ipa_reference_read_summary): Remove.
20111         (propagate): Do not remove function insertion;
20112         generate summary.
20113         (pass_ipa_reference): NULLify summary handling fields.
20114         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
20115         (input_edge): Input ecf_flags.
20116         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
20117         (update_indirect_edges_after_inlining): Ignore edges with unknown
20118         param.
20119
20120 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
20121
20122         * implicit-zee.c: New file.
20123         * tree-pass.h (pass_implicit_zee): Declare.
20124         * passes.c (init_optimization_passes): Add zee pass.
20125         * common.opt (fzee): New flag.
20126         * timevar.def (TV_ZEE): Define.
20127         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
20128         and beyond.
20129         * Makefile.in (implicit-zee.o): Add new build file.
20130
20131 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20132             Nathan Froyd  <froydnj@codesourcery.com>
20133
20134         * c-common.c (sync_resolve_params): Remove write-only variable.
20135
20136 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
20137
20138         * target.h (struct gcc_target): Add mode_dependent_address_p field.
20139         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20140         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20141         * targhooks.c (default_mode_dependent_address_p): New function.
20142         * targhooks.h (default_mode_dependent_address_p): Declare function.
20143         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20144         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20145         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20146         target hook. Change return type to bool.
20147         * recog.h (mode_dependent_address_p): Change return type to bool.
20148
20149 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20150             Nathan Froyd  <froydnj@codesourcery.com>
20151
20152         * tree-mudflap.c (build_function_type_0, build_function_type_1,
20153         build_function_type_2, build_function_type_3): Remove.
20154         (mudflap_init): Use build_function_type_list.
20155
20156 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20157             Nathan Froyd  <froydnj@codesourcery.com>
20158
20159         * coverage.c (build_fn_info_value): Call build_constructor instead of
20160         build_constructor_from_list.
20161         (build_ctr_info_value): Likewise.
20162         (build_gcov_info): Likewise.
20163
20164 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
20165
20166         * tree.c (build_constructor): Compute TREE_CONSTANT for the
20167         resultant constructor.
20168         (build_constructor_single): Don't set TREE_CONSTANT.
20169         (build_constructor_from_list): Don't compute TREE_CONSTANT.
20170
20171 2010-05-12  Jan Hubicka  <jh@suse.cz>
20172
20173         * cgraph.h (struct varpool_node): Add aux.
20174         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20175         * varpool.c (varpool_remove_node): Do not remove initializer.
20176         (varpool_reset_queue): Export.
20177         (varpool_finalize_decl): Volatile vars are forced to be output.
20178         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20179         replaced decl.
20180         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20181         process_references, varpool_can_remove_if_no_refs): New functions.
20182         (cgraph_remove_unreachable_nodes): Handle variables too.
20183
20184 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20185
20186         PR target/44088
20187         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20188
20189 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
20190
20191         PR middle-end/44085
20192         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20193         change value of ORT_TASK.
20194         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20195         (omp_notice_threadprivate_variable): New function.
20196         (omp_notice_variable): Call it for threadprivate variables.
20197         If enclosing ctx is a task, print enclosing task rather than
20198         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
20199         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20200         if task has untied clause.
20201
20202         PR debug/42278
20203         * dwarf2out.c (base_type_die): Don't add name attribute here.
20204         (modified_type_die): Instead of sizetype use
20205         its underlying original type.  If a DW_TAG_base_type doesn't
20206         have name added, add __unknown__.
20207         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20208         always call force_type_die instead.
20209
20210 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
20211
20212         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20213         for __stack_chk_guard.
20214
20215 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20216
20217         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20218         don't call start_source_file debug hook here...
20219         (finish_options): ... but here, after outputting predefined and
20220         command line defines and undefs.
20221
20222         PR middle-end/44071
20223         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20224         no fallthru edge.
20225         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20226         optimizing away empty bb with no successors, move over its
20227         footer chain to fallthru predecessor.
20228         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20229         (rtl_split_edge): For asm goto call patch_jump_insn even if
20230         splitting fallthru edge.
20231
20232         PR c++/44059
20233         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20234         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20235         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20236         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20237         on DW.ref.* decls.
20238
20239         PR c++/44062
20240         * c-parser.c (c_parser_expression): Mark LHS of a comma
20241         expression as read if it is a decl, handled component or
20242         COMPOUND_EXPR with that on the RHS.
20243         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20244         if it is a decl or handled component.
20245
20246 2010-05-11  Jan Hubicka  <jh@suse.cz>
20247
20248         * lto-symtab.c (lto_symtab_free): New function.
20249         * lto-streamer.h (lto_symtab_free): Declare.
20250
20251 2010-05-11  Jan Hubicka  <jh@suse.cz>
20252
20253         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20254         that if function is needed it is reachable.
20255         (lto_output_node): See if it the function is reachable or referenced.
20256         (output_cgraph): Update call of lto_output_node.
20257         * lto-streamer.h (reachable_from_other_partition_p): Declare.
20258
20259 2010-05-11  Jan Hubicka  <jh@suse.cz>
20260
20261         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20262         Mark as used.
20263
20264 2010-05-11  Jan Hubicka  <jh@suse.cz>
20265
20266         PR tree-optimize/44063
20267         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20268         queue.
20269         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20270         limits.
20271         (estimate_function_body_sizes): Compute sizes even when disregarding.
20272
20273 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
20274
20275         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20276
20277 2010-05-11  Jan Hubicka  <jh@suse.cz>
20278
20279         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20280         into every boundary.
20281
20282 2010-05-11  Jan Hubicka  <jh@suse.cz>
20283
20284         * matrix-reorg.c (matrix_reorg): Rebuild edges.
20285
20286 2010-05-11  Jan Hubicka  <jh@suse.cz>
20287
20288         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20289         lto_streamer_cache_delete): Put nodes into heap.
20290         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20291         heap.
20292
20293 2010-05-11  Jan Hubicka  <jh@suse.cz>
20294
20295         * cgraphbuild.c (cgraph_rebuild_references): New.
20296         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20297         out extern inlines.
20298         * cgraph.h (cgraph_rebuild_references): Declare.
20299         * tree-inline.c (tree_function_versioning): Use it.
20300         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20301
20302 2010-05-11  Jan Hubicka  <jh@suse.cz>
20303
20304         * cgraph.c: Include ipa-utils.h
20305         (cgraph_create_virtual_clone): Update references.
20306         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20307
20308 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20309
20310         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20311         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20312         cache size.
20313
20314 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20315
20316         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20317
20318 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20319
20320         * gcc.c (execute): For -### don't quote arguments that
20321         contain just alphanumerics and _/-. characters.
20322         * doc/invoke.texi: Document that change for -###.
20323
20324         PR debug/44023
20325         * df-problems.c (struct dead_debug): Add to_rescan field.
20326         (dead_debug_init): Clear to_rescan field.
20327         (dead_debug_finish): Rescan all debug insns in to_rescan
20328         bitmap and free the bitmap.
20329         (dead_debug_insert_before): Instead of rescanning debug insns
20330         immediately queue their rescanning until dead_debug_finish.
20331         (df_note_bb_compute): After dead_debug_add do continue instead
20332         of break.
20333
20334 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
20335
20336         PR debug/44028
20337         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20338         clear also INSN_REG_USE_LIST.
20339
20340 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20341
20342         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20343
20344 2010-05-10  Jan Hubicka  <jh@suse.cz>
20345
20346         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20347         commited change.
20348
20349 2010-05-10  Jan Hubicka  <jh@suse.cz>
20350
20351         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20352         Allocate encoders.
20353         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20354         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20355         (lto_streamer_cache_create): Init alloc pool.
20356         (lto_streamer_cache_delete): Free alloc pool.
20357         * lto-streamer.h: Include alloc pool.
20358         (lto_streamer_cache_d): Use alloc pool.
20359         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20360
20361 2010-05-10  Jan Hubicka  <jh@suse.cz>
20362
20363         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20364         * cgraphbuild.c: Include except.h
20365         (record_type_list, record_eh_tables): New function.
20366         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20367
20368 2010-05-10  Jan Hubicka  <jh@suse.cz>
20369
20370         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20371         __frame_dummy_init_array_entry, force_to_data): Attribute as used
20372         rather than unused.
20373
20374 2010-05-10  Michael Matz  <matz@suse.de>
20375
20376         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20377         (can_reassociate_p): Use FLOAT_TYPE_P.
20378         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20379         (vect_force_simple_reduction): ... this.
20380         * tree-parloops.c (gather_scalar_reductions): Use
20381         vect_force_simple_reduction.
20382         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20383         vect_is_simple_reduction, add modify argument, if true rewrite
20384         "a-b" into "a+(-b)".
20385         (vect_is_simple_reduction, vect_force_simple_reduction): New
20386         functions.
20387         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20388
20389 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20390             Vladimir Makarov  <vmakarov@redhat.com>
20391
20392         PR rtl-optimization/44012
20393         * ira-build.c (remove_unnecessary_allocnos): Nullify
20394         regno_allocno_map of the removed allocno.
20395
20396 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20397
20398         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20399         to /dev/null.
20400         * configure: Regenerate.
20401
20402 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20403
20404         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20405         unused.
20406         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20407         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20408         support in Sun ld.
20409         * configure: Regenerate.
20410
20411 2010-05-10  Richard Guenther  <rguenther@suse.de>
20412
20413         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20414         marked if the entry identifier is marked.
20415
20416 2010-05-10  Richard Guenther  <rguenther@suse.de>
20417
20418         * c-common.c (struct c_common_attributes): Add fnspec attribute.
20419         (handle_fnspec_attribute): New function.
20420         * gimple.h (gimple_call_return_flags): Declare.
20421         (gimple_call_arg_flags): Likewise.
20422         * gimple.c (gimple_call_arg_flags): New function.
20423         (gimple_call_return_flags): Likewise.
20424         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20425         New argument flags.
20426         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20427         return value flags.
20428         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20429         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20430         main work to ...
20431         (make_heapvar_for): ... this new function.
20432         (handle_rhs_call): Handle fnspec attribute argument specifiers.
20433         (handle_lhs_call): Likewise.
20434         (find_func_aliases): Adjust.
20435
20436 2010-05-10  Richard Guenther  <rguenther@suse.de>
20437
20438         PR tree-optimization/44050
20439         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20440
20441 2010-05-10  Wei Guozhi  <carrot@google.com>
20442
20443         PR target/42879
20444         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20445
20446 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20447
20448         PR c/10676
20449         * c-typeck.c (lookup_field): Take a type directly.  Update
20450         recursive calls.
20451         (build_component_ref): Update call to lookup_field.
20452         (set_init_label): Use lookup_field to find initialized field.
20453         Handle returned list of fields like a sequence of designators.
20454
20455 2010-05-09  Richard Guenther  <rguenther@suse.de>
20456
20457         PR middle-end/44024
20458         * fold-const.c (tree_single_nonzero_warnv_p): Properly
20459         handle &FUNCTION_DECL.
20460
20461 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20462
20463         PR c/4784
20464         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
20465         structures and unions recursively.
20466         (detect_field_duplicates): Move duplicate detection with a hash to
20467         detect_field_duplicates_hash.  Always use a hash if anonymous
20468         structures or unions are present.
20469         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20470         give errors.
20471
20472 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20473
20474         PR target/44046
20475         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20476         detect Atom, Core 2 and Core i7.
20477
20478 2010-05-09  Richard Guenther  <rguenther@suse.de>
20479
20480         * gcc.c (store_arg): Handle temporary file deletion for
20481         joined arguments.
20482
20483 2010-05-09  Richard Guenther  <rguenther@suse.de>
20484
20485         PR middle-end/44043
20486         * ipa-inline.c (estimate_function_body_sizes): Return after
20487         disregarding inline limits.
20488
20489 2010-05-09  Richard Guenther  <rguenther@suse.de>
20490
20491         * gcc.c (store_arg): Revert last change.
20492
20493 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
20494
20495         PR middle-end/28685
20496         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20497         (optimize_ops_list): Call it.
20498
20499 2010-05-08  Richard Guenther  <rguenther@suse.de>
20500
20501         PR tree-optimization/44030
20502         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
20503         NECESSARY flag if we propagate from a inserted expression.
20504
20505 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
20506
20507         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20508         domain types as equal if they are both PLACEHOLDER_EXPRs.
20509
20510 2010-05-08  Richard Guenther  <rguenther@suse.de>
20511
20512         * lto-wrapper.c (run_gcc): Remove linker output from
20513         command line for LTRANS invocation.
20514
20515 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20516
20517         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20518         lto-macho as lto_binary_reader.
20519         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20520         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20521         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20522         in lto_start and lto_end calls.
20523         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20524         magic numbers.
20525         (scan_prog_file): Update is_elf_or_coff call.
20526         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20527
20528         * collect2.c (main): Fix enum comparison.
20529
20530         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20531         Add prototypes.
20532         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20533         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20534         and TARGET_ASM_LTO_END.
20535         * darwin.c: Include obstack.h and lto-streamer.h.
20536         (lto_section_names_offset, lto_section_names_obstack,
20537         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20538         global variables.
20539         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20540         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20541         to a temporary file.
20542         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20543         (darwin_asm_named_section): For LTO sections, replace the name with
20544         the offset of the section name in a string table, and build this
20545         table.
20546         (darwin_file_start): Initialize global vars for LTO support.
20547         (darwin_file_end): If output to asm_out_file was redirected, append it
20548         to the proper asm_out_file here.  Add the section names section.
20549
20550 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20551
20552         * c-pragma.c (pending_weak_d, pending_weak): New.
20553         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20554         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20555         handle_pragma_weak): Update the uses of pending_weaks.
20556
20557 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20558
20559         PR documentation/44016
20560         * doc/standards.texi (Standards): Link to unversioned
20561         cxx0x_status.html page.
20562
20563 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20564
20565         PR target/43708
20566         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20567         in addition to TREE_USED, to avoid "set but unused" warnings.
20568
20569 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20570
20571         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20572         (is_loop_prefetching_profitable): Do not insert prefetches
20573         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20574         times the prefetch ahead distance.
20575
20576 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20577
20578         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20579         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20580         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20581         the unroll_factor.
20582
20583 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20584
20585         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20586         a diagnostic info when the insn-to-mem ratio is too small.
20587
20588 2010-05-07  Richard Guenther  <rguenther@suse.de>
20589
20590         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20591         the linker plugin.
20592         (store_arg): Queue temp_filename for deletion instead of
20593         the whole argument.
20594
20595 2010-05-07  Richard Guenther  <rguenther@suse.de>
20596
20597         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20598         (run_gcc): Handle LTRANS phase invocation.
20599         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20600
20601 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20602
20603         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20604         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20605
20606 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20607
20608         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20609
20610 2010-05-07  Richard Guenther  <rguenther@suse.de>
20611
20612         PR tree-optimization/44020
20613         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20614         code when PRE is not yet initialized.
20615
20616 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20617
20618         * config/mips/dbxmdebug.h: Remove.
20619         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20620
20621 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20622
20623         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20624         with null pointer and also warn about ordered comparison of zero with
20625         pointer if -Wextra.
20626
20627 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20628
20629         * graphite-blocking.c
20630         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20631         * graphite-clast-to-gimple.c
20632         (clast_to_gcc_expression): Same.
20633         (precision_for_value): Same.
20634         (precision_for_interval): Same.
20635         (gcc_type_for_interval): Same.
20636         (graphite_create_new_guard): Same.
20637         (compute_bounds_for_level): Same.
20638         (graphite_create_new_loop_guard): Same.
20639         * graphite-interchange.c
20640         (build_linearized_memory_access): Same.
20641         (pdr_stride_in_loop): Same.
20642         (memory_strides_in_loop_1): Same.
20643         (memory_strides_in_loop): Same.
20644         (extend_scattering): Same.
20645         (psct_scattering_dim_for_loop_depth): Same.
20646         (pbb_number_of_iterations): Same.
20647         * graphite-poly.h
20648         (debug_iteration_domains): Same.
20649         * graphite-ppl.c
20650         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20651         (ppl_set_inhomogeneous_gmp): Same.
20652         (ppl_strip_loop): Same.
20653         (ppl_lexico_compare_linear_expressions): Same.
20654         (ppl_read_polyhedron_matrix): Same.
20655         (ppl_max_for_le_pointset): Same.
20656         * graphite-ppl.h
20657         (ppl_read_polyhedron_matrix): Same.
20658         (tree_int_to_gmp): Same.
20659         (gmp_cst_to_tree): Same.
20660         (ppl_set_inhomogeneous): Same.
20661         (ppl_set_inhomogeneous_tree): Same.
20662         (ppl_set_coef): Same.
20663         (ppl_set_coef_tree): Same.
20664         * graphite-sese-to-poly.c
20665         (build_pbb_scattering_polyhedrons): Same.
20666         (build_scop_scattering): Same.
20667         (scan_tree_for_params_right_scev): Same.
20668         (scan_tree_for_params): Same.
20669         (find_params_in_bb): Same.
20670         (find_scop_parameters): Same.
20671         (add_upper_bounds_from_estimated_nit): Same.
20672         (build_loop_iteration_domains): Same.
20673         (add_condition_to_domain): Same.
20674         (pdr_add_memory_accesses): Same.
20675
20676 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20677
20678         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20679         CLooG's value_* macros to their respective mpz_* counterparts.
20680         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20681         (graphite_create_new_loop_guard): Same.
20682         * graphite-interchange.c (build_linearized_memory_access): Same.
20683         (pdr_stride_in_loop): Same.
20684         (memory_strides_in_loop_1): Same.
20685         (1st_interchange_profitable_p): Same.
20686         * graphite-poly.c (extend_scattering): Same.
20687         (psct_scattering_dim_for_loop_depth): Same.
20688         (pbb_number_of_iterations): Same.
20689         (pbb_number_of_iterations_at_time): Same.
20690         * graphite-poly.h (new_1st_loop): Same.
20691         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20692         (oppose_constraint): Same.
20693         (insert_constraint_into_matrix): Same.
20694         (ppl_set_inhomogeneous_gmp): Same.
20695         (ppl_set_coef_gmp): Same.
20696         (ppl_strip_loop): Same.
20697         (ppl_lexico_compare_linear_expressions): Same.
20698         (ppl_max_for_le_pointset): Same.
20699         (ppl_min_for_le_pointset): Same.
20700         (ppl_build_realtion): Same.
20701         * graphite-ppl.h (gmp_cst_to_tree): Same.
20702         (ppl_set_inhomogeneous): Same.
20703         (ppl_set_inhomogeneous_tree): Same.
20704         (ppl_set_coef): Same.
20705         (ppl_set_coef_tree): Same.
20706         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20707         (build_scop_scattering): Same.
20708         (add_value_to_dim): Same.
20709         (scan_tree_for_params_right_scev): Same.
20710         (scan_tree_for_params_int): Same.
20711         (scan_tree_for_params): Same.
20712         (find_params_in_bb): Same.
20713         (find_scop_parameters): Same.
20714         (add_upper_bounds_from_estimated_nit): Same.
20715         (build_loop_iteration_domains): Same.
20716         (create_linear_expr_from_tree): Same.
20717         (add_condition_to_domain): Same.
20718         (pdr_add_memory_accesses): Same.
20719
20720 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
20721             Jason Merrill  <jason@redhat.com>
20722
20723         * c-common.c (c_common_reswords): Add nullptr.
20724         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
20725         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20726         (gen_type_die_with_usage): Likewise.
20727         * dbxout.c (dbxout_type): Likewise.
20728         * sdbout.c (plain_type_1): Likewise.
20729
20730 2010-05-06  Jason Merrill  <jason@redhat.com>
20731
20732         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20733         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
20734         ret appropriately.
20735         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20736
20737         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20738         stripping WITH_SIZE_EXPR.
20739         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20740         change.
20741
20742 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20743
20744         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20745         list of obsolete configurations.
20746         Disabled check for obsolete configurations.
20747         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20748         Removed support for previous versions.
20749         * config/mips/iris.h: Removed.
20750         * config/mips/iris5.h: Removed.
20751         * config/mips/iris6.h: Merged old iris.h contents.
20752         (TARGET_IRIX): Removed.
20753         (DRIVER_SELF_SPECS): Removed mabi=32.
20754         (IDENT_ASM_OP): Removed undef.
20755         (STARTFILE_SPEC): Removed mabi=32.
20756         (ENDFILE_SPEC): Likewise.
20757         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20758         (MACHINE_TYPE): Update for IRIX 6.5.
20759         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20760         TARGET_IRIX by TARGET_IRIX6.
20761         (mips_file_start): Likewise.
20762         (mips_output_external): Remove IRIX 5/6 O32 support.
20763         (mips_output_function_prologue): Likewise.
20764         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20765         TARGET_IRIX6.
20766         (TARGET_CPU_CPP_BUILTINS): Likewise.
20767         (TARGET_IRIX): Removed.
20768         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20769         (MULTILIB_DIRNAMES): Removed 32.
20770         (MULTILIB_OSDIRNAMES): Removed ../lib.
20771         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20772         (Specific, mips-sgi-irix5): Document removal.
20773         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20774         Remove references to older IRIX 6 releases and the O32 ABI.
20775
20776 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
20777
20778         PR bootstrap/43994
20779         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20780         instead of DF_REF_REAL_REG.
20781
20782 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
20783
20784         PR target/43888
20785         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20786         handling to still return true for x64 targets.
20787
20788 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20789
20790         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20791
20792 2010-05-06  Jan Hubicka  <jh@suse.cz>
20793
20794         PR tree-optimization/43791
20795         * ipa-inline.c (update_caller_keys): Remove bogus
20796         disregard_inline_limits check.
20797
20798 2010-05-06  Michael Matz  <matz@suse.de>
20799
20800         PR tree-optimization/43984
20801         * tree-ssa-pre.c (inserted_phi_names): Remove.
20802         (inserted_exprs): Change to bitmap.
20803         (create_expression_by_pieces): Set bits, don't append to vector.
20804         (insert_into_preds_of_block): Don't handle inserted_phi_names.
20805         (eliminate): Don't look at inserted_phi_names, remove deleted
20806         insns from inserted_exprs.
20807         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20808         (init_pre, fini_pre): Allocate and free bitmaps.
20809         (execute_pre): Insert insns on edges before elimination.
20810
20811 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20812
20813         * tree.c (initializer_zerop): Handle STRING_CST.
20814
20815 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20816
20817         PR 40989
20818         * doc/invoke.texi (Wimplicit): Document as C only.
20819         * opts.c (common_handle_option): Add argument kind.
20820         (handle_option): Rename as read_cmdline_option. Factor out code to...
20821         (handle_option): ... here. New.
20822         (handle_options): Rename as read_cmdline_options.
20823         (decode_options): Update call.
20824         (set_option): Use option index instead of option pointer. Classify
20825         diagnostics correctly.
20826         (enable_warning_as_error): Call handle_option.
20827         * opts.h (set_option): Update declaration.
20828         (handle_option): Declare.
20829         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20830         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20831         * c-opts.c (set_Wimplicit): Delete.
20832         (c_family_lang_mask): New static constant.
20833         (c_common_handle_option): Add argument kind. Use handle_option
20834         instead of set_Wimplicit.
20835         (c_common_post_options): warn_implicit and warn_implicit_int
20836         are disabled by default.
20837         * c-common.c (warn_implicit): Do not define here.
20838         * c-common.h (warn_implicit): Do not declare here.
20839         (c_common_handle_option): Update declaration.
20840         * lto-opts.c (lto_reissue_options): Update call to set_option.
20841
20842 2010-05-06  Richard Guenther  <rguenther@suse.de>
20843
20844         PR tree-optimization/43571
20845         * domwalk.c (walk_dominator_tree): Walk the dominator
20846         sons in more optimal order.
20847
20848 2010-05-06  Richard Guenther  <rguenther@suse.de>
20849
20850         PR tree-optimization/43934
20851         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20852         (stmt_cost): Likewise.
20853         (extract_true_false_args_from_phi): New helper.
20854         (determine_max_movement): For PHI nodes verify we can hoist them
20855         and compute their cost.
20856         (determine_invariantness_stmt): Handle PHI nodes.
20857         (move_computations_stmt): Likewise.  Hoist PHI nodes in
20858         if-converted form using COND_EXPRs.
20859         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
20860         (tree_ssa_lim): Likewise.
20861         * tree-flow.h (tree_ssa_lim): Adjust prototype.
20862         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
20863
20864 2010-05-06  Richard Guenther  <rguenther@suse.de>
20865
20866         PR tree-optimization/43987
20867         * tree-ssa-structalias.c (could_have_pointers): For possibly
20868         address-taken variables force pointers to be recorded.
20869         (create_variable_info_for_1): Likewise.
20870         (push_fields_onto_fieldstack): Pass in wheter all fields
20871         must have pointers.
20872         (find_func_aliases): Query types instead of vars whether
20873         they contain pointers where appropriate.
20874
20875 2010-05-06  Jan Hubicka  <jh@suse.cz>
20876
20877         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
20878         (record_reference, mark_address, mark_load, mark_store): Record
20879         references.
20880         (record_references_in_initializer): Update call of record_references.
20881         (rebuild_cgraph_edges): Remove all references before rebuiding.
20882         * cgraph.c (cgraph_create_node): Clear ref list.
20883         (cgraph_remove_node): Remove references.
20884         (dump_cgraph_node): Dump references.
20885         (cgraph_clone_node): Clone references.
20886         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
20887         (struct cgraph_node, varpool_node): Add ref_lst.
20888         * ipa-ref.c: New file.
20889         * ipa-ref.h: New file.
20890         * ipa-ref-inline.h: New file.
20891         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
20892         (referenced_from_other_partition_p): New function.
20893         (lto_output_varpool_node): Take set arugment; call
20894         referenced_from_other_partition.
20895         (lto_output_ref): New.
20896         (add_references): New.
20897         (output_refs): New.
20898         (output_cgraph): Compute boundary based on references; output refs.
20899         (output_varpool): Accept cgraph_node_set argument.
20900         (input_ref): New.
20901         (input_refs): New.
20902         (input_cgraph): Call input_refs.
20903         * lto-section-in.c (lto_section_name): Add refs.
20904         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
20905         (ipa-ref.o): New file.
20906         * varpool.c (varpool_node): Clear ipa ref list.
20907         (varpool_remove_node): Remove references.
20908         (dump_varpool_node): Dump references.
20909         (varpool_assemble_decl): Only compile finalized ones.
20910         (varpool_extra_name_alias): Initialize ref list.
20911         * lto-streamer.c (lto-get_section_name): Add .refs section.
20912         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
20913         (referenced_from_other_partition_p): Declared.
20914
20915 2010-05-06  Ira Rosen  <irar@il.ibm.com>
20916
20917         PR tree-optimization/43901
20918         * tree-vect-stmts.c (vectorizable_call): Assert that vector
20919         type is not NULL if it's transformation phase, and return
20920         FALSE if it's analysis.
20921         (vectorizable_conversion, vectorizable_operation,
20922         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
20923
20924 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
20925
20926         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20927         Delete.
20928         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20929         New define.
20930         * config/mips/mips-protos.h
20931         (mips_small_register_classes_for_mode_p): Delete prototype.
20932
20933 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
20934
20935         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
20936         * config/arm/arm.c (multiple_operation_profitable_p,
20937         compute_offset_order): New static functions.
20938         (load_multiple_sequence, store_multiple_sequence): Use them.
20939         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
20940         memory offsets, not register numbers.
20941         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
20942
20943 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
20944
20945         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
20946         (get_pending_sizes, put_pending_size, put_pending_sizes):
20947         Update the uses of pending_sizes.
20948         * c-decl.c (store_parm_decls): Likewise.
20949         * c-tree.h (struct c_arg_info): Likewise.
20950         * tree.h: Update the prototype for get_pending_sizes and
20951         put_pending_sizes.
20952
20953 2010-05-05  Jason Merrill  <jason@redhat.com>
20954
20955         PR debug/43370
20956         * c-common.c (handle_aligned_attribute): Respect
20957         ATTR_FLAG_TYPE_IN_PLACE.
20958
20959         PR testsuite/43758
20960         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
20961         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20962         (TARGET_INITIALIZER): Use it.
20963         * c-common.c (attribute_takes_identifier_p): Call it.
20964         * c-common.h: Update prototype.
20965         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
20966         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20967
20968 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20969
20970         PR debug/43950
20971         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
20972         DW_ID_down_case for Fortran compilation units.
20973
20974 2010-05-05  Jan Hubicka  <jh@suse.cz>
20975
20976         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
20977         handle aliases.
20978
20979 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
20980
20981         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
20982         a variable-sized RESULT_DECL.
20983
20984 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
20985
20986         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
20987
20988 2010-05-05  Jason Merrill  <jason@redhat.com>
20989
20990         PR c++/43787
20991         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
20992         returns GS_OK.
20993         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
20994
20995 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
20996             Jakub Jelinek  <jakub@redhat.com>
20997
20998         PR debug/43478
20999         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
21000         (dead_debug_init, dead_debug_finish): New functions.
21001         (dead_debug_add, dead_debug_insert_before): Likewise.
21002         (df_note_bb_compute): Initialize a dead_debug object, add dead
21003         debug uses to it, insert debug bind insns before death insns,
21004         reset debug insns that refer to pending uses at the end.
21005         * rtl.h (make_debug_expr_from_rtl): New prototype.
21006         * varasm.c (make_debug_expr_from_rtl): New function.
21007
21008 2010-05-05  Jan Hubicka  <jh@suse.cz>
21009
21010         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
21011         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
21012         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
21013         lto_varpool_encoder_deref, lto_varpool_encoder_size,
21014         lto_varpool_encoder_encode_initializer_p,
21015         lto_set_varpool_encoder_encode_initializer): New functions.
21016         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
21017         call output_varpool.
21018         (input_varpool_node): Do not always set analyzed.
21019         (input_cgraph_1): Return vector of cgraph nodes.
21020         (input_varpool_1): Return vector of varpools.
21021         (input_cgraph): Free the vectors.
21022         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21023         output only initializers needed.
21024         (lto_output): Only call output_cgraph.
21025         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
21026         * lto-section-out.c (lto_new_out_decl_state): Initialize
21027         state->varpool_node_encoder.
21028         * lto-streamer.h (lto_varpool_encoder_d): New.
21029         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
21030         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
21031         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
21032         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
21033         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
21034         Declare.
21035         (output_varpool, input_varpool): Remove declarations.
21036
21037 2010-05-05  Jan Hubicka  <jh@suse.cz>
21038
21039         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
21040         with body can prevail.
21041
21042 2010-05-05  Jan Hubicka  <jh@suse.cz>
21043
21044         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
21045         size.
21046
21047 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21048
21049         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
21050
21051         * gengtype.h (erro_at_line): Constify pos argument.
21052
21053         * gengtype.c: Include hashtab.h.
21054         (enum gc_used): Document GC_MAYBE_POINTED_TO.
21055         (error_at_line): Constify pos argument.
21056         (do_typedef): Initialize p->opt field.
21057         (get_file_gtfilename): Fix comment typo.
21058         (struct walk_type_data): Constify line field.
21059         (get_output_file_for_structure): New function.
21060         (write_local_func_for_structure): Constify orig_s argument.
21061         Use get_output_file_for_structure.
21062         (write_func_for_structure): Use get_output_file_for_structure.
21063         (INDENT): New define.
21064         (dump_pair, dump_type, dump_type_list, dump_typekind)
21065         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
21066         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
21067         functions.
21068         (seen_types): New variable.
21069         (main): New variable do_dump.  Process "-d" command line option.
21070         Call dump_everything if dump requested.
21071
21072 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21073
21074         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
21075         in a temporary instead of invoking the macro multiple times.
21076         (track_expr_p): Likewise.
21077
21078 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
21079
21080         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
21081         per new semantics.
21082         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
21083         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
21084         conditions for printing notes.
21085         * common.opt (-Wcoverage-mismatch): Allow negative, default to
21086         true, update documentation.
21087         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
21088
21089 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
21090
21091         PR c/43981
21092         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
21093         on dimen.
21094
21095 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21096
21097         PR target/43799
21098         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
21099         (*sse_prologue_save_insn1): Likewise.
21100         (SSE prologue save splitter): Likewise.
21101
21102 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21103
21104         * tree.c (free_lang_data_in_one_sizepos): New inline function.
21105         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
21106         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
21107         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
21108         all decls.  Call it on DECL_FIELD_OFFSET of fields.
21109         (find_decls_types_r): Follow DECL_VALUE_EXPR.
21110         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
21111
21112 2010-05-04  Martin Jambor  <mjambor@suse.cz>
21113
21114         * tree-sra.c (build_access_from_expr_1): The first parameter type
21115         changed to simple tree.
21116         (build_access_from_expr): Likewise, gsi parameter was eliminated.
21117         (scan_assign_result): Renamed to assignment_mod_result, enum elements
21118         renamed as well.
21119         (build_accesses_from_assign): Removed all parameters except for a
21120         simple gimple statement.  Now returns a simple bool.
21121         (scan_function): All non-analysis parts moved to separate functions
21122         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
21123         parameters and updated both callers.
21124         (sra_modify_expr): Removed parameter data.
21125         (sra_modify_function_body): New function.
21126         (perform_intra_sra): Call sra_modify_function_body to modify the
21127         function body.
21128         (replace_removed_params_ssa_names): Parameter data changed into
21129         adjustments vector.
21130         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
21131         changed the parameter dont_convert to convert with the opposite
21132         meaning.
21133         (sra_ipa_modify_assign): Parameter data changed into adjustments
21134         vector, return value changed to bool.
21135         (ipa_sra_modify_function_body): New function.
21136         (sra_ipa_reset_debug_stmts): Updated a comment.
21137         (modify_function): Use ipa_sra_modify_function_body to modify function
21138         body.
21139
21140 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21141
21142         PR middle-end/43671
21143         * alias.c (true_dependence): Handle the same VALUE in x and mem.
21144         (canon_true_dependence): Likewise.
21145         (write_dependence_p): Likewise.
21146
21147 2010-05-04  Jan Hubicka  <jh@suse.cz>
21148
21149         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21150         * cgraphbuild.c: Include ipa-utils.h
21151         (record_reference_ctx): New struct.
21152         (record_reference): Simplify to work on initializers; not statements.
21153         (mark_address, mark_load, mark_store): New.
21154         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21155         walk PHI nodes too.
21156         (record_references_in_initializer): Update use of record_reference.
21157         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21158         walk PHI nodes too.
21159
21160 2010-05-04  Jan Hubicka  <jh@suse.cz>
21161
21162         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21163         node will be removed anyway.
21164         (lto_varpool_replace_node): Allow also unanalyzed nodes;
21165         relink aliases of node into prevailing node.
21166         * varpool.c (varpool_remove_node): Remove aliases properly;
21167         when removing node, remove all its aliases too; remove DECL_INITIAL
21168         of removed node; ggc_free the varpool node.
21169
21170 2010-05-04  Richard Guenther  <rguenther@suse.de>
21171
21172         PR tree-optimization/43879
21173         * tree-ssa-structalias.c (alias_get_name): Use
21174         DECL_ASSEMBLER_NAME if available.
21175         (create_function_info_for): Return the varinfo node.
21176         (ipa_pta_execute): Associate same-body aliases and extra names
21177         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
21178
21179 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21180
21181         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21182
21183 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
21184
21185         PR bootstrap/43964
21186         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21187         only if HONOR_REG_ALLOC_ORDER is not defined.
21188
21189 2010-05-04  Richard Guenther  <rguenther@suse.de>
21190
21191         PR tree-optimization/43949
21192         * tree-vrp.c (extract_range_from_binary_expr): Only handle
21193         TRUNC_MOD_EXPR.
21194
21195 2010-04-26  Jason Merrill  <jason@redhat.com>
21196
21197         * c.opt (-fstrict-enums): New.
21198         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21199
21200 2010-05-03  David Ung  <davidu@mips.com>
21201             James E. Wilson  <wilson@codesourcery.com>
21202
21203         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21204         emit the trap instruction before the divide for TUNE_74K.
21205
21206 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
21207
21208         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21209         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21210         based on the above, for new target hook.
21211
21212         * hooks.c (hook_bool_mode_true): New generic hook.
21213         * hooks.h (hook_bool_mode_true): Add prototype.
21214
21215         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21216         target hook.
21217         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21218         target hook, set to hook_bool_mode_false.
21219         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21220         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21221         with targetm.small_register_classes_for_mode_p.
21222         (find_reusable_reload): Likewise.
21223         (combine_reloads): Likewise.
21224         * reload1.c (reload_as_needed): Likewise.
21225         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21226         * ifcvt.c (noce_process_if_block, check_cond_move_block,
21227         dead_or_predicable): Likewise.
21228         * regmove.c (optimize_reg_copy_1): Likewise.
21229         * calls.c (prepare_call_address): Likewise.
21230         (precompute_register_parameters): Likewise.
21231
21232         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21233         hook definition.
21234         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21235         implementation of the hook that considers all register classes
21236         small except for SH64.
21237         (sh_override_options): Use the new hook.
21238         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21239         Add prototype.
21240
21241         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21242         hook definition.
21243         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21244         implementation of the hook that considers all register classes
21245         small for THUMB1.
21246         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21247         Add prototype.
21248
21249         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21250         hook definition.
21251         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21252         implementation of the hook that considers all register classes
21253         small for MIPS16.
21254         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21255         Add prototype.
21256
21257         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21258         hook definition.
21259         * config/m32c/m32c.h: Likewise.
21260         * config/pdp11/pdp11.h: Likewise.
21261         * config/avr/avr.h: Likewise.
21262         * config/xtensa/xtensa.h: Likewise.
21263         * config/m68hc11/m68hc11.h: Likewise.
21264         * config/mn10300/mn10300.h: Likewise.
21265         * config/mcore/mcore.h: Likewise.
21266         * config/h8300/h8300.h: Likewise.
21267         * config/bfin/bfin.h: Likewise.
21268
21269         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21270         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21271
21272 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
21273
21274         * double-int.h (tree_to_double_int): Remove macro.
21275         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21276         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21277         (tree_to_double_int): New function.
21278         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21279         Move ...
21280         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21281
21282 2010-05-03  Richard Guenther  <rguenther@suse.de>
21283
21284         PR tree-optimization/43971
21285         * tree-ssa-structalias.c (get_constraint_for_1): Fix
21286         constraints in the !flag_delete_null_pointer_checks case.
21287
21288 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
21289
21290         PR debug/43972
21291         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21292         result mode matches original rtl mode.
21293
21294 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
21295
21296         PR target/43888
21297         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21298
21299 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21300
21301         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21302         when processing flag options.
21303
21304 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21305
21306         * gcov-iov.c (main): Change format string placeholder
21307         from %#08x to 0x%08x.
21308         * genchecksum.c (dosum): Change format string placeholder
21309         from %#02x to 0x%02x.
21310
21311 2010-05-02  Richard Guenther  <rguenther@suse.de>
21312
21313         PR tree-optimization/43879
21314         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21315
21316 2010-05-02  Bruno Haible  <bruno@clisp.org>
21317
21318         * doc/extend.texi (Function Attributes): Fix a typo.
21319
21320 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21321
21322         Revert:
21323         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21324         placeholder from 0x%x to %#x.
21325         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21326         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21327         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21328         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21329         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21330         * config/i386/i386.c (ix86_target_string): Ditto.
21331         * config/i386/i386.c (output_pic_addr_const): Ditto.
21332         (print_operand): Ditto.
21333
21334 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21335
21336         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21337         placeholder from 0x%x to %#x.
21338         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21339         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21340         (ASM_OUTPUT_DEBUG_DATA): Ditto.
21341         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21342         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21343         * optc-gen.awk: Ditto.
21344         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21345         (HOST_WIDE_INT_PRINT_HEX): Ditto.
21346         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21347         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21348
21349 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21350
21351         * target.h (struct calls): Add function_value_regno_p field.
21352         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21353         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21354         * targhooks.c (default_function_value_regno_p): New function.
21355         * targhooks.h (default_function_value_regno_p): Declare function.
21356         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21357         * builtins.c. (apply_result_size): (Ditto.).
21358         * combine.c. (likely_spilled_retval_p): (Ditto.).
21359         * mode-switching.c. Include 'target.h'.
21360         (create_pre_exit): Use function_value_regno_p hook.
21361         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21362         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21363         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21364
21365         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21366         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21367         (ix86_function_value_regno_p): Declare as static, change argument
21368         type to const unsigned int.
21369         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21370
21371 2010-05-01  Richard Guenther  <rguenther@suse.de>
21372
21373         PR tree-optimization/43949
21374         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21375         types.
21376         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21377
21378 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21379
21380         * rtl.h (CONST_DOUBLE_P): Define.
21381         (rtx_to_double_int): Declare.
21382         * emit-rtl.c (rtx_to_double_int): New function.
21383         * dwarf2out.c (insert_double): New function.
21384         (loc_descriptor, add_const_value_attribute): Clean up, use
21385         rtx_to_double_int and insert_double functions.
21386
21387 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
21388
21389         * doc/extend.texi (Inline): Add missing return keyword to examples.
21390         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21391         "command-line".
21392
21393 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21394
21395         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21396         the variable part of the offset as well.  Use highest_pow2_factor for
21397         all alignment checks.
21398
21399 2010-04-30  Richard Guenther  <rguenther@suse.de>
21400
21401         PR tree-optimization/43879
21402         * tree-ssa-structalias.c (type_could_have_pointers): Functions
21403         can have pointers.
21404
21405 2010-04-30  Jan Hubicka  <jh@suse.cz>
21406
21407         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21408         varpool.
21409         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21410
21411 2010-04-30  Jan Hubicka  <jh@suse.cz>
21412
21413         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21414         New.
21415         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21416         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21417         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21418         cgraph_node_set_needs_ltrans_p): Remove.
21419
21420 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21421
21422         * sdbout.c: Include vec.h, do not include varray.h.
21423         (deferred_global_decls, sdbout_global_decl,
21424         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21425         * toplev.c: Do not include varray.h.
21426         (dump_memory_report): Do not dump VARRAY statistics.
21427         * gengtype.c (open_base_file): Ignore varray.h.
21428         * Makefile.in: Update for abovementioned changes.
21429         Remove all traces of varray.c and varray.h.
21430         * varray.c: Remove file.
21431         * varray.h: Remove file.
21432
21433 2010-04-30  Jan Hubicka  <jh@suse.cz>
21434
21435         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21436         references.
21437
21438 2010-04-30  Jan Hubicka  <jh@suse.cz>
21439
21440         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21441         needed.
21442
21443 2010-04-30  Richard Guenther  <rguenther@suse.de>
21444
21445         * tree-ssa-structalias.c (get_constraint_for_1): Generate
21446         constraints for CONSTRUCTOR.
21447
21448 2010-04-30  Richard Guenther  <rguenther@suse.de>
21449
21450         PR lto/43946
21451         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21452         first after all lowering passes.
21453
21454 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21455
21456         * toplev.c: Include varray.h for statistics dumping.
21457         * tree.h: Do not declare varray_head_tag.
21458         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21459         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21460         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21461         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21462         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21463         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21464         c-common.c, c-common.h, reg-stack.c, basic-block.h,
21465         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21466         include varray.h.
21467         * Makefile.in: Update for abovementioned changes.
21468
21469 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
21470
21471         PR debug/43942
21472         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21473
21474 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
21475
21476         * config/picochip/picochip.c (picochip_legitimize_address): Define.
21477         Use this function to do machine-specific conversion.
21478         (picochip_legitimize_reload_address): Likewise.
21479         (picochip_legitimate_address_p): Check valid base register only if
21480         strict.
21481         (picochip_check_conditional_copy): Check for modw only if opnd is
21482         register.
21483         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21484         to call the function in c.
21485         * config/picochip/picochip-protos.h
21486         (picochip_legitimize_reload_address): Define.
21487         * config/picochip/picochip.md (supported_compare1): Define.
21488
21489 2010-04-30  Jan Hubicka  <jh@suse.cz>
21490
21491         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21492         (cgraph_global_info): Remove inlined.
21493         (LTO_cgraph_tag_names): Remove.
21494         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21495         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21496         simplify cgraph tags and document.
21497         (lto_output_node): Use only LTO_cgraph_unavail_node and
21498         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21499         for_functions_valid, global info, process and output flags.
21500         (input_overwrite_node): Initialize estimated stack size and
21501         estimated growth.  Do not read flags we no longer store.
21502         (input_node): Likewise do not read info no longer stored.
21503         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21504         flag.
21505
21506 2010-04-30  Richard Guenther  <rguenther@suse.de>
21507
21508         PR tree-optimization/43879
21509         * tree-ssa-structalias.c (get_constraint_for_1): Properly
21510         handle non-zero initializers.
21511
21512 2010-04-30  Richard Guenther  <rguenther@suse.de>
21513
21514         * builtins.c (fold_builtin_1): Delete free (0).
21515
21516 2010-04-29  Jan Hubicka  <jh@suse.cz>
21517
21518         * gengtype.c (open_base_files): Add lto-streamer.h
21519         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21520         (pass_ipa_cp): GGC collect.
21521         * toplev. (compile_file): Do not output symbols.
21522         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21523         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21524         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21525         * lto-section-in.c: Include ggc.h
21526         (lto_new_in_decl_state): Alloc in GGC.
21527         (lto_delete_in_decl_state): Likewise.
21528         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21529         Collect.
21530
21531 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21532
21533         PR target/42895
21534         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21535         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21536         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21537         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21538         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21539         account only if HONOR_REG_ALLOC_ORDER is not defined.
21540         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21541         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21542
21543 2010-04-29  Jon Grant  <04@jguk.org>
21544
21545         * collect2.c (vflag): Change type from int to bool.
21546         (debug): Likewise.
21547         (helpflag): New global bool.
21548         (main): Set vflag and debug with boolean, not integer truth values.
21549         Accept new "--help" option and output usage text if found.
21550         * collect2.h (vflag): Update prototype.
21551         (debug): Likewise.
21552
21553 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21554
21555         PR bootstrap/43936
21556         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21557
21558 2010-04-29  Richard Guenther  <rguenther@suse.de>
21559
21560         PR bootstrap/43935
21561         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21562         with ATTRIBUTE_UNUSED.
21563
21564 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21565
21566         PR target/43921
21567         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21568         INSN_P with NONDEBUG_INSN_P.
21569         (distance_non_agu_define): Likewise.
21570         (distance_agu_use): Likewise.
21571
21572 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21573
21574         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21575         PR bootstrap/43858
21576         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21577         test_set.
21578
21579 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21580
21581         * plugin.h (invoke_plugin_callbacks): New inline function.
21582         * plugin.c (flag_plugin_added): New global flag.
21583         (add_new_plugin): Initialize above flag.
21584         (invoke_plugin_callbacks): Rename to ...
21585         (invoke_plugin_callbacks_full): ... this.
21586
21587 2010-04-28  Jan Hubicka  <jh@suse.cz>
21588
21589         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21590         (lto_varpool_replace_node): New.
21591         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21592         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21593         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21594         * cgraph.h (varpool_node_ptr): New type.
21595         (varpool_node_ptr): New vector.
21596         (varpool_node_set_def): New structure.
21597         (varpool_node_set): New type.
21598         (varpool_node_set): New vector.
21599         (varpool_node_set_element_def): New structure.
21600         (varpool_node_set_element, const_varpool_node_set_element): New types.
21601         (varpool_node_set_iterator): New type.
21602         (varpool_node): Add prev pointers, add used_from_other_partition,
21603         in_other_partition.
21604         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21605         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21606         varpool_get_node, varpool_remove_node): Declare.
21607         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21608         varpool_node_set_size): New inlines.
21609         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21610         * tree-pass.h (varpool_node_set_def): Forward declare.
21611         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21612         (ipa_write_optimization_summaries): Update prototype.
21613         * ipa-cp.c (ipcp_write_summary): Update.
21614         * ipa-reference.c (ipa_reference_write_summary): Update.
21615         * lto-cgraph.c (lto_output_varpool_node): New static function.
21616         (output_varpool): New function.
21617         (input_varpool_node): New static function.
21618         (input_varpool_1): New function.
21619         (input_cgraph): Input varpool.
21620         * ipa-pure-const.c (pure_const_write_summary): Update.
21621         * lto-streamer-out.c (lto_output): Update, output varpool too.
21622         (write_global_stream): Kill WPA hack.
21623         (produce_asm_for_decls): Update.
21624         (output_alias_pair_p): Handle variables.
21625         (output_unreferenced_globals): Output only needed partition of varpool.
21626         * ipa-inline.c (inline_write_summary): Update.
21627         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21628         cgraph.
21629         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21630         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21631         varpool_node_set_new, varpool_node_set_add,
21632         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21633         debug_varpool_node_set): New functions.
21634         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21635         (execute_one_pass): Process new decls too.
21636         (ipa_write_summaries_2): Pass around vsets.
21637         (ipa_write_summaries_1): Likewise.
21638         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21639         to add.
21640         (ipa_write_optimization_summaries_1): Pass around vsets.
21641         (ipa_write_optimization_summaries): Likewise.
21642         * varpool.c (varpool_get_node): New.
21643         (varpool_node): Update doubly linked lists.
21644         (varpool_remove_node): New.
21645         (dump_varpool_node): More dumping.
21646         (varpool_enqueue_needed_node): Update doubly linked lists.
21647         (decide_is_variable_needed): Kill ltrans hack.
21648         (varpool_finalize_decl): Kill lto hack.
21649         (varpool_assemble_decl): Skip decls in other partitions.
21650         (varpool_assemble_pending_decls): Update doubly linkes lists.
21651         (varpool_empty_needed_queue): Likewise.
21652         (varpool_extra_name_alias): Likewise.
21653         * lto-streamer.c (lto_get_section_name): Add vars section.
21654         * lto-streamer.h (lto_section_type): Update.
21655         (output_varpool, input_varpool): Declare.
21656
21657 2010-04-28  Mike Stump  <mikestump@comcast.net>
21658
21659         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21660
21661 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21662
21663         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21664         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21665         (lto_input_ts_type_tree_pointers): Likewise.
21666         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21667         (lto_output_ts_type_tree_pointers): Likewise.
21668
21669 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21670
21671         Uniquization of constants at the Tree level
21672         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21673         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21674         bit to the end.
21675         (tree_output_constant_def): Declare.
21676         * gimplify.c (gimplify_init_constructor): When using block copy, first
21677         uniquize the constant constructor on the RHS.
21678         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21679         DECL_IN_CONSTANT_POOL flag.
21680         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21681         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21682         constant pool.
21683         (assemble_variable): Deal with symbols belonging to the tree constant
21684         pool.
21685         (get_constant_section): Add ALIGN parameter and simplify.
21686         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21687         (assemble_constant_contents): Use the expression of the VAR_DECL.
21688         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21689         (tree_output_constant_def): New global function.
21690         (mark_constant): Use the expression of the VAR_DECL.
21691         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21692         its expression.
21693         (output_object_block): Likewise and assemble the expression.
21694
21695 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21696
21697         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21698         hash_tree, eq_tree): New tree hash table.
21699         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21700         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21701         lto_orig_address_remove): Reimplement.
21702
21703 2010-04-28  Xinliang David Li  <davidxl@google.com>
21704
21705         PR c/42643
21706         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21707         (compute_uninit_opnds_pos): New function.
21708         (is_non_loop_exit_postdominating): New function.
21709         (compute_control_dep_chain): New function.
21710         (find_pdom): New function.
21711         (convert_control_dep_chain_into_preds): New function.
21712         (find_predicates): New function.
21713         (find_control_equiv_block): New function.
21714         (collect_phi_def_edges): New function.
21715         (find_def_preds): New function.
21716         (find_dom): New function.
21717         (dump_predicates): New function.
21718         (get_cmp_code): New function.
21719         (is_value_included_in): New function.
21720         (find_matching_predicate_in_rest_chains): New function.
21721         (use_pred_not_overlap_with_undef_path_pred): New function.
21722         (is_use_properly_guarded): New function.
21723         (normalize_cond_1): New function.
21724         (is_and_or_or): New function.
21725         (normalize_cond): New function.
21726         (is_gcond_subset_of): New function.
21727         (is_subset_of_any): New function.
21728         (is_or_set_subset_of): New function.
21729         (is_and_set_subset_of): New function.
21730         (is_norm_cond_subset_of): New function.
21731         (is_pred_expr_subset_of): New function.
21732         (is_pred_chain_subset_of): New function.
21733         (is_included_in): New function.
21734         (is_superset_of): New function.
21735         (find_uninit_use): New function.
21736         (warn_uninitialized_phi): New function.
21737         (compute_possibly_undefined_names): New function.
21738         (ssa_undefined_value_p): New function.
21739         (execute_late_warn_uninitialized): New function.
21740         * tree-ssa.c (ssa_undefined_value_p): Removed.
21741         (warn_uninit): Changed to extern.
21742         (warn_uninitialized_phi): Removed.
21743         (warn_uninitialized_vars): Changed to extern.
21744         (execute_late_warn_uninitialized): Removed
21745         * tree-flow.h: Add new prototypes.
21746         * timevar.def: Add new time variable.
21747         * Makefile.in: Add new build file.
21748
21749 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
21750
21751         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21752         type if available.
21753
21754 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21755
21756         PR target/22224
21757         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21758
21759 2010-04-28  Martin Jambor  <mjambor@suse.cz>
21760
21761         * cgraph.h (struct cgraph_node): New field indirect_calls.
21762         (struct cgraph_indirect_call_info): New type.
21763         (struct cgraph_edge): Removed field indirect_call. New fields
21764         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21765         (cgraph_create_indirect_edge): Declare.
21766         (cgraph_make_edge_direct): Likewise.
21767         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21768         * ipa-prop.h (struct ipa_param_call_note): Removed.
21769         (struct ipa_node_params): Removed field param_calls.
21770         (ipa_create_all_structures_for_iinln): Declare.
21771         * cgraph.c: Described indirect edges and uids in initial comment.
21772         (cgraph_add_edge_to_call_site_hash): New function.
21773         (cgraph_edge): Search also among the indirect edges, use
21774         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21775         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21776         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21777         site hash.
21778         (initialize_inline_failed): Assign a reason to indirect edges.
21779         (cgraph_create_edge_1): New function.
21780         (cgraph_create_edge): Moved some functionality to
21781         cgraph_create_edge_1.
21782         (cgraph_create_indirect_edge): New function.
21783         (cgraph_edge_remove_callee): Add an assert checking for
21784         non-indirectness.
21785         (cgraph_edge_remove_caller): Special-case indirect edges.
21786         (cgraph_remove_edge): Likewise.
21787         (cgraph_set_edge_callee): New function.
21788         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21789         (cgraph_make_edge_direct): New function.
21790         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21791         the declaration of the call statement matches.
21792         (cgraph_node_remove_callees): Special-case indirect edges.
21793         (cgraph_clone_edge): Likewise.
21794         (cgraph_clone_node): Clone also the indirect edges.
21795         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21796         indirect_call, dump count of indirect_calls edges.
21797         * ipa-prop.c (iinlining_processed_edges): New variable.
21798         (ipa_note_param_call): Create indirect edges instead of
21799         creating notes.  New parameter node.
21800         (ipa_analyze_call_uses): New parameter node, pass it on to
21801         ipa_note_param_call.
21802         (ipa_analyze_stmt_uses): Likewise.
21803         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21804         (print_edge_addition_message): Work on edges rather than on notes.
21805         (update_call_notes_after_inlining): Likewise, renamed to
21806         update_indirect_edges_after_inlining.
21807         (ipa_create_all_structures_for_iinln): New function.
21808         (ipa_free_node_params_substructures): Do not free notes.
21809         (ipa_edge_duplication_hook): Propagate bits within
21810         iinlining_processed_edges bitmap.
21811         (ipa_node_duplication_hook): Do not duplicate notes.
21812         (free_all_ipa_structures_after_ipa_cp): Renamed to
21813         ipa_free_all_structures_after_ipa_cp.
21814         (free_all_ipa_structures_after_iinln): Renamed to
21815         ipa_free_all_structures_after_iinln.
21816         (ipa_write_param_call_note): Removed.
21817         (ipa_read_param_call_note): Removed.
21818         (ipa_write_indirect_edge_info): New function.
21819         (ipa_read_indirect_edge_info): Likewise.
21820         (ipa_write_node_info): Do not stream notes, do stream information
21821         in indirect edges.
21822         (ipa_read_node_info): Likewise.
21823         (lto_ipa_fixup_call_notes): Removed.
21824         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21825         * ipa-inline.c (pass_ipa_inline): Likewise.
21826         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21827         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21828         * tree-inline.c (copy_bb): Removed an unnecessary double check for
21829         is_gimple_call.
21830         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21831         edges.
21832         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21833         (output_cgraph): Stream also indirect edges.
21834         (lto_output_edge): Added capability to stream indirect edges.
21835         (input_edge): Likewise.
21836         (input_cgraph_1): Likewise.
21837         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21838         of indirect edges.
21839
21840 2010-04-28  Richard Guenther  <rguenther@suse.de>
21841
21842         PR tree-optimization/43879
21843         PR tree-optimization/43909
21844         * tree-ssa-structalias.c (struct variable_info): Add
21845         only_restrict_pointers flag.
21846         (new_var_info): Initialize it.  Increment stats.total_vars here.
21847         (create_function_info_for): Do not increment stats.total_vars here.
21848         (get_function_part_constraint): Fix build with C++.
21849         (insert_into_field_list): Remove.
21850         (push_fields_onto_fieldstack): Properly merge fields.
21851         (create_variable_info_for): Split and simplify.
21852         (create_variable_info_for_1): New piece.
21853         (intra_create_variable_infos): Properly make restrict constraints
21854         from parameters.
21855
21856 2010-04-28  Richard Guenther  <rguenther@suse.de>
21857
21858         PR c++/43880
21859         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
21860
21861 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21862             Jan Hubicka  <hubicka@ucw.cz>
21863
21864         * doc/invoke.texi (-Wsuggest-attribute=const,
21865         -Wsuggest-attribute=pure): Document.
21866         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
21867         (function_always_visible_to_compiler_p,
21868         suggest_attribute, warn_function_pure, warn_function_const):
21869         New functions.
21870         (check_call): Improve debug info.
21871         (analyze_function): Do not check availability.
21872         (add_new_function): Check availability.
21873         (propagate): Output warnings.
21874         (skip_function_for_local_pure_const): New function.
21875         (local_pure_const): Use it; output warnings.
21876         * common.opt (Wsuggest-attribute=const,
21877         Wsuggest-attribute=pure): New.
21878
21879 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21880
21881         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
21882         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
21883         or DW_CFA_def_cfa_offset{,_sf}.
21884
21885 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21886
21887         * tree.h: Fix truncated long macros.
21888
21889 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
21890
21891         * collect2.c (TARGET_64BIT): Redefine to target's default.
21892         * tlink.c: Likewise.
21893         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
21894         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
21895         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
21896         for underscoring __USER_LABEL_PREFIX__.
21897         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
21898         (SUB_LINK_ENTRY32): New.
21899         (SUB_LINK_ENTRY64): New.
21900         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
21901         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
21902         (SUB_LINK_ENTRY64): New.
21903         (SUB_LINK_ENTRY): New.
21904         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
21905         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
21906         x64 target is choosen.
21907         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
21908         * configure: Regenerated.
21909         * configure.ac (leading-mingw64-underscores): Option added.
21910
21911 2010-04-27  Jan Hubicka  <jh@suse.cz>
21912
21913         * doc/invoke.texi (-fipa-profile): Document.
21914         * opts.c (decode_options): Enable ipa-profile at -O1.
21915         * timevar.def (TV_IPA_PROFILE): Define.
21916         * common.opt (fipa-profile): Add.
21917         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
21918         flag for clones.
21919         (cgraph_propagate_frequency): Handle only local ones.
21920         * tree-pass.h (pass_ipa_profile): Declare.
21921         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
21922         (pass_ipa_profile): Use TV_IPA_PROFILE.
21923         * ipa.c (ipa_profile): New function.
21924         (gate_ipa_profile): Likewise.
21925         (pass_ipa_profile): New global variable.
21926         * passes.c (pass_ipa_profile): New.
21927
21928 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
21929
21930         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
21931
21932 2010-04-27  Martin Jambor  <mjambor@suse.cz>
21933
21934         PR middle-end/43812
21935         * ipa.c (dissolve_same_comdat_group_list): New function.
21936         (function_and_variable_visibility): Call
21937         dissolve_same_comdat_group_list when comdat group contains external or
21938         newly local nodes.
21939         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
21940         lists are circular and that they contain only DECL_ONE_ONLY nodes.
21941
21942 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21943
21944         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
21945         (const_hash_1) <VECTOR_CST>: New case.
21946         (compare_constant) <VECTOR_CST>: Likewise.
21947         <ADDR_EXPR>: Deal with LABEL_REFs.
21948         (copy_constant) <VECTOR_CST>: New case.
21949
21950 2010-04-27  Jan Hubicka  <jh@suse.cz>
21951
21952         * cgraph.c (cgraph_propagate_frequency): New function.
21953         * cgraph.h (cgraph_propagate_frequency): Declare.
21954         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
21955         cgraph_propagate_frequency.
21956
21957 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21958
21959         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
21960
21961 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
21962
21963         PR target/40657
21964         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
21965         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
21966         here to determine which regs to push and how much stack to reserve.
21967
21968 2010-04-27  Jie Zhang  <jie@codesourcery.com>
21969
21970         * doc/gimple.texi (gimple_statement_with_ops): Remove
21971         addresses_taken field.
21972         (gimple_statement_with_memory_ops): Likewise.
21973
21974 2010-04-27  Jan Hubicka  <jh@suse.cz>
21975
21976         * tree-inline.c (eni_inlining_weights): Remove.
21977         (estimate_num_insns): Special case more builtins.
21978
21979 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
21980
21981         PR c/32207
21982         * c-typeck.c (build_binary_op): Move forward check for comparison
21983         pointer with null pointer constant and adjust the diagnostic message.
21984
21985 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
21986
21987         PR lto/42776
21988         * configure.ac (gcc_cv_as_section_has_align): Set if installed
21989         binutils supports extended .section directive needed by LTO, or
21990         warn if older binutils found.
21991         (LTO_BINARY_READER): New AC_SUBST'd variable.
21992         (LTO_USE_LIBELF): Likewise.
21993         * config.gcc (lto_binary_reader): New target-specific configure
21994         variable.
21995         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
21996         (LTO_USE_LIBELF): Likewise.
21997         * configure: Regenerate.
21998
21999         * collect2.c (is_elf): Rename from this ...
22000         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
22001          object files in addition to ELF-formatted ones.
22002         (scan_prog_file): Caller updated.  Also allow for LTO info marker
22003         symbol to be prefixed or not by an extra underscore.
22004
22005         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
22006         * config/i386/winnt.c: Also #include lto-streamer.h
22007         (i386_pe_asm_named_section): Specify 1-byte section alignment for
22008         LTO named sections.
22009         (i386_pe_asm_output_aligned_decl_common): Add comment.
22010         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
22011
22012 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
22013
22014         PR target/43889
22015         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
22016         Add missing earlyclobber for second alternative.
22017
22018 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
22019
22020         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
22021         bits for artificial defs at the top of the block.
22022         * fwprop.c (single_def_use_enter_block): Don't call it.
22023
22024 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
22025
22026         PR 43715
22027         * configure.ac: Use "$gcc_cv_nm -g" on darwin
22028         instead of "$gcc_cv_objdump -T".
22029         Use "-undefined dynamic_lookup" on darwin.
22030         * configure: Regenerate.
22031
22032 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
22033
22034         PR c/43893
22035         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
22036
22037 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22038
22039         * c-parser.c (struct c_token): Move location field up.
22040         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
22041         (struct c_declspecs): Convert typespec_word, storage_class, and
22042         default_int_p into bitfields.
22043         (struct c_declarator): Move loc field up.
22044
22045 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22046
22047         * cfgloop.h (struct loop): Move can_be_parallel field up.
22048         * ipa-prop.h (struct ip_node_params): Move bitfields up.
22049         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
22050         down.
22051         (struct iv_cand): Convert pos field into a bitfield.
22052         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
22053         field up.
22054         (struct _stmt_vec_info): Shuffle fields for better packing.
22055
22056 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22057
22058         * varasm.c (IN_NAMED_SECTION): Remove guard.
22059         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
22060         (IN_NAMED_SECTION_P): ...this.
22061         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
22062         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
22063
22064 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22065
22066         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
22067         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
22068         of shadowing it.  Fix comments.
22069
22070 2010-04-26  Jan Hubicka  <jh@suse.cz>
22071
22072         * cgraph.c (cgraph_create_node): Set node frequency to normal.
22073         (cgraph_clone_node): Copy function frequency.
22074         * cgraph.h (node_frequency): New enum
22075         (struct cgraph_node): Add.
22076         * final.c (rest_of_clean_state): Update.
22077         * lto-cgraph.c (lto_output_node): Output node frequency.
22078         (input_overwrite_node): Input node frequency.
22079         * tre-ssa-loop-ivopts (computation_cost): Update.
22080         * lto-streamer-out.c (output_function): Do not output function
22081         frequency.
22082         * predict.c (maybe_hot_frequency_p): Update and handle functions
22083         executed once.
22084         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
22085         attribute lookup.
22086         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
22087         (compute_function_frequency): Set noreturn functions to be executed
22088         once.
22089         (choose_function_section): Update.
22090         * lto-streamer-in.c (input_function): Do not input function frequency.
22091         * function.c (allocate_struct_function): Do not initialize function
22092         frequency.
22093         * function.h (function_frequency): Remove.
22094         (struct function): Remove function frequency.
22095         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
22096         (try_update): Update.
22097         * tree-inline.c (initialize_cfun): Do not update function frequency.
22098         * passes.c (pass_init_dump_file): Update.
22099         * i386.c (ix86_compute_frame_layout): Update.
22100         (ix86_pad_returns): Update.
22101
22102 2010-04-26  Jie Zhang  <jie@codesourcery.com>
22103
22104         PR tree-optimization/43833
22105         * tree-vrp.c (range_int_cst_p): New.
22106         (range_int_cst_singleton_p): New.
22107         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
22108         when both operands are constants.  Use range_int_cst_p in
22109         BIT_IOR_EXPR case.
22110
22111 2010-04-26  Jan Hubicka  <jh@suse.cz>
22112
22113         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
22114
22115 2010-04-26  Richard Guenther  <rguenther@suse.de>
22116
22117         PR lto/43080
22118         * gimple.c (gimple_decl_printable_name): Deal gracefully
22119         with a NULL DECL_NAME.
22120
22121 2010-04-26  Richard Guenther  <rguenther@suse.de>
22122
22123         PR lto/42425
22124         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
22125         if emitting debug information and it is either a function
22126         or a namespace decl.
22127
22128 2010-04-26  Ira Rosen  <irar@il.ibm.com>
22129
22130         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
22131         determine if the statement is vectorizable, and a macro to access it.
22132         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22133         Skip statements that can't be vectorized. If the analysis fails,
22134         mark the statement as unvectorizable if vectorizing basic block.
22135         (vect_compute_data_refs_alignment): Likewise.
22136         (vect_verify_datarefs_alignment): Skip statements marked as
22137         unvectorizable. Add print.
22138         (vect_analyze_group_access): Skip statements that can't be
22139         vectorized. If the analysis fails, mark the statement as
22140         unvectorizable if vectorizing basic block.
22141         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22142         * tree-vect-stmts.c (vectorizable_store): Fix the number of
22143         generated stmts for SLP.
22144         (new_stmt_vec_info): Initialize the new field.
22145         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22146         statements marked as unvectorizable.
22147
22148 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
22149
22150         * c-common.c (flag_isoc1x): New.
22151         (flag_isoc99): Update comment.
22152         * c-common.h (flag_isoc1x): New.
22153         (flag_isoc99): Update comment.
22154         * c-cppbuiltin.c (builtin_define_float_constants): Also define
22155         __<type>_DECIMAL_DIG__.
22156         * c-opts.c (set_std_c1x): New.
22157         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22158         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22159         * c.opt (-std=c1x, -std=gnu1x): New options.
22160         * doc/cpp.texi: Mention -std=c1x.
22161         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22162         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22163         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22164         * doc/standards.texi: Mention C1X.
22165         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22166         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22167         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22168         Define for C1X.
22169
22170 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
22171
22172         * config/i386/gmon-sol2.c (_mcleanup): Change format string
22173         placeholder from 0x%x to %#x.
22174         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22175         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22176         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22177         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22178         * config/i386/i386.c (ix86_target_string): Ditto.
22179         (output_pic_addr_const): Ditto.
22180         (print_operand): Ditto.
22181
22182 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
22183
22184         * combine.c (find_split_point): Add third argument.  Use it
22185         to find nested multiply-accumulate instructions.  Adjust calls.
22186         (try_combine): Adjust call to find_split_point.
22187
22188 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
22189
22190         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22191
22192 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
22193
22194         PR tree-optimization/41442
22195         * fold-const.c (merge_truthop_with_opposite_arm): New function.
22196         (fold_binary_loc): Call it.
22197
22198 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22199
22200         * toplev.c (general_init): Set default for fdiagnostics-show-option.
22201         * opts.c (common_handle_option): Allow disabling it.
22202         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22203
22204 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22205
22206         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22207         between modes if both types are integral.
22208
22209 2010-04-23  Richard Guenther  <rguenther@suse.de>
22210
22211         PR tree-optimization/43572
22212         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22213
22214 2010-04-23  Richard Guenther  <rguenther@suse.de>
22215
22216         PR lto/43455
22217         * tree-inline.c (tree_can_inline_p): Also check compatibility
22218         of return types.
22219
22220 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22221
22222         PR tree-optimization/43846
22223         * tree-sra.c (struct access): New flag grp_assignment_read.
22224         (build_accesses_from_assign): Set grp_assignment_read.
22225         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22226         (enum mark_read_status): New type.
22227         (analyze_access_subtree): Propagate grp_assignment_read, create
22228         accesses also if both direct_read and root->grp_assignment_read.
22229
22230 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22231
22232         PR middle-end/43835
22233         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22234         function does not have type attributes.
22235
22236 2010-04-23  Richard Guenther  <rguenther@suse.de>
22237
22238         PR lto/42653
22239         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22240         of FUNCTION_DECLs.
22241
22242 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22243
22244         * sese.h (create_if_region_on_edge): Remove.
22245
22246         * sese.c (create_if_region_on_edge): Make static.
22247
22248         * tree-inline.c: Do not include ggc.h.
22249
22250         * expr.c: Do not include ggc.h.
22251
22252         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22253         dependencies.
22254
22255 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
22256
22257         PR target/43744
22258         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22259         in the middle of insns for casesi_worker_2.
22260
22261 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
22262
22263         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22264
22265 2010-04-22  Ira Rosen  <irar@il.ibm.com>
22266
22267         PR tree-optimization/43842
22268         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22269         loop unrolling in update of exit phis. Fix comment.
22270         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22271         least two reduction statements in the loop before starting SLP
22272         analysis.
22273
22274 2010-04-22  Nick Clifton  <nickc@redhat.com>
22275
22276         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22277
22278 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
22279
22280         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22281         to simplify a + ~a.
22282
22283 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22284
22285         * tree-parloops.c (loop_parallel_p): New argument
22286         parloop_obstack.  Pass it down.
22287         (parallelize_loops): New variable parloop_obstack.  Initialize it,
22288         pass it down, free it.
22289
22290         * tree-loop-linear.c (linear_transform_loops): Pass down
22291         lambda_obstack.
22292
22293         * tree-data-ref.h (lambda_compute_access_matrices): New argument
22294         of type struct obstack *.
22295
22296         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22297         scratch_obstack.  Initialize it, pass down, free it.
22298
22299         * lambda.h (lambda_loop_new): Remove.
22300         (lambda_matrix_new, lambda_matrix_inverse)
22301         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22302         argument of type struct obstack *.
22303
22304         * lambda-trans.c (lambda_trans_matrix_new): New argument
22305         lambda_obstack.  Pass it down, use obstack allocation for ret.
22306         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
22307         it down.
22308
22309         * lambda-mat.c (lambda_matrix_get_column)
22310         (lambda_matrix_project_to_null): Remove.
22311         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
22312         allocation for mat.
22313         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22314         lambda_obstack.
22315
22316         * lambda-code.c (lambda_loop_new): New function.
22317         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22318         (lambda_compute_auxillary_space, lambda_compute_target_space)
22319         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22320         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22321         (build_access_matrix): New argument lambda_obstack.  Use obstack
22322         allocation for am.
22323         (lambda_compute_step_signs, lambda_compute_access_matrices): New
22324         argument lambda_obstack.  Pass it down.
22325
22326 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22327
22328         * optabs.h (expand_widening_mult): Declare.
22329
22330 2010-04-22  Richard Guenther  <rguenther@suse.de>
22331
22332         PR tree-optimization/43845
22333         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22334         lookup the CALL_EXPR function and arguments.
22335
22336 2010-04-22  Nick Clifton  <nickc@redhat.com>
22337
22338         * config/stormy16/stormy16.c
22339         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22340         * config/stormy16/stormy16.h: Tidy up formatting.
22341         (DONT_USE_BUILTIN_SETJMP): Remove definition.
22342         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22343         (ineqbranchsi): Delete pattern.
22344         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22345         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22346         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22347         stormy16-lib2-ucmpsi2.c.
22348
22349 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22350
22351         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22352         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
22353         extra set merge_set_noclobber, and use it to relax the final test
22354         slightly.
22355         * df.h (df_simulate_find_noclobber_defs): Declare.
22356         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22357         conditional defs.
22358         (df_simulate_find_noclobber_defs): New function.
22359
22360 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
22361
22362         * config/i386/i386.md: Use {} around multi-line preparation statements.
22363
22364 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22365
22366         * c-tree.h (push_init_level, pop_init_level, set_init_index)
22367         (process_init_element): New argument of type struct obstack *.
22368
22369         * c-typeck.c (push_init_level, pop_init_level, set_designator)
22370         (set_init_index, set_init_label, set_nonincremental_init)
22371         (set_nonincremental_init_from_string, find_init_member)
22372         (output_init_element, output_pending_init_elements)
22373         (process_init_element): New argument braced_init_obstack.  Pass it
22374         down.
22375         (push_range_stack, add_pending_init): New argument
22376         braced_init_obstack.  Use obstack allocation.
22377
22378         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22379         braced_init_obstack.  Pass it down.
22380         (c_parser_braced_init): New variables ret, braced_init_obstack.
22381         Initialize obstack, pass it down and finally free it.
22382
22383 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22384
22385         PR middle-end/29274
22386         * tree-pass.h (pass_optimize_widening_mul): Declare.
22387         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22388         gate_optimize_widening_mul): New static functions.
22389         (pass_optimize_widening_mul): New.
22390         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22391         <case MULT_EXPR>: Remove support for widening multiplies.
22392         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22393         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22394         simplify_gen_unary rather than directly building extensions.
22395         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22396         WIDEN_MULT_EXPR.
22397         * expmed.c (expand_widening_mult): New function.
22398         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22399
22400 2010-04-21  Jan Hubicka  <jh@suse.cz>
22401
22402         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22403         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22404         * lto-wpa-fixup.c: Remove.
22405         * Makefile.in (lto-wpa-fixup.o): Remove.
22406         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22407         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22408         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22409
22410 2010-04-21  Jan Hubicka  <jh@suse.cz>
22411
22412         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22413         add write_optimization_summary, read_optimization_summary.
22414         (ipa_write_summaries_of_cgraph_node_set): Remove.
22415         (ipa_write_optimization_summaries): Declare.
22416         (ipa_read_optimization_summaries): Declare.
22417         * ipa-cp.c (pass_ipa_cp): Update.
22418         * ipa-reference.c (pass_ipa_reference): Update.
22419         * ipa-pure-const.c (pass_ipa_pure_const): Update.
22420         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22421         Update.
22422         * ipa-inline.c (pass_ipa_inline): Update.
22423         * ipa.c (pass_ipa_whole_program): Update.
22424         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22425         * passes.c (ipa_write_summaries_1): Do not test wpa.
22426         (ipa_write_optimization_summaries_1): New.
22427         (ipa_write_optimization_summaries): New.
22428         (ipa_read_summaries): Do not test ltrans.
22429         (ipa_read_optimization_summaries_1): New.
22430         (ipa_read_optimization_summaries): New.
22431
22432 2010-04-21  Jan Hubicka  <jh@suse.cz>
22433
22434         * lto-cgraph.c (lto_output_node): Do not output comdat groups
22435         for boundary nodes.
22436         (output_cgraph): Do not arrange comdat groups for boundary nodes.
22437
22438 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22439
22440         PR debug/40040
22441         * dwarf2out.c (add_name_and_src_coords_attributes): Add
22442         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22443
22444 2010-04-21  Jan Hubicka  <jh@suse.cz>
22445
22446         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22447
22448 2010-04-21  Jan Hubicka  <jh@suse.cz>
22449
22450         * varpool.c (decide_is_variable_needed): Variable is always needed
22451         during ltrans.
22452
22453 2010-04-21  Jan Hubicka  <jh@suse.cz>
22454
22455         * opts.c (decode_options): Enable pure-const pass for whopr.
22456
22457 2010-04-21  Jan Hubicka  <jh@suse.cz>
22458
22459         * cgraph.c (dump_cgraph_node): Dump also assembler name.
22460         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22461         at WPA dumping.
22462         (cgraph_decide_inlining): Do not expect callee to be removed in all
22463         cases.
22464
22465 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
22466
22467         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22468
22469 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22470
22471         * config/i386/i386.md (x86_shrd): Add athlon_decode and
22472         amdfam10_decode attributes.
22473
22474 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22475
22476         PR middle-end/43570
22477         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22478         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22479         (lower_copyprivate_clauses): Use private var in outer
22480         context instead of original var.  Make sure the types
22481         are correct for VLAs.
22482
22483 2010-04-21  Richard Guenther  <rguenther@suse.de>
22484
22485         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22486         to non-pointer objects.
22487
22488 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22489
22490         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
22491         last chain entry if it starts with the still current label.
22492         (add_location_or_const_value_attribute): Check that
22493         loc_list->first->next is NULL instead of comparing ->first with ->last.
22494         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22495         to add_var_loc_to_decl.
22496
22497         * dwarf2out.c (output_call_frame_info): For dw_cie_version
22498         >= 4 add also address size and segment size fields into CIE header.
22499
22500         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22501         long as address size is the same as sizeof (void *) and
22502         segment size is 0.
22503         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
22504         address size or segment size is unexpected, return DW_EH_PE_omit.
22505         (classify_object_over_fdes): If get_cie_encoding returned
22506         DW_EH_PE_omit, return -1.
22507         (init_object): If classify_object_over_fdes returned -1,
22508         pretend there were no FDEs at all.
22509
22510 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22511
22512         * config/i386/i386.md (bswap<mode>2): Macroize expander from
22513         bswap{si,di}2 using SWI48 mode iterator.
22514         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22515         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22516         set modrm attribute of bswap insn to 0 and remove length attribute.
22517         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22518         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22519         set mode attribute to <MODE> and remove length attribute.
22520
22521 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22522
22523         PR rtl-optimization/43520
22524         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22525         zero available registers.
22526
22527 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22528
22529         * builtins.c (fold_builtin_cproj): Fold more cases.
22530
22531 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22532
22533         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22534         (fold_builtin_1): Fold builtin cproj.
22535         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22536         Use ATTR_CONST_NOTHROW_LIST.
22537
22538 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22539
22540         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22541         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22542         ffsi2_no_cmove for !TARGET_CMOVE.
22543         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22544         (ffssi2): Remove expander.
22545         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22546         mode iterator.
22547         (ctz<mode>2): Ditto from ctz{si,di}2.
22548         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22549         mode iterator.
22550         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22551         mode iterator.
22552
22553 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22554
22555         * dwarf2out.c (AT_linkage_name): Define.
22556         (clone_as_declaration): Handle DW_AT_linkage_name.
22557         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22558         of DW_AT_MIPS_linkage_name.
22559         (move_linkage_attr): Likewise.
22560         (dwarf2out_finish): Likewise.
22561
22562 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22563
22564         PR middle-end/41952
22565         * fold-const.c (fold_comparison): New folding rule.
22566
22567 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22568
22569         * double-int.h (double_int_setbit): Declare.
22570         * double-int.c (double_int_setbit): New function.
22571         * rtl.h (immed_double_int_const): Declare.
22572         * emit-rtl.c (immed_double_int_const): New function.
22573         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22574         and immed_double_int_const functions.
22575         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22576         expand_copysign_bit): (Ditto.).
22577         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22578         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22579         * dojump.c (prefer_and_bit_test): (Ditto.).
22580         * expr.c (convert_modes, reduce_to_bit_field_precision,
22581         const_vector_from_tree): (Ditto.).
22582         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22583
22584 2010-04-20  Jan Hubicka  <jh@suse.cz>
22585
22586         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22587         (dump_cgraph_node): Dump new flags.
22588         * cgraph.h (struct cgraph_node): Add flags
22589         reachable_from_other_partition and in_other_partition.
22590         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22591         other partition can not be removed.
22592         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22593         the other partition must be output; silence sanity checking on
22594         leaking functions bodies from other paritition.
22595         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22596         (lto_output_node): Output new flags; do not sanity check that inline
22597         clones are output; drop lto_forced_extern_inline_p code; do not mock
22598         visibility flags at partition boundaries.
22599         (add_node_to): New function.
22600         (output_cgraph): Use it to sort functions so masters appear before
22601         clones.
22602         (input_overwrite_node): Input new flags.
22603         * passes.c (ipa_write_summaries): Do not call
22604         lto_new_extern_inline_states.
22605         * lto-section-out.c (forced_extern_inline,
22606         lto_new_extern_inline_states lto_delete_extern_inline_states,
22607         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22608         * lto-streamer.h (lto_new_extern_inline_states,
22609         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22610         lto_forced_extern_inline_p): Kill.
22611
22612 2010-04-20  Richard Guenther  <rguenther@suse.de>
22613
22614         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22615         from vars that can have pointers.
22616         (process_constraint): Dump useless constraints.
22617
22618 2010-04-20  Richard Guenther  <rguenther@suse.de>
22619
22620         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22621         (dump_sa_points_to_info): Remove asserts.
22622         (init_base_vars): nothing_id isn't an escape point nor does it
22623         have pointers.
22624
22625 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22626
22627         * tree.h (TYPE_REF_IS_RVALUE): Define.
22628         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22629         should_move_die_to_comdat, prune_unused_types_walk): Handle
22630         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22631         (modified_type_die, gen_reference_type_die): Emit
22632         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22633         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22634
22635 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22636
22637         PR target/43635
22638         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22639         calls for -fpic -m31 if they have been sibcall optimized.
22640
22641 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22642
22643         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22644         ar.lc fixed and call-used.
22645
22646         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22647
22648 2010-04-19  Jan Hubicka  <jh@suse.cz>
22649
22650         * opts.c (decode_options): Disable whpr incompatible passes.
22651         * lto/lto.c (lto_1_to_1_map): Skip clones.
22652         (read_cgraph_and_symbols): Do not mark everything as needed.
22653         (do_whole_program_analysis): Do map only after optimizing;
22654         set proper cgraph_state; use passmanager.
22655
22656 2010-04-19  DJ Delorie  <dj@redhat.com>
22657
22658         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22659         POINTER_PLUS_EXPR and fix them.
22660
22661 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22662
22663         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22664         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22665         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22666         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22667         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22668         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22669         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22670         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22671         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22672         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22673         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22674
22675 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22676
22677         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22678         (check_cond_move_block): Likewise.
22679         (cond_move_process_if_block): Likewise.
22680         (noce_find_if_block): Improve formatting.
22681         (find_if_header): Pass 0 to memset and tweak conditions.
22682         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22683
22684 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22685
22686         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22687         for -gdwarf-4.
22688
22689         PR middle-end/43337
22690         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22691         with non-local decl doesn't need chain.
22692
22693 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22694
22695         * ira-color.c (allocno_reload_assign): Avoid accumulating
22696         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22697
22698 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22699
22700         * gimple.h (create_tmp_reg): Declare.
22701         * gimplify.c (create_tmp_reg): New function.
22702         (gimplify_return_expr): Use create_tmp_reg.
22703         (gimplify_omp_atomic): Likewise.
22704         (gimple_regimplify_operands): Likewise.
22705         * tree-dfa.c (make_rename_temp): Likewise.
22706         * tree-predcom.c (predcom_tmp_var): Likewise.
22707         (reassociate_to_the_same_stmt): Likewise.
22708         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22709         (get_replaced_param_substitute): Likewise.
22710         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22711         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22712         * tree-ssa-pre.c (get_representative_for): Likewise.
22713         (create_expression_by_pieces): Likewise.
22714         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22715         (create_tailcall_accumulator): Likewise.
22716
22717 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22718
22719         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22720         new_stmt.
22721         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22722
22723 2010-04-19  Richard Guenther  <rguenther@suse.de>
22724
22725         PR tree-optimization/43796
22726         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22727         from SCEV in the lattice.
22728         (vrp_visit_phi_node): Dump change.
22729
22730 2010-04-19  Richard Guenther  <rguenther@suse.de>
22731
22732         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22733         * configure: Re-generated.
22734
22735 2010-04-19  Richard Guenther  <rguenther@suse.de>
22736
22737         PR tree-optimization/43783
22738         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22739         constant ARRAY_REF operands two and three if possible.
22740
22741 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
22742
22743         PR target/43766
22744         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22745
22746 2010-04-19  Jie Zhang  <jie@codesourcery.com>
22747
22748         PR target/43662
22749         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22750
22751 2010-04-19  Ira Rosen  <irar@il.ibm.com>
22752
22753         PR tree-optimization/37027
22754         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22755         and macro to access it.
22756         (vectorizable_reduction): Add argument.
22757         (vect_get_slp_defs): Likewise.
22758         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22759         statements for possible use in SLP.
22760         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22761         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22762         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22763         add new argument.
22764         (vectorizable_reduction): Likewise.
22765         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22766         vect_get_slp_defs.
22767         (vectorizable_type_demotion, vectorizable_type_promotion,
22768         vectorizable_store): Likewise.
22769         (vect_analyze_stmt): Update call to vectorizable_reduction.
22770         (vect_transform_stmt): Likewise.
22771         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22772         (vect_build_slp_tree): Fix indentation. Check that there are no loads
22773         from different interleaving chains in same node.
22774         (vect_slp_rearrange_stmts): New function.
22775         (vect_supported_load_permutation_p): Allow load permutations for
22776         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22777         inside SLP nodes if necessary.
22778         (vect_analyze_slp_instance): Handle reductions.
22779         (vect_analyze_slp): Try to build SLP instances originating from groups
22780         of reductions.
22781         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22782         (vect_get_constant_vectors): Create initial vectors for reductions
22783         according to reduction code. Add new argument.
22784         (vect_get_slp_defs): Add new argument, pass it to
22785         vect_get_constant_vectors.
22786         (vect_schedule_slp_instance): Remove SLP tree root statements.
22787
22788 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22789
22790         * tree.h (ENUM_IS_SCOPED): Define.
22791         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22792         for ENUM_IS_SCOPED enums.
22793
22794 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
22795
22796         * fold-const.c (fold_comparison): Use ssizetype.
22797         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22798         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22799         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22800         * tree-object-size.c (compute_object_sizes): Use size_type_node.
22801
22802         * tree.h (initialize_sizetypes): Remove parameter.
22803         (build_common_tree_nodes): Remove second parameter.
22804         * stor-layout.c (initialize_sizetypes): Remove parameter.
22805         Always create an unsigned type.
22806         (set_sizetype): Assert that the passed type is unsigned and simplify.
22807         * tree.c (build_common_tree_nodes): Remove second parameter.
22808         Adjust call to initialize_sizetypes.
22809         * c-decl.c (c_init_decl_processing): Remove second argument in call to
22810         build_common_tree_nodes.
22811
22812 2010-04-18  Matthias Klose  <doko@ubuntu.com>
22813
22814         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22815
22816 2010-04-18  Ira Rosen  <irar@il.ibm.com>
22817
22818         PR tree-optimization/43771
22819         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22820         load permutation doesn't have gaps.
22821
22822 2010-04-18  Jan Hubicka  <jh@suse.cz>
22823
22824         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22825         (sse_prologue_save_insn expander): Use new pattern.
22826         (sse_prologue_save_insn1): New pattern and splitter.
22827         (sse_prologue_save_insn): Update to deal also with 64bit aligned
22828         blocks.
22829         * i386.c (setup_incoming_varargs_64): Do not compute jump
22830         destination here.
22831         (ix86_gimplify_va_arg): Update alignment needed.
22832         (ix86_local_alignment): Do not align all local arrays to 128bit.
22833
22834 2010-04-17  Jan Hubicka  <jh@suse.cz>
22835
22836         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22837
22838 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22839
22840         * arm.md (negdi2): Remove redundant code to force values into a
22841         register.
22842
22843 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22844
22845         * arm/bpabi.S: Add EABI alignment attributes to objects.
22846         * arm/bpabi-v6m.S: Likewise.
22847         * arm/crti.asm: Likewise.
22848         * arm/crtn.asm: Likewise.
22849         * arm/lib1funcs.asm: Likewise.
22850         * arm/libunwind.S: Likewise.
22851
22852 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22853
22854         * arm-protos.h (tune_params): New structure.
22855         * arm.c (current_tune): New variable.
22856         (arm_constant_limit): Delete.
22857         (struct processors): Add pointer to the tune parameters.
22858         (arm_slowmul_tune): New tuning option.
22859         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
22860         (all_cores): Adjust to pick up the tuning model.
22861         (arm_constant_limit): New function.
22862         (arm_override_options): Select the appropriate tuning model.  Delete
22863         initialization of arm_const_limit.
22864         (arm_split_constant): Use the new constant-limit model.
22865         (arm_rtx_costs): Pick up the current tuning model.
22866         * arm.md (is_strongarm, is_xscale): Delete.
22867         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
22868         for Xscale variant architectures.
22869         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
22870
22871 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22872
22873         * config/arm/arm.c (arm_gen_constant): Remove unused variable
22874         can_shift.
22875         (arm_rtx_costs_1): Remove unused variable extra_cost.
22876         (arm_unwind_emit_set): Use variable offset.
22877         (thumb1_output_casesi): Remove unused variable flags.
22878
22879 2010-04-16  Jeff Law  <law@redhat.com>
22880
22881         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
22882         needing assignment rather than doing a two-phase assignment.  Remove
22883         unused variable 'm'.
22884
22885 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22886
22887         PR bootstrap/43767
22888         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
22889
22890 2010-04-16  Doug Kwan  <dougkwan@google.com>
22891
22892         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
22893         (next_operand_entry_id): New static variable.
22894         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
22895         (add_to_ops_vec): Assigned unique ID to operand entry.
22896         (struct oecount_s): New field ID.
22897         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
22898         (undistribute_ops_list): Assign unique IDs to oecounts.
22899         (init_reassoc): reset next_operand_entry_id.
22900
22901 2010-04-16  Doug Kwan  <dougkwan@google.com>
22902
22903         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
22904         missing left parenthesis.
22905
22906 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
22907
22908         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
22909         *btdi_rex64 using SWI48 mode iterator.
22910         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
22911         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
22912         *jcc_btdi_mask_rex64.
22913
22914 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
22915
22916         * double-int.h (tree_to_double_int): Convert to macro.
22917         * double-int.c (tree_to_double_int): Remove.
22918
22919 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22920
22921         PR debug/43762
22922         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
22923         with want_address 2 and in case a single element list might be
22924         possible, call it again with want_address 0.
22925
22926 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22927
22928         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
22929         case 'W' print operands for HI mode.
22930         * config/h8300/h8300.h (Y0, Y2) : New constraints.
22931         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
22932         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
22933         * config/h8300/predicate.md (bit_register_indirect_operand): New.
22934
22935         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
22936
22937         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
22938         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
22939         #xx:3 and #xx:4 mode.
22940
22941         * config/h8300/h8300.md (inverted load with HImode dest): Add
22942         support for H8300SX.
22943
22944         * config/h8300/predicate.md (bit_operand): Allow immediate values that
22945         satisfy 'U' constraint.
22946
22947 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22948
22949         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
22950         * configure: Regenerate.
22951         * config.in: Regenerate.
22952         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
22953         works.
22954
22955 2010-04-16  Richard Guenther  <rguenther@suse.de>
22956
22957         * tree.h (struct tree_decl_minimal): Move pt_uid ...
22958         (struct tree_decl_common): ... here.
22959         (DECL_PT_UID): Adjust.
22960         (SET_DECL_PT_UID): Likewise.
22961         (DECL_PT_UID_SET_P): Likewise.
22962
22963 2010-04-16  Richard Guenther  <rguenther@suse.de>
22964
22965         PR tree-optimization/43572
22966         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
22967         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
22968         * tree-flow.h (is_call_clobbered): Remove.
22969         * tree-flow-inline.h (is_call_clobbered): Likewise.
22970         * tree-dfa.c (dump_variable): Do not dump call clobber state.
22971         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
22972         (execute_return_slot_opt): Adjust.
22973         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
22974         check for call clobbered vars here.
22975         (find_tail_calls): Move tailcall verification to the
22976         proper place.
22977
22978 2010-04-16  Diego Novillo  <dnovillo@google.com>
22979
22980         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
22981
22982 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22983
22984         PR target/40603
22985         * config/arm/arm.md (cbranchqi4): New pattern.
22986         * config/arm/predicates.md (const0_operand,
22987         cbranchqi4_comparison_operator): New predicates.
22988
22989 2010-04-16  Richard Guenther  <rguenther@suse.de>
22990
22991         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
22992         (dump_gimple_stmt): Likewise.
22993
22994 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22995
22996         * recog.h (struct recog_data): New field is_operator.
22997         (struct insn_operand_data): New field is_operator.
22998         * recog.c (extract_insn): Set recog_data.is_operator.
22999         * genoutput.c (output_operand_data): Emit code to set the
23000         is_operator field.
23001         * reload.c (find_reloads): Use it rather than testing for an
23002         empty constraint string.
23003
23004         PR target/41514
23005         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
23006         If the previous insn is a cbranchsi4_insn with the same arguments,
23007         omit the compare instruction.
23008
23009         * config/arm/arm.md (addsi3_cbranch): If destination is a high
23010         register, inputs must be low registers and we need a low register
23011         scratch.  Handle alternative 2 like alternative 3.
23012
23013 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23014
23015         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
23016         don't call get_addr on both.  If one expression is a VALUE and
23017         the other a REG, check VALUE's locs if the REG isn't among them.
23018
23019 2010-04-16  Christian Bruel  <christian.bruel@st.com>
23020
23021         * config/sh/sh.h (sh_frame_pointer_required): New function.
23022         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
23023         (flag_omit_frame_pointer) Set.
23024         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
23025         (rounded_frame_size): Adjust size with outgoing_args_size.
23026         (sh_set_return_address): Must return from stack pointer.
23027         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
23028         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
23029         (ACCUMULATE_OUTGOING_ARGS): Define.
23030         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
23031         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
23032
23033 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23034
23035         PR target/43471
23036         * config/sh/sh.c (sh_legitimize_reload_address): Use
23037         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
23038         Remove a unneeded check for offset_base.
23039
23040 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
23041
23042         * configure: Regenerated.
23043
23044 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23045
23046         * config/s390/s390.c (s390_call_save_register_used): Switch back
23047         to HARD_REGNO_NREGS.
23048
23049 2010-04-15  Richard Guenther  <rguenther@suse.de>
23050
23051         * alias.c (alias_set_subset_of): Handle alias-set zero
23052         child properly.
23053
23054 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
23055             Julian Brown  <julian@codesourcery.com>
23056
23057         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
23058         alternatives according to use of high and low regs.
23059         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
23060         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
23061         optimizing for size on Thumb-2.
23062
23063 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
23064
23065         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
23066
23067 2010-04-15  Richard Guenther  <rguenther@suse.de>
23068
23069         * tree-ssa-structalias.c (struct variable_info): Add
23070         is_fn_info flag.
23071         (new_var_info): Initialize it.
23072         (dump_constraints): Support printing last added constraints.
23073         (debug_constraints): Adjust.
23074         (dump_constraint_graph): Likewise.
23075         (make_heapvar_for): Check for NULL cfun.
23076         (get_function_part_constraint): New function.
23077         (get_fi_for_callee): Likewise.
23078         (find_func_aliases): Properly implement IPA PTA constraints.
23079         (process_ipa_clobber): New function.
23080         (find_func_clobbers): Likewise.
23081         (insert_into_field_list_sorted): Remove.
23082         (create_function_info_for): Properly allocate vars for IPA mode.
23083         Do not use insert_into_field_list_sorted.
23084         (create_variable_info_for): Properly generate constraints for
23085         global vars in IPA mode.
23086         (dump_solution_for_var): Always dump the solution.
23087         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
23088         (find_what_var_points_to): Adjust.
23089         (pt_solution_set): Change.
23090         (pt_solution_ior_into): New function.
23091         (pt_solution_empty_p): Export.
23092         (pt_solution_includes_global): Adjust.
23093         (pt_solution_includes_1): Likewise.
23094         (pt_solutions_intersect_1): Likewise.
23095         (dump_sa_points_to_info): Check some invariants.
23096         (solve_constraints): Move constraint dumping ...
23097         (compute_points_to_sets): ... here.
23098         (ipa_pta_execute): ... and here.
23099         (compute_may_aliases): Do not re-compute points-to info
23100         locally if IPA info is available.
23101         (ipa_escaped_pt): New global var.
23102         (ipa_pta_execute): Properly implement IPA PTA.
23103         * tree-into-ssa.c (dump_decl_set): Support dumping
23104         decls not in referenced-vars.
23105         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
23106         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
23107         (dump_points_to_solution): Likewise.
23108         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
23109         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
23110         (remap_gimple_stmt): Reset call clobber/use information if necessary.
23111         (copy_decl_to_var): Copy DECL_PT_UID.
23112         (copy_result_decl_to_var): Likewise.
23113         * tree.c (make_node_stat): Initialize DECL_PT_UID.
23114         (copy_node_stat): Copy it.
23115         * tree.h (DECL_PT_UID): New macro.
23116         (SET_DECL_PT_UID): Likewise.
23117         (DECL_PT_UID_SET_P): Likewise.
23118         (struct tree_decl_minimal): Add pt_uid member.
23119         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
23120         (pt_solution_empty_p): Declare.
23121         (pt_solution_set): Adjust.
23122         (ipa_escaped_pt): Declare.
23123         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
23124         * gimple-pretty-print.c (pp_points_to_solution): New function.
23125         (dump_gimple_call): Dump call clobber/use information.
23126         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
23127         * tree-pass.h (TDF_ALIAS): New dump option.
23128         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
23129         * doc/invoke.texi (-fipa-pta): Update documentation.
23130
23131 2010-04-15  Richard Guenther  <rguenther@suse.de>
23132
23133         * Makefile.in (OBJS-common): Add gimple-fold.o.
23134         (gimple-fold.o): New rule.
23135         * tree.h (maybe_fold_offset_to_reference,
23136         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23137         prototypes ...
23138         * gimple.h: ... here.
23139         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23140         may_propagate_address_into_dereference): Move prototypes ...
23141         * gimple.h: ... here.
23142         * tree-ssa-ccp.c (get_symbol_constant_value,
23143         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23144         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23145         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23146         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23147         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23148         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23149         gimplify_and_update_call_from_tree): Move ...
23150         * gimple-fold.c: ... here.  New file.
23151         (ccp_fold_builtin): Rename to ...
23152         (gimple_fold_builtin): ... this.
23153         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23154
23155 2010-04-15  Richard Guenther  <rguenther@suse.de>
23156
23157         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23158         fit_double_type, force_fit_type_double, add_double_with_sign,
23159         neg_double, mul_double_with_sign, lshift_double, rshift_double,
23160         lrotate_double, rrotate_double, div_and_round_double): Move ...
23161         * double-int.c: ... here.
23162         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23163         add_double, neg_double, mul_double_with_sign, mul_double,
23164         lshift_double, rshift_double, lrotate_double, rrotate_double,
23165         div_and_round_double): Move prototypes ...
23166         * double-int.h: ... here.
23167
23168 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
23169
23170         PR target/43742
23171         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
23172         matching constraints to ensure inputs match the output.
23173
23174 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23175
23176         PR target/43742
23177         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23178         in an input-only operand.
23179
23180 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
23181
23182         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23183         (double_int_not, double_int_lshift, double_int_rshift): Declare.
23184         (double_int_negative_p): Convert to static inline function.
23185         * double-int.c (double_int_lshift, double_int_lshift): New functions.
23186         (double_int_negative_p): Remove.
23187         * tree.h (lshift_double, rshift_double):
23188         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23189         * fold-const.c (fold_convert_const_int_from_real,
23190         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23191         (lshift_double): Change type of arith argument to bool.
23192         (rshift_double): Change type of arith argument to bool. Correct
23193         comment.
23194         * expmed.c (mask_rtx, lshift_value): (Ditto.).
23195
23196 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
23197
23198         PR target/21803
23199         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23200         at the start and end of the then/else blocks, and omit them from the
23201         conversion.
23202         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
23203         argument; all callers changed.  Pass zero to old_insns_match_p instead.
23204         (flow_find_head_matching_sequence): New function.
23205         (old_insns_match_p): Check REG_EH_REGION notes for calls.
23206         * basic-block.h (flow_find_cross_jump,
23207         flow_find_head_matching_sequence): Declare functions.
23208
23209 2010-04-14  Jason Merrill  <jason@redhat.com>
23210
23211         PR c++/36625
23212         * c-common.c (attribute_takes_identifier_p): New fn.
23213         * c-common.h: Declare it.
23214
23215 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23216
23217         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23218         splitter condition.
23219         (*udivmod<mode>4): Ditto.
23220
23221 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23222
23223         * config/i386/i386.md (maxmin_int): Rename code attribute from
23224         maxminiprefix and update all users.
23225         (maxmin_float): Ditto from maxminfprefix.
23226         (logic): Ditto from logicprefix.
23227         (absneg_mnemonic): Ditto from absnegprefix.
23228         * config/i386/mmx.md: Update all users of maxminiprefix,
23229         maxminfprefix and logicprefix for rename.
23230         * config/i386/sse.md: Ditto.
23231         * config/i386/sync.md (sync_<code><mode>): Update for
23232         logicprefix rename.
23233
23234 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23235
23236         PR 42966
23237         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23238         warnings converted to errors.
23239
23240 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23241
23242         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23243         used insn_type variable.
23244         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23245         to avoid set-but-not-used warning.
23246
23247 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23248
23249         * df-core.c (df_ref_debug): Change format string placeholder
23250         from 0x%x to %#x.
23251         * dwarf2asm.c (dw2_asm_output_data_raw,
23252         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23253         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23254         * dwarf2out.c (output_cfi, output_cfi_directive,
23255         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23256         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23257         Ditto.
23258         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23259         * print-rtl.c (print_rtx): Ditto.
23260
23261 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23262
23263         PR middle-end/42694
23264         * builtins.c (expand_builtin_pow_root): New function to expand pow
23265         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23266         series of sqrt and cbrt calls under -ffast-math.
23267         (expand_builtin_pow): Call it.
23268
23269 2010-04-14  Michael Matz  <matz@suse.de>
23270
23271         PR tree-optimization/42963
23272         * tree-cfg.c (touched_switch_bbs): New static variable.
23273         (group_case_labels_stmt): New function broken out from ...
23274         (group_case_labels): ... here, use the above.
23275         (start_recording_case_labels): Allocate touched_switch_bbs.
23276         (end_recording_case_labels): Deallocate it, call
23277         group_case_labels_stmt.
23278         (gimple_redirect_edge_and_branch): Remember index of affected BB.
23279
23280 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23281
23282         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23283         from insn template.
23284
23285 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23286
23287         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23288
23289 2010-04-13  Jan Hubicka  <jh@suse.cz>
23290
23291         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23292         of optimized out static functions.
23293         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23294         cost computation.  Also sanity check for overflows.
23295         (update_caller_keys): Update cgraph_edge_badness call; properly
23296         update fibheap and sanity check that it is up to date.
23297         (add_new_edges_to_heap): Update cgraph_edge_badness.
23298         (cgraph_decide_inlining_of_small_function): Likewise;
23299         add sanity checking that badness in heap is up to date;
23300         improve dumping of reason; Update badness of calls to the
23301         offline copy of function currently inlined; dump badness
23302         of functions not inlined because of unit growth limits.
23303
23304 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23305
23306         PR middle-end/32628
23307         * c-common.c (pointer_int_sum): Disregard overflow that occured only
23308         because of sign-extension change when converting to sizetype here...
23309         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23310
23311         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23312         the folding to constants.  Remove redundant final conversion.
23313         (fold_binary) <associate>: Do not associate if the re-association of
23314         constants alone overflows.
23315         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23316         to the end of the list.
23317         (multiple_of_p) <COND_EXPR>: New case.
23318
23319 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23320
23321         * opt-functions.awk (opt_sanitized_name): New.
23322         (opt_enum): New.
23323         * optc-gen.awk: Use it
23324         * opth-gen.awk: Use it.
23325
23326 2010-04-13  Martin Jambor  <mjambor@suse.cz>
23327
23328         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23329         (sra_modify_assign): Delete stmts loading dead data even if racc has no
23330         children.  Call replace_uses_with_default_def_ssa_name to handle
23331         SSA_NAES on lhs.
23332
23333 2010-04-13  Michael Matz  <matz@suse.de>
23334
23335         PR middle-end/43730
23336         * builtins.c (expand_builtin_interclass_mathfn): Also create
23337         a register if the predicate doesn't match.
23338
23339 2010-04-13  Diego Novillo  <dnovillo@google.com>
23340
23341         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23342         * c-pch.c: Include timevar.h.
23343         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23344         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23345         * ggc-common.c: Include timevar.h.
23346         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23347         * timevar.def (TV_PCH_SAVE): Define.
23348         (TV_PCH_CPP_SAVE): Define.
23349         (TV_PCH_PTR_REALLOC): Define.
23350         (TV_PCH_PTR_SORT): Define.
23351         (TV_PCH_RESTORE): Define.
23352         (TV_PCH_CPP_RESTORE): Define.
23353
23354 2010-04-13  Michael Matz  <matz@suse.de>
23355
23356         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23357         into MINUS_EXPRs.
23358         (can_reassociate_p): New function.
23359         (break_up_subtract_bb, reassociate_bb): Use it.
23360
23361 2010-04-13  Richard Guenther  <rguenther@suse.de>
23362
23363         PR bootstrap/43737
23364         * builtins.c (c_readstr): Fix assert.
23365
23366 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
23367
23368         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23369         when generating cltd insn.
23370
23371         (*ashl<mode>3_1): Remove special handling for register operand 2.
23372         (*ashlsi3_1_zext): Ditto.
23373         (*ashlhi3_1): Ditto.
23374         (*ashlhi3_1_lea): Ditto.
23375         (*ashlqi3_1): Ditto.
23376         (*ashlqi3_1_lea): Ditto.
23377         (*<shiftrt_insn><mode>3_1): Ditto.
23378         (*<shiftrt_insn>si3_1_zext): Ditto.
23379         (*<shiftrt_insn>qi3_1_slp): Ditto.
23380         (*<rotate_insn><mode>3_1): Ditto.
23381         (*<rotate_insn>si3_1_zext): Ditto.
23382         (*<rotate_insn>qi3_1_slp): Ditto.
23383
23384 2010-04-13  Richard Guenther  <rguenther@suse.de>
23385
23386         * tree-ssa-structalias.c (callused_id): Remove.
23387         (call_stmt_vars): New.
23388         (get_call_vi): Likewise.
23389         (lookup_call_use_vi): Likewise.
23390         (lookup_call_clobber_vi): Likewise.
23391         (get_call_use_vi): Likewise.
23392         (get_call_clobber_vi): Likewise.
23393         (make_transitive_closure_constraints): Likewise.
23394         (handle_const_call): Adjust to do per-call call-used handling.
23395         (handle_pure_call): Likewise.
23396         (find_what_var_points_to): Remove general callused handling.
23397         (init_base_vars): Likewise.
23398         (init_alias_vars): Initialize call_stmt_vars.
23399         (compute_points_to_sets): Process call-used and call-clobbered
23400         vars for call statements.
23401         (delete_points_to_sets): Free call_stmt_vars.
23402
23403 2010-04-13  Richard Guenther  <rguenther@suse.de>
23404
23405         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23406         Only add RW dependence for dependence distance zero.
23407         Adjust maximal vectorization factor according to dependences.
23408         Move alignment handling ...
23409         (vect_find_same_alignment_drs): ... here.  New function.
23410         (vect_analyze_data_ref_dependences): Adjust.
23411         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23412         (vect_analyze_data_refs): Adjust minimal vectorization factor
23413         according to data references.
23414         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23415         dependences before determining the vectorization factor.
23416         Analyze alignment after determining the vectorization factor.
23417         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23418         dependences before alignment.
23419         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23420         Adjust prototype.
23421         (vect_analyze_data_refs): Likewise.
23422         (MAX_VECTORIZATION_FACTOR): New define.
23423
23424 2010-04-13  Duncan Sands  <baldrick@free.fr>
23425
23426         * except.h (lang_eh_type_covers): Remove.
23427         * except.c (lang_eh_type_covers): Likewise.
23428
23429 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23430             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23431
23432         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23433         * config/s390/s390.c: Replace UNTIS_PER_WORD with
23434         UNITS_PER_LONG where it is ABI relevant.
23435         (s390_return_addr_rtx): Likewise.
23436         (s390_back_chain_rtx): Likewise.
23437         (s390_frame_area): Likewise.
23438         (s390_frame_info): Likewise.
23439         (s390_initial_elimination_offset): Likewise.
23440         (save_gprs): Likewise.
23441         (s390_emit_prologue): Likewise.
23442         (s390_emit_epilogue): Likewise.
23443         (s390_function_arg_advance): Likewise.
23444         (s390_function_arg): Likewise.
23445         (s390_va_start): Likewise.
23446         (s390_gimplify_va_arg): Likewise.
23447         (s390_function_profiler): Likewise.
23448         (s390_optimize_prologue): Likewise.
23449         (s390_rtx_costs): Likewise.
23450         (s390_secondary_reload): Likewise.
23451         (s390_promote_function_mode): Likewise.
23452         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23453         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23454         registers available.
23455         (s390_unwind_word_mode): New function.
23456         (s390_function_value): Split 64 bit values into register pair if
23457         used as return value.
23458         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23459         function call parameters.  Handle parallels.
23460         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23461         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23462         (DWARF_CIE_DATA_ALIGNMENT): New macro.
23463         (s390_expand_setmem): Remove unused variable src_addr.
23464         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23465         deal with 64 bit registers.
23466         * config/s390/s390.h: Define __zarch__ predefined macro.
23467         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23468         (UNITS_PER_LONG): New macro.
23469         * libjava/include/s390-signal.h: Define extended ucontext
23470         structure containing the upper halfs of the 64 bit registers.
23471
23472 2010-04-13  Simon Baldwin  <simonb@google.com>
23473
23474         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23475
23476 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23477
23478         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23479         rvalue on the RHS if the LHS is of a non-renamable type.
23480         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23481
23482 2010-04-13  Matthias Klose  <doko@ubuntu.com>
23483
23484         * gcc.c (cc1_options): Handle -iplugindir before processing
23485         the cc1 spec. Only add -iplugindir once.
23486         (cpp_unique_options): Add -iplugindir option if -fplugin* options
23487         found.
23488         * common.opt (iplugindir): Remove `Separate' property, initialize.
23489         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23490         option.
23491         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23492         (distclean): Remove plugin dir.
23493         * doc/invoke.texi: Document -iplugindir.
23494
23495 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
23496
23497         * doc/plugins.texi (Loading Plugins): Document short
23498         -fplugin=foo option.
23499         (Plugin API): Mention default_plugin_dir_name function.
23500
23501         * gcc.c (find_file_spec_function): Add new declaration.
23502         (static_spec_func): Use it for "find-file".
23503         (find_file_spec_function): Add new function.
23504         (cc1_options): Add -iplugindir option if -fplugin* options found.
23505
23506         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23507
23508         * plugin.c (add_new_plugin): Updated comment, and handle short
23509         plugin name.
23510         (default_plugin_dir_name): Added new function.
23511
23512         * common.opt (iplugindir): New option to set the plugin directory.
23513
23514 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23515
23516         * config/i386/i386.md (any_rotate): New code iterator.
23517         (rotate_insn): New code attribute.
23518         (rotate): Ditto.
23519         (SWIM124): New mode iterator.
23520         (<rotate_insn>ti3): New expander.
23521         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23522         any_rotate code iterator.
23523         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23524         using any_rotate code iterator and SWIM124 mode iterator.
23525         (ix86_rotlti3): New insn_and_split pattern.
23526         (ix86_rotrti3): Ditto.
23527         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23528         ix86_rotl{di,ti}3 patterns.
23529         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23530         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23531         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23532         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23533         code iterator and SWI mode iterator.
23534         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23535         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23536         code iterator.
23537         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23538         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23539         (bswap rotatert splitter): Add splitter.
23540         (bswap splitter): Macroize splitter using any_rotate code iterator.
23541         Add insn predicate to split only for TARGET_USE_XCHGB or when
23542         optimizing function for size.
23543
23544 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23545
23546         * config/pa/pa.c (emit_move_sequence): Remove use of
23547         deleted variable flag_argument_noalias.
23548
23549 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23550
23551         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23552         configurations.
23553         Add to unsupported targets list.
23554         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23555         sparc*-sun-solaris2.[567]* from target lists.
23556         * configure: Regenerate.
23557         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23558         removal.
23559         Remove Solaris 7 patch references.
23560         (Specific, sparc-sun-solaris2.7): Removed.
23561         (sparc-sun-solaris2*): Update Solaris 7 example.
23562         (sparc64-*-solaris2*): Likewise.
23563
23564 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23565
23566         * config.build (alpha*-dec-osf4*): Remove.
23567         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23568         of obsolete configurations.
23569         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23570         support.
23571         * config/alpha/t-osf4: Renamed to ...
23572         * config/alpha/t-osf5: ... this.
23573         * config/alpha/osf.h: Renamed to ...
23574         * config/alpha/osf5.h: ... this.
23575         Merged old osf5.h contents.
23576         Update comments.
23577         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23578         (EXTRA_SPECS): Removed.
23579         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23580         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23581         Document that.
23582
23583 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23584
23585         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23586
23587 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23588
23589         PR/43702
23590         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23591         __thiscall convention.
23592
23593 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23594
23595         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23596         orig_base.
23597         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23598
23599 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23600
23601         * function.c (assign_parms_initialize_all): Add unused attribute
23602         to fntype.
23603
23604 2010-04-12  Richard Guenther  <rguenther@suse.de>
23605
23606         * gsstruct.def (GSS_CALL): New.
23607         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23608         * gimple.h: Include tree-ssa-alias.h.
23609         (struct gimple_statement_call): New.
23610         (union gimple_statement_struct_d): Add gimple_call member.
23611         (gimple_call_reset_alias_info): Declare.
23612         (gimple_call_use_set): New function.
23613         (gimple_call_clobber_set): Likewise.
23614         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23615         * gimple.c (gimple_call_reset_alias_info): New function.
23616         (gimple_build_call_1): Call it.
23617         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23618         * tree-inline.c (remap_gimple_stmt): Likewise.
23619         (expand_call_inline): Remove callused handling.
23620         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23621         * tree-dfa.c (dump_variable): Likewise.
23622         * tree-parloops.c (parallelize_loops): Likewise.
23623         * tree-ssa.c (init_tree_ssa): Likewise.
23624         (delete_tree_ssa): Likewise.
23625         * tree-flow-inline.h (is_call_used): Remove.
23626         * tree-flow.h (struct gimple_df): Remove callused member.
23627         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23628         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23629         (ref_maybe_used_by_call_p_1): Simplify.
23630         (call_may_clobber_ref_p_1): Likewise.
23631         * tree-ssa-structalias.c (compute_points_to_sets): Set
23632         the call stmt used and clobbered sets.
23633         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23634         (find_tail_calls): Verify the tail call.
23635
23636 2010-04-12  Richard Guenther  <rguenther@suse.de>
23637
23638         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23639         single-iteration always-inline inlining.
23640         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23641         (cgraph_decide_inlining): Do not handle always-inline specially.
23642         (try_inline): Remove always-inline cycle detection special case.
23643         Do not recurse on always-inlines.
23644         (cgraph_early_inlining): Do not iterate if not optimizing.
23645         (cgraph_gate_early_inlining): remove.
23646         (pass_early_inline): Run unconditionally.
23647         (gate_cgraph_decide_inlining): New function.
23648         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23649         not inlining or optimizing.
23650         (cgraph_decide_inlining_of_small_functions): Also consider
23651         always-inline functions.
23652         (cgraph_default_inline_p): Return true for nodes which should
23653         disregard inline limits.
23654         (estimate_function_body_sizes): Assume zero size and time for
23655         nodes which are marked as disregarding inline limits.
23656         (cgraph_decide_recursive_inlining): Do not perform recursive
23657         inlining on always-inline nodes.
23658
23659 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23660
23661         PR bootstrap/43699
23662         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23663         for exprs satisfying handled_component_p.
23664
23665 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23666
23667         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23668         non-constant aggregate elements.
23669
23670         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23671         is a real initialization.
23672
23673 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23674
23675         PR c/36774
23676         * c-decl.c (start_function): Move forward check for nested function.
23677
23678 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23679
23680         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23681         * config/sh/sh.c: Include reload.h.
23682         (sh_legitimize_reload_address): New.
23683         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23684         sh_legitimize_reload_address.
23685
23686 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23687
23688         * config/sh/sh.md (*movqi_pop): New insn pattern.
23689         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23690
23691 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23692
23693         * config/i386/i386.md (any_shiftrt): New code iterator.
23694         (shiftrt_insn): New code attribute.
23695         (shiftrt): Ditto.
23696         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23697         using any_shiftrt code iterator.
23698         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23699         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23700         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23701         pattern from corresponding peephole2 patterns.
23702         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23703         using any_shiftrt code iterator.
23704         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23705         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23706         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23707         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23708         *{ashr,lshr}<mode>3_cmp_zext.
23709         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23710
23711 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23712
23713         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23714         scratch register.
23715         (*lshr<mode>3_cconly): Ditto.
23716
23717 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23718
23719         * config/i386/i386.md (lshr<mode>3): Macroize expander from
23720         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23721         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23722         pattern from *lshr{di,ti}3_1 and corresponding splitters using
23723         DWI mode iterator.
23724         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23725         from corresponding peephole2 patterns.
23726         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23727         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23728         and *lshrdi3_1_rex64 using SWI mode iterator.
23729         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23730         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23731         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23732         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23733         and *lshrdi3_cmp_rex64 using SWI mode iterator.
23734         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23735         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23736         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23737         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23738         SWI mode iterator.
23739
23740 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
23741
23742         * config/i386/i386.md (ashr<mode>3): Macroize expander from
23743         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23744         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23745         pattern from *ashr{di,ti}3_1 and corresponding splitters using
23746         DWI mode iterator.
23747         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23748         from corresponding peephole2 patterns.
23749         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23750         (ashrsi3_cvt): Rename from ashrsi3_31.
23751         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23752         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23753         and x86_64_shift_adj_3 using SWI48 mode iterator.
23754         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23755         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23756         and *ashrdi3_1_rex64 using SWI mode iterator.
23757         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23758         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23759         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23760         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23761         and *ashrdi3_cmp_rex64 using SWI mode iterator.
23762         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23763         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23764         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23765         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23766         SWI mode iterator.
23767         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23768         * config/i386/i386.c (ix86_split_ashr): Update for renamed
23769         x86_shift<mode>_adj_3 expanders.
23770
23771 2010-04-10  Wei Guozhi  <carrot@google.com>
23772
23773         PR target/42601
23774         * config/arm/arm.c (arm_pic_static_addr): New function.
23775         (legitimize_pic_address): Call arm_pic_static_addr when it detects
23776         a static symbol.
23777         (arm_output_addr_const_extra): Output expression for new pattern.
23778         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23779
23780 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
23781
23782         * ira-costs.c (record_reg_classes): Ignore alternatives that are
23783         not enabled.
23784
23785         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23786         * web.c: Include "insn-config.h" and "recog.h".
23787         (union_match_dups): New function.
23788         (web_main): Call it.
23789         (union_defs): Don't try to recognize match_dups.
23790
23791         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23792         if doing so would replace the entire pattern.
23793
23794 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23795
23796         PR target/43707
23797         PR target/43709
23798         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23799         and splitter pattern.  Change splitter operand 1 predicate to
23800         nonmemory_operand.
23801
23802 2010-04-09  Martin Jambor  <mjambor@suse.cz>
23803
23804         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23805         lattices are addresses of CONST_DECLs with the same initial value.
23806         (ipcp_print_all_lattices): Print values of CONST_DECLs.
23807         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23808
23809 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
23810             Bernd Schmidt  <bernds@codesourcery.com>
23811
23812         * loop-invariant.c (replace_uses): New static function.
23813         (move_invariant_reg): Use it to ensure we can replace the uses.
23814
23815 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
23816
23817         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23818         function template.
23819         (picochip_override_options): Enable section anchors only above -O1.
23820         (picochip_reorg): Fixed a couple of build warnings.
23821
23822 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23823
23824         * configure.ac (plugin -rdynamic test): Log result.
23825         * configure: Regenerate.
23826         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23827         (RDYNAMIC_SPEC): Define.
23828         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23829
23830 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23831
23832         * configure.ac: Determine Sun ld version numbers.
23833         (comdat_group): Restrict GNU ld version checks to gld.
23834         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23835         (enable_comdat): Support --enable-comdat.
23836         * configure: Regenerate.
23837         * doc/install.texi (Configuration): Document --enable-comdat.
23838
23839 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23840
23841         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
23842         * config/sol2-gld.h: ... here.
23843         * config.gcc (sparc*-*-solaris2*): Reflect this.
23844         (i[34567]86-*-solaris2*): Use it.
23845
23846 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
23847
23848         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23849         setup_clocks_p.
23850         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23851
23852 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23853
23854         PR 42965
23855         * diagnostic.c (diagnostic_initialize): Initialize
23856         some_warnings_are_errors.
23857         (diagnostic_finish): New.
23858         (diagnostic_action_after_output): Call it before exiting.
23859         (diagnostic_report_diagnostic): Do not print message here. Set
23860         some_warnings_are_errors.
23861         * diagnostic.h (diagnostic_context): Delete
23862         issue_warnings_are_errors_message. Add some_warnings_are_errors.
23863         (diagnostic_finish): Declare.
23864         * toplev.c (toplev_main): Call it before exit.
23865
23866 2010-04-09  Jason Merrill  <jason@redhat.com>
23867
23868         PR c++/42623
23869         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
23870         for incomplete type.
23871
23872         PR c++/41788
23873         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
23874         based on a warning flag.
23875
23876 2010-04-09  Richard Guenther  <rguenther@suse.de>
23877
23878         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
23879
23880 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
23881
23882         PR bootstrap/43684
23883         * varasm.c (default_assemble_visibility): Wrap vars that are
23884         set, but unused, by targets without GAS.
23885         * config/rs6000/rs6000.c (paired_emit_vector_compare):
23886         Remove set, but unused, vars.
23887         (rs6000_legitimize_tls_address): Likewise.
23888         (altivec_expand_dst_builtin): Likewise.
23889         * config/darwin.c (machopic_classify_symbol): Likewise.
23890         (machopic_indirection_name): Likewise.
23891
23892 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23893
23894         * config/i386/i386.md (DWI): New mode iterator.
23895         (S): New mode attribute.
23896         (shift_operand): Ditto.
23897         (shift_immediate_operand): Ditto.
23898         (ashl_input_operand): Ditto.
23899         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
23900         using SDWIM mode iterator.
23901         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23902         pattern from *ashl{di,ti}3_1 and corresponding splitters using
23903         DWI mode iterator.
23904         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
23905         from corresponding peephole2 patterns.
23906         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
23907         and x86_64_shift_adj_1 using SWI48 mode iterator.
23908         (x86_shift<mode>_adj_2): Ditto.
23909         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
23910         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
23911         using SWI48 mode iterator.
23912         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
23913         *ashldi3_cmp_rex64 using SWI mode iterator.
23914         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
23915         *ashldi3_cconly_rex64 using SWI mode iterator.
23916         * config/i386/i386.c (ix86_split_ashl): Update for renamed
23917         x86_shift<mode>_adj_{1,2}.
23918         (ix86_split_ashr): Ditto.
23919         (ix86_split_lshr): Ditto.
23920
23921 2010-04-09  Richard Guenther  <rguenther@suse.de>
23922
23923         * target.h (builtin_conversion): Pass in input and output types.
23924         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
23925         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
23926         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
23927         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
23928
23929         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
23930         Handle AVX modes.
23931         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
23932
23933 2010-04-09  Richard Guenther  <rguenther@suse.de>
23934
23935         PR target/43152
23936         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
23937
23938 2010-04-09  Richard Guenther  <rguenther@suse.de>
23939
23940         * tree-vectorizer.h (struct _stmt_vec_info): Document
23941         that vectype is the type of the LHS.
23942         (supportable_widening_operation, supportable_narrowing_operation):
23943         Get both input and output vector types as arguments.
23944         (vect_is_simple_use_1): Declare.
23945         (get_same_sized_vectype): Likewise.
23946         * tree-vect-loop.c (vect_determine_vectorization_factor):
23947         Set STMT_VINFO_VECTYPE to the vector type of the def.
23948         (vectorizable_reduction): Adjust.
23949         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
23950         Adjust.  Specify the output vector type.
23951         (vect_pattern_recog_1): Adjust.
23952         * tree-vect-stmts.c (get_same_sized_vectype): New function.
23953         (vectorizable_call): Adjust.
23954         (vectorizable_conversion): Likewise.
23955         (vectorizable_operation): Likewise.
23956         (vectorizable_type_demotion): Likewise.
23957         (vectorizable_type_promotion): Likewise.
23958         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
23959         the def.
23960         (vect_is_simple_use_1): New function.
23961         (supportable_widening_operation): Get both input and output
23962         vector types.
23963         (supportable_narrowing_operation): Likewise.
23964         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
23965
23966 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
23967
23968         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
23969         __thiscall and _thiscall as predefined macros.
23970         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
23971         thiscall attribute handling.
23972         (ix86_comp_type_attributes): Likewise.
23973         (ix86_function_regparm): Likewise.
23974         (ix86_return_pops_args): Likewise.
23975         (init_cumulative_args): Likewise.
23976         (find_drap_reg): Likewise.
23977         (ix86_static_chain): Likewise.
23978         (x86_this_parameter): Likewise.
23979         (x86_output_mi_thunk): Likewise.
23980         (ix86_attribute_table): Add description for thiscall attribute.
23981         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
23982         * doc/extend.texi: Add documentation for thiscall.
23983
23984 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23985
23986         PR c++/28584
23987         * c.opt (Wint-to-pointer-cast): Available in C++.
23988         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
23989
23990 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
23991
23992         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
23993         * calls.c (expand_call): Pass the function type to aggregate_value_p.
23994         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
23995         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
23996         function type instead.  Reorder and simplify checks.
23997
23998         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
23999
24000 2010-04-08  Jing Yu  <jingyu@google.com>
24001             Zdenek Dvorak  <ook@ucw.cz>
24002
24003         PR tree-optimization/42720
24004         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
24005         loop unswitch conditions here from ...
24006         (tree_unswitch_single_loop): ... here.
24007
24008 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24009
24010         * tree-if-conv.c: Fix comments and simplify logic.
24011
24012 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24013
24014         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
24015         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
24016         (main_tree_if_conversion): Update call to tree_if_conversion.
24017
24018 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24019
24020         PR 42485
24021         * doc/invoke.texi (-b,-V): Delete.
24022         * doc/tm.texi: Do not mention -b.
24023         * gcc.c (display_help): Delete -b and -V.
24024         (process_command): Delete -b and -V.
24025         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
24026
24027 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
24028             Wolfgang Gellerich  <gellerich@de.ibm.com>
24029
24030         Implement target hook for loop unrolling
24031         * target.h (loop_unroll_adjust): Add a new target hook function.
24032         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
24033         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
24034         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
24035         (s390_loop_unroll_adjust): Implement the new target hook for s390.
24036         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
24037         target hook.
24038         (decide_unroll_stupid): Likewise.
24039
24040 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24041
24042         PR target/43643
24043         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
24044
24045 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24046
24047         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
24048         (Specific, *-*-solaris2*): Likewise.
24049         Don't prefer Sun as over GNU as.
24050
24051 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
24052
24053         * config/s390/s390.c (override_options): Adjust the z10 defaults
24054         for max-unroll-times, max-completely-peeled-insns
24055         and max-completely-peel-times.
24056
24057 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24058
24059         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
24060         instructions for z10.
24061         (s390_expand_setmem): Likewise.
24062         (s390_expand_cmpmem): Likewise.
24063
24064 2010-04-08  Richard Guenther  <rguenther@suse.de>
24065
24066         PR tree-optimization/43679
24067         * tree-ssa-pre.c (eliminate): Only propagate copies.
24068
24069 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24070
24071         PR bootstrap/43681
24072         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
24073         set but not used variable warning.
24074
24075 2010-04-08  Wei Guozhi  <carrot@google.com>
24076
24077         PR target/41653
24078         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
24079         (arm_size_rtx_costs): Call the new function when optimized for size.
24080
24081 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24082
24083         PR debug/43670
24084         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
24085         op0 is not a MEM, just return NULL instead of assertion
24086         failure.
24087         (discover_nonconstant_array_refs): Don't walk debug stmts.
24088
24089 2010-04-08  Doug Kwan  <dougkwan@google.com>
24090
24091         * configure.ac: Recognize gold and do not use its version number
24092         to test ld features.
24093         * configure: Regenerate.
24094
24095 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
24096
24097         PR middle-end/40815
24098         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
24099         (negate_value): Move code to push elements to broken_up_substracts ...
24100         (eliminate_plus_minus_pair): ... here.  Push operands that have no
24101         negative pair to plus_negates.
24102         (repropagate_negates, init_reassoc, fini_reassoc): Update.
24103
24104 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24105
24106         * doc/install.texi (Configuration): Move description of
24107         --enable-lto, --with-libelf*, --enable-gold from Java section to
24108         general section.
24109
24110         * doc/generic.texi (Working with declarations)
24111         (Function Properties, C and C++ Trees): Fix typos.
24112         * doc/sourcebuild.texi (Top Level): Likewise.
24113
24114 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24115
24116         PR c/18624
24117         * tree.h (DECL_READ_P): Define.
24118         (struct tree_decl_common): Add decl_read_flag.
24119         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
24120         a set but not used warning.
24121         (merge_decls): Merge DECL_READ_P flag.
24122         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
24123         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
24124         * c-common.c (handle_used_attribute, handle_unused_attribute):
24125         Likewise.
24126         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
24127         New prototypes.
24128         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
24129         New functions.
24130         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
24131         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
24132         c_parser_binary_expression, c_parser_cast_expression,
24133         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
24134         Call default_function_array_read_conversion instead of
24135         default_function_array_conversion where needed.
24136         (c_parser_unary_expression, c_parser_conditional_expression,
24137         c_parser_postfix_expression_after_primary, c_parser_initelt):
24138         Likewise.  Call mark_exp_read where needed.
24139         (c_parser_statement_after_labels, c_parser_asm_operands,
24140         c_parser_typeof_specifier, c_parser_sizeof_expression,
24141         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24142         where needed.
24143         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24144         New.
24145         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24146         (warn_unused_but_set_parameter): Default to warn_unused
24147         && extra_warnings.
24148         * doc/invoke.texi: Document -Wunused-but-set-variable and
24149         -Wunused-but-set-parameter.
24150
24151         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24152         used count variable.
24153         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24154         when operandN variables aren't used in the body of the expander
24155         or splitter.
24156         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24157         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24158         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24159         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24160         FOR_EACH_IMM_USE_ON_STMT): Likewise.
24161         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24162         * tree.c (PROCESS_ARG): Likewise.
24163
24164 2010-04-07  Simon Baldwin  <simonb@google.com>
24165
24166         * diagnostic.h (diagnostic_override_option_index): New macro to
24167         set a diagnostic's option_index.
24168         * c-tree.h (c_cpp_error): Add warning reason argument.
24169         * opts.c (_warning_as_error_callback): New.
24170         (register_warning_as_error_callback): Store callback for
24171         warnings enabled via enable_warning_as_error.
24172         (enable_warning_as_error): Call callback, minor code tidy.
24173         * opts.h (register_warning_as_error_callback): Declare.
24174         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24175         response to -Werror=.
24176         (c_common_init_options): Register warning_as_error_callback in opts.c.
24177         * common.opt: Add -Wno-cpp option.
24178         * c-common.c (struct reason_option_codes_t): Map cpp warning
24179         reason codes to gcc option indexes.
24180         * (c_option_controlling_cpp_error): New function, lookup the gcc
24181         option index for a cpp warning reason code.
24182         * (c_cpp_error): Add warning reason argument, call
24183         c_option_controlling_cpp_error for diagnostic_override_option_index.
24184         * doc/invoke.texi: Document -Wno-cpp.
24185
24186 2010-04-07  Richard Guenther  <rguenther@suse.de>
24187
24188         * ipa-reference.c (mark_load): Use get_base_address.
24189         (mark_store): Likewise.
24190
24191         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24192         inserting GIMPLE_NOPs into the IL.
24193         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24194         Explicitly strip handled components and indirect references.
24195
24196         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24197         folding address expressions.
24198         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24199         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24200         operand_equal_p to compare decls.
24201         (ptr_deref_may_alias_decl_p): Likewise.
24202         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24203         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24204         Handle reversed comparison ops.
24205         * tree-sra.c (asm_visit_addr): Use get_base_address.
24206         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24207         * ipa-reference.c (mark_address): Use get_base_address.
24208
24209 2010-04-07  Richard Guenther  <rguenther@suse.de>
24210
24211         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24212         Propagate constants everywhere.
24213
24214 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24215
24216         PR debug/43516
24217         * tree.c (MAX_INT_CACHED_PREC): Define.
24218         (nonstandard_integer_type_cache): New array.
24219         (build_nonstandard_integer_type): Cache results for precision
24220         <= MAX_INT_CACHED_PREC.
24221
24222 2010-04-07  Richard Guenther  <rguenther@suse.de>
24223
24224         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24225         -fargument-noalias-global, -fargument-noalias-anything): Remove.
24226         * common.opt: Likewise.
24227         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24228         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24229         (nonoverlapping_memrefs_p): Likewise.
24230         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24231         * opts.c (common_handle_option): Handle OPT_fargument_alias,
24232         OPT_fargument_noalias, OPT_fargument_noalias_anything and
24233         OPT_fargument_noalias_global for backward compatibility.
24234
24235 2010-04-07  Richard Guenther  <rguenther@suse.de>
24236
24237         PR tree-optimization/43270
24238         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24239         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24240         * tree-ssa-pre.c (phi_translate_1): Adjust.
24241         (fully_constant_expression): Split out vn_reference handling to ...
24242         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24243         Fold reads from constant strings.
24244         (vn_reference_lookup): Handle fully constant references.
24245         (vn_reference_lookup_pieces): Likewise.
24246         * Makefile.in (expmed.o-warn): Add -Wno-error.
24247
24248 2010-04-07  Martin Jambor  <mjambor@suse.cz>
24249
24250         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24251
24252 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
24253
24254         PR driver/41594
24255         * gcc.c: Add -static-libstdc++ to list of recognized options.
24256
24257 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24258
24259         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24260
24261 2010-04-07  Richard Guenther  <rguenther@suse.de>
24262
24263         PR middle-end/42617
24264         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24265         bases build simple mem attributes to retain points-to information.
24266
24267 2010-04-07  Richard Guenther  <rguenther@suse.de>
24268
24269         PR middle-end/42617
24270         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24271         preserve points-to related information.
24272
24273 2010-04-07  Richard Guenther  <rguenther@suse.de>
24274
24275         PR middle-end/42617
24276         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24277         discard plain indirect references.
24278         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24279         * tree.c (tree_nop_conversion): Likewise.
24280
24281 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
24282
24283         PR debug/43628
24284         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24285
24286 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
24287
24288         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24289         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24290
24291 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24292
24293         * tree-if-conv.c: Fix indentation and comments.
24294
24295 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24296
24297         * tree-if-conv.c: Sort static functions in topological order.
24298
24299 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24300
24301         * tree-if-conv.c: Fix indentation and comments.
24302
24303 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24304
24305         PR middle-end/43519
24306         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24307         lang_hooks.types.type_for_size instead of
24308         build_nonstandard_integer_type.
24309         When converting an unsigned type to signed, double its precision.
24310         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24311         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24312         (graphite_create_new_loop_guard): When ub + 1 wraps around,
24313         use lb <= ub.
24314
24315 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24316
24317         PR middle-end/43519
24318         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24319         POINTER_PLUS_EXPR for pointer types.
24320
24321 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24322
24323         PR middle-end/43519
24324         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24325         * graphite-clast-to-gimple.c: Include langhooks.h.
24326         (max_signed_precision_type): New.
24327         (max_precision_type): Takes two types as arguments.
24328         (precision_for_value): New.
24329         (precision_for_interval): New.
24330         (gcc_type_for_interval): New.
24331         (gcc_type_for_value): New.
24332         (gcc_type_for_clast_term): New.
24333         (gcc_type_for_clast_red): New.
24334         (gcc_type_for_clast_bin): New.
24335         (gcc_type_for_clast_expr): Split up into several functions.
24336         (gcc_type_for_clast_eq): Rewritten.
24337         (compute_bounds_for_level): New.
24338         (compute_type_for_level_1): New.
24339         (compute_type_for_level): New.
24340         (gcc_type_for_cloog_iv): Removed.
24341         (gcc_type_for_iv_of_clast_loop): Rewritten.
24342         (graphite_create_new_loop): Compute the lower and upper bound types
24343         with gcc_type_for_clast_expr.
24344         (graphite_create_new_loop_guard): Same.
24345         (find_cloog_iv_in_expr): Removed.
24346         (compute_cloog_iv_types_1): Removed.
24347         (compute_cloog_iv_types): Removed.
24348         (gloog): Do not call compute_cloog_iv_types.
24349         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24350         GBB_CLOOG_IV_TYPES.
24351         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24352         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24353         (GBB_CLOOG_IV_TYPES): Removed.
24354
24355 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24356
24357         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24358         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24359         (detect_commutative_reduction): Same.
24360
24361 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24362
24363         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24364         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
24365         argument.
24366         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24367         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24368         (rewrite_commutative_reductions_out_of_ssa): Same.
24369         * passes.c (execute_function_todo): Call verify_ssa for every pass
24370         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
24371         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24372         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24373         with an extra argument.
24374         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
24375         verify_ssa only when the extra argument is true.
24376         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24377         with an extra argument.
24378         (tree_transform_and_unroll_loop): Same.
24379
24380 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24381
24382         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24383         for all the passes of the LNO having LOOP_CLOSED_SSA.
24384         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24385         * tree-loop-distribution.c (pass_loop_distribution): Same.
24386         * tree-pass.h (TODO_verify_loops): Removed.
24387         * tree-ssa-loop.c (pass_tree_loop_init): Same.
24388         (pass_lim): Same.
24389         (pass_tree_unswitch): Same.
24390         (pass_predcom): Same.
24391         (pass_vectorize): Same.
24392         (pass_linear_transform): Same.
24393         (pass_graphite_transforms): Same.
24394         (pass_iv_canon): Same.
24395         (pass_complete_unroll): Same.
24396         (pass_complete_unrolli): Same.
24397         (pass_parallelize_loops): Same.
24398         (pass_loop_prefetch): Same.
24399         (pass_iv_optimize): Same.
24400
24401 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
24402
24403         PR middle-end/32824
24404         * passes.c (init_optimization_passes): Move pass_lim before
24405         pass_copy_prop and pass_dce_loop.
24406
24407 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24408
24409         PR target/43667
24410         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24411         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24412         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24413         MULTI_* defines for 4 argument vpermil2p* builtins.
24414
24415 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24416
24417         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24418         * config/i386/i386.c (x86_maybe_negate_const_int): New.
24419         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24420         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24421         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24422         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24423         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24424         Use x86_maybe_negate_const_int to output insn mnemonic.
24425         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
24426         check from instruction predicate.  Update comments.
24427         * config/i386/sync.md (sync_add<mode>): Use
24428         x86_maybe_negate_const_int to output insn mnemonic.
24429
24430 2010-04-06  Jan Hubicka  <jh@suse.cz>
24431
24432         PR tree-optimization/42906
24433         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24434         IGNORE_SELF argument.  Set visited_control_parents for fully
24435         processed BBs.
24436         (find_obviously_necessary_stmts): Update call of
24437         mark_control_dependent_edges_necessary.
24438         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
24439
24440 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24441
24442         * config/i386/i386.md: Remove comment about 'e' and 'E'
24443         operand modifier.
24444
24445 2010-04-06  Richard Guenther  <rguenther@suse.de>
24446
24447         PR tree-optimization/43627
24448         * tree-vrp.c (extract_range_from_unary_expr): Widenings
24449         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24450         not varying.
24451
24452 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24453
24454         * BASE-VER: Change to 4.6.0.
24455
24456         PR target/43638
24457         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24458         handling.
24459
24460 2010-04-06  Richard Guenther  <rguenther@suse.de>
24461
24462         PR middle-end/43661
24463         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24464
24465 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24466
24467         * doc/invoke.texi (Optimize Options): Document that LTO
24468         won't remove object access purely due to incompatible
24469         declarations.
24470
24471 2010-04-04  Matthias Klose  <doko@ubuntu.com>
24472
24473         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24474         Initialize variable.
24475
24476 2010-04-03  Richard Guenther  <rguenther@suse.de>
24477
24478         PR middle-end/42509
24479         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24480         require a non-NULL MEM_OFFSET.
24481
24482 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
24483
24484         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24485         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24486         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24487         config/alpha/predicates.md, config/arm/arm.md,
24488         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24489         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24490         config/darwin9.h, config/darwin.c, config/darwin.h,
24491         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24492         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24493         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24494         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24495         config/mips/mips.md, config/mn10300/mn10300.c,
24496         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24497         config/rs6000/aix.h, config/rs6000/dfp.md,
24498         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24499         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24500         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24501         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24502         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24503         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24504         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24505         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24506         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24507         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24508         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24509         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24510         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24511         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24512         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24513         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24514         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24515         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24516         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24517         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24518         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24519         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24520         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24521         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24522         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24523         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24524         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24525         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24526         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24527         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24528         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24529         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24530         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24531         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24532         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24533         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24534
24535 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24536
24537         PR other/43620
24538         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24539         * aclocal.m4: Regenerate.
24540
24541 2010-04-02  Richard Guenther  <rguenther@suse.de>
24542
24543         PR tree-optimization/43629
24544         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24545         if we have seen a constant value.
24546
24547 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24548
24549         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24550
24551 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24552
24553         PR target/43469
24554         * arm.c (legitimize_tls_address): Adjust call to
24555         gen_tls_load_dot_plus_four.
24556         (arm_note_pic_base): New function.
24557         (arm_cannot_copy_insn_p): Use it.
24558         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24559         constraint.
24560
24561 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24562
24563         PR bootstrap/43531
24564
24565         Revert:
24566         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24567
24568         * Makefile.in ($(out_object_file)): Depend on
24569         gt-$(basename $(notdir $(out_file))).h.
24570
24571 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24572
24573         * config.gcc (lm32-*-rtems*): Add t-lm32.
24574
24575 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24576
24577         * config.gcc: Add lm32-*-rtems*.
24578         * config/lm32/rtems.h: New file.
24579
24580 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24581
24582         PR target/42609
24583         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24584
24585 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24586
24587         * dwarf2out.c (output_compilation_unit_header): For
24588         -gdwarf-4 use version 4 instead of version 3.
24589         (output_line_info): For version 4 and above emit additional
24590         maximum ops per insn header field.
24591         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24592
24593         * dwarf2out.c (is_c_family, is_java): Remove.
24594         (lower_bound_default): New function.
24595         (add_bound_info, gen_descr_array_type_die): Use it.
24596
24597 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24598
24599         PR debug/43325
24600         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24601         re-declaration when it happens in a function.
24602
24603 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24604
24605         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24606         (cgraph_remove_function_insertion_hook): Same.
24607         (cgraph_call_function_insertion_hooks): Same.
24608
24609 2010-04-01  Richard Guenther  <rguenther@suse.de>
24610
24611         PR middle-end/43614
24612         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24613         and TREE_THIS_VOLATILE.
24614         (copy_ref_info): Likewise.
24615         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24616         * tree.c (build6_stat): Ignore side-effects of all but arg5
24617         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24618         TARGET_MEM_REF.
24619
24620 2010-04-01  Richard Guenther  <rguenther@suse.de>
24621
24622         PR tree-optimization/43607
24623         * ipa-type-escape.c (check_call): Do not access non-existing
24624         arguments.
24625
24626 2010-04-01  Richard Guenther  <rguenther@suse.de>
24627
24628         PR middle-end/43602
24629         Revert
24630         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24631                     Jack Howarth  <howarth@bromo.med.uc.edu>
24632
24633         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24634         variables TLS.
24635
24636 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24637
24638         * doc/install.texi (Prerequisites): Document libelf usability on
24639         IRIX 5/6 and Solaris 2.
24640         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24641         Update GNU as, GNU ld requirements.
24642         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24643         Document Sun Studio compiler download.
24644         Update and simplify as, ld recommendations.
24645         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24646
24647 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24648
24649         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24650         with_tune_32 to pentium4.
24651
24652 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24653
24654         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24655
24656 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24657
24658         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24659         obsoletion, removal.
24660         Update IDO URL.
24661         Document GNU as requirement.
24662         Update configure requirements.
24663         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24664         Recomment IRIX 6.5.18+.
24665         Document IDF/IDL requirement.
24666         Document GNU as requirement.
24667         Document GNU ld bootstrap failure.
24668         Remove freeware.sgi.com reference.
24669
24670 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24671
24672         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24673         UNIX V4.0, V5.0 obsoletion, removal.
24674         Remove --with-gc=simple reference.
24675         Update VM requirements during bootstrap.
24676         Remove -oldas bootstrap description.
24677         Update binutils reference.
24678         Remove comparison failure note.
24679
24680 2010-03-31  Richard Guenther  <rguenther@suse.de>
24681             Zdenek Dvorak  <ook@ucw.cz>
24682             Sebastian Pop  <sebastian.pop@amd.com>
24683
24684         PR middle-end/43464
24685         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24686         with multiple arguments.
24687         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24688
24689 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24690
24691         * graphite-dependences.c (print_pddr): Call print_pdr with an
24692         extra argument.
24693         * graphite-poly.c (debug_pdr): Add an extra argument for the
24694         verbosity level.
24695         (print_pdr): Same.
24696         (print_pbb_domain): Same.
24697         (print_pbb): Same.
24698         (print_scop_context): Same.
24699         (print_scop): Same.
24700         (print_cloog): Same.
24701         (debug_pbb_domain): Same.
24702         (debug_pbb): Same.
24703         (print_pdrs): Same.
24704         (debug_pdrs): Same.
24705         (debug_scop_context): Same.
24706         (debug_scop): Same.
24707         (debug_cloog): Same.
24708         (print_scop_params): Same.
24709         (debug_scop_params): Same.
24710         (print_iteration_domain): Same.
24711         (print_iteration_domains): Same.
24712         (debug_iteration_domain): Same.
24713         (debug_iteration_domains): Same.
24714         (print_scattering_function): Same.
24715         (print_scattering_functions): Same.
24716         (debug_scattering_function): Same.
24717         (debug_scattering_functions): Same.
24718         * graphite-poly.h (debug_pdr): Update declaration.
24719         (print_pdr): Same.
24720         (print_pbb_domain): Same.
24721         (print_pbb): Same.
24722         (print_scop_context): Same.
24723         (print_scop): Same.
24724         (print_cloog): Same.
24725         (debug_pbb_domain): Same.
24726         (debug_pbb): Same.
24727         (print_pdrs): Same.
24728         (debug_pdrs): Same.
24729         (debug_scop_context): Same.
24730         (debug_scop): Same.
24731         (debug_cloog): Same.
24732         (print_scop_params): Same.
24733         (debug_scop_params): Same.
24734         (print_iteration_domain): Same.
24735         (print_iteration_domains): Same.
24736         (debug_iteration_domain): Same.
24737         (debug_iteration_domains): Same.
24738         (print_scattering_function): Same.
24739         (print_scattering_functions): Same.
24740         (debug_scattering_function): Same.
24741         (debug_scattering_functions): Same.
24742
24743 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24744
24745         * graphite-poly.c (print_scattering_function_1): New.
24746         (print_scattering_function): Call it.
24747         (print_scop_params): Remove spaces at the end of lines.
24748         (print_cloog): New.
24749         (debug_cloog): New.
24750         * graphite-poly.h (print_cloog): Declared.
24751         (debug_cloog): Declared.
24752
24753 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24754
24755         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24756         in loop->header.
24757         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24758         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24759         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24760         to switch between adding the IV bump in loop->latch or in loop->header.
24761
24762 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24763
24764         * graphite-poly.c (print_scattering_function): Pretty print following
24765         the scoplib format.
24766         (print_pdr): Same.
24767         (print_pbb_domain): Same.
24768         (dump_gbb_cases): Same.
24769         (dump_gbb_conditions): Same.
24770         (print_pdrs): Same.
24771         (print_pbb): Same.
24772         (print_scop_params): Same.
24773         (print_scop_context): Same.
24774         (print_scop): Same.
24775         (print_pbb_body): New.
24776         (lst_indent_to): New.
24777         (print_lst): Start new lines with a #.
24778         * graphite-poly.h (pbb_bb): New.
24779         (pbb_index): Use pbb_bb.
24780         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24781         disjuncts.
24782         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24783
24784 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24785
24786         * dwarf2out.c (size_of_die): For -gdwarf-4 use
24787         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24788         and 0 instead of 1 for dw_val_class_flag.
24789         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24790         dw_val_class_range_list, dw_val_class_loc_list,
24791         dw_val_class_lineptr and dw_val_class_macptr, use
24792         DW_FORM_flag_present for dw_val_class_flag and
24793         DW_FORM_exprloc for dw_val_class_loc.
24794         (output_die): For -gdwarf-4 print dw_val_class_loc
24795         size as uleb128 instead of 1 or 2 bytes and don't print
24796         anything for dw_val_class_flag.
24797
24798         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24799         instead of cselib_lookup following by tweaking locs->setting_insn.
24800
24801         PR bootstrap/43596
24802         * cselib.c (cselib_process_insn): Clear cselib_current_insn
24803         even before returning from label, setjmp call or volatile asm
24804         handling.
24805
24806 2010-03-31  Richard Guenther  <rguenther@suse.de>
24807
24808         PR middle-end/43600
24809         * cgraphunit.c (cgraph_output_in_order): Do not allocate
24810         temporary data on stack.
24811
24812 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24813
24814         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24815         (PUSHSECTION_ASM_OP): Remove.
24816         (POPSECTION_ASM_OP): Remove.
24817         (PUSHSECTION_FORMAT): Remove.
24818         * config/sol2.h (PUSHSECTION_FORMAT): Define.
24819         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24820         * config/sol2.c (solaris_output_init_fini): Use it.
24821
24822 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24823
24824         PR 43574
24825         * opt-functions.awk (var_type_struct): Use signed char type
24826         for simple variables.
24827
24828 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24829
24830         * config/sol2.c: Include output.h.
24831         (solaris_assemble_visibility): New function.
24832         * config/t-sol2 (sol2.o): Add output.h dependency.
24833         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24834         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24835         Redefine.
24836
24837 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24838
24839         PR target/43580
24840         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24841         V2SImode or XFmode on PRE_DEC.
24842
24843         PR debug/43557
24844         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24845         BLKmode.
24846
24847 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24848
24849         PR 43562
24850         * reload.h (caller_save_initialized_p): Declare.
24851         * toplev.c (backend_init_target): Don't call
24852         init_caller_save but set caller_save_initialized_p to false.
24853         * caller-save.c (caller_save_initialized_p): Define.
24854         (init_caller_save): Check caller_save_initialized_p.
24855         * ira.c (ira): Call init_caller_save if flag_caller_saves.
24856
24857 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24858
24859         PR target/39048
24860         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
24861         and soft-fp/t-softfp to tmake_file.
24862         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
24863         (LIBGCC2_TF_CEXT): Define.
24864         (TF_SIZE): Define.
24865
24866 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
24867
24868         PR debug/42977
24869         * cselib.c (n_useless_values): Document handling of debug locs.
24870         (n_useless_debug_values, n_debug_values): New variables.
24871         (new_elt_loc_list): Don't add to debug values, keep count.
24872         (promote_debug_loc): New.
24873         (cselib_reset_table): Zero new variables.
24874         (entry_and_rtx_equal_p): Promote debug locs.
24875         (discard_useless_locs): Increment n_useless_debug_values for
24876         debug values.
24877         (remove_useless_values): Adjust n_useless_values and n_debug_values
24878         with n_useless_debug_values.
24879         (add_mem_for_addr): Promote debug locs.
24880         (cselib_lookup_mem): Likewise.
24881         (cselib_lookup_addr): Renamed to...
24882         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
24883         (cselib_log_lookup): ... this.  Turn into...
24884         (cselib_lookup_addr): ... new wrapper.
24885         (cselib_lookup_from_insn): New.
24886         (cselib_invalidate_regno): Increment n_useless_debug_values for
24887         debug values.
24888         (cselib_invalidate_mem): Likewise.
24889         (cselib_process_insn): Take n_deleted and n_debug_values into
24890         account to guard remove_useless_value call.
24891         (cselib_finish): Zero n_useless_debug_values.
24892         * cselib.h (cselib_lookup_from_insn): Declare.
24893         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
24894         (sched_analyze_2): Likewise.
24895
24896 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
24897
24898         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
24899         functions.
24900         (adjust_mems): Replace narrowing SUBREG of expression containing
24901         just PLUS, MINUS, MULT and ASHIFT of registers and constants
24902         with operations in the narrower mode.
24903
24904         PR debug/43593
24905         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
24906         regs_invalidated_by_call instead all call_used_reg_set registers.
24907
24908 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24909
24910         PR middle-end/43430
24911         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
24912         pointer comparisons with types_compatible_p.
24913         * tree-vect-stmts.c (vectorizable_call): Same.
24914         (vectorizable_condition): Same.
24915
24916 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24917
24918         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
24919         stack check if the mask would be zero.
24920
24921 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24922             Jack Howarth  <howarth@bromo.med.uc.edu>
24923
24924         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24925         variables TLS.
24926
24927 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
24928
24929         PR other/25232
24930         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
24931         and __unordtf2.
24932         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
24933         Include ___unordxf2 and ___unordtf2.
24934         * config/i386/libgcc-glibc.ver: Do not define inheritance from
24935         GCC_4.4.0 here.
24936
24937 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
24938
24939         * config/lm32/t-lm32: New file.
24940         * config.gcc: Use the above file when targetting lm32.
24941
24942 2010-03-28  Duncan Sands  <baldrick@free.fr>
24943
24944         * Makefile.in (PLUGIN_HEADERS): Add except.h.
24945
24946 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24947
24948         PR middle-end/43431
24949         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
24950         Improve vectorization cost model diagnostic.
24951
24952 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24953
24954         PR middle-end/43436
24955         * tree-vect-data-refs.c (vect_analyze_data_refs): When
24956         compute_data_dependences_for_loop returns false, early exit
24957         and output an extra diagnostic for the failed data reference
24958         analysis.
24959
24960 2010-03-29  Richard Guenther  <rguenther@suse.de>
24961
24962         PR tree-optimization/43560
24963         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
24964         (can_sm_ref_p): Treat stores to readonly locations as trapping.
24965
24966 2010-03-29  Jie Zhang  <jie@codesourcery.com>
24967
24968         PR 43564
24969         * toplev.c (process_options): Set optimization_default_node
24970         and optimization_current_node.
24971         * opts.c (decode_options): Don't set optimization_default_node
24972         and optimization_current_node.
24973
24974 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
24975
24976         * config/rtems.h: Abandon -qrtems_debug.
24977
24978 2010-03-28  Jan Hubicka  <jh@suse.cz>
24979
24980         PR tree-optimization/43505
24981         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
24982         map should not be copied.
24983
24984 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24985
24986         PR middle-end/41674
24987         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
24988         cdtors, set DECL_PRESERVE_P.
24989         * ipa.c (cgraph_externally_visible_p): Return true if declaration
24990         should be preseved.
24991
24992 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
24993
24994         PR tree-optimization/43528
24995         * stor-layout.c (place_field): Check that constant fits into
24996         unsigned HWI when skipping calculation of MS bitfield layout.
24997
24998 2010-03-27  Jan Hubicka  <jh@suse.cz>
24999
25000         PR middle-end/43391
25001         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
25002         notice_global_symbol work.
25003
25004 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
25005
25006         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
25007         instead of dwarf2out_decl.
25008         (struct var_loc_node): Remove section_label field.
25009         (dwarf2out_function_decl): New function.
25010         (dwarf2out_var_location): Don't set section_label field.
25011         (dwarf2out_begin_function): Don't empty decl_loc_table here.
25012
25013 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25014
25015         PR tree-optimization/43544
25016         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25017         First argument for builtin vectorized function hook is now a
25018         tree to be able to distinguish between machine specific and
25019         standard builtins.
25020         * targhooks.c (default_builtin_vectorized_function): Ditto.
25021         * targhooks.h (default_builtin_vectorized_function): Ditto.
25022         * target.h (struct gcc_target): Ditto.
25023         * tree-vect-stmts.c (vectorizable_function): Ditto.
25024         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
25025         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
25026         Ditto.
25027
25028 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
25029
25030         PR c/43381
25031         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
25032         nested binding iff it is a FUNCTION_DECL.
25033         (store_parm_decls_newstyle): Pass nested=true to bind for
25034         FUNCTION_DECLs amongst parameters.
25035
25036 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25037
25038         * var-tracking.c (vt_expand_loc_callback): Don't run
25039         cselib_expand_value_rtx_cb in dummy mode if
25040         cselib_dummy_expand_value_rtx_cb returned false.
25041
25042         * var-tracking.c (emit_note_insn_var_location): For one part
25043         notes with offset 0, don't add EXPR_LIST around the location.
25044         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
25045         add_location_or_const_value_attribute): Adjust for that change.
25046
25047         PR debug/43540
25048         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
25049         into first operand and location into second.
25050         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
25051         dw_cfi_oprnd_loc for DW_CFA_expression.
25052         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
25053         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
25054         assume first argument is regnum and second argument is location.
25055
25056 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25057
25058         PR target/42113
25059         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
25060         of scratch register to DImode.  Split to DImode comparison operator.
25061         Use SImode subreg of scratch register in the multiplication.
25062         (*cmp_sadd_sidi): Ditto.
25063         (*cmp_ssub_si): Ditto.
25064         (*cmp_ssub_sidi): Ditto.
25065
25066 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25067
25068         PR target/43524
25069         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
25070         Remove invalid assert and wrong comment.
25071
25072 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25073
25074         PR debug/43516
25075         * flags.h (final_insns_dump_p): New extern.
25076         * final.c (final_insns_dump_p): New variable.
25077         (rest_of_clean_state): Set it before -fdump-final-insns=
25078         dumping, clear afterwards.
25079         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
25080         MEM_ALIAS_SET on MEMs.
25081
25082 2010-03-26  David S. Miller  <davem@davemloft.net>
25083
25084         * configure.ac: Fix sparc GOTDATA_OP bug check.
25085         * configure: Rebuild.
25086
25087 2010-03-26  Alan Modra  <amodra@gmail.com>
25088
25089         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
25090
25091 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25092
25093         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
25094         TLS_SECTION_ASM_FLAG.
25095
25096 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
25097
25098         PR bootstrap/43511
25099         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
25100         Clear first_function_block_is_cold.
25101
25102         PR c/43385
25103         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
25104         argument if the argument is truth_value_p.
25105
25106 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25107
25108         * config/rs6000/constraints.md: Update copyright year for my changes.
25109
25110         PR target/43484
25111         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
25112         used in reg+reg addressing, swap registers.
25113
25114 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25115
25116         PR debug/43293
25117         * target.h (struct gcc_target): Add code_end hook.
25118         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
25119         if not yet defined.
25120         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
25121         * toplev.c (compile_file): Call targetm.asm_out.code_end
25122         hook before unwind info/debug info output.
25123         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
25124         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
25125         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25126         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
25127         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25128         * config/i386/i386.c (ix86_file_end): Renamed to...
25129         (ix86_code_end): ... this.  Make static.  Don't call
25130         file_end_indicate_exec_stack.  Emit unwind info using
25131         final_start_function/final_end_function.
25132         (darwin_x86_file_end): Remove.
25133         (TARGET_ASM_CODE_END): Define.
25134         * config/i386/i386.h (TARGET_ASM_FILE_END,
25135         NEED_INDICATE_EXEC_STACK): Don't define.
25136         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25137         (TARGET_ASM_FILE_END): Define to darwin_file_end.
25138         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25139         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25140
25141         PR target/43498
25142         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25143         at the beginning and final_end_function at the end.
25144         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25145
25146 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25147
25148         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25149         and Sun as TLS syntax.
25150         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25151         * configure: Regenerate.
25152         * config.in: Regenerate.
25153         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25154         (default_elf_asm_named_section): Use it.
25155         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25156         (i386_output_dwarf_dtprel): Likewise.
25157         (output_addr_const_extra): Likewise.
25158         (output_pic_addr_const): Lowercase @GOTTPOFF.
25159         (output_addr_const_extra): Likewise.
25160         (output_pic_addr_const): Lowercase @GOTNTPOFF.
25161         (output_addr_const_extra): Likewise.
25162         (output_pic_addr_const): Lowercase @INDNTPOFF.
25163         (output_addr_const_extra): Likewise.
25164         (output_pic_addr_const): Lowercase @NTPOFF.
25165         (output_addr_const_extra): Likewise.
25166         (output_pic_addr_const): Lowercase @TPOFF.
25167         (output_addr_const_extra): Likewise.
25168         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25169         (*tls_global_dynamic_64): Likewise.
25170         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25171         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25172
25173         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25174         (ASM_OUTPUT_TLS_COMMON): Use it.
25175         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25176
25177         PR target/38118
25178         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25179         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25180         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25181         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25182         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25183         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25184
25185 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25186
25187         * config/i386/i386.c (override_options): Don't accept
25188         -mtls-dialect=sun any longer.
25189         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25190         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25191         (*tls_local_dynamic_base_32_sun): Likewise.
25192         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25193
25194 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25195
25196         PR debug/43508
25197         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25198         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25199
25200         PR debug/43479
25201         * ira.c (adjust_cleared_regs): New function.
25202         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25203
25204         PR debug/19192
25205         PR debug/43479
25206         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25207         from gimple_block.
25208         * expr.c (expand_expr_real): Restore previous
25209         curr_insn_source_location and curr_insn_block after
25210         expand_expr_real_1 call.
25211         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25212         instead of expand_expr_real_1.
25213
25214 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
25215
25216         PR rtl-optimization/43413
25217         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25218         hard regs too.
25219
25220 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
25221
25222         PR target/43348
25223         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25224         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25225
25226 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25227
25228         * config/i386/i386.c (ix86_target_string): Add -mfma.
25229         Fix a typo in comment.
25230
25231 2010-03-22  Mike Stump  <mikestump@comcast.net>
25232
25233         PR target/23071
25234         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25235         Don't overly align based upon packed packed fields.
25236
25237 2010-03-22  Jason Merrill  <jason@redhat.com>
25238
25239         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25240         Use () rather than [], and move before the element type.
25241
25242 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25243
25244         * doc/configfiles.texi (Configuration Files): Removed
25245         fixinc/Makefile*, intl/Makefile.*.
25246         * doc/makefile.texi: Fixed markup. Abstract from version
25247         control system used.
25248         (Makefile): Removed obsolete java/parse.y example.
25249         * doc/sourcebuild.texi: Likewise.
25250         (Top Level): Added config, gnattools, libdecnumber, libgcc,
25251         libgomp, libssp.  Removed fastjar.
25252         (Miscellaneous Docs): Clarify location.
25253         Added COPYING3, COPYING3.LIB.
25254         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25255
25256 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25257
25258         PR target/38085
25259         * config/i386/i386.c (x86_function_profiler)
25260         [!NO_PROFILE_COUNTERS]: Fix typo.
25261         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25262         instead of callq.
25263
25264 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
25265             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25266
25267         * doc/sourcebuild.texi (Test Directives): Split into six
25268         subsections, with most of the current text in new subsections
25269         Directives, Selectors, and Final Actions.
25270         (Directives): Split list of test directives into multiple
25271         subsubsections.
25272         (Selectors): Describe use and syntax of selectors.
25273         (Effective-Target Keywords): Describe all existing keywords.
25274         (Add Options): Describe features for dg-add-options.
25275         (Require Support): Describe variants of dg-require-support.
25276         (Final Actions): Describe commands to use in dg-final.
25277
25278 2010-03-22  Michael Matz  <matz@suse.de>
25279
25280         PR middle-end/43475
25281         * recog.c (validate_replace_rtx_group): Replace also in
25282         REG_EQUAL and REG_EQUIV notes.
25283
25284 2010-03-22  Richard Guenther  <rguenther@suse.de>
25285
25286         PR tree-optimization/43390
25287         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25288         sure vector extracts are type correct.
25289
25290 2010-03-22  Richard Guenther  <rguenther@suse.de>
25291
25292         PR middle-end/40106
25293         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25294         x * sqrt (x) even when optimizing for size if the target
25295         has native support for sqrt.
25296
25297 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
25298
25299         * varasm.c (make_decl_rtl_for_debug): Also clear
25300         flag_mudflap for the duration of make_decl_rtl call.
25301
25302         PR debug/43443
25303         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25304         locs from preserved VALUEs.
25305
25306 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25307
25308         PR middle-end/42718
25309         * pa.md (movmemsi): Set align to one if zero.
25310         (movmemdi): Likewise.
25311
25312 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
25313
25314         PR target/42321
25315         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25316         with their corresponding prologue pushes.
25317
25318 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
25319
25320         PR target/43156
25321         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25322         at the begining or end.
25323         (spu_expand_epilogue): Likewise.
25324
25325 2010-03-20  Richard Guenther  <rguenther@suse.de>
25326
25327         PR rtl-optimization/43438
25328         * combine.c (make_extraction): Properly zero-/sign-extend an
25329         extraction of the low part of a CONST_INT.  Also handle
25330         CONST_DOUBLE.
25331
25332 2010-03-19  Mike Stump  <mikestump@comcast.net>
25333
25334         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25335         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25336         (override_options): Use SUBTARGET32_DEFAULT_CPU.
25337
25338 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25339
25340         PR c/43211
25341         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25342         an error.
25343
25344 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
25345
25346         PR rtl-optimization/42258
25347         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25348         use that may match DEF.
25349
25350         PR target/40697
25351         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25352         the cost of loading the constant rather than assuming
25353         COSTS_N_INSNS (1).
25354         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25355         outer code is AND, do the same tests as the andsi3 expander and
25356         return COSTS_N_INSNS (1) if and is cheap.
25357
25358         * optabs.c (avoid_expensive_constant): Fix formatting.
25359
25360 2010-03-19  Michael Matz  <matz@suse.de>
25361
25362         PR c++/43116
25363         * attribs.c (decl_attributes): When rebuilding a function pointer
25364         type use the same qualifiers as the original pointer type.
25365
25366 2010-03-19  Martin Jambor  <mjambor@suse.cz>
25367
25368         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25369         and is_gimple_ip_invariant_address.
25370
25371 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25372
25373         Revert
25374         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25375
25376         * config/arm/arm.c (arm_override_options): Turn off
25377         flag_dwarf2_cfi_asm for AAPCS variants.
25378
25379 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25380
25381         PR target/43399
25382         * config/arm/arm.c (emit_multi_reg_push): Update comments.
25383         Use PRE_MODIFY instead of PRE_DEC.
25384         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25385         (vfp_emit_fstmd): Likewise.
25386
25387 2010-03-19  Michael Matz  <matz@suse.de>
25388
25389         PR target/43305
25390         * builtins.c (expand_builtin_interclass_mathfn,
25391         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25392         if that fails.
25393
25394 2010-03-19  Richard Guenther  <rguenther@suse.de>
25395
25396         PR tree-optimization/43415
25397         * tree-ssa-pre.c (phi_translate): Split out worker to ...
25398         (phi_translate_1): ... this.
25399         (phi_translate): Move all caching here.  Cache all NARY
25400         and REFERENCE translations.
25401
25402 2010-03-19  David S. Miller  <davem@davemloft.net>
25403
25404         With help from Eric Botcazou.
25405         * config/sparc/sparc.c: Include dwarf2out.h.
25406         (emit_pic_helper): Delete.
25407         (pic_helper_symbol_name): Delete.
25408         (pic_helper_emitted_p): Delete.
25409         (pic_helper_needed): New.
25410         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25411         (get_pc_thunk_name): New.
25412         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
25413         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25414         Set pic_helper_needed to true.  Don't call emit_pic_helper.
25415         (sparc_expand_prologue): Update load_pic_register call.
25416         (sparc_output_mi_thunk): Likewise.
25417         (sparc_file_end): Emit a hidden comdat symbol for the PIC
25418         thunk if possible.  Output CFI information as needed.
25419
25420 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25421             Jack Howarth  <howarth@bromo.med.uc.edu>
25422
25423         PR target/36399
25424         * config/i386/i386.h: Fix ABI on darwin x86-32.
25425
25426 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
25427
25428         * tree.h: Declare make_decl_rtl_for_debug.
25429         * varasm.c (make_decl_rtl_for_debug): New.
25430         * dwarf2out.c (rtl_for_decl_location): Call it.
25431         * cfgexpand.c (expand_debug_expr): Call it.
25432
25433 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25434
25435         PR bootstrap/43399
25436         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25437         mem_mode.
25438
25439         PR bootstrap/43403
25440         * var-tracking.c (vt_init_cfa_base): Do nothing if
25441         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25442
25443 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
25444
25445         PR debug/42873
25446         * var-tracking.c (canonicalize_vars_star): New.
25447         (dataflow_post_merge_adjust): Use it.
25448
25449 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25450
25451         PR debug/43058
25452         * var-tracking.c (non_suitable_const): New function.
25453         (add_uses): For DEBUG_INSNs with constants, don't record any
25454         value, instead just the constant value itself.
25455         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25456         is not VAR_LOC_UNKNOWN_P, set var to the constant.
25457         (emit_notes_in_bb): Likewise.
25458         (emit_note_insn_var_location): For onepart variables if
25459         cur_loc is a VOIDmode constant, use DECL_MODE.
25460
25461 2010-03-18  Martin Jambor  <mjambor@suse.cz>
25462
25463         PR middle-end/42450
25464         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25465         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25466         all non-clones.  Moved call redirection...
25467         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25468         (cgraph_materialize_all_clones): Dispose of all
25469         combined_args_to_skip bitmaps.
25470         (verify_cgraph_node): Do not check for edges pointing to wrong
25471         nodes in inline clones.
25472         * tree-inline.c (copy_bb): Call
25473         cgraph_redirect_edge_call_stmt_to_callee.
25474         * ipa.c (cgraph_remove_unreachable_nodes): Call
25475         cgraph_node_remove_callees even when there are used clones.
25476
25477 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25478
25479         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25480
25481 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25482
25483         PR target/43383
25484         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25485         for 32bit.
25486
25487 2010-03-18  Michael Matz  <matz@suse.de>
25488
25489         PR middle-end/43419
25490         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25491         into sqrt(x) if we need to preserve signed zeros.
25492
25493 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
25494             Eric Botcazou  <ebotcazou@adacore.com>
25495
25496         PR rtl-optimization/43360
25497         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25498         note if we don't know its invariant status.
25499
25500 2010-03-18  Michael Matz  <matz@suse.de>
25501
25502         PR tree-optimization/43402
25503         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25504         PHI chains of ssa names registered for update.
25505
25506 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
25507
25508         PR target/42427
25509         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25510         non-offsettable and pre_modify update addressing.
25511         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25512         and "2" alternatives "#".
25513         (*movdd_softfloat32): Make all alternatives "#";
25514         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25515         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25516         (*movdf_softfloat32): Make all alternatives "#";
25517         (movdi): Use the new DIFD mode iterator to create a common splitter
25518         for movdi, movdf and movdd patterns.
25519
25520 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25521
25522         * common.opt (dumpdir): Remove redundant tab.
25523
25524 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25525
25526         PR tree-optimization/43347
25527         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25528         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25529
25530 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25531
25532         PR rtl-optimization/42216
25533         * regrename.c (create_new_chain): New function, broken out from...
25534         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25535         appending a use to an empty chain.
25536         (build_def_use): Remove previous changes that convert OP_INOUT to
25537         OP_OUT operands; instead detect the case where an OP_INOUT operand
25538         uses a previously untracked register and create an empty chain for it.
25539
25540 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25541
25542         * doc/extend.texi (Function Attributes): Rewrite unfinished
25543         sentence in ms_abi documentation.
25544
25545 2010-03-17  Alan Modra  <amodra@gmail.com>
25546
25547         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25548         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25549         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25550         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25551
25552 2010-03-16  Richard Henderson  <rth@redhat.com>
25553
25554         PR middle-end/43365
25555         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25556         (lower_try_finally): Save and restore eh_seq around the expansion
25557         of the try-finally.
25558
25559 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25560
25561         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25562         statements before splitting block.
25563
25564 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25565
25566         * doc/sourcebuild.texi (Testsuites): Fix markup.
25567         Use pathnames relative to gcc/testsuite.
25568         (Test Directives): Move description of how timeout is determined.
25569         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25570         (C Tests): Correct gcc.misc-tests directory.
25571         Framework tests now live in gcc.test-framework.
25572
25573 2010-03-16  Richard Guenther  <rguenther@suse.de>
25574
25575         PR middle-end/43379
25576         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25577         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25578
25579 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25580             Alexandre Oliva  <aoliva@redhat.com>
25581
25582         PR tree-optimization/42917
25583         * lambda-code.c (remove_iv): Skip debug statements.
25584         (lambda_loopnest_to_gcc_loopnest): Likewise.
25585         (not_interesting_stmt): Debug statements are not interesting.
25586
25587 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25588
25589         PR debug/43051
25590         PR debug/43092
25591         * cselib.c (cselib_preserve_constants,
25592         cfa_base_preserved_val): New static variables.
25593         (preserve_only_constants): New function.
25594         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25595         clear its REG_VALUES.  If cselib_preserve_constants, don't
25596         empty the whole hash table, but preserve there VALUEs with constants,
25597         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25598         (cselib_preserve_cfa_base_value): New function.
25599         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25600         (cselib_init): Change argument to int bitfield.  Set
25601         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25602         is in it.
25603         (cselib_finish): Clear cselib_preserve_constants and
25604         cfa_base_preserved_val.
25605         * cselib.h (enum cselib_record_what): New enum.
25606         (cselib_init): Change argument to int.
25607         (cselib_preserve_cfa_base_value): New prototype.
25608         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25609         * dse.c (dse_step1): Likewise.
25610         * cfgcleanup.c (thread_jump): Likewise.
25611         * sched-deps.c (sched_analyze): Likewise.
25612         * gcse.c (local_cprop_pass): Likewise.
25613         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25614         If FN is non-NULL, call the callback always and whenever it returns
25615         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25616         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25617         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25618         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25619         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25620         * var-tracking.c: Include recog.h.
25621         (bb_stack_adjust_offset): Remove.
25622         (vt_stack_adjustments): Don't call it, instead just gather the
25623         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25624         (adjust_stack_reference): Remove.
25625         (compute_cfa_pointer): New function.
25626         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25627         (struct adjust_mem_data): New type.
25628         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25629         functions.
25630         (get_address_mode): New function.
25631         (replace_expr_with_values): Use it.
25632         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25633         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25634         (adjust_sets): Remove.
25635         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25636         Use get_address_mode.
25637         (get_adjusted_src): Remove.
25638         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25639         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25640         (add_with_sets): Don't call adjust_sets.
25641         (fp_setter, vt_init_cfa_base): New functions.
25642         (vt_initialize): Change return type to bool.  Move most of pool etc.
25643         initialization to the beginning of the function from end.  Pass
25644         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25645         If !frame_pointer_needed, call vt_stack_adjustment before mos
25646         vector is filled, call vt_init_cfa_base if argp/framep has been
25647         eliminated to sp.  If frame_pointer_needed and argp/framep has
25648         been eliminated to hard frame pointer, set
25649         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25650         encountering fp setter in the prologue.  For MO_ADJUST, call
25651         log_op_type before pusing the op into mos vector, not afterwards.
25652         Call adjust_insn before cselib_process_insn/add_with_sets,
25653         call cancel_changes (0) afterwards.
25654         (variable_tracking_main_1): Adjust for vt_initialize calling
25655         vt_stack_adjustments and returning whether it succeeded or not.
25656
25657 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25658
25659         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25660         debug statements.
25661
25662 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25663
25664         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25665         has been set.
25666         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25667         drap_reg has not been set.
25668
25669 2010-03-15  Michael Matz  <matz@suse.de>
25670
25671         PR middle-end/43300
25672         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25673         use it to expand block copies.
25674         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25675         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25676         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25677
25678 2010-03-15  Richard Guenther  <rguenther@suse.de>
25679
25680         PR tree-optimization/43367
25681         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25682         elimination check.
25683
25684 2010-03-15  Richard Guenther  <rguenther@suse.de>
25685
25686         PR tree-optimization/43317
25687         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25688
25689 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25690
25691         PR tree-optimization/43141
25692         * tree-sra.c (create_abstract_origin): New function.
25693         (modify_function): Call create_abstract_origin.
25694
25695 2010-03-15  Chris Demetriou  <cgd@google.com>
25696
25697         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25698         wasn't copied.
25699
25700 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25701
25702         PR middle-end/43354
25703         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25704         call insert_out_of_ssa_copy for default definitions.
25705
25706 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25707
25708         * graphite-clast-to-gimple.c (my_long_long): Defined.
25709         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25710         * graphite-sese-to-poly.c (my_long_long): Defined.
25711         (scop_ivs_can_be_represented): Use it.
25712
25713 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25714
25715         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25716         graphite-max-bbs-per-function, and loop-block-tile-size.
25717         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25718         with "maximum".
25719         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25720
25721 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25722
25723         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25724         forward declaration.
25725         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25726         (add_upper_bounds_from_estimated_nit): New.
25727         (build_loop_iteration_domains): Use it.
25728
25729 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25730
25731         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25732
25733 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25734
25735         PR middle-end/43306
25736         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25737         should be an INTEGER_CST.  Also handle CASE_CONVERT.
25738
25739 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25740
25741         * graphite.c (graphite_initialize): To bound the number of bbs per
25742         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25743         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25744         * doc/invoke.texi: Document it.
25745
25746 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25747
25748         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25749         * graphite-sese-to-poly.h (build_poly_scop): Same.
25750
25751 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25752
25753         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25754         the number of parameters in the scop.  Use as an upper bound
25755         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25756         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25757         * doc/invoke.texi: Document it.
25758
25759 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
25760
25761         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25762         * doc/c-tree.texi: Remove.
25763         * doc/generic.texi: Merge c-tree.texi here.
25764         * doc/gccint.texi (Trees): Remove menu entry.
25765         (c-tree.texi): Remove @include.
25766         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25767         * doc/languages.texi (Reading RTL): Ditto.
25768
25769 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
25770
25771         PR target/42869
25772         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25773
25774 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25775
25776         PR middle-end/42431
25777         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25778         code added to work around reload clobbering CONST insns.
25779
25780 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
25781
25782         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25783         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25784         (cselib_preserve_only_values): Remove retain argument, don't
25785         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25786         * cselib.h (cselib_preserve_only_values): Remove retain argument.
25787         * var-tracking.c (micro_operation): Move insn field before union.
25788         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25789         (struct variable_tracking_info_def): Remove n_mos field, change
25790         mos into a vector of micro_operations.
25791         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25792         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25793         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25794         changing into a vector.
25795         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
25796         come before all other uops generated by add_stores.
25797         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25798         argument removal.
25799         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
25800         a vector.  Run just one pass over the bbs instead of separate counting
25801         and computation phase.
25802         (vt_finalize): Free VTI (bb)->mos vector instead of array.
25803
25804         PR debug/43329
25805         * tree-inline.c (remap_decls): Put old_var rather than origin_var
25806         into *nonlocalized_list vector.
25807         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25808         even if origin is non-NULL.
25809         (gen_variable_die): Likewise.
25810         (process_scope_var): Don't change origin.
25811         (gen_decl_die): Likewise.
25812         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25813         before adding new edges instead of after it, fix moving over
25814         debug stmts.
25815
25816 2010-03-11  David S. Miller  <davem@davemloft.net>
25817
25818         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25819         of four.
25820         * configure: Rebuild.
25821
25822 2010-03-11  Martin Jambor  <mjambor@suse.cz>
25823
25824         PR tree-optimization/43257
25825         * tree.c (assign_assembler_name_if_neeeded): New function.
25826         (free_lang_data_in_cgraph): Assembler name assignment moved to the
25827         above new function.
25828         * tree.h (assign_assembler_name_if_neeeded): Declare.
25829         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25830         the function if needed.
25831
25832 2010-03-11  Chris Demetriou  <cgd@google.com>
25833
25834         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25835         include/stdint-gcc.h, and include/stdint.h world-readable.
25836
25837 2010-03-11  Richard Guenther  <rguenther@suse.de>
25838
25839         PR tree-optimization/43255
25840         * tree-vrp.c (process_assert_insertions_for): Do not insert
25841         asserts for trivial conditions.
25842
25843 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25844
25845         PR tree-optimization/43280
25846         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25847         generation.  Move calculation of size out of the if branch.
25848         (find_bswap): Modify compare number generation.
25849
25850 2010-03-11  Richard Guenther  <rguenther@suse.de>
25851
25852         PR lto/43200
25853         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25854         (input_gimple_stmt): Fixup handled component types during
25855         operand read.  Also fix up decls in ADDR_EXPRs.
25856
25857 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
25858
25859         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
25860         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
25861
25862 2010-03-10  Jan Hubicka  <jh@suse.cz>
25863
25864         PR c/43288
25865         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
25866         * varasm.c (get_variable_section): Don't do that here...
25867         (make_decl_rtl): ... and here.
25868         (do_assemble_alias): Produce decl RTL.
25869         (assemble_alias): Likewise.
25870
25871 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25872
25873         PR debug/43290
25874         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
25875         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
25876         of fde->vdrap_reg.
25877         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
25878         (based_loc_descr): Only express drap or vdrap regno based expressions
25879         using DW_OP_fbreg when not optimizing.
25880         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
25881         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
25882         REG_CFA_SET_VDRAP note.
25883
25884 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
25885
25886         PR tree-optimization/43236
25887         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
25888         error in calculation of base address in reverse iteration case.
25889         (generate_builtin): Take number of latch executions if the statement
25890         is in the latch.
25891
25892 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
25893
25894         PR middle-end/42859
25895         * tree-eh.c: Include pointer-set.h.
25896         (lower_eh_dispatch): Filter out duplicate case labels and
25897         remove the unneeded edge when the label is unused.  Return
25898         true when some edges are removed.
25899         (execute_lower_eh_dispatch): When any lowering resulted in
25900         removing an edge, also delete unreachable blocks.
25901
25902 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25903
25904         PR bootstrap/43287
25905         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25906         UNSPEC_MACHOPIC_OFFSET.
25907
25908 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
25909
25910         PR target/43294
25911         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
25912         (m68k_delegitimize_address): New function.
25913
25914 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
25915
25916         PR debug/43299
25917         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
25918
25919         PR debug/43299
25920         * var-tracking.c (adjust_sets): New function.
25921         (count_with_sets, add_with_sets): Use it.
25922         (get_adjusted_src): New inline function.
25923         (add_stores): Use it.
25924
25925         PR debug/43304
25926         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
25927         call cselib_dummy_expand_value_rtx_cb instead of
25928         cselib_expand_value_rtx_cb.
25929
25930         PR debug/43293
25931         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
25932         * config/i386/i386.c: Include debug.h and dwarf2out.h.
25933         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
25934         and .cfi_endproc around the pic thunks.
25935         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
25936         all queued unwind info register saves are saved before the call.
25937         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
25938         considered as sp-=4 for unwind info and the pop as sp+=4 which
25939         also clobbers dest, but doesn't actually restore it.
25940
25941         PR debug/43290
25942         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
25943         RTX_FRAME_RELATED_P.
25944
25945 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25946
25947         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
25948         whitespaces in output template.
25949
25950 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25951
25952         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
25953         out array boundary.
25954
25955 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25956
25957         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
25958         builtins.exp in a separate job.
25959
25960 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25961
25962         * graphite-sese-to-poly.c (add_param_constraints): Use
25963         lower_bound_in_type and upper_bound_in_type.
25964
25965 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25966
25967         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
25968         instead of unsigned_type_node.
25969
25970 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25971             Reza Yazdani  <reza.yazdani@amd.com>
25972
25973         PR middle-end/43065
25974         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
25975         on pointer type parameters.
25976
25977 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25978
25979         PR middle-end/42644
25980         PR middle-end/42130
25981         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
25982         handle conversions from pointer to integers.
25983         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
25984         induction variable, to be able to work with code generated by CLooG.
25985         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
25986         (build_poly_scop): Bail out if we cannot codegen a loop.
25987
25988 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25989
25990         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
25991         code generation with gloog_error.
25992
25993 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25994
25995         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
25996         Call fold_convert on all the returned values.
25997         (expand_scalar_variables_expr): Pass to
25998         expand_scalar_variables_ssa_name the type of the resulting expression.
25999
26000 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26001
26002         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
26003         ppl_min_for_le_pointset.
26004         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
26005         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
26006
26007 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26008
26009         * graphite-dependences.c (map_into_dep_poly): Removed.
26010         (dependence_polyhedron_1): Use combine_context_id_scat.
26011
26012 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26013
26014         * graphite-poly.h (struct poly_scattering): Add layout documentation.
26015         (struct poly_bb): Same.
26016         (combine_context_id_scat): New.
26017
26018 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26019
26020         PR middle-end/42326
26021         * sese.c (name_defined_in_loop_p): Return false for default
26022         definitions.
26023
26024 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26025
26026         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
26027         and clean up the logic.
26028
26029 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26030
26031         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
26032         early return.
26033
26034 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26035
26036         * var-tracking.c (remove_cselib_value_chains): Define only for
26037         ENABLE_CHECKING.
26038         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
26039         delete_slot_part, emit_notes_for_differences_1): Don't call
26040         remove_cselib_value_chains here.
26041         (set_slot_part, emit_notes_for_differences_2): Don't call
26042         add_cselib_value_chains here.
26043         (preserved_values): New vector.
26044         (preserve_value): New function.
26045         (add_uses, add_stores, vt_add_function_parameters): Use it
26046         instead of cselib_preserve_value.
26047         (changed_values_stack): New vector.
26048         (check_changed_vars_0): New function.
26049         (check_changed_vars_1, check_changed_vars_2): Use it.
26050         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
26051         changed_values_stack VALUEs.
26052         (vt_emit_notes): For all preserved_values call
26053         add_cselib_value_chains.  If ENABLE_CHECKING call
26054         remove_cselib_value_chains before verifying value_chains is empty.
26055         Initialize and free changed_values_stack.
26056         (vt_initialize): Initialize preserved_values.
26057         (vt_finalize): Free preserved_values.
26058
26059 2010-03-08  Richard Guenther  <rguenther@suse.de>
26060
26061         PR tree-optimization/43269
26062         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
26063         region detection.
26064
26065 2010-03-08  Martin Jambor  <mjambor@suse.cz>
26066
26067         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
26068         (ipa_is_param_called): Removed.
26069         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
26070         (ipa_print_node_params): Do not print the called flag.
26071         (ipa_write_node_info): Do not stream the called flag.
26072         (ipa_read_node_info): Likewise.
26073
26074 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
26075
26076         PR debug/43176
26077         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
26078         * cselib.c (struct expand_value_data): Add dummy field.
26079         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
26080         dummy to false.
26081         (cselib_dummy_expand_value_rtx_cb): New function.
26082         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
26083         any rtl.
26084         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
26085         * var-tracking.c: Include pointer-set.h.
26086         (variable): Change n_var_parts to char from int.  Add
26087         cur_loc_changed and in_changed_variables fields.
26088         (variable_canonicalize): Remove.
26089         (shared_var_p): New inline function.
26090         (unshare_variable): Maintain cur_loc_changed and
26091         in_changed_variables fields.  If var was in changed_variables,
26092         replace it there with new_var.  Just copy cur_loc instead of
26093         resetting it to something else.
26094         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
26095         (dataflow_set_union): Don't call variable_canonicalize.
26096         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
26097         of their DEBUG_EXPR_TREE_DECLs.
26098         (canonicalize_loc_order_check): Verify that cur_loc is NULL
26099         and in_changed_variables and cur_loc_changed is false.
26100         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
26101         and cur_loc_changed.  Don't update cur_loc here.
26102         (variable_merge_over_src): Don't call variable_canonicalize.
26103         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
26104         removing loc that is equal to cur_loc, clear cur_loc,
26105         set cur_loc_changed and ensure variable_was_changed is called.
26106         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
26107         compare pointers in cur_loc check, if it is equal to loc,
26108         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
26109         (variable_different_p): Remove compare_current_location argument,
26110         don't compare cur_loc.
26111         (dataflow_set_different_1): Adjust variable_different_p caller.
26112         (variable_was_changed): If dv had some var in changed_variables
26113         already, reset in_changed_variables flag for it and propagate
26114         cur_loc_changed over to the new variable.  On empty var
26115         always set cur_loc_changed.  Set in_changed_variables on whatever
26116         var is added to changed_variables.
26117         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
26118         Use shared_var_p.  When removing loc that is equal to cur_loc,
26119         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
26120         end, don't set it to something else, just call variable_was_changed.
26121         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
26122         loc being removed, clear cur_loc and set cur_loc_changed.
26123         Set cur_loc_changed if all locations have been removed.
26124         (struct expand_loc_callback_data): New type.
26125         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
26126         allocated.  Always create SUBREGs if simplify_subreg failed.
26127         Prefer to use cur_loc, when that fails and still in
26128         changed_variables (and seen first time) recompute it.  Set
26129         cur_loc_changed of variables which had to change cur_loc and
26130         compute elcd->cur_loc_changed if any of the subexpressions used
26131         had to change cur_loc.
26132         (vt_expand_loc): Adjust to pass arguments in
26133         expand_loc_callback_data structure.
26134         (vt_expand_loc_dummy): New function.
26135         (emitted_notes): New variable.
26136         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26137         that weren't used for any other decl in current
26138         emit_notes_for_changes call call vt_expand_loc_dummy to update
26139         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
26140         first loc_chain location if NULL before.  Always use just
26141         cur_loc instead of first loc_chain location.  When cur_loc_changed
26142         is false, when not --enable-checking=rtl just don't emit any note.
26143         When rtl checking, compute the note and assert it is the same
26144         as previous note.  Clear cur_loc_changed and in_changed_variables
26145         at the end before removing from changed_variables.
26146         (check_changed_vars_3): New function.
26147         (emit_notes_for_changes): Traverse changed_vars to call
26148         check_changed_vars_3 on each changed var.
26149         (emit_notes_for_differences_1): Clear cur_loc_changed and
26150         in_changed_variables.  Recompute cur_loc of new_var.
26151         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26152         (vt_emit_notes): Initialize and destroy emitted_notes.
26153
26154 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
26155
26156         PR rtl-optimization/42220
26157         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26158         Use verify_reg_tracked to determine if we should use OP_OUT rather
26159         than OP_INOUT.
26160         (build_def_use): If we see an in-out operand for a register that we
26161         know nothing about, treat is an output if possible, fail the block if
26162         not.
26163
26164 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26165
26166         PR debug/42897
26167         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26168         permanently.
26169
26170 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26171
26172         PR debug/42897
26173         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26174         uses of relevant DEFs that are dead outside the loop too.
26175
26176 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26177
26178         * var-tracking.c (dataflow_set_merge): Swap src and src2.
26179         Reverted:
26180         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26181         PR debug/41371
26182         * var-tracking.c (values_to_unmark): New variable.
26183         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26184         values_to_unmark vector.  Moved body to...
26185         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26186         instead queue it into values_to_unmark vector.
26187         (vt_find_locations): Free values_to_unmark vector.
26188
26189 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26190
26191         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26192         (site.exp): Export them when plugins are enabled.
26193
26194 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
26195
26196         PR middle-end/42326
26197         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26198         that contain scevs.
26199         (chrec_fold_multiply): Same.
26200
26201 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
26202
26203         PR c/43248
26204         * c-decl.c (build_compound_literal): Return early if init is
26205         an error_mark_node.
26206
26207 2010-03-04  Martin Jambor  <mjambor@suse.cz>
26208
26209         PR tree-optimization/43164
26210         PR tree-optimization/43191
26211         * tree-sra.c (type_consists_of_records_p): Reject records with
26212         zero-size bit-fields at the end.
26213
26214 2010-03-04  Mike Stump  <mikestump@comcast.net>
26215
26216         * Makefile.in (TAGS): Remove *.y.
26217
26218 2010-03-04  Richard Guenther  <rguenther@suse.de>
26219
26220         PR tree-optimization/40761
26221         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26222         in reverse order.
26223         (my_rev_post_order_compute): New function.
26224         (init_pre): Call it.
26225
26226 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26227
26228         PR middle-end/43209
26229         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26230         decrease the cost of an IV candidate when the cost is infinite.
26231
26232 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26233
26234         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26235         Use '3DNow!' for the extension of that name, ensure normal space
26236         after the string.
26237         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26238
26239 2010-03-03  Jeff Law  <law@redhat.com>
26240
26241         * PR middle-end/32693
26242         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26243         than gen_rtx_SUBREG.
26244         (extract_bit_field_1): Likewise.
26245
26246 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
26247
26248         * doc/sourcebuild.texi (Test directives): Document that arguments
26249         include-opts and exclude-opts are now optional for dg-skip-if,
26250         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26251
26252 2010-03-03  Jason Merrill  <jason@redhat.com>
26253
26254         PR c++/12909
26255         * cgraph.h (varpool_node): Add extra_name field.
26256         * varpool.c (varpool_extra_name_alias): New.
26257         (varpool_assemble_decl): Emit extra name aliases.
26258         (varpool_mark_needed_node): Look past an extra name alias.
26259         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26260         * lto-streamer-in.c (lto_input_tree): Read it.
26261         * lto-streamer-out.c (output_unreferenced_globals): Write it.
26262
26263 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26264
26265         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26266         (sparc*-*-solaris2*): ...this.
26267
26268 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
26269
26270         PR debug/43229
26271         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26272         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
26273         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26274         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26275
26276         PR debug/43237
26277         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26278         fallthrough to default handling, just with want_address 0 instead of 2.
26279         For single element lists, add_AT_loc directly, otherwise create an
26280         artificial variable DIE and stick location list to it.
26281
26282         PR debug/43177
26283         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26284         (VAL_EXPR_HAS_REVERSE): Define.
26285         (reverse_op): New function.
26286         (add_stores): For reversible operations add an extra MO_VAL_USE.
26287
26288 2010-03-02  Jason Merrill  <jason@redhat.com>
26289
26290         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26291
26292 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
26293
26294         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26295         (sparc64-*-linux*): Likewise.
26296         (sparc64-*-solaris2*): Include assembler files before linker ones.
26297         (sparc-*-solaris2*): Simplify and reorder to match previous case.
26298         * config/sparc/gas.h: Delete.
26299         * config/sparc/sol2-64.h: Add copyright notice.
26300         * config/sparc/sol2-gas-bi.h: Likewise.
26301         * config/sparc/sol2-gld.h: Likewise.
26302         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26303         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26304         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26305         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26306         (sparc_elf_asm_named_section): Rename into...
26307         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
26308
26309 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
26310
26311         * config/alpha/alpha.c (override_options): Fix -mtune error message.
26312
26313 2010-03-02  Jeff Law  <law@redhat.com>
26314
26315         PR middle-end/42431
26316         * reload1.c (rtx_p, substitute_stack): Declare.
26317         (substitute): Record addresses of changed rtxs.
26318         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26319         Restore the original rtx when complete.
26320         (reload): Free subsitute_stack when complete.
26321
26322 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
26323
26324         * doc/gccint.texi (menu): Add Testsuites as a chapter.
26325         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26326         new chapter.
26327         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26328         LTO Testing, gcov Testing, profopt Testing, compat Testing,
26329         Torture Tests): Change from subsection to section.
26330
26331 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
26332             Steven Bosscher  <steven@gcc.gnu.org>
26333
26334         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26335         instead of bb.
26336
26337 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
26338
26339         PR middle-end/42640
26340         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26341         the assignment from the new induction variable to the assignment
26342         of the value from the original loop PHI function.
26343
26344 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
26345             Daniel Jacobowitz  <dan@codesourcery.com>
26346
26347         * doc/sourcebuild.texi (Test directives): Clarify options to
26348         dg-skip-if.
26349
26350 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26351
26352         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26353         Disable cfi directives unless GCC and gas agree on using read-only
26354         .eh_frame sections for 64-bit.
26355         * configure: Regenerate.
26356
26357 2010-03-01  Richard Guenther  <rguenther@suse.de>
26358
26359         PR tree-optimization/43220
26360         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26361         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26362
26363 2010-03-01  Richard Guenther  <rguenther@suse.de>
26364             Martin Jambor  <mjambor@suse.cz>
26365
26366         PR middle-end/41250
26367         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26368         gimplified parameters.
26369
26370 2010-03-01  Christian Bruel  <christian.bruel@st.com>
26371
26372         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26373
26374 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
26375
26376         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26377
26378 2010-03-01  Richard Guenther  <rguenther@suse.de>
26379
26380         PR middle-end/43213
26381         * expr.c (expand_assignment): Use the alias-oracle to tell
26382         if the rhs aliases the result decl.
26383
26384 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26385
26386         PR pch/14940
26387         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26388         to sol_gt_pch_get_address.
26389         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26390         64-bit, SPARC and x86.
26391         (sol_gt_pch_get_address): New function.
26392
26393 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
26394
26395         * toplev.h (inform_n, error_n): Declare.
26396         * diagnostic.c (inform_n, error_n): New function.
26397
26398 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
26399
26400         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26401         has no rtl yet when processing local_decls, queue it and recheck
26402         if deferred stack allocation hasn't assigned it rtl.
26403
26404 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
26405
26406         * config/sh/sh.c (unspec_bbr_uid): New.
26407         (gen_block_redirect): Use it instead of INSN_UID.
26408         (gen_far_branch): Likewise.
26409
26410 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26411
26412         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26413         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26414
26415 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26416
26417         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26418         (Warning Options): -Wno-conversion-null is valid for
26419         Objective-C++ as well.
26420         * doc/tm.texi (Named Address Spaces): Likewise.
26421         * doc/plugins.texi (Plugins): Replace TABs with spaces.
26422         * doc/tree-ssa.texi (Tree SSA): Likewise.
26423
26424 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26425
26426         PR bootstrap/43202
26427         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26428         by default.  Don't set the default arch for
26429         i[34567]86-*-darwin*|x86_64-*-darwin*.
26430
26431 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26432
26433         PR bootstrap/43202
26434         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26435         default.  Set the default 32bit/64bit archs with $with_arch
26436         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26437
26438 2010-02-27  Richard Guenther  <rguenther@suse.de>
26439
26440         PR tree-optimization/43186
26441         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26442         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26443         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26444         unroller iterations.
26445
26446 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26447
26448         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26449         required and i[34567]86-*-* targets don't support 64bit ISA.
26450
26451 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
26452
26453         PR ada/43096
26454         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26455         the same alias set.
26456
26457 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26458
26459         * config.gcc: Set the default arch at least to Prescott for
26460         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26461         if SSE math is enabled.
26462
26463 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26464
26465         * diagnostic.c (diagnostic_initialize): Update.
26466         (diagnostic_report_diagnostic): Test inhibit_notes_p for
26467         informative notes.
26468         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26469         (diagnostic_inhibit_notes): New.
26470         * toplev.c (process_options): inhibit notes with -fcompare-debug.
26471
26472 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26473
26474         PR c/20631
26475         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26476         * doc/standards.texi: Likewise.
26477         * doc/extend.texi: Likewise.
26478         * doc/trouble.texi: Likewise.
26479         * doc/cppopts.texi: Likewise.
26480         * doc/install.texi: Likewise.
26481         * c.opt (std=c90,std=gnu90): New options.
26482         * c-opts.c (c_common_handle_option): Handle them.
26483
26484 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26485
26486         PR c/24577
26487         * c-decl.c (undeclared_variable): Use an informative note.
26488
26489 2010-02-26  Richard Guenther  <rguenther@suse.de>
26490
26491         PR tree-optimization/43186
26492         * gimple.h (gimple_fold): Remove.
26493         * gimple.c (gimple_fold): Remove.  Inline into single user ...
26494         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26495         Try harder for conditions.
26496
26497 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26498
26499         PR debug/43190
26500         * function.c (used_types_insert): Don't skip through named pointer
26501         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
26502         and it is different from the main variant's type.
26503
26504 2010-02-26  Nick Clifton  <nickc@redhat.com>
26505
26506         * config/rx/rx.md (sminsi3): Remove bogus alternative.
26507
26508 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26509
26510         * config.gcc: Support --with-fpmath=sse for x86.
26511
26512         * config/i386/ssemath.h: New.
26513
26514         * doc/install.texi (--with-fpmath=sse): Documented.
26515
26516 2010-02-26  Richard Guenther  <rguenther@suse.de>
26517
26518         PR tree-optimization/43188
26519         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26520         vector types of over-aligned element type.
26521
26522 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26523
26524         PR target/43175
26525         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26526         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26527
26528 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26529
26530         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26531
26532 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26533
26534         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26535         * var-tracking.c: Include diagnostic.h.
26536         (debug_dv): New function.
26537         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26538
26539         PR debug/43160
26540         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26541         (add_value_chain, add_value_chains, remove_value_chain,
26542         remove_value_chains): Handle DEBUG_EXPRs.
26543         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26544
26545         PR debug/43161
26546         * regcprop.c (struct queued_debug_insn_change): New type.
26547         (struct value_data_entry): Add debug_insn_changes field.
26548         (struct value_data): Add n_debug_insn_changes field.
26549         (debug_insn_changes_pool): New variable.
26550         (free_debug_insn_changes, apply_debug_insn_changes,
26551         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26552         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26553         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26554         fields.
26555         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26556         changes for them.
26557         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26558         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26559         changes, call cprop_find_used_regs via note_stores.
26560         (copyprop_hardreg_forward): When copying vd from predecessor
26561         which has any queued DEBUG_INSN changes, make sure the pointers are
26562         cleared.  At the end call df_analyze and then if there are any
26563         DEBUG_INSN changes queued at the end of some basic block for still
26564         live registers, apply them.
26565         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26566
26567 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26568
26569         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26570         (arm*-*-*): Ditto.
26571
26572 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26573
26574         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26575         targets.  Set the default with_cpu/with_arch from arch/cpu.
26576         Allow x86-64 and native for with_cpu/with_arch.
26577
26578 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26579
26580         * ebitmap.c: Change calls to verify_popcount with calls to
26581         sbitmap_verify_popcount.
26582         (ebitmap_clear_bit): Fixed map->cacheindex test and
26583         map>cache update when bit clearing results in an empty
26584         element.
26585
26586 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26587
26588         PR target/43154
26589         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26590         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26591         and support both V2DF and V2DI modes.
26592         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26593         support both V2DF and V2DI modes.
26594         (general): Delete trailing whitespace from a few patterns.
26595
26596         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26597         V2DF/V2DI interleave high/low builtins.
26598
26599         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26600         new VSX builtins.
26601
26602         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26603         interleave high/low functions.
26604
26605 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26606
26607         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26608         #pragma extern_prefix.
26609
26610 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26611
26612         PR debug/43166
26613         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26614         BLKmode, assert op0 is a MEM and just adjust its mode.
26615
26616         PR debug/43165
26617         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26618         if bitpos isn't multiple of mode's bitsize.
26619
26620 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26621
26622         * c.opt (-ftemplate-depth=): New.
26623         (-ftemplate-depth-): Deprecate.
26624         * optc-gen.awk: Handle -ftemplate-depth=.
26625         * opth-gen.awk: Likewise.
26626         * c-opts.c (c_common_handle_option): Likewise.
26627         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26628
26629 2010-02-24  Jason Merrill  <jason@redhat.com>
26630
26631         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26632
26633 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26634
26635         * cfg.c (alloc_aux_for_block): Remove inline.
26636         (alloc_aux_for_edge): Likewise.
26637
26638 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26639
26640         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26641
26642 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26643
26644         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26645         * config/i386/sol2-gas.h: New file.
26646         * config.gcc (i[34567]86-*-solaris2*): Use it.
26647
26648 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26649
26650         PR c/43128
26651         * c-typeck.c (ep_convert_and_check): New.
26652         (build_conditional_expr): Use it.
26653         (build_binary_op): Likewise.
26654
26655 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26656
26657         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26658
26659         PR debug/43150
26660         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26661         bounds even for -O+.
26662         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26663         expr needs to have DECL_NAME set.
26664
26665 2010-02-24  Nick Clifton  <nickc@redhat.com>
26666
26667         * config/mep/mep.c: Include gimple.h.
26668         (mep_function_uses_sp): Delete unused function.
26669         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26670         parameters.  Use unsigned integers to count args.  Return a
26671         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26672
26673 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26674
26675         PR target/43107
26676         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26677         greater or equal to nelt instead of 2 * nelt.
26678         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26679         with nelt - 1.
26680
26681 2010-02-23  Jason Merrill  <jason@redhat.com>
26682
26683         PR debug/42800
26684         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26685         in cfun->local_decls even if they have register types.
26686
26687         PR c++/42837
26688         * stor-layout.c (place_field): Don't warn about unnecessary
26689         DECL_PACKED if the type is packed.
26690
26691 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26692
26693         PR target/43139
26694         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26695         GOTOFF relocs, even when the base reg isn't pic pointer.
26696
26697 2010-02-23  Michael Matz  <matz@suse.de>
26698
26699         PR debug/43077
26700         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26701         (expand_gimple_basic_block): Generate and use debug temps if there
26702         are debug uses left after the last real use of TERed ssa names.
26703         Unlink debug immediate uses when they are expanded.
26704
26705 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26706
26707         PR 43123
26708         * config/i386/i386.c (override_options): Reorganise to provide
26709         better error messages.
26710
26711 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26712
26713         PR middle-end/43083
26714         * graphite-scop-detection.c (create_single_exit_edge): Move
26715         the call to find_single_exit_edge to....
26716         (create_sese_edges): ...here.  Don't handle multiple edges
26717         exiting the function.
26718         (build_graphite_scops): Don't handle multiple edges
26719         exiting the function.
26720
26721 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26722
26723         PR middle-end/43097
26724         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26725         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26726
26727 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26728
26729         PR middle-end/43026
26730         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26731
26732 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26733
26734         PR c++/43126
26735         * c-typeck.c (convert_arguments): Print declaration location.
26736         * c-common.c (validate_nargs): Rename as
26737         builtin_function_validate_nargs.
26738         (check_builtin_function_arguments): Update.
26739
26740 2010-02-22  Richard Guenther  <rguenther@suse.de>
26741
26742         PR lto/43045
26743         * tree-inline.c (declare_return_variable): Use the type of
26744         the call stmt lhs if available.
26745
26746 2010-02-22  Duncan Sands  <baldrick@free.fr>
26747
26748         * passes.c (register_pass): Always consider all pass lists when
26749         ref_pass_instance_number is zero.
26750
26751 2010-02-22  Richard Guenther  <rguenther@suse.de>
26752
26753         PR tree-optimization/42749
26754         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26755         parameter.  Do arithmetic in the original type.
26756         (update_accumulator_with_ops): Likewise.
26757         (adjust_accumulator_values): Adjust.
26758
26759 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26760
26761         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26762         (QI to BLKmode splitter): New splitter.
26763
26764 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
26765
26766         * config/i386/i386.c (initial_ix86_tune_features): Turn on
26767         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26768
26769 2010-02-22  Richard Guenther  <rguenther@suse.de>
26770
26771         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26772
26773 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
26774
26775         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26776         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26777         ($(T)crti.o, $(T)crtn.o): Remove rules.
26778
26779 2010-02-21  Tobias Burnus  <burnus@net-b.de>
26780
26781         PR fortran/35259
26782         * doc/invoke.texi (-fassociative-math): Document that this
26783         option is automatically enabled for Fortran.
26784
26785 2010-02-20  David S. Miller  <davem@davemloft.net>
26786
26787         * configure.ac: Test if linker and assembler properly support
26788         GOTDATA_OP relocations.
26789         * configure: Rebuild.
26790         * config.in: Likewise.
26791         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26792         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26793         (movsi_high_pic): Likewise.
26794         (movdi_lo_sum_pic): Likewise.
26795         (movdi_high_pic): Likewise.
26796         (movsi_pic_gotdata_op): New pattern.
26797         (movdi_pic_gotdata_op): Likewise.
26798         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26799         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26800
26801 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
26802
26803         PR target/43067
26804         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26805         attribute to ssemul.
26806         (xop_mulv2div2di3_high): Ditto.
26807
26808 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26809
26810         PR c++/35669
26811         * c.opt (Wconversion-null): New option.
26812         * doc/invoke.texi (Wconversion-null): Document.
26813
26814 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26815
26816         * common.opt (Wlarger-than-): Add Undocumented.
26817
26818 2010-02-19  Mike Stump  <mikestump@comcast.net>
26819
26820         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26821
26822 2010-02-19  Jason Merrill  <jason@redhat.com>
26823
26824         PR target/40332
26825         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26826         * configure: Likewise.
26827
26828 2010-02-20  Alan Modra  <amodra@gmail.com>
26829
26830         PR middle-end/42344
26831         * cgraph.h (cgraph_make_decl_local): Declare.
26832         * cgraph.c (cgraph_make_decl_local): New function.
26833         (cgraph_make_node_local): Use it.
26834         * cgraphunit.c (cgraph_function_versioning): Likewise.
26835         * ipa.c (function_and_variable_visibility): Likewise.
26836
26837 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26838
26839         PR bootstrap/43121
26840         * except.c (sjlj_emit_function_enter): Don't call
26841         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26842         directly.
26843         * rtl.h (add_reg_br_prob_note): Remove prototype.
26844
26845 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26846
26847         PR 41779
26848         * c-common.c (conversion_warning): Remove widening conversions
26849         before checking the conversion of integers to reals.
26850
26851 2010-02-19  Mike Stump  <mikestump@comcast.net>
26852
26853         PR middle-end/43125
26854         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26855
26856         PR objc/43061
26857         * cgraphunit.c (process_function_and_variable_attributes): Check
26858         DECL_PRESERVE_P instead of looking up attribute "used".
26859         * ipa-pure-const.c (check_decl): Likewise.
26860         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
26861         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
26862         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
26863         instead of attribute "used".
26864         * config/sol2-c.c (solaris_pragma_init): Likewise.
26865         (solaris_pragma_fini): Likewise.
26866
26867 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26868
26869         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
26870         Use XCNEW instead of xcalloc.
26871         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
26872         XNEW instead of xmalloc.
26873         (get_fields): Use XNEWVEC instead of xmalloc.
26874
26875         PR debug/43084
26876         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
26877         populate vars array.
26878         (create_new_general_access): For debug stmts just reset value.
26879         (get_stmt_accesses): For accesses within debug stmts just record them
26880         using add_access_to_acc_sites instead of preventing the peeling or
26881         counting them as accesses.
26882
26883         PR middle-end/42233
26884         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
26885
26886 2010-02-19  Richard Guenther  <rguenther@suse.de>
26887
26888         PR tree-optimization/42916
26889         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
26890         instructions.
26891
26892 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26893
26894         * configure.ac: Replace all uses of changequote in macro arguments
26895         with proper quoting.
26896
26897 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26898
26899         PR middle-end/42233
26900         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
26901
26902 2010-02-19  Richard Guenther  <rguenther@suse.de>
26903
26904         PR tree-optimization/42944
26905         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
26906         test for aliasing with errno.
26907
26908 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26909
26910         PR middle-end/42233
26911         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
26912         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
26913         * dojump.c: Include output.h.
26914         (inv): New inline function.
26915         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
26916         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
26917         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
26918         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
26919         argument, pass it down to other calls.
26920         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
26921         add REG_BR_PROB note to the conditional jump.
26922         * cfgexpand.c (add_reg_br_prob_note): Removed.
26923         (expand_gimple_cond): Don't call it, add the probability
26924         as last argument to jumpif_1/jumpifnot_1.
26925         * Makefile.in (dojump.o): Depend on output.h.
26926         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
26927         callers.
26928         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
26929         * stmt.c (do_jump_if_equal): Likewise.
26930         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
26931         * loop-unswitch.c (compare_and_jump_seq): Likewise.
26932         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
26933         Likewise.
26934         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
26935         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
26936         jumpifnot_1 callers.
26937         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
26938         callers.
26939         (store_expr): Adjust jumpifnot caller.
26940         (store_constructor): Adjust jumpif caller.
26941
26942         PR middle-end/42233
26943         * gimplify.c (gimple_boolify): For __builtin_expect call
26944         gimple_boolify also on its first argument.
26945
26946 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
26947
26948         * configure.ac (gnu-unique-object): Wrap regexps using [] in
26949         changequote block.
26950         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
26951         * configure: Regenerated.
26952
26953 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26954
26955         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
26956         lang_hooks.types_compatible_p instead of comptypes.
26957
26958 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26959
26960         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
26961         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
26962         if __prefer_thumb__ is defined.
26963
26964 2010-02-18  Martin Jambor  <mjambor@suse.cz>
26965
26966         PR tree-optimization/43066
26967         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
26968         array with zero-sized element type.
26969
26970 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
26971
26972         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
26973         rtx, allocate struct var_loc_node here and return it to the
26974         caller, and only if it is actually needed.
26975         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
26976         move it earlier and return immediately if it returns NULL.
26977
26978 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
26979
26980         * config/sparc/gas.h: New file.  Restore
26981         TARGET_ASM_NAMED_SECTION to its ELF default.
26982         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
26983         check !HAVE_GNU_AS.
26984         * config/sparc/sparc.c (sparc_elf_asm_named_section):
26985         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
26986         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
26987         after sparc/sysv4.h.
26988
26989 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
26990
26991         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
26992
26993 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
26994
26995         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
26996         patterns from predicated pattern.
26997
26998 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
26999
27000         PR target/43103
27001         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
27002         for insn mnemonic suffix.
27003
27004 2010-02-17  Richard Guenther  <rguenther@suse.de>
27005
27006         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
27007         to loop PHI nodes.
27008
27009 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
27010
27011         PR debug/42918
27012         * caller-save.c (save_call_clobbered_regs): If BB ends with
27013         a DEBUG_INSN, move any notes in between last real insn and the last
27014         DEBUG_INSN after the last DEBUG_INSN.
27015
27016 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
27017
27018         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
27019         Fix return type.  Fix argument type.  Explain meaning of return value.
27020
27021 2010-02-16  Richard Guenther  <rguenther@suse.de>
27022
27023         PR tree-optimization/41043
27024         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
27025         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
27026         statements ...
27027         (vrp_visit_phi_node): ... but only for loop PHI nodes.
27028
27029 2010-02-16  Ira Rosen  <irar@il.ibm.com>
27030
27031         PR tree-optimization/43074
27032         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
27033         * tree-vect-loop.c (vect_analyze_loop_operations): Add
27034         vectorizable cycles in hybrid SLP check.
27035         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
27036
27037 2010-02-16  Richard Guenther  <rguenther@suse.de>
27038
27039         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
27040         (true_dependence): If memrefs_conflict_p computes must-alias
27041         trust it.  Move TBAA check after offset-based disambiguation.
27042         (canon_true_dependence): Likewise.
27043
27044 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
27045
27046         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
27047         * doc/invoke.texi: Document it.
27048         * var-tracking.c: Include toplev.h and params.h.
27049         (vt_find_locations): Return bool indicating success.  Compute
27050         hash sizes unconditionally.  Check new parameter, report.
27051         (variable_tracking_main_1): Check vt_find_locations results and
27052         retry.  Renamed from...
27053         (variable_tracking_main): ... this.  New wrapper to preserve
27054         flag_var_tracking_assignments.
27055         * Makefile.in (var-tracking.o): Adjust dependencies.
27056
27057 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
27058             Jakub Jelinek  <jakub@redhat.com>
27059
27060         PR target/42854
27061         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
27062         if weak_import attribute is present.
27063         * config/darwin.c (machopic_select_section): Likewise.
27064
27065 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
27066
27067         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
27068         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
27069         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
27070         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
27071
27072         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
27073         types.
27074
27075         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27076         Fix argument types.
27077
27078         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
27079         Rewrite text to refer to the names.
27080
27081 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
27082
27083         * config/i386/i386-builtin-types.def
27084         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
27085         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
27086         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
27087         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
27088         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
27089         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
27090         IX86_BUILTIN_VPERMIL2PS256.
27091         (MULTI_ARG_4_DF2_DI_I): Defined.
27092         (MULTI_ARG_4_DF2_DI_I1): Defined.
27093         (MULTI_ARG_4_SF2_SI_I): Defined.
27094         (MULTI_ARG_4_SF2_SI_I1): Defined.
27095         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
27096         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
27097         __builtin_ia32_vpermil2ps256.
27098         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27099         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27100         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
27101         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27102         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27103         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
27104         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
27105         CODE_FOR_xop_vpermil2v8sf3.
27106         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
27107         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
27108         * config/i386/xopintrin.h (_mm_permute2_pd): New.
27109         (_mm256_permute2_pd): New.
27110         (_mm_permute2_ps): New.
27111         (_mm256_permute2_ps): New.
27112
27113 2010-02-15  Nick Clifton  <nickc@redhat.com>
27114
27115         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
27116         boolean parameters.  Use emit_jump_insn when emitting a pop
27117         instruction containing a return insn.
27118         (push): Use 'true' rather than '1' as second parameter to F.
27119         (h8300_expand_prologue): Likewise.
27120         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
27121         (h8300_expand_epilogue): Likewise.
27122
27123 2010-02-15  Richard Guenther  <rguenther@suse.de>
27124
27125         PR middle-end/43068
27126         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
27127         if that is zero.
27128
27129 2010-02-15  Nick Clifton  <nickc@redhat.com>
27130
27131         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
27132         delta.
27133
27134 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
27135
27136         * intl.c (fake_ngettext): New function.
27137         * intl.h (fake_ngettext): Declare.
27138         (ngettext): Define macro.
27139         * collect2.c (notice_translated): New function.
27140         (main): Use notice_translated and ngettext.
27141         * collect2.h (notice_translated): Declare.
27142
27143 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
27144
27145         * reorg.c (delete_computation): Comment fixes.
27146         * caller-save.c (setup_save_areas): Idem.
27147         * sel-sched-dump.c (dump_lv_set): Idem.
27148         * rtl.def: Idem.
27149
27150 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27151
27152         * config/s390/s390.c (s390_sched_init): New function.
27153         (TARGET_SCHED_INIT): Target hook defined.
27154
27155 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
27156             Jack Howarth  <howarth@bromo.med.uc.edu>
27157             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27158
27159         PR target/42982
27160         Partial revert of unintended change in fix for PR41605.
27161         * config/darwin.h: Fix typo.
27162         * config/darwin9.h: Same.
27163
27164 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27165
27166         * c-pch.c (pch_init): Clear v.
27167
27168 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27169
27170         PR middle-end/42930
27171         * graphite-scop-detection.c (graphite_can_represent_scev): Call
27172         graphite_can_represent_init for MULT_EXPR.
27173
27174 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27175
27176         PR middle-end/42914
27177         PR middle-end/42530
27178         * graphite-sese-to-poly.c (remove_phi): New.
27179         (translate_scalar_reduction_to_array): Call remove_phi.
27180
27181 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27182
27183         PR middle-end/42771
27184         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27185         * graphite-clast-to-gimple.h (gloog): Update declaration.
27186         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27187         * graphite-poly.h (struct poly_bb): Add missing comments.
27188         (struct scop): Add poly_scop_p field.
27189         (POLY_SCOP_P): New.
27190         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27191         * graphite.c (graphite_transform_loops): Build the polyhedral
27192         representation for each scop before code generation.
27193         * sese.c (rename_variables_in_operand): Removed.
27194         (rename_variables_in_expr): Return the renamed expression.
27195         (rename_sese_parameters): New.
27196         * sese.h (rename_sese_parameters): Declared.
27197
27198 2010-02-11  Richard Guenther  <rguenther@suse.de>
27199
27200         PR tree-optimization/42998
27201         * tree-ssa-pre.c (create_expression_by_pieces): Treat
27202         POINTER_PLUS_EXPR properly.
27203
27204 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27205             Changpeng Fang  <changpeng.fang@amd.com>
27206
27207         PR middle-end/40886
27208         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27209         the cost of an IV candidate when the IV is used in a test against zero.
27210
27211         * gcc.dg/tree-ssa/ivopts-3.c: New.
27212
27213 2010-02-11  Richard Guenther  <rguenther@suse.de>
27214
27215         PR lto/41664
27216         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27217         pointer-vs-decl case by swapping refs.  Handle some cases
27218         of pointer-vs-decl disambiguations more conservatively.
27219         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27220         to false after expanding.
27221
27222 2010-02-11  Richard Guenther  <rguenther@suse.de>
27223
27224         PR driver/43021
27225         * gcc.c (process_command): Handle LTO file@offset case more
27226         appropriately.
27227
27228 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27229
27230         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27231         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
27232         of DEBUG_INSNs.
27233         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27234
27235         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27236         if MEM's mode size isn't DWARF2_ADDR_SIZE.
27237         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27238         Optimize eq/ne comparisons when both arguments are known to be
27239         zero-extended.
27240         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27241         Don't mask operands unnecessarily if they are known to be already
27242         zero-extended.
27243
27244 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
27245
27246         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27247         instead of loop.
27248
27249 2010-02-10  Richard Guenther  <rguenther@suse.de>
27250
27251         PR tree-optimization/43017
27252         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27253         for wrapping signed arithmetic.
27254
27255 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27256
27257         PR debug/43010
27258         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27259         if no debug info should be emitted for it.
27260
27261 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27262
27263         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27264         note when flag_exceptions is set.
27265
27266 2010-02-10  Duncan Sands  <baldrick@free.fr>
27267
27268         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27269
27270 2010-02-10  Richard Guenther  <rguenther@suse.de>
27271
27272         PR c/43007
27273         * tree.c (get_unwidened): Handle constants.
27274         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27275
27276 2010-02-10  Martin Jambor  <mjambor@suse.cz>
27277
27278         PR lto/42985
27279         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27280         check for variable argument counts independently.
27281
27282 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27283
27284         PR target/42841
27285         * config/sh/sh.c (find_barrier): Increase length for non delayed
27286         conditional branches.
27287
27288 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27289
27290         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27291
27292 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27293
27294         * builtins.c (set_builtin_user_assembler_name): Also handle
27295         ffs if int is smaller than word.
27296
27297 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
27298
27299         PR middle-end/42973
27300         * ira-conflicts.c (get_dup): Remove.
27301         (process_reg_shuffles): Add new parameter.  Use it as an
27302         additional guard for copy generation.
27303         (add_insn_allocno_copies): Rewrite.
27304
27305 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
27306
27307         * common.opt (fsched2-use-traces): Preserved for backward
27308         compatibility.
27309         * doc/invoke.texi: Remove the documentation about option
27310         -fsched2-use-traces.
27311         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27312         flag_sched2_use_traces.
27313         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27314         the backward compatibility flag section.
27315
27316 2010-02-09  Richard Guenther  <rguenther@suse.de>
27317
27318         PR tree-optimization/43008
27319         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27320         make HEAP variables initialized from global memory if they
27321         are not known builtin functions.
27322         (find_func_aliases): Adjust.
27323
27324 2010-02-09  Richard Guenther  <rguenther@suse.de>
27325
27326         PR tree-optimization/43000
27327         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27328         arithmetic manually.
27329
27330 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
27331
27332         PR tree-optimization/42931
27333         * tree-loop-linear.c (try_interchange_loops): Don't call
27334         double_int_mul if estimated_loop_iterations failed.
27335
27336 2010-02-08  Martin Jambor  <mjambor@suse.cz>
27337
27338         PR middle-end/42898
27339         * tree-sra.c (build_accesses_from_assign): Do not mark in
27340         should_scalarize_away_bitmap if stmt has volatile ops.
27341         (sra_modify_assign): Do not process assigns piecemeal if if stmt
27342         has volatile ops.
27343
27344 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
27345
27346         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27347
27348 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
27349
27350         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27351         before the pattern.
27352
27353 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
27354
27355         PR middle-end/42946
27356         * df-core.c (df_finish_pass): Change type of saved_flags to int.
27357
27358 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27359
27360         PR middle-end/42988
27361         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27362         to unknown_dependence.
27363         (graphite_legal_transform_dr): Handle the unknown_dependence.
27364         (graphite_carried_dependence_level_k): Same.
27365
27366 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27367
27368         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27369
27370 2010-02-07  Richard Guenther  <rguenther@suse.de>
27371
27372         PR middle-end/42991
27373         * expr.c (get_inner_reference): Always initialize *pbitsize.
27374
27375 2010-02-07  Richard Guenther  <rguenther@suse.de>
27376
27377         PR middle-end/42956
27378         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27379         new ARRAY_REFs on variable size element or minimal index arrays.
27380         Complete.
27381         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27382         gimple_fold_indirect_ref.
27383
27384 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
27385
27386         PR target/42957
27387         * arm.c (arm_override_options): Just return if the user has specified
27388         an invalid fpu name.
27389
27390 2010-02-03  Jason Merrill  <jason@redhat.com>
27391
27392         PR c++/42870
27393         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27394         i386_pe_maybe_record_exported_symbol.
27395
27396 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
27397
27398         PR target/42924
27399         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27400         (pa_delegitimize_address): New function.
27401
27402 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
27403
27404         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27405         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27406
27407 2010-02-05  Richard Guenther  <rguenther@suse.de>
27408
27409         PR lto/42762
27410         * lto-streamer-in.c (get_resolution): Deal with references
27411         to undefined functions.
27412
27413 2010-02-05  Richard Guenther  <rguenther@suse.de>
27414
27415         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27416         (fold_const_aggregate_ref): Likewise.
27417         (ccp_fold_stmt): Substitute loads.
27418         (maybe_fold_reference): Verify types before substituting.
27419         Unshare properly.
27420         (fold_gimple_assign): Unshare properly.
27421         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27422
27423 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
27424
27425         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27426         for rs6000_gen_cell_microcode.
27427
27428 2010-02-04  Richard Guenther  <rguenther@suse.de>
27429
27430         PR rtl-optimization/42952
27431         * dse.c (const_or_frame_p): Remove MEM handling.
27432
27433 2010-02-04  Nick Clifton  <nickc@redhat.com>
27434
27435         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27436         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27437         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27438         (mn10300_asm_output_mi_thunk): New function.
27439         (mn10300_can_output_mu_thunk): New function.
27440         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27441         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
27442         (FUNCTION_ARG): Delete incorrect comment.
27443
27444 2010-02-03  Jason Merrill  <jason@redhat.com>
27445
27446         PR c++/40138
27447         * fold-const.c (operand_equal_p): Handle erroneous types.
27448
27449 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27450
27451         * config/h8300/h8300.md (can_delay): Fix attibute condition.
27452
27453 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
27454
27455         PR rtl-optimization/42941
27456         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27457         of xmalloc.
27458
27459 2010-02-03  Jason Merrill  <jason@redhat.com>
27460
27461         PR c++/35652
27462         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27463
27464 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
27465
27466         PR debug/42896
27467         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
27468         (cselib_reset_table): Renamed from...
27469         (cselib_reset_table_with_next_value): ... this.
27470         (cselib_get_next_uid): Renamed from...
27471         (cselib_get_next_unknown_value): ... this.
27472         * cselib.c (next_uid): Renamed from...
27473         (next_unknown_value): ... this.
27474         (cselib_clear_table): Adjust.
27475         (cselib_reset_table): Adjust.  Renamed from...
27476         (cselib_reset_table_with_next_value): ... this.
27477         (cselib_get_next_uid): Adjust.  Renamed from...
27478         (cselib_get_next_unknown_value): ... this.
27479         (get_value_hash): Use hash.
27480         (cselib_hash_rtx): Likewise.
27481         (new_cselib_val): Adjust.  Set and dump uid.
27482         (cselib_lookup_mem): Pass next_uid as hash.
27483         (cselib_subst_to_values): Likewise.
27484         (cselib_log_lookup): Dump uid.
27485         (cselib_lookup): Pass next_uid as hash.  Adjust.
27486         (cselib_process_insn): Adjust.
27487         (cselib_init): Initialize next_uid.
27488         (cselib_finish): Adjust.
27489         (dump_cselib_table): Likewise.
27490         * dse.c (canon_address): Dump value uid.
27491         * print-rtl.c (print_rtx): Print value uid.
27492         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27493         (dvuid): New type.
27494         (dv_uid): New function, sort of renamed from...
27495         (dv_htab_hash): ... this, reimplemented in terms of it and...
27496         (dv_uid2hash): ... this.  New.
27497         (variable_htab_eq): Drop excess assertions.
27498         (tie_break_pointers): Removed.
27499         (canon_value_cmp): Compare uids.
27500         (variable_post_merge_New_vals): Print uids.
27501         (vt_add_function_parameters): Adjust.
27502         (vt_initialize): Reset table.  Adjust.
27503
27504 2010-02-03  Richard Guenther  <rguenther@suse.de>
27505
27506         PR tree-optimization/42944
27507         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27508         (call_may_clobber_ref_p_1): Likewise.  Properly handle
27509         malloc and calloc clobbering errno.
27510
27511 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
27512
27513         * doc/invoke.texi: Fix name of sched1 dump.
27514
27515         * opts.c (decode_options): Set flag_tree_switch_conversion
27516         only conditionally on optimize >= 2.
27517
27518         * gcse.c: Assorted comment fixes in pass description.
27519
27520 2010-02-03  Anthony Green  <green@moxielogic.com>
27521
27522         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27523         nop padding in order to maintain alignment of storage location of
27524         target function address.
27525         (moxie_trampoline_init): Store target function address at newly
27526         aligned location.
27527         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27528         to 32.
27529         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27530
27531 2010-02-03  Richard Guenther  <rguenther@suse.de>
27532
27533         PR middle-end/42927
27534         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27535
27536 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27537
27538         * config.gcc: Reenable check for obsolete targets.
27539         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27540         mips-sgi-irix6.[0-4]*.
27541
27542 2010-02-02  Nick Clifton  <nickc@redhat.com>
27543
27544         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27545         constant size of 4 as being the same as 0.
27546         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27547         can take values in the range 0..4.
27548
27549 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27550
27551         PR java/41991
27552         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27553         as _darwin10_Unwind_FindEnclosingFunction().
27554         * libgcc-libsystem.ver: New.
27555
27556 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27557
27558         PR target/41399
27559         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27560         implicitly set registers.
27561
27562 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27563
27564         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27565         (arm_override_options): Allow automatic selection of the thread
27566         pointer register if thumb2.
27567         (legitimize_pic_address): Improve code sequences for Thumb2.
27568         (arm_call_tls_get_addr): Likewise.
27569         (legitimize_tls_address): Likewise.
27570         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27571         (pic_load_addr_32bit): ... this.  New named pattern.
27572         * thumb2.md (pic_load_addr_thumb2): Delete.
27573         (pic_load_dot_plus_four): Delete.
27574         (tls_load_dot_plus_four): New named pattern.
27575
27576 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27577
27578         PR libgomp/29986
27579         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27580         Document fix for TLS bug.
27581
27582 2010-01-31  Richard Guenther  <rguenther@suse.de>
27583
27584         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27585         conservatively correct.
27586
27587 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27588
27589         PR target/42850
27590         Revert:
27591         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27592
27593         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27594
27595 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27596
27597         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27598
27599 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27600
27601         * config.gcc: Adjust order of makefile fragments for mingw targets.
27602
27603 2010-01-31  Richard Guenther  <rguenther@suse.de>
27604
27605         PR middle-end/42898
27606         * gimplify.c (gimplify_init_constructor): For volatile LHS
27607         initialize a temporary.
27608
27609 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27610
27611         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27612         --with-headers
27613         * configure: Regenerate.
27614
27615 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27616
27617         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27618         the same alias set and their sizes different constantness.
27619         (aliasing_component_refs_p): Revert 2009-10-24 change.
27620
27621 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27622
27623         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27624         unused.
27625
27626 2010-01-29  Richard Guenther  <rguenther@suse.de>
27627
27628         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27629         Assert we successfully updated the call.
27630
27631 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27632
27633         PR rtl-optimization/42889
27634         * df.h (df_set_bb_dirty_nonlr): New prototype.
27635         * df-core.c (df_set_bb_dirty_nonlr): New function.
27636         * df-scan.c (df_insn_rescan): Call it instead of
27637         df_set_bb_dirty for DEBUG_INSNs.
27638
27639 2010-01-29  Richard Guenther  <rguenther@suse.de>
27640
27641         PR middle-end/37448
27642         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27643         quadratic behavior in most cases.
27644
27645 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27646
27647         PR target/42891
27648         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27649         in the call to gen_x86_movsicc_0_m1.
27650
27651 2010-01-28  Richard Guenther  <rguenther@suse.de>
27652
27653         PR tree-optimization/42871
27654         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27655
27656 2010-01-28  Richard Guenther  <rguenther@suse.de>
27657
27658         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27659         into call arguments.
27660
27661 2010-01-28  Richard Guenther  <rguenther@suse.de>
27662
27663         PR middle-end/42883
27664         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27665         the forwarder if the destination is an EH landing pad.
27666
27667 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27668
27669         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27670         block list passed to gimple_duplicate_sese_tail.
27671         (parallelize_loops): Avoid parallelization when the function
27672         has_nonlocal_label.
27673         Avoid parallelization when the preheader is IRREDUCIBLE.
27674         Try to optimize when estimated_loop_iterations_int is unresolved.
27675         Add the loop's location to the dump file.
27676         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27677         (gimple_duplicate_sese_tail): Remove the check for the latch.
27678         Redirect nexits to the exit block.
27679         Remove handling of the incoming edges to the latch.
27680         Redirect the backedge from the copied latch to the exit bb.
27681
27682 2010-01-28  Michael Matz  <matz@suse.de>
27683
27684         PR target/42881
27685         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27686         Wrap force_reg into a sequence, emit it before user.
27687
27688 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27689
27690         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27691         (arm_rev): New.
27692         (arm_legacy_rev): Likewise.
27693         (thumb_legacy_rev): Likewise.
27694
27695 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27696
27697         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27698         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
27699         on MEM's address failed, try avoid_constant_pool_reference and
27700         recurse if it returned something different.
27701         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27702         address, try avoid_constant_pool_reference and recurse if it
27703         returned something different.
27704         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27705         address and avoid_constant_pool_reference returned something
27706         different, don't set have_address.
27707
27708 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
27709
27710         PR debug/42861
27711         * var-tracking.c (val_store): Add modified argument, obey it.
27712         Adjust callers.
27713         (count_uses): Move down logging of main.
27714         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27715         don't need resolution.
27716         (emit_notes_in_bb): Likewise.
27717
27718 2010-01-27  Richard Guenther  <rguenther@suse.de>
27719
27720         PR middle-end/42878
27721         * tree-inline.c (remap_decl): Delay remapping of SSA name
27722         default definitions until we need them.
27723
27724 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27725
27726         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27727         (rs6000_delegitimize_address): New function.
27728
27729         * config/s390/s390.c (s390_delegitimize_address): Call
27730         delegitimize_mem_from_attrs.
27731
27732         PR middle-end/42874
27733         * tree-inline.c (cannot_copy_type_1): Removed.
27734         (copy_forbidden): Don't forbid copying of functions containing
27735         records/unions with variable length fields.
27736
27737 2010-01-27  Christian Bruel  <christian.bruel@st.com>
27738
27739         Revert:
27740         PR target/42841
27741         * config/sh/sh.c (find_barrier): Increase length for non delayed
27742         conditional branches.
27743
27744 2010-01-27  Matthias Klose  <doko@ubuntu.com>
27745
27746         * configure.ac (gnu-unique-object): Fix ldd version check.
27747         * configure: Regenerate.
27748
27749 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27750
27751         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27752         HAVE_GNU_AS value.
27753         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27754         Test for HAVE_GNU_AS value.
27755
27756 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27757
27758         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27759         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27760         INT64_TYPE): Define.
27761         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27762         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27763         INT_LEAST64_TYPE): Define.
27764         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27765         UINT_LEAST64_TYPE): Define.
27766         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27767         INT_FAST64_TYPE): Define.
27768         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27769         UINT_FAST64_TYPE): Define.
27770         (INTMAX_TYPE, UINTMAX_TYPE): Define.
27771         (INTPTR_TYPE, UINTPTR_TYPE): Define.
27772         (SIG_ATOMIC_TYPE): Define.
27773
27774 2010-01-26  Richard Guenther  <rguenther@suse.de>
27775
27776         * df-scan.c (df_scan_set_bb_info): Remove assert.
27777         (df_insn_rescan_debug_internal): Merge asserts.
27778         (df_install_ref): Likewise.
27779         (df_mark_reg): Use bitmap_set_range.
27780         (df_hard_reg_used_p): Remove assert.
27781         (df_hard_reg_used_count): Likewise.
27782
27783 2010-01-26  Richard Guenther  <rguenther@suse.de>
27784
27785         PR rtl-optimization/42685
27786         * web.c (web_main): Ignore DEBUG_INSNs.
27787
27788 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
27789
27790         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27791
27792         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27793         Fix types of fndecl and arglist parameters.
27794
27795 2010-01-26  Richard Guenther  <rguenther@suse.de>
27796
27797         PR middle-end/42806
27798         * tree-eh.c (unsplit_eh): Skip debug insns.
27799
27800 2010-01-26  Richard Guenther  <rguenther@suse.de>
27801
27802         PR tree-optimization/42250
27803         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27804
27805 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
27806
27807         PR fortran/42866
27808         * omp-low.c (expand_omp_sections): Only use single_pred if
27809         l2_bb is single_pred_p.
27810
27811 2010-01-25  Christian Bruel  <christian.bruel@st.com>
27812
27813         PR target/42841
27814         * config/sh/sh.c (find_barrier): Increase length for non delayed
27815         conditional branches.
27816         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27817
27818 2010-01-24  David S. Miller  <davem@davemloft.net>
27819
27820         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27821         define if not using GAS.
27822         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27823         Likewise.  Delete SECTION_MERGE code, which is only applicable
27824         when using GAS.
27825
27826 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
27827
27828         PR c++/42748
27829         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27830         mangling of va_list in system headers.
27831
27832 2010-01-23  Toon Moene  <toon@moene.org>
27833
27834         * tree-predcom.c (combine_chains): Return NULL, not false.
27835
27836 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
27837
27838         * tree-loop-distribution.c (distribute_loop): Fix declaration and
27839         initialization of variable res to agree with return type.
27840
27841 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
27842
27843         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27844         * tree-sra.c: Add include of expr.h.
27845
27846 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
27847
27848         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27849         insert the debug stmt on the single non-EH edge from the stmt.
27850
27851 2010-01-22  Richard Henderson  <rth@redhat.com>
27852
27853         PR tree-opt/42833
27854         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27855         the RHS until after generate_subtree_copies has insertted its
27856         code before the current statement.
27857
27858 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
27859
27860         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
27861
27862         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
27863
27864 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27865
27866         PR tree-optimization/42585
27867         * tree-sra.c (struct access): New field grp_total_scalarization.
27868         (dump_access): Dump the new field.
27869         (should_scalarize_away_bitmap): New variable.
27870         (cannot_scalarize_away_bitmap): Likewise.
27871         (sra_initialize): Allocate new bitmaps.
27872         (sra_deinitialize): Free new bitmaps.
27873         (create_access_1): New function.
27874         (create_access): Parts moved to create_access_1.
27875         (type_consists_of_records_p): New function.
27876         (completely_scalarize_record): Likewise.
27877         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
27878         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
27879         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
27880         access.
27881         (analyze_all_variable_accesses): Completely scalarize small eligible
27882         records.
27883
27884 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27885
27886         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
27887
27888 2010-01-21  Andrew Haley  <aph@redhat.com>
27889
27890         * gcc.c (process_command): Move lang_specific_driver before
27891         setting cc_libexec_prefix.
27892
27893 2010-01-21  Richard Guenther  <rguenther@suse.de>
27894
27895         PR middle-end/19988
27896         * fold-const.c (negate_expr_p): Pretend only negative
27897         real constants are easily negatable.
27898
27899 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
27900             Jason Merrill  <jason@redhat.com>
27901
27902         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
27903         (TYPE_TRANSPARENT_AGGR): this, for union and record.
27904         * calls.c (initialize argument_information): Handle it.
27905         * c-common.c (handle_transparent_union_attribute): Use new name.
27906         * c-decl.c (finish_struct): Ditto.
27907         * c-typeck.c (type_lists_compatible_p): Ditto.
27908         (convert_for_assignment): Use new name and also handle record.
27909         * function.c (aggregate_value_p): Handle it.
27910         (pass_by_reference): Ditto.
27911         (assign_parm_data_types): Ditto.
27912         * print-tree.c (print_node): Ditto.
27913         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
27914         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
27915         * tree.c (first_field): New fn.
27916
27917 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27918
27919         PR target/42818
27920         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
27921         even when linking statically, for now.
27922
27923 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27924
27925         PR debug/42715
27926         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
27927         without a cselib val.
27928         (count_uses): Accept MO_VAL_SET with no val on stores.
27929         (add_stores): Likewise.
27930
27931 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27932
27933         * var-tracking.c (check_value_val): Add a compile time assertion.
27934         (dv_is_decl_p): Simplify.
27935         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
27936         gcc_assert if ENABLE_CHECKING.
27937
27938 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27939
27940         PR debug/42782
27941         * var-tracking.c: Include tree-flow.h.
27942         (mem_dies_at_call): New.
27943         (dataflow_set_preserve_mem_locs): Use it.
27944         (dataflow_set_remove_mem_locs): Likewise.
27945         (dump_var): Renamed from dump_variable.  Adjust all callers.
27946         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
27947         * Makefile.in (var-tracking.o): Adjust deps.
27948
27949 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
27950
27951         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
27952
27953 2010-01-20  Richard Guenther  <rguenther@suse.de>
27954
27955         PR tree-optimization/42717
27956         * tree-ssa-dce.c (get_live_post_dom): Remove.
27957         (forward_edge_to_pdom): Take an arbitrary edge to copy
27958         degenerate PHI args from.
27959         (remove_dead_stmt): Use the first post-dominator even if it
27960         does not contain live statements as redirection destination.
27961
27962 2010-01-20  Richard Guenther  <rguenther@suse.de>
27963
27964         * tree-inline.c (estimate_num_insns): Handle EH builtins.
27965
27966 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27967
27968         * sel-sched.c (create_speculation_check): Remove set but not used
27969         variable twin.
27970         (try_transformation_cache): Remove set but not used variable ds.
27971         (calculate_privileged_insns): Remove set but not used variables
27972         cur_insn and min_spec_insn.
27973         (find_best_expr): Remove set but not used variable avail_n.
27974         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
27975         variable e.
27976         * cgraphunit.c (assemble_thunk): Remove set but not used variable
27977         false_label.
27978         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
27979         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
27980         new_scop_exit_edge.
27981
27982 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
27983
27984         PR bootstrap/42786
27985         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
27986         cpu types.  Add support for *-sse3 cpu types.
27987         (x86_64-*-*): Ditto.
27988
27989 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27990
27991         PR middle-end/42803
27992         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
27993         argument, call initializer_constant_valid_p_1 instead of
27994         initializer_constant_valid_p, pass CACHE to it, return NULL
27995         immediately if first call returns NULL.
27996         (initializer_constant_valid_p_1): New function.
27997         (initializer_constant_valid_p): Use it.
27998
27999 2010-01-20  Thomas Quinot  <quinot@adacore.com>
28000
28001         * tree.def (PLACEHOLDER_EXPR): Fix comment.
28002
28003 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28004
28005         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
28006         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
28007         (loc_list_from_tree): Don't handle unsigned division.  Handle
28008         signed modulo using DW_OP_{over,over,div,mul,minus}.
28009         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
28010         modulo instead of signed.
28011
28012 2010-01-20  DJ Delorie  <dj@redhat.com>
28013
28014         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
28015         (Fpa): Pass it
28016         (h8300_emit_stack_adjustment): Propogate it.
28017         (push): Pass it.
28018         (h8300_expand_prologue): Likewise.
28019         (h8300_expand_epilogue): Likewise.
28020
28021 2010-01-19  Michael Matz  <matz@suse.de>
28022
28023         PR tree-optimization/41783
28024         * tree-data-ref.c (toplevel): Include flags.h.
28025         (dump_data_dependence_relation):  Also dump the inputs if the
28026         result will be unknown.
28027         (split_constant_offset_1): Look through some conversions.
28028         * tree-predcom.c (determine_roots_comp): Restart a new chain if
28029         the offset from last element is too large.
28030         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
28031         (reassociate_to_the_same_stmt): Handle vector registers.
28032         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
28033         (e.g. conversions).
28034         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
28035         wide_prolog_niters argument, emit widening instructions.
28036         (vect_do_peeling_for_alignment): Adjust caller, use widened
28037         variant of the iteration cound.
28038         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
28039
28040 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28041
28042         PR target/38697
28043         * config/arm/neon-testgen.m (emit_automatics): New parameter
28044         features. Adjust for Fixed_return_reg feature.
28045         (test_intrinsic): Call emit_automatics with new feature.
28046         * config/arm/neon.ml: Update copyright years.
28047         (features): New Fixed_return_reg feature.
28048         (ops): Update feature for Vget_low.
28049
28050 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
28051
28052         PR tree-optimization/42719
28053         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
28054         stmt uses.
28055
28056         PR debug/42728
28057         * fwprop.c (all_uses_available_at): Return false if def_set dest
28058         is a REG that is used in def_insn.
28059
28060 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
28061
28062         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
28063
28064         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
28065         Add argument names.
28066
28067         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
28068
28069         * target.h (struct gcc_target) <secondary_reload>: Change type
28070         of last argument to secondary_reload_info *.
28071
28072 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
28073
28074         PR target/42774
28075         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
28076         memory references with unaligned offsets.  Remove CQImode handling.
28077         (unaligned_memory_operand): Return 1 for memory references with
28078         unaligned offsets.  Remove CQImode handling.
28079
28080 2010-01-18  Richard Guenther  <rguenther@suse.de>
28081
28082         PR middle-end/39954
28083         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
28084         builtin calls.
28085
28086 2010-01-18  Richard Guenther  <rguenther@suse.de>
28087
28088         PR tree-optimization/42781
28089         * tree-ssa-structalias.c (find_what_var_points_to): Skip
28090         restrict processing only if the original variable was artificial.
28091
28092 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
28093
28094         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
28095         find number of popped argument bytes.
28096
28097         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
28098         Fix the text that describes the return value for invalid insns.
28099
28100         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
28101
28102         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
28103         Clarify what 'cost of the -dependence' is.  Fix quoting.
28104
28105         * toplev.c (default_get_pch_validity): Rename argument to "sz".
28106         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
28107
28108 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
28109
28110         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28111         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
28112
28113 2010-01-17  Richard Guenther  <rguenther@suse.de>
28114
28115         PR middle-end/42248
28116         * function.c (split_complex_args): Take a VEC to modify.
28117         (assign_parms_augmented_arg_list): Build a VEC instead of
28118         a chain of PARM_DECLs.
28119         (assign_parms_unsplit_complex): Take a VEC of arguments.
28120         Do not fixup unmodified parms.
28121         (assign_parms): Deal with the VEC.
28122         (gimplify_parameters): Likewise.
28123
28124 2010-01-17  Richard Guenther  <rguenther@suse.de>
28125
28126         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
28127         node existence check.
28128         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
28129         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
28130         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
28131         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
28132         (gimple_execute_on_growing_pred): Likewise.
28133
28134 2010-01-17  Richard Guenther  <rguenther@suse.de>
28135
28136         PR tree-optimization/42773
28137         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28138         (compute_antic_aux): Likewise.
28139         (compute_partial_antic_aux): Likewise.
28140
28141 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
28142
28143         PR debug/42767
28144         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28145         and US_TRUNCATE.
28146
28147 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
28148
28149         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28150         appearance.
28151
28152         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28153         Fix markup for strict argument.
28154
28155         (TARGET_SCHED_REORDER2): Fix argument types.
28156
28157         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28158         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28159
28160         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28161         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28162
28163         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28164         Add argument name.
28165
28166         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28167         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28168         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28169         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28170         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28171
28172         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28173
28174         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28175
28176         (TARGET_ASM_RELOC_RW_MASK): Add return type.
28177         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28178
28179         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28180
28181         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28182         Use prototype.
28183
28184         (TARGET_ASM_NAMED_SECTION): Fix argument list.
28185
28186         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28187         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28188
28189         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28190
28191         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28192
28193         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28194         referring to it.  Fix language.
28195
28196         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28197
28198         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28199
28200         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28201
28202         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28203
28204         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28205         '@var{stream}.  Remove stray 'and'.
28206
28207         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28208
28209         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28210
28211         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28212
28213         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28214         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28215
28216         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28217         Fix description of return value.
28218         Rename argument "sz" to "len."
28219
28220         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28221         Clarify meaning of 'true' return value.
28222
28223         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28224
28225         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28226         rep_mode versus mode_rep.
28227
28228         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28229
28230         (TARGET_BUILTIN_DECL): Fix name.
28231
28232         (TARGET_COMMUTATIVE_P): Fix type of first argument.
28233
28234         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28235
28236         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28237
28238         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28239
28240         (TARGET_RELAXED_ORDERING): Use @deftypevr.
28241
28242         (TARGET_GET_DRAP_RTX): Note that this is a hook.
28243         Clarify language.
28244
28245         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28246         Rename argument tm_fn to md_fn.
28247
28248         (TARGET_OPTION_PRINT): Fix argument list.
28249
28250 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
28251
28252         PR target/42664
28253         * config/i386/i386.c (ix86_fixup_binary_operands):
28254         Revert FMA4 fixup of operands.
28255
28256 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28257
28258         PR gcc/42525
28259         * Makefile.in (write_entries_to_file, install-plugin):
28260         Use \012 instead of \n with tr.
28261
28262 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
28263
28264         * configure.ac (HAVE_AS_REF): New C macro.
28265         * configure: Regenerate.
28266         * config.in: Likewise.
28267         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28268         if HAVE_AS_REF.
28269         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28270         if HAVE_AS_REF.
28271
28272 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
28273
28274         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28275
28276         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28277
28278         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28279
28280         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28281
28282         (TARGET_IN_SMALL_DATA_P): Fix argument type.
28283
28284         (TARGET_BINDS_LOCAL_P): Fix argument type.
28285
28286         (TARGET_ASM_FILE_END): Use prototype.
28287
28288         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28289
28290         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28291
28292         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28293
28294         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28295
28296         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28297         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28298
28299         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28300         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28301
28302         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28303         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28304         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28305         (TARGET_ADDR_SPACE_CONVERT): Likewise.
28306
28307         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28308
28309         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28310
28311         (TARGET_INIT_BUILTINS): Use prototype.
28312
28313         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28314         Put 'const char *' in braces.  Fix parameter types.
28315         (TARGET_INVALID_CONVERSION): Fix parameter types.
28316         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28317         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28318
28319         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28320         Fix argument type.
28321
28322         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28323
28324         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28325
28326 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
28327
28328         * doc/tm.texi (TARGET_HELP): Fix return type.
28329
28330         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28331         in braces.  Fix argument types.
28332
28333         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28334
28335         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28336
28337         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28338
28339         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28340         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28341
28342         (TARGET_MANGLE_TYPE): Fix argument types.
28343
28344         (TARGET_IRA_COVER_CLASSES): Use prototype.
28345
28346         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
28347
28348         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28349
28350         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28351
28352         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28353
28354         (TARGET_CALLEE_COPIES): Fix argument types.
28355
28356         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28357
28358         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28359
28360         (TARGET_FUNCTION_VALUE): Fix argument types.
28361
28362         (TARGET_RETURN_IN_MSB): Fix argument type.
28363
28364         (TARGET_RETURN_IN_MEMORY): Fix argument types.
28365
28366         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28367
28368         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28369
28370         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28371         agree with return type.
28372
28373         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28374
28375 2010-01-15  Jing Yu  <jingyu@google.com>
28376
28377         PR rtl-optimization/42691
28378         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28379         a pseudo to a constant and are merged, and adjust comments.
28380
28381 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28382
28383         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28384
28385 2010-01-15  Richard Guenther  <rguenther@suse.de>
28386
28387         PR middle-end/42739
28388         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28389         labels of computed or non-local gotos to the destination.
28390         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28391         landing pad label is the first label.
28392
28393 2010-01-15  Richard Guenther  <rguenther@suse.de>
28394
28395         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28396
28397 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28398
28399         PR target/42747
28400         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28401         to allow generation of the xssqrtdp instruction on power7.
28402         (sqrtdf2_fpr): Ditto.
28403
28404 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28405
28406         PR middle-end/42674
28407         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28408         functions with noreturn attribute.
28409
28410         PR c++/42608
28411         * varasm.c (declare_weak): Add weak attribute to decl if it
28412         doesn't have one already.
28413         (assemble_external): Only add decls to weak_decls if they also
28414         have weak attribute.
28415
28416 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
28417
28418         * var-tracking.c (var_reg_delete): Don't delete the association
28419         between REGs and values or one-part variables if the register
28420         isn't clobbered.
28421
28422 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28423
28424         PR debug/42657
28425         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28426         because its first operand is a non-localized variable.
28427
28428 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28429
28430         PR tree-optimization/42706
28431         * tree-sra.c (encountered_recursive_call): New variable.
28432         (encountered_unchangable_recursive_call): Likewise.
28433         (sra_initialize): Initialize both new variables.
28434         (callsite_has_enough_arguments_p): New function.
28435         (scan_function): Call decl and flags check only for IPA-SRA, check
28436         whether there is a recursive call and whether it has enough arguments.
28437         (all_callers_have_enough_arguments_p): New function.
28438         (convert_callers): Look for recursive calls only when
28439         encountered_recursive_call is set.
28440         (ipa_early_sra): Bail out either if
28441         !all_callers_have_enough_arguments_p or
28442         encountered_unchangable_recursive_call.
28443
28444 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28445
28446         * sel-sched.c: Add 2010 to copyright years.
28447         * sel-sched-ir.c: Likewise.
28448         * sel-sched-ir.h: Likewise.
28449
28450 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28451
28452         PR tree-optimization/42714
28453         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28454         constructors specially.
28455
28456 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28457
28458         * config/i386/drivers-i386.c (detect_caches_intel):
28459         Add l2sizekb parameter and fill in.
28460         (host_detect_local_cpu): Add l2sizekb, fill in.
28461         Add Atom small cache heuristic.
28462
28463 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28464
28465         * config/i386/drivers-i386.c (detect_caches_cpuid4):
28466         Add level3 parameter and fill in.
28467         (detect_caches_intel): Handle level3 cache.
28468
28469 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28470
28471         * config/i386/drivers-i386.c (host_detect_local_cpu):
28472         Fix core duo detection.
28473
28474 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28475
28476         * config/i386/drivers-i386.c (host_detect_local_cpu):
28477         Fix Atom detection.
28478
28479 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28480
28481         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28482         (rs6000_variable_issue_1): this.  Use...
28483         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
28484
28485 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28486
28487         * sel-sched-ir.c (sel_restore_other_notes): Rename to
28488         sel_restore_notes.  Update all callers.  Call reemit_notes
28489         for all insns.
28490
28491 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28492
28493         PR rtl-optimization/42246
28494         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28495         loops.
28496
28497 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28498
28499         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28500         all successors is the same as number of successors in current region.
28501
28502 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28503
28504         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28505         to rename is not separable.  Otherwise check that its LHS is not NULL.
28506
28507 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28508
28509         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
28510
28511 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28512
28513         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28514         available registers when failed to discover LHS register class.
28515         Fix indentation.  Update comment.
28516
28517 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28518             Alexander Monakov  <amonakov@ispras.ru>
28519
28520         PR rtl-optimization/42389
28521         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28522         to can_issue_more.
28523         (advance_state_on_fence): Likewise.
28524         (sel_target_adjust_priority): Print debug output only when
28525         sched_verbose >= 4, not 2.
28526         (get_expr_cost): Do not issue all unique insns on the next cycle.
28527         (fill_insns): Initialize can_issue_more from the value saved
28528         with the fence.
28529         * sel-sched-ir.c (flist_add): New parameter issue_more.
28530         Init FENCE_ISSUE_MORE with it.
28531         (merge_fences): Likewise.
28532         (init_fences): Update call to flist_add.
28533         (add_to_fences, add_clean_fence_to_fences)
28534         (add_dirty_fence_to_fences): Likewise.
28535         (move_fence_to_fences): Update call to merge_fences.
28536         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28537         sched groups.
28538         * sel-sched-ir.h (struct _fence): New field issue_more.
28539         (FENCE_ISSUE_MORE): New accessor macro.
28540
28541 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28542
28543         PR rtl-optimization/42388
28544         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28545         that have no predecessors nor successors.  Do not call move_bb_info
28546         for empty blocks outside of current region.
28547
28548 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28549
28550         PR rtl-optimization/42294
28551         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28552         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28553         originators' originators.
28554
28555 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28556
28557         PR rtl-optimization/39453
28558         PR rtl-optimization/42246
28559         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28560         for pipelining_p.
28561         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28562
28563 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28564             Alexander Monakov  <amonakov@ispras.ru>
28565
28566         PR middle-end/42245
28567         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28568         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28569         argument.  Update all callers.
28570         (tidy_control_flow): ... and here.  Recompute topological order
28571         of basic blocks in region if necessary.
28572         (sel_redirect_edge_and_branch): Change return type.  Return true
28573         if topological order might have been invalidated.
28574         (purge_empty_blocks): Export and move from...
28575         * sel-sched.c (purge_empty_blocks): ... here.
28576         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28577         (maybe_tidy_empty_bb): Delete prototype.
28578         (purge_empty_blocks): Declare.
28579
28580 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28581
28582         PR rtl-optimization/42249
28583         * sel-sched.c (try_replace_dest_reg): When chosen register
28584         and original register is the same, do not bail out early, but
28585         still check all original insns for validity of replacing destination
28586         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28587         in this case.
28588
28589 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28590
28591         PR c/42721
28592         Port from no-undefined-overflow branch:
28593         2009-03-09  Richard Guenther  <rguenther@suse.de>
28594
28595         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28596
28597 2010-01-14  Richard Guenther  <rguenther@suse.de>
28598
28599         PR lto/42665
28600         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28601
28602 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28603
28604         PR tree-optimization/42709
28605         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28606         as scalar type in creation of constant vector operand.
28607
28608 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28609
28610         PR testsuite/42414
28611         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28612         (check-parallel-%): Match `testsuite' directory component only
28613         at the end.
28614
28615 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28616
28617         PR translation/39521
28618         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28619         strings with _().
28620
28621 2010-01-13  Richard Guenther  <rguenther@suse.de>
28622
28623         PR tree-optimization/42730
28624         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28625         offset zero.
28626
28627 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28628
28629         PR target/pr42542
28630         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28631         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28632         them signed.
28633
28634 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28635
28636         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28637         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28638         ___umulsi3_highpart.
28639
28640         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28641         rather than schedule_insns if the pass is enabled.
28642
28643 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28644
28645         PR tree-optimization/42704
28646         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28647         SSA_NAMEs.
28648
28649 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28650
28651         PR tree-optimization/42703
28652         * tree-sra.c (analyze_access_subtree): Check that we can build a
28653         reference to the original data within the aggregate.
28654
28655 2010-01-13  Richard Guenther  <rguenther@suse.de>
28656
28657         PR tree-optimization/42705
28658         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28659
28660 2010-01-13  Richard Guenther  <rguenther@suse.de>
28661
28662         PR middle-end/42716
28663         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28664
28665 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28666
28667         PR debug/41371
28668         * var-tracking.c (values_to_unmark): New variable.
28669         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28670         values_to_unmark vector.  Moved body to...
28671         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28672         instead queue it into values_to_unmark vector.
28673         (vt_find_locations): Free values_to_unmark vector.
28674
28675 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28676
28677         * config/s390/s390.c (override_options): Set
28678         default of max-pending-list-length to 256
28679
28680 2010-01-13  Richard Guenther  <rguenther@suse.de>
28681
28682         PR lto/42678
28683         * tree-pass.h (PROP_gimple_lcx): New.
28684         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28685         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28686         before the final cleanup_eh.
28687         (dump_properties): Dump PROP_gimple_lcx.
28688         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28689         (tree_lower_complex_O0): Remove.
28690         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28691         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
28692         tree_lower_complex, schedule TODO_update_ssa.
28693         * lto-streamer-out.c (output_function): Stream the functions
28694         properties.
28695         * lto-streamer-in.c (input_function): Likewise.
28696         (lto_read_body): Do not override them here.
28697
28698 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
28699
28700         PR c/42708
28701         * c-typeck.c (build_c_cast): Fold value cast to union type before
28702         wrapping it in a CONSTRUCTOR.
28703
28704 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28705
28706         PR rtl-optimization/42699
28707         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28708         involved.
28709
28710 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28711
28712         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28713         SUBTARGET_WARN_UNUSED_SPEC): Move ...
28714         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28715         SUBTARGET_WARN_UNUSED_SPEC): ... here
28716         * config/mips/iris5.h (LIBGCC_SPEC): Define.
28717
28718 2010-01-12  Julian Brown  <julian@codesourcery.com>
28719
28720         * config/arm/neon-schedgen.ml (Utils): Don't try to
28721         open missing module.
28722         (find_with_result): New.
28723
28724 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28725
28726         PR debug/42662
28727         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28728         sharing when canonicalizing ({lt,ge}u (plus a b) b).
28729
28730         PR tree-optimization/42645
28731         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
28732         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28733         decl_map, set processing_debug_stmt to -1 and return name without
28734         any remapping.
28735
28736 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
28737
28738         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28739         binutils version, and reword target configuration description.
28740
28741 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28742
28743         * config/avr/avr.h (LINKER_NAME): Remove.
28744
28745 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
28746
28747         PR target/42416
28748         * config/rs6000/rs6000.c (rs6000_override_options): On targets
28749         that support VSX, warn for -mno-altivec if vsx is not disabled,
28750         and disable vsx.
28751
28752 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
28753             Shujing Zhao  <pearly.zhao@oracle.com>
28754
28755         PR translation/42469
28756         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28757         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28758         character between option name and help text.
28759         * c.opt (imultilib): Likewise.
28760
28761 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
28762
28763         * lto-streamer-out.c (output_unreferenced_globals): Output static
28764         variables.
28765
28766 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
28767
28768         PR rtl-optimization/42621
28769         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28770         optimizing for size.
28771         (duplicate_computed_gotos): Remove now-redundant check.
28772
28773 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
28774
28775         PR target/37454
28776         * configure.ac: Save and restore LDFLAGS and LIBS
28777         * configure: Regenerate.
28778
28779 2010-01-10  Richard Guenther  <rguenther@suse.de>
28780
28781         PR middle-end/42667
28782         * builtins.c (fold_builtin_strlen): Add type argument and
28783         convert the resulting length to it.
28784         (fold_builtin_1): Adjust.
28785
28786 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28787
28788         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28789         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28790         1 insn.
28791         (num_insns_constant_wide): Adjust for that change.
28792
28793 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28794
28795         PR debug/42631
28796         * web.c (union_defs): Add used argument, to combine uses of
28797         uninitialized regs.
28798         (entry_register): Adjust type and tests of used argument.
28799         (web_main): Widen used for new use.  Pass it to union_defs.
28800         * df.h (union_defs): Adjust prototype.
28801
28802 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28803
28804         PR debug/42630
28805         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28806         uses in new incoming argument.  Free body.
28807         (reset_debug_uses_in_loop): New.
28808         (analyze_insn_to_expand_var): Call the latter if the former found
28809         anything.  Fix whitespace.  Reject invalid dest overlaps before
28810         going through all insns in the loop.
28811
28812 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28813
28814         PR debug/42629
28815         * haifa-sched.c (dying_use_p): Debug insns don't count.
28816
28817 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28818
28819         PR middle-end/42363
28820         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28821         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28822         (verify_gimple_call): Reject LHS in noreturn calls.
28823
28824 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28825
28826         PR debug/42604
28827         PR debug/42395
28828         * tree-vect-loop-manip.c (adjust_info): New type.
28829         (adjust_vec): New pointer to vector.
28830         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28831         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28832         (slpeel_update_phis_for_duplicate_loop): Use them.
28833         (slpeel_update_phi_nodes_for_guard1): Likewise.
28834         (slpeel_update_phi_nodes_for_guard2): Likewise.
28835         (slpeel_tree_peel_loop_to_edge): Likewise.
28836         (vect_update_ivs_after_vectorizer): Likewise.
28837
28838 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28839
28840         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28841         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28842
28843 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28844
28845         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28846         bogus uninitialized warning.
28847
28848 2010-01-09  Richard Guenther  <rguenther@suse.de>
28849
28850         PR middle-end/42512
28851         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28852         the evolution is compatible with the initial condition.
28853
28854 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28855
28856         * gcc.c (process_command): Update copyright notice dates.
28857         * gcov.c (print_version): Likewise.
28858         * gcov-dump.c (print_version): Likewise.
28859         * mips-tfile.c (main): Likewise.
28860         * mips-tdump.c (main): Likewise.
28861
28862 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28863
28864         PR target/41885
28865         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
28866         (rotlhi3): Delete.
28867         (rotlhi3_8): Delete.
28868         (rotlsi3): Delete.
28869         (rotlsi3_8): Delete.
28870         (rotlsi3_16): Delete.
28871         (rotlsi3_24): Delete.
28872         (rotl<mode>3): New.
28873         (*rotw<mode>3): New.
28874         (*rotb<mode>3): New.
28875         * config/avr/avr.c (avr_rotate_bytes): New function.
28876         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
28877
28878 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
28879
28880         PR target/37454
28881         * configure.ac: Modify -rdynamic check.
28882         * configure: Regenerate.
28883
28884 2010-01-08  DJ Delorie  <dj@redhat.com>
28885
28886         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
28887         register popping order.
28888
28889 2010-01-08  Richard Guenther  <rguenther@suse.de>
28890
28891         PR lto/42528
28892         * c.opt (fsigned-char): Also let LTO handle this option.
28893         (funsigned-char): Likewise.
28894
28895 2010-01-07  Richard Guenther  <rguenther@suse.de>
28896
28897         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
28898         (gimple_op): Likewise.
28899         (gimple_op_ptr): Likewise.
28900         (gimple_assign_set_lhs): Remove gcc_assert.
28901         (gimple_assign_set_rhs1): Likewise.
28902         (gimple_assign_set_rhs2): Likewise.
28903         (gimple_call_set_lhs): Likewise.
28904         (gimple_call_set_fn): Likewise.
28905         (gimple_call_set_fndecl): Likewise.
28906         (gimple_call_fndecl): Likewise.
28907         (gimple_call_return_type): Likewise.
28908         (gimple_call_set_chain): Likewise.
28909         (gimple_call_num_args): Likewise.
28910         (gimple_call_set_arg): Likewise.
28911         (gimple_cond_set_code): Likewise.
28912         (gimple_cond_set_lhs): Likewise.
28913         (gimple_cond_set_rhs): Likewise.
28914         (gimple_cond_set_true_label): Likewise.
28915         (gimple_cond_set_false_label): Likewise.
28916         (gimple_label_set_label): Likewise.
28917         (gimple_goto_set_dest): Likewise.
28918         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
28919         (gimple_debug_bind_get_value): Likewise.
28920         (gimple_debug_bind_get_value_ptr): Likewise.
28921         (gimple_debug_bind_set_var): Likewise.
28922         (gimple_debug_bind_set_value): Likewise.
28923         (gimple_debug_bind_reset_value): Likewise.
28924         (gimple_debug_bind_has_value_p): Likewise.
28925         (gimple_return_retval_ptr): Remove gcc_assert.
28926         (gimple_return_retval): Likewise.
28927         (gimple_return_set_retval): Likewise.
28928         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
28929         (safe_referenced_var_iterator): Remove.
28930         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
28931         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
28932         (fill_referenced_var_vec): Remove.
28933         (first_readonly_imm_use): Remove redundant gcc_assert.
28934         (phi_arg_index_from_use): Combine gcc_asserts.
28935         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
28936         (first_imm_use_stmt): Remove redundant gcc_assert.
28937         * tree-cfg.c (verify_gimple_call): Verify function and chain
28938         operands.  Verify arguments.
28939         (verify_types_in_gimple_stmt): Verify condition code and labels.
28940
28941 2010-01-07  Richard Guenther  <rguenther@suse.de>
28942
28943         PR tree-optimization/42641
28944         * sese.c (rename_map_elt_info): Use the SSA name version, do
28945         not hash pointers.
28946
28947 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
28948
28949         PR tree-optimization/42625
28950         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
28951         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
28952
28953 2010-01-07  Duncan Sands  <baldrick@free.fr>
28954
28955         * Makefile.in (PLUGIN_HEADERS): Add version.h.
28956
28957 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
28958
28959         PR target/42511
28960         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
28961         note itself is not function_invariant_p.
28962
28963 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
28964
28965         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
28966         Do not add the DF_NOTE problem.
28967         * store-motion.c (execute_rtl_store_motion): Likewise.
28968
28969 2010-01-07  Martin Jambor  <mjambor@suse.cz>
28970
28971         PR tree-optimization/42157
28972         * tree-sra.c (compare_access_positions): Stabilize sort if both
28973         accesses have integer types, return zero immediately if they are the
28974         same.
28975
28976 2010-01-06  Richard Henderson  <rth@redhat.com>
28977
28978         PR middle-end/41883
28979         * haifa-sched.c (add_to_note_list): Merge into ...
28980         (concat_note_lists): ... here, and ...
28981         (unlink_other_notes, rm_other_notes): Merge into...
28982         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
28983         NOTE_INSN_EPILOGUE_BEG.
28984
28985 2010-01-06  Richard Guenther  <rguenther@suse.de>
28986
28987         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
28988         not inline regular functions into always-inline functions.
28989
28990 2010-01-06  Nick Clifton  <nickc@redhat.com>
28991
28992         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
28993         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
28994         used together.
28995         (OVERRIDE_OPTIONS): Delete.
28996         (OPTIMIZATION_OPTIONS): Define.
28997         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
28998         * config/rx/rx.c (rx_handle_option): Issue an error message if
28999         -mcpu=rx200 and -fpu are used together.
29000         (rx_set_optimization_options): New function.  Issue an error
29001         message if an optimization attribute attempts to reset the FPU/
29002         math optimization pairing.
29003         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
29004         * config/rx/rx.opt: Set the default to 32-bit doubles.
29005         * config/rx/t-rx: Add multilibs for -nofpu option.
29006         * doc/invoke.texi: Update documentation of RX options.
29007
29008 2010-01-06  Richard Guenther  <rguenther@suse.de>
29009
29010         * tree-ssa-pre.c (name_to_id): New global.
29011         (alloc_expression_id): Simplify SSA name handling.
29012         (lookup_expression_id): Likewise.
29013         (init_pre): Zero name_to_id.
29014         (fini_pre): Free it.
29015
29016 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
29017
29018         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
29019
29020 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
29021
29022         PR target/42542
29023         * config/i386/sse.md (smaxv2di3): New.
29024         (umaxv2di3): Likewise.
29025         (sminv2di3): Likewise.
29026         (uminv2di3): Likewise.
29027
29028 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29029
29030         PR target/42564
29031         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
29032         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
29033         (legitimize_tls_address): Likewise.
29034         (sparc_tls_referenced_p): Likewise.
29035         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
29036         and adjust calls to legitimize_pic_address.
29037         (legitimate_constant_p) Use sparc_tls_referenced_p.
29038         (legitimate_pic_operand_p): Likewise.
29039         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
29040         (sparc_tls_symbol_ref_1): Delete.
29041         (sparc_tls_referenced_p): Make static, recognize specific patterns.
29042         (legitimize_tls_address): Make static, handle CONST patterns.
29043         (legitimize_pic_address): Make static, remove unused parameter and
29044         adjust recursive calls.
29045         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
29046         and adjust call to legitimize_pic_address.
29047         (sparc_output_mi_thunk): Likewise.
29048
29049 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
29050             H.J. Lu  <hongjiu.lu@intel.com>
29051
29052         PR target/42542
29053         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
29054         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
29055         operands to make them signed.
29056
29057         Revert:
29058         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29059
29060         PR target/42542
29061         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29062         GTU to GT for V4SI and V2DI.
29063
29064         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29065         (umin<mode>3): Removed.
29066         (uminv8hi3): New.
29067         (uminv4si3): Likewise.
29068
29069 2010-01-05  Martin Jambor  <mjambor@suse.cz>
29070
29071         PR tree-optimization/42462
29072         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
29073         current_function_decl to helper functions and macros.
29074
29075 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29076
29077         PR bootstrap/41771
29078         * flags.h: Don't include real.h.
29079         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
29080         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
29081         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
29082         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
29083         * dominance.c: Update copyright.
29084         * gimple.c (walk_gimple_op): Remove inline.
29085         * tree-ssa-reassoc.c: Include real.h.
29086         * Makefile.in (FLAGS_H): Remove $(REAL_H).
29087         (tree-ssa-reassoc.o): Depend on $(REAL_H).
29088
29089 2010-01-05  Nick Clifton  <nickc@redhat.com>
29090
29091         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
29092         register to push into the stack frame when the accumulator has to
29093         be saved during interrupts.
29094
29095 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
29096
29097         * doc/invoke.texi: Remove the documentation about option
29098         -Wunreachable-code.
29099         * common.opt (Wunreachable-code):  Preserved for backward
29100         compatibility.
29101         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
29102         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
29103         the backward compatibility flag section.
29104
29105 2010-01-05  Richard Guenther  <rguenther@suse.de>
29106
29107         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
29108
29109 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
29110
29111         PR other/42611
29112         * cfgexpand.c (expand_one_var): Diagnose too large variables.
29113
29114         PR tree-optimization/42508
29115         * tree-sra.c (convert_callers): Check for recursive call
29116         by comparing cgraph nodes instead of decls.
29117         (modify_function): Call ipa_modify_formal_parameters also
29118         on all same_body aliases.
29119
29120         * cgraphunit.c (cgraph_materialize_all_clones): Compare
29121         cgraph nodes when checking for same_body aliases.
29122
29123 2010-01-05  Richard Guenther  <rguenther@suse.de>
29124
29125         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
29126         allocation and lookup.
29127         (get_or_alloc_expr_for_constant): Likewise.
29128         (phi_translate): Sink allocation.
29129
29130 2010-01-04  Richard Guenther  <rguenther@suse.de>
29131
29132         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
29133         a new entry only if needed.
29134         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
29135         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29136         hashtable lookup.
29137         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29138         the result array.
29139         (phi_translate): Handle CONSTANTs early.
29140
29141 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29142
29143         PR tree-optimization/42398
29144         * tree-sra.c (struct access): Removed flag grp_different_types.
29145         (dump_access): Do not dump the removed flag.
29146         (sort_and_splice_var_accesses): Do not set the removed flag.
29147         (sra_modify_expr): Check for type compatibility directly.
29148
29149 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29150
29151         PR tree-optimization/42366
29152         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29153         edges with variable number of parameters.
29154         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29155         flag instead of asserting it.
29156         (ipa_read_node_info): Read uses_analysis_done flag.
29157
29158 2010-01-04  Richard Guenther  <rguenther@suse.de>
29159
29160         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29161         iterative_hash_* as intended.
29162         (vn_reference_compute_hash): Likewise.  Simplify hashing
29163         SSA names.
29164         (vn_reference_lookup_2): Likewise.
29165         (vn_nary_op_compute_hash): Likewise.
29166         (vn_phi_compute_hash): Likewise.
29167         (expressions_equal_p): Remove strange code.
29168         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29169         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
29170         (bitmap_insert_into_set_1): Take value-id as parameter.
29171         (add_to_value): Pass it.
29172         (bitmap_insert_into_set): Likewise.
29173         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
29174
29175 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
29176
29177         PR driver/42442
29178         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29179         (do_self_spec): For switches with SWITCH_IGNORE set set also
29180         SWITCH_IGNORE_PERMANENTLY.
29181         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29182         of SWITCH_IGNORE.
29183
29184 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
29185
29186         * lto-streamer-out.c (output_unreferenced_globals): Output the full
29187         tree of an unreferenced global var.
29188
29189 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29190
29191         PR target/42542
29192         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29193         GTU to GT for V4SI and V2DI.
29194
29195         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29196         (umin<mode>3): Removed.
29197         (uminv8hi3): New.
29198         (uminv4si3): Likewise.
29199
29200 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29201
29202         PR lto/42581
29203         * collect2.c (main): Turn on trace in collect2 if -v is passed
29204         to gcc with LTO.
29205
29206 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
29207
29208         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
29209         description of expression operand.
29210
29211 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
29212
29213         * configure.ac: Add install-html to target_list for Make-hooks.
29214         * configure: Regenerate.
29215         * fortran/Make-lang.in (F95_HTMLFILES): New.
29216         (fortran.html): Use it.
29217         (fortran.install-html): New.
29218         * Makefile.in (install-html): Add lang.install-html.
29219         * java/Make-lang.in (JAVA_HTMLFILES): New.
29220         (java.html): Use it.
29221         (java.install-html): New.
29222         * objc/Make-lang.in (objc.install-html): New.
29223         * objcp/Make-lang.in (obj-c++.install-html): New.
29224         * cp/Make-lang.in (c++.install-html): New.
29225         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29226         * lto/Make-lang.in (lto.install-html): New.
29227
29228 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29229
29230         PR lto/42520
29231         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29232
29233 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29234
29235         PR rtl-optimization/41862
29236         * store-motion.c (store_killed_in_insn, compute_store_table,
29237         remove_reachable_equiv_notes, replace_store_insn,
29238         build_store_vectors): Ignore all DEBUG_INSNs.
29239
29240 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29241
29242         PR lto/41564
29243         * common.opt: Add dumpdir.
29244
29245         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29246         isn't specified.
29247         (option_map): Add --dumpdir.
29248
29249         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29250
29251         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29252
29253         * opts.c (decode_options): Try dump_dir_name first if
29254         dump_base_name isn't an absolute path.
29255         (common_handle_option): Handle OPT_dumpdir.
29256
29257         * toplev.c (dump_dir_name): New.
29258         (print_switch_values): Also ignore -dumpdir.
29259
29260         * toplev.h (dump_dir_name): New.
29261
29262 2010-01-03  Richard Guenther  <rguenther@suse.de>
29263
29264         PR tree-optimization/42589
29265         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29266         double-word expansion of bswap32.
29267
29268 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29269
29270         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29271         with BLOCK_FOR_INSN.
29272         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29273         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29274         noce_process_if_block): Likewise.
29275         * gcse.c (compute_local_properties, insert_expr_in_table,
29276         insert_set_in_table, canon_list_insert, find_avail_set,
29277         pre_insert_copy_insn): Likewise.
29278
29279         * basic-block.h (BLOCK_NUM): Move from here...
29280         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29281
29282 2010-01-03  Richard Guenther  <rguenther@suse.de>
29283
29284         PR tree-optimization/42438
29285         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29286         contains_may_not_return_call flag.
29287         (BB_MAY_NOTRETURN): New.
29288         (valid_in_sets): Trapping nary operations are not valid
29289         in blocks that may not return.
29290         (insert_into_preds_of_block): Remove check for trapping expressions.
29291         (compute_avail): Compute also BB_MAY_NOTRETURN.
29292
29293 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
29294
29295         * doc/invoke.texi: Add 2010 to copyright years.
29296
29297 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29298
29299         * config/sparc/sparc.c: Fix formatting nits.
29300
29301 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
29302             Alexander Monakov  <amonakov@ispras.ru>
29303
29304         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29305
29306 2010-01-02  Richard Guenther  <rguenther@suse.de>
29307
29308         PR middle-end/42577
29309         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29310         (simplify_switch_using_ranges): Mark to be removed edges
29311         as non-executable.
29312
29313 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29314
29315         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29316
29317         * collect2.c (scan_libraries): Add missing argument in call to
29318         scan_prog_file.
29319
29320 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
29321
29322         PR target/42448
29323         * config/alpha/predicates.md (aligned_memory_operand): Return false
29324         for CQImode.
29325         (unaligned_memory_operand): Return true for CQImode.
29326         * config/alpha/alpha.c (get_aligned_mem): Assert that location
29327         doesn not cross aligned SImode word boundary.
29328
29329 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
29330
29331         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29332         Remove.
29333         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29334         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29335
29336 2010-01-02  Richard Guenther  <rguenther@suse.de>
29337
29338         PR lto/41597
29339         * toplev.c (compile_file): Emit LTO marker properly.  Change
29340         it to __gnu_lto_v1.
29341         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29342
29343 2010-01-01  Richard Guenther  <rguenther@suse.de>
29344
29345         PR debug/42455
29346         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29347
29348 2010-01-01  Richard Guenther  <rguenther@suse.de>
29349
29350         PR c/42570
29351         * c-decl.c (grokdeclarator): For zero-size arrays force
29352         structural equality checks as layout_type does.
29353
29354 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29355
29356         * builtins.c: Update copyright to 2010.
29357
29358 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29359
29360         PR lto/42531
29361         * lto-streamer-out.c (produce_asm): Revert the last change.
29362         (copy_function): Likewise.
29363
29364         * lto-streamer.c (lto_get_section_name): Skip any leading
29365         asterisk in name.
29366
29367 2010-01-01  Richard Guenther  <rguenther@suse.de>
29368
29369         PR middle-end/42559
29370         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29371         for LABEL_DECLs.
29372
29373 \f
29374 Copyright (C) 2010 Free Software Foundation, Inc.
29375
29376 Copying and distribution of this file, with or without modification,
29377 are permitted in any medium without royalty provided the copyright
29378 notice and this notice are preserved.