re PR middle-end/45876 (ICE: verify_gimple failed)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
2
3         PR middle-end/45876
4         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
5         arg0's type or its unsigned counterpart as utype.  Convert
6         arg1 to utype unconditionally.
7
8 2010-10-04  Julian Brown  <julian@codesourcery.com>
9
10         * expr.c (expand_assignment): Add assertion to prevent emitting
11         null rtx for movmisalign pattern.
12         (expand_expr_real_1): Likewise.
13         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
14         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
15         (arm_vector_alignment_reachable): New.
16         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
17         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
18         (arm_print_operand): Include alignment qualifier in %A.
19         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
20         (movmisalign<mode>): New expander.
21         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
22         insn patterns.
23
24 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
25
26         * optc-gen.awk: Define global_options_set.  Don't define
27         target_flags_explicit.
28         * opth-gen.awk: Declare global_options_set.  Define
29         target_flags_explicit as macro.
30         * opts-common.c (handle_option): Take opts_set and generated_p
31         parameters.
32         (handle_generated_option, read_cmdline_option, set_option): Take
33         opts_set parameter.
34         (set_option): Use opts_set instead of hardcoding target_flags and
35         target_flags_explicit.
36         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
37         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
38         flag_value_profile_transformations_set, flag_peel_loops_set,
39         flag_branch_probabilities_set, flag_inline_functions_set,
40         flag_ipa_cp_set, flag_ipa_cp_clone_set,
41         flag_predictive_commoning_set, flag_unswitch_loops_set,
42         flag_gcse_after_reload_set): Remove.
43         (common_handle_option, lang_handle_option, target_handle_option):
44         Take opts_set parameter.  Assert that it is &global_options_set.
45         (common_handle_option): Don't set _set variables.  Check opts_set
46         instead of such variables.
47         (enable_warning_as_error): Pass &global_options_set to
48         handle_generated_option.
49         * opts.h (cl_option_handler_func.handler, set_option,
50         handle_option, handle_generated_option, read_cmdline_option): Add
51         opts_set parameters.
52         (handle_option): Add generated_p parameter.
53         * config/i386/i386.c (ix86_function_specific_save,
54         ix86_function_specific_restore): Updat for renaming of
55         target_flags_explicit field.
56         * config/i386/i386.opt (target_flags_explicit): Rename to
57         ix86_target_flags_explicit.
58         * config/ia64/ia64.c (ia64_override_options_after_change): Check
59         global_options_set.x_flag_selective_scheduling and
60         global_options_set.x_flag_selective_scheduling2, not
61         sel_sched_switch_set.
62         * flags.h (sel_sched_switch_set,
63         flag_speculative_prefetching_set): Remove.
64         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
65         that it is &global_options_set.
66         (process_command): Pass &global_options_set to
67         read_cmdline_option.
68         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
69         set_option.
70         * toplev.c (target_flags_explicit): Remove.
71
72 2010-10-04  Jan Hubicka  <jh@suse.cz>
73
74         PR middle-end/45871
75         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
76         use get_ref_base_and_offset to handle references.
77         (fold_const_aggregate_ref): Update.
78
79 2010-10-04  Martin Jambor  <mjambor@suse.cz>
80
81         PR tree-optimization/45572
82         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
83         ipa_check_create_node_params.
84         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
85
86 2010-10-04  Yao Qi  <yao@codesourcery.com>
87
88         * doc/passes.texi: Clean up.
89
90 2010-10-03  Ian Lance Taylor  <iant@google.com>
91
92         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
93         referring to a field using a typedef name.
94         (find_anonymous_field_with_type): New static function.
95         (convert_to_anonymous_field): New static function.
96         (convert_for_assignment): If -fplan9-extensions, permit converting
97         pointer to struct to pointer to anonymous field.
98         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
99         fields.
100         (is_duplicate_field): New static function.
101         (detect_field_duplicates_hash): If -fplan9-extensions, check for
102         typedef names duplicating field names.
103         (detect_field_duplicates): Likewise.
104         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
105         (C Dialect Options): Document -fplan9-extensions.
106         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
107
108 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
109
110         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
111         revision 164914.
112         (vect_create_data_ref_ptr): Likewise.
113         * tree-vect-stmts.c (vectorizable_store): Likewise.
114         (perm_mask_for_reverse): Likewise.
115         (reverse_vec_elements): Likewise.
116         (vectorizable_load): Likewise.
117
118 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
119
120         * cppbuiltin.c: New file.
121         * cppbuiltin.h: New file.
122         * Makefile.in: Take into account cppbuiltin.{h,c}.
123
124 2010-10-03  Andi Kleen <ak@linux.intel.com>
125
126         * lto-cgraph.c (input_cgraph): Check for missing sections.
127
128 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
129
130         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
131         to nonimmediate_operand.  Force operand 2 to register when allowed.
132         (*<shiftrt_insn><mode>3_mask): Ditto.
133         (*<rotate_insn><mode>3_mask): Ditto.
134
135 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
136
137         PR tree-optimization/45720
138         PR tree-optimization/45764
139         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
140         Don't accept backwards consecutive accesses.
141         (vect_create_data_ref_ptr): Disallow negative steps.
142
143         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
144         (perm_mask_for_reverse): Removed.
145         (reverse_vec_elements): Likewise.
146         (vectorizable_load): Don't handle negative steps.
147
148 2010-10-02  Jan Hubicka  <jh@suse.cz>
149
150         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
151         call destination is known.
152
153 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
154
155         PR target/45820
156         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
157         earlier.
158
159 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
160
161         * doc/install.texi (Configuration): Document build_configargs,
162         host_configargs, target_configargs.
163
164 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
165
166         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
167         (*<shiftrt_insn><mode>3_mask): Ditto.
168         (*<rotate_insn><mode>3_mask): Ditto.
169
170 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
171
172         PR tree-optimization/44716
173         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
174         (HOT_TEXT_SECTION_NAME): Define.
175
176 2010-10-01  Nick Clifton  <nickc@redhat.com>
177
178         * common.opt: Add -fcombine-stack-adjustments.
179         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
180         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
181         flag_combine_stack_adjustments.
182         * doc/invoke.texi: Document the new option.
183
184 2010-10-01  Richard Guenther  <rguenther@suse.de>
185
186         PR tree-optimization/45854
187         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
188
189 2010-10-01  Anthony Green  <green@moxielogic.com>
190
191         * config.gcc: Fix moxie-*-rtems* configuration.
192
193 2010-10-01  Richard Guenther  <rguenther@suse.de>
194
195         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
196         (gen_decl_die): Likewise.
197
198 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
199
200         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
201         to the function code for SPU MD builtins.
202         (spu_expand_builtin): Update.
203         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
204
205 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
206
207         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
208         sjlj_except_unwind_info.
209
210 2010-10-01  Tristan Gingold  <gingold@adacore.com>
211
212         * configure.ac: Define the nop insn for avr*-*-*
213         * configure: Regenerate.
214
215 2010-10-01  Alan Modra  <amodra@gmail.com>
216
217         PR target/45807
218         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
219         extend toc_restore_insn.
220
221 2010-09-30  Richard Guenther  <rguenther@suse.de>
222
223         PR tree-optimization/43959
224         * function.c (gimplify_parameters): Use create_tmp_reg instead of
225         create_tmp_var.
226
227 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
228
229         * config/sh/sh.c (sh_expand_prologue): Set
230         current_function_static_stack_size.
231
232 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
233
234         * configure.ac: Check for Solaris 8 ld with .hidden support.
235         * configure: Regenerate.
236
237 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
238
239         PR middle-end/45758
240         * graphite.c (graphite_initialize): Call scev_reset.
241
242 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
243
244         * sese.h (scev_analyzable_p): Return false for real or floating
245         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
246
247 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
248
249         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
250         and ps.
251         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
252         domain.
253         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
254         Do not allocate ub_expr, it is passed in initialized.
255
256 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
257
258         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
259         (build_cloog_prog): Dump CLooG input file when
260         flag_graphite_dump_cloog is set.  This is disabled on trunk.
261         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
262
263 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
264
265         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
266         verify_dominators for CDI_POST_DOMINATORS.
267         * sese.h: Remove comment about CDI_POST_DOMINATORS.
268         (recompute_all_dominators): Remove call to free_dominance_info
269         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
270         for CDI_POST_DOMINATORS.
271
272 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
273
274         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
275         over pbb_dim_iter_domain.
276
277 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
278
279         * graphite-flattening.c: Fix comments.
280
281 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
282
283         * Makefile.in (OBJS-common): Add graphite-flattening.o.
284         (graphite-flattening.o): New rule.
285         * common.opt (floop-flatten): New flag.
286         * doc/invoke.texi (-floop-flatten): Documented.
287         * graphite-flattening.c: New.
288         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
289         * graphite-poly.h (flatten_all_loops): Declared.
290         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
291         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
292         is set, also set flag_graphite.
293
294 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
295
296         * graphite-poly.c (cloog_checksum): New.
297         * graphite-poly.h (cloog_checksum): Declared.
298
299 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
300
301         * graphite-poly.c (pbb_number_of_iterations): Removed.
302         (pbb_number_of_iterations_at_time): Correctly compute the number
303         of iterations in the transformed loop.
304         * graphite-poly.h (pbb_number_of_iterations): Removed.
305
306 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
307
308         * graphite-poly.h (lst_update_scattering_seq): Removed.
309         (lst_update_scattering): Correctly handle outermost loop dewey
310         renumbering.
311
312 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
313
314         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
315         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
316         * graphite-poly.h (lst_niter_for_loop): New.
317
318 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
319
320         * graphite-poly.c (apply_poly_transforms): Do not abort when the
321         transform read from disk is not legal.  Call fatal_error instead.
322
323 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
324
325         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
326         (print_scop_header): Removed.  Inlined in the only call place...
327         (print_scop): ... here.
328
329 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
330
331         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
332
333 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
334
335         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
336
337 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
338
339         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
340         (dot_deps_stmt): Same.
341         * graphite-poly.c (dot_lst): Same.
342
343 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
344
345         * graphite-blocking.c (scop_do_strip_mine): Do not call
346         graphite_legal_transform.
347         (scop_do_block): Same.
348
349 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
350
351         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
352         description.
353
354 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
355
356         * tree-scalar-evolution.c (instantiate_array_ref): New.
357         (instantiate_scev_r): Also handle ARRAY_REFs.
358
359 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
360
361         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
362         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
363         RESULT_DECL, and FIELD_DECL.  Return false for an
364         SSA_NAME_IS_DEFAULT_DEF.
365         (compute_scalar_evolution_in_loop): Do not further analyze the
366         scalar evolution when no_evolution_in_loop_p returns true.
367
368 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
369
370         * tree-chrec.h (evolution_function_is_affine_p): Do not check
371         whether CHREC_LEFT is invariant.  A function is affine when
372         CHREC_RIGHT is invariant.
373
374 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
375
376         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
377         is_gimple_reg.
378         (rewrite_degenerate_phi): Same.
379         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
380
381 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
382
383         * graphite-scop-detection.c (graphite_can_represent_scev,
384         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
385         graphite_can_represent_loop): Remove outermost_loop.
386
387 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
388
389         PR middle-end/45229
390         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
391         handle GIMPLE_CALLs with no LHS.
392
393 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
394
395         * graphite-poly.c (init_graphite_out_file): New.
396         (init_graphite_in_file): New.
397         (apply_poly_transforms): Updated to enable reading and writing of
398         multiple scop files.
399
400 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
401
402         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
403         redundant checks.
404
405 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
406
407         * graphite-clast-to-gimple.c (precision_for_value): Adjust
408         computation of precision by 1.
409
410 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
411
412         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
413         (openscop_read_polyhedron_matrix): New.
414         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
415         (openscop_read_N_int): Same.
416         * graphite-poly.c (openscop_read_N_int): New.
417         (openscop_read_one_int): New.
418         (openscop_read_N_string): New.
419         (openscop_read_one_string): New.
420         (openscop_read_powerset_matrix): New.
421         (graphite_read_transforms): Remove.
422         (graphite_read_scatt): New.
423         (graphite_read_scop_file): New.
424         (apply_poly_transforms): Updated to call graphite_read_scop_file.
425
426 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
427
428         * graphite-poly.c: Change include order.
429
430 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
431
432         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
433         (cloog_matrix_nrows): New.
434
435 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
436
437         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
438         from matrix lines.
439         * graphite-poly.c (openscop_print_scattering_function_1): Same.
440         (print_scattering_function_1): Same.
441         (openscop_print_pbb_domain): Same.
442         (openscop_print_scop_context): Same.
443         (print_scop_context): Same.
444
445 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
446
447         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
448         (openscop_print_pdr_polyhedron): Print pph.
449
450 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
451
452         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
453         priority signed types.
454
455 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
456
457         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
458         the call to lang_hooks.types.type_for_size.  Call
459         build_nonstandard_integer_type.
460
461 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
462
463         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
464         (openscop_print_polyhedron_matrix): New.
465         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
466         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
467         (openscop_print_pdr_powerset): New.
468         (openscop_print_powerset_matrix): New.
469         (openscop_print_scattering_function_1): New.
470         (print_scattering_function): Add support for scattering names and
471         OpenScop format.
472         (graphite_write_transforms): Remove.
473         (print_pdr_access_layout): Updated to support OpenScop format.
474         (print_pdr): Same.
475         (openscop_print_pbb_domain): New.
476         (print_pbb_body): Added a parameter to allow indicating that pbb_body
477         is not provided.
478         (print_pbb): Updated to call the new print_pbb_body.
479         (openscop_print_scop_context): New.
480         (print_scop_header): New.
481         (print_scop): Updated to call print_scop_header.
482         * graphite-poly.h: Document OpenScop format.
483
484 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
485
486         * config/cris/m32c.c (cris_memory_move_cost): New.
487         (cris_register_move_cost): Make static. Change arguments type from
488         enum reg_class to reg_class_t.
489         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
490         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
491         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
492
493 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
494
495         PR target/45843
496         * config/i386/i386.c (ix86_gimplify_va_arg): Use
497         INTVAL (XEXP (slot, 1)) as prev_size.
498
499 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
500
501         PR target/45837
502         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
503         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
504         defined.
505         * config/rs6000/option-defaults.h (toplevel): Change #if
506         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
507         global option changes.
508
509 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
510
511         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
512
513         PR tree-optimization/31261
514         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
515         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
516
517 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
518
519         PR bootstrap/45796
520         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
521         special-casing for generators and turn into ...
522         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
523         rule, for better error messages in case of toplevel dependency errors.
524         (genprog): Add hooks, rename to ...
525         (genprogerr): ... this, and let genprog also contain check,
526         checksum, condmd.
527         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
528         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
529         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
530
531 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
532             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
533
534         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
535         for GMP, MPFR and MPC.
536
537 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
538
539         * config/sparc/sparc.opt (mimpure-text): Move ...
540         * config/sol2.opt: ... here.  Correct description.
541         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
542         * doc/invoke.texi (Option Summary, SPARC Options): Move
543         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
544         (Option Summary, Solaris 2 Options): ... here.
545         (Submodel Options, Solaris 2 Options): New menu entry.
546         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
547         (Solaris 2 Options): ... here.
548
549 2010-09-30  Michael Eager  <eager@eagercon.com>
550
551         * extend.texi (interrupt_handler): Add MicroBlaze to list.
552         (save_volatiles): Describe option for MicroBlaze.
553         * invoke.texi: Add MicroBlaze Options.
554         * contrib.texi: Add acknowledgment. 
555         * md.texi: Add MicroBlaze d and z constraints.
556         * install.texi: Add microblaze-*-elf.
557         * configure.ac: Add microblaze-*-* to target list.
558         * configure: Regenerate.
559         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
560         * config/microblaze/microblaze-protos.h: New.
561         * config/microblaze/crti.s: New.
562         * config/microblaze/predicates.md: New.
563         * config/microblaze/linux.h: New.
564         * config/microblaze/microblaze.md: New.
565         * config/microblaze/constraints.md: New.
566         * config/microblaze/crtn.s: New.
567         * config/microblaze/microblaze.opt: New.
568         * config/microblaze/microblaze-c.c: New.
569         * config/microblaze/t-microblaze: New.
570         * config/microblaze/microblaze.c: New.
571         * config/microblaze/microblaze.h: New.
572
573 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
574
575         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
576         parse @optional/@required and set the flags as appropriate.
577
578 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
579
580         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
581
582 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
583
584         * opt-functions.awk (static_var): Update comment.
585         (var_ref): Return offsetof expression or -1, not variable address.
586         * optc-gen.awk: Generate structure field initializers instead of
587         static variables.  Expect -1 for missing variables instead of null
588         pointer.  Add gcc_options parameters to generated functions.
589         * opth-gen.awk: Generate structure fields for static variables.
590         Add gcc_options parameters to generated functions.
591         * common.opt (optimize, optimize_size): Add variables.
592         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
593         &global_options to cl_target_option_restore.
594         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
595         &global_options to cl_optimization_restore, cl_target_option_save
596         and cl_target_option_restore.
597         (ix86_set_current_function): Pass &global_options to
598         cl_target_option_restore.
599         * config/pdp11/pdp11.h (optimize): Remove.
600         * config/rs6000/rs6000.h (optimize): Remove.
601         * config/sh/sh.h (optimize): Remove.
602         * config/xtensa/xtensa.h (optimize): Remove.
603         * coretypes.h (struct gcc_options): Declare.
604         * diagnostic.c (diagnostic_initialize): Initialize
605         context->option_state.
606         (diagnostic_report_diagnostic): Pass option_state to
607         option_enabled hook.
608         * diagnostic.h (diagnostic_context.option_enabled): Add void *
609         parameter.
610         (diagnostic_context.option_state): New field.
611         * final.c (final_start_function, final, final_scan_insn): Rename
612         optimize parameter to optimize_p.
613         * flags.h (optimize, optimize_size): Remove.
614         * function.c (invoke_set_current_function_hook): Pass
615         &global_options to cl_optimization_restore.
616         * gcc.c (driver_handle_option): Take gcc_options parameter.
617         Assert that it is &global_options.
618         (process_command): Pass &global_options to read_cmdline_option.
619         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
620         option_enabled.
621         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
622         &global_options to set_option.
623         * opts-common.c (handle_option, handle_generated_option,
624         read_cmdline_option, set_option): Take explicit gcc_options
625         parameters.  Use option_flag_var.
626         (option_flag_var): New.
627         * opts.c (common_handle_option, lang_handle_option,
628         target_handle_option): Take gcc_options parameter.  Assert that it
629         is &global_options.
630         (read_cmdline_options): Pass &global_options to read_cmdline_option.
631         (print_filtered_help): Use option_flag_var.  Pass &global_options
632         to option_enabled.
633         (common_handle_option): Use option_flag_var.
634         (option_enabled): Take opts parameter.  Use option_flag_var.
635         (get_option_state): Take gcc_options parameter.  Use
636         option_flag_var.  Pass gcc_options parameter to option_enabled.
637         (enable_warning_as_error): Pass &global_options to
638         handle_generated_option.
639         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
640         (cl_option_handler_func.handler): Take gcc_options parameter.
641         (option_enabled, get_option_state, set_option, handle_option,
642         handle_generated_option, read_cmdline_option): Take gcc_options
643         parameters.
644         * toplev.c (optimize, optimize_size): Remove.
645         (print_switch_values): Pass &global_options to option_enabled.
646         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
647         to get_option_state.
648         (general_init): Initialize global_dc->option_state.
649         * tree.c (build_optimization_node): Pass &global_options to
650         cl_optimization_save.
651         (build_target_option_node): Pass &global_options to
652         cl_target_option_save.
653
654 2010-09-30  Martin Jambor  <mjambor@suse.cz>
655
656         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
657         zero sized bit-fields.
658
659 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
660
661         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
662         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
663         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
664         (c_parser_objc_class_declaration): Same change.
665         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
666         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
667         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
668         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
669         and RID_AT_PUBLIC instead of RID_PUBLIC.
670         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
671         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
672         
673 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
674
675         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
676         Add links to current providers of packages for Solaris and IRIX.
677
678 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
679
680         Merge from 'apple/trunk' branch on FSF servers.
681         * c-parser.c: Applied change originally in c-parse.in.
682         
683         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
684
685         Radar 4281748
686         * c-decl.c (start_decl): Check for redeclaration of class name.
687         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
688
689 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
690
691         * config/ia64/ia64.c (ia64_builtin_decl): New.
692         (TARGET_BUILTIN_DECL): Define.
693         (ia64_builtins): New.
694         (ia64_init_builtins): Save decls in ia64_builtins.
695
696 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
697
698         PR target/40457
699         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
700         (move2add_use_add3_insn): Likewise.
701         (reload_cse_move2add): Likewise.
702         * rtlanal.c (get_full_rtx_cost): New function.
703         * rtl.h (struct full_rtx_costs): New.
704         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
705         costs_add_n_insns): New inline functions.
706         (get_full_rtx_cost): Declare.
707
708         PR c/45054
709         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
710         invariants.  Check for reg_equiv_invariant.
711         (reload): Assert that spilled_pseudos is empty when returning.
712
713 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
714
715         * config/i386/mingw32.h (TARGET_64BIT): replaced by
716         TARGET_64BIT_DEFAULT in #if check.
717
718 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
719
720         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
721
722 2010-09-29  Mike Stump  <mikestump@comcast.net>
723
724         * config/darwin.h (flag_mkernel): Remove.
725         (flag_apple_kext): Likewise.
726
727 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
728             Jack Howarth <howarth@bromo.med.uc.edu>
729
730         * config/darwin.opt (undefined): Add.
731
732 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
733
734         PR testsuite/45664
735         * configure.ac: Add --enable-indirect-function option.
736         * config.gcc: Add default_gnu_indirect_function.
737         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
738         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
739         * varasm.c (do_assemble_alias): Adjust for macro name change.
740         * configure: Rebuilt.
741         * doc/install.texi: Document --enable-indirect-function.
742
743 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
744
745         * doc/options.texi (Variable, Var, Init): Update documentation
746         without reference to VarExists.
747         (VarExists): Remove.
748         * common.opt, config/i386/i386.opt, config/linux.opt,
749         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
750         Don't use VarExists.
751
752 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
753
754         * optc-gen.awk: Generate global_options initializer instead of
755         individual variables.  Add x_ prefix to names of structure members.
756         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
757         names of structure members.
758         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
759         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
760         * doc/tm.texi: Regenerate.
761         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
762         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
763         * c-parser.c (disable_extension_diagnostics,
764         restore_extension_diagnostics): Update names of cpp_options members.
765         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
766         * common.opt (fcompare-debug-second): Don't use Var.
767         * config/alpha/alpha.h (target_flags): Remove.
768         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
769         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
770         * config/bfin/bfin.h (target_flags): Remove.
771         * config/cris/cris.h (target_flags): Remove.
772         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
773         cl_target_option members.
774         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
775         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
776         ix86_can_inline_p): Update names of cl_target_option members.
777         * config/i386/i386.h (ix86_isa_flags): Remove.
778         * config/lm32/lm32.h (target_flags): Remove.
779         * config/mcore/mcore.h (mcore_stack_increment): Remove.
780         * config/mcore/mcore.md (addsi3): Remove extern declaration of
781         flag_omit_frame_pointer.
782         * config/mep/mep.h (target_flags): Remove.
783         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
784         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
785         * config/mmix/mmix.h (target_flags): Remove.
786         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
787         flag_expensive_optimizations): Remove.
788         * config/s390/s390.h (flag_pic): Remove.
789         * config/score/score-conv.h (target_flags): Remove.
790         * config/sh/sh.h (sh_fixed_range_str): Remove.
791         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
792         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
793         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
794         * diagnostic.c (diagnostic_initialize): Update names of
795         diagnostic_context members.
796         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
797         warn_system_headers.
798         (diagnostic_report_warnings_p): Update for new names.
799         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
800         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
801         HARD_FRAME_POINTER_IS_ARG_POINTER.
802         * flags.h (flag_compare_debug): Declare.
803         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
804         * opts.c (flag_compare_debug): Define.
805         (common_handle_option): Update names of diagnostic_context
806         members.  Handle -fcompare-debug-second.
807         (fast_math_flags_struct_set_p): Update names of cl_optimization
808         members.
809         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
810         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
811         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
812         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
813         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
814         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
815         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
816         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
817         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
818
819 2010-09-29  Hariharan Sandanagobalane <hariharan@picochip.com>
820
821         * config/picochip/picochip.c (picochip_output_internal_label):
822         This function can now be called for debug CFI labels, which can come
823         in the middle of a vliw instruction.  Postpone until end of vliw.
824
825 2010-09-29  Richard Guenther  <rguenther@suse.de>
826
827         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
828         (DECL_FILE_SCOPE_P): Use it.
829         (TYPE_FILE_SCOPE_P): New macro.
830
831 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
832
833         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
834         a CPP_NAME which is a reserved word, clearly separate cases for
835         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
836
837 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
838
839         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
840         token->value with the canonical spelling.  Do exactly like C and
841         C++ and leave it as it is.
842
843 2010-09-28  Richard Henderson  <rth@redhat.com>
844
845         * config/alpha/alpha.c (alpha_builtins): New.
846         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
847         (alpha_builtin_function): New.
848         (alpha_add_builtins, alpha_init_builtins): Use it.
849
850 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
851
852         * doc/standards.texi (Standards): Expanded the section on
853         Objective-C and Objective-C++.
854
855 2010-09-28  DJ Delorie  <dj@redhat.com>
856
857         PR target/45800
858         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
859         volatile MEMs.
860
861 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
862
863         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
864         attributes on methods.
865          (c_parser_objc_method_definition): Handle attributes.
866         (c_parser_objc_methodproto): Likewise.
867         (c_parser_objc_maybe_method_attributes): New.
868         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
869         missing definition, similar to that in ObjC++.
870
871 2010-09-28  Richard Henderson  <rth@redhat.com>
872
873         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
874         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
875         (CONFIG_SJLJ_EXCEPTIONS): Remove.
876         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
877         (STACK_CHECK_PROTECT): Likewise.
878         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
879         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
880         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
881         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
882         (dwarf2out_assembly_start): Likewise.
883         * except.c (init_eh): Use targetm.except_unwind_info.
884         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
885         (output_one_function_exception_table): Likewise.
886         * final.c: Unconditionally include dwarf2out.h.
887         (final_start_function): Unconditionally call dwarf2out routines.
888         (final_end_function, final_scan_insn): Likewise.
889         * function.c (expand_function_end): Use targetm.except_unwind_info.
890         * opts.c (decode_options): Use targetm.except_unwind_info.
891         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
892         * target.def (debug_unwind_info, except_unwind_info): New.
893         * target.h (enum unwind_info_type): New.
894         * targhooks.c (default_debug_unwind_info): New.
895         (default_except_unwind_info): New.
896         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
897         * targhooks.h: Declare them.
898         * tree-tailcall.c: Include "target.h"
899         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
900         * Makefile.in (tree-tailcall.o): Update.
901         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
902         (lhd_gcc_personality): Likewise.
903
904         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
905         (TARGET_EXCEPT_UNWIND_INFO): New.
906         (DWARF2_UNWIND_INFO): Update.
907         (TARGET_DEBUG_UNWIND_INFO): New.
908         * doc/tm.texi: Rebuild.
909
910         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
911         targetm.except_unwind_info.
912
913         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
914         (arm_except_unwind_info): New.
915         (arm_compute_func_type): Use it.
916         (arm_expand_prologue, thumb_pushpop): Likewise.
917         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
918         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
919         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
920         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
921         (DWARF2_UNWIND_INFO): Remove.
922         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
923         (ARM_EABI_UNWIND_TABLES): Remove.
924
925         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
926         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
927         (ia64_except_unwind_info): New.
928         (ia64_output_function_prologue): Use it.
929         (ia64_add_bundle_selector_before): Likewise.
930         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
931         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
932         (TARGET_UNWIND_INFO): Remove.
933
934         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
935
936 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
937
938         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
939         (c_parser_objc_protocol_definition): Likewise.
940         (c_parser_external_declaration): Provide dummy attribute arguments.
941         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
942         (c_parser_objc_class_definition): Handle attributes.
943         (c_parser_objc_protocol_definition): Likewise.
944
945 2010-09-28  Tobias Burnus  <burnus@net-b.de>
946
947         PR fortran/40569
948         PR fortran/40568
949         * toplev.h (save_decoded_options, save_decoded_options_count):
950         New global variables.
951         * toplev.c (save_decoded_options, save_decoded_options_count):
952         Export variables.
953
954 2010-09-28  Ian Lance Taylor  <iant@google.com>
955
956         * config/i386/i386.c (ix86_supports_split_stack): Test
957         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
958
959 2010-09-28  Ian Lance Taylor  <iant@google.com>
960
961         PR target/45815
962         * opts.c (decode_options): Don't test whether the target supports
963         split stack if flag_split_stack == 0.
964
965 2010-09-28  Jan Hubicka  <jh@suse.cz>
966
967         * builtin-attrs.def (ATTR_LEAF): New attribute.
968         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
969         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
970         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
971         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
972         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
973         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
974         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
975         * sync-builtins.def: Annotate all builtins by leaf.
976         * omp-builtins.def: Annotate all builtins by leaf.
977         * builtins.def: Annotate relevant builtins with leaf attribute.
978         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
979         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
980         leaf.
981
982 2010-09-28  Jan Hubicka  <jh@suse.cz>
983
984         * tree-ssa-ccp.c (fold_ctor_reference): New function.
985         (fold_const_aggregate_ref): Use it.
986         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
987         into external static.
988
989 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
990
991         PR target/44452
992         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
993         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
994         (ix86_solaris_return_in_memory): Remove.
995         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
996         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
997         (TARGET_SUBTARGET_DEFAULT): Redefine.
998         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
999         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1000         (TARGET_SUBTARGET_DEFAULT): Redefine.
1001         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1002         -mvect8-ret-in-mem.
1003         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1004
1005 2010-09-29  Alan Modra  <amodra@gmail.com>
1006
1007         PR target/45807
1008         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1009         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1010         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1011         Delete.
1012         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1013         (rs6000_emit_prologue): Don't just create frame save info for r2,
1014         actually save r2.
1015
1016 2010-09-28  Richard Henderson  <rth@redhat.com>
1017
1018         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1019         when 8 bytes are requested.
1020
1021 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1022
1023         * config/avr/avr.c (expand_prologue): Set
1024         current_function_static_stack_size.
1025
1026 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1027
1028         * config/alpha/alpha.md: Change the initial condition of the
1029         probing loop.
1030
1031 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
1032
1033         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1034         Split from *avx_<maxmin:code><mode>3.
1035         (*avx_<smaxmin:code><mode>3): Ditto.
1036         * config/i386/i386.md (maxmin): Remove code iterator.
1037
1038 2010-09-27  Ian Lance Taylor  <iant@google.com>
1039
1040         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1041         requires assembler support for CFI directives.
1042
1043 2010-09-27  Richard Henderson  <rth@redhat.com>
1044
1045         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1046
1047 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1048
1049         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1050         that AFTER is not in the range FROM..TO, inclusive.
1051
1052 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1053             Bernd Schmidt  <bernds@codesourcery.com>
1054
1055         PR rtl-optimization/45792
1056         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1057         If not all insns are to be merged, for each edge, stash the
1058         next candidate after the to-be-merged insns before doing the
1059         merge, and use them for the retry at the new insertion point.
1060         Handle CC0 targets when retrying.
1061
1062 2010-09-27  Ian Lance Taylor  <iant@google.com>
1063
1064         * common.opt (fsplit-stack): New option.
1065         * opts.c (decode_options): Set flag_split_stack to final value.
1066         * target.def (supports_split_stack): New hook.
1067         * gcc.c (STACK_SPLIT_SPEC): Define.
1068         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1069         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1070         (Code Gen Options): Document -fsplit-stack.
1071         * doc/extend.texi (Function Attributes): Mention no_split_stack.
1072         (Function Attributes): Document no_split_stack.
1073         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1074         TARGET_SUPPORTS_SPLIT_STACK.
1075         * doc/tm.texi: Rebuild.
1076         * function.c (thread_prologue_and_epilogue_insns): If
1077         flag_split_stack, add split stack prologue.
1078         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1079         * varasm.c (saw_no_split_stack): New static variable.
1080         (assemble_start_function): Set saw_no_split_stack if the function
1081         has the no_split_stack attribute.
1082         (file_end_indicate_split_stack): New function.
1083         * output.h (file_end_indicate_split_stack): Declare.
1084         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1085         and function.
1086         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1087         routines.
1088         * config/i386/i386.c (ix86_option_override_internal): Don't set
1089         expand_builtin_va_start to NULL if -fsplit-stack.
1090         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1091         -fsplit-stack.
1092         (ix86_va_start): If -fsplit-stack, get overflow pointer from
1093         scratch register set by prologue.
1094         (ix86_code_end): If -fsplit-stack, call
1095         file_end_indicate_split_stack.
1096         (ix86_supports_split_stack): New static function.
1097         (SPLIT_STACK_AVAILABLE): Define.
1098         (split_stack_prologue_scratch_regno): New static function.
1099         (split_stack_fn): New static variable.
1100         (ix86_expand_split_stack_prologue): New function.
1101         (ix86_live_on_entry): New static function.
1102         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1103         (output_pic_addr_const): Likewise.
1104         (i386_asm_output_addr_const_extra): Likewise.
1105         (ix86_expand_call): Change return type to rtx.  Return the new
1106         call instruction.
1107         (TARGET_SUPPORTS_SPLIT_STACK): Define.
1108         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1109         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1110         (split_stack_prologue, split_stack_return): New insns.
1111         (split_stack_space_check): New insn.
1112         * config/i386/i386.h (struct machine_function): Add
1113         split_stack_varargs_pointer field.
1114         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1115         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1116         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1117         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1118         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1119         Declare.
1120         (ix86_expand_call): Update declaration.
1121
1122 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1123
1124         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1125         code.  Added byref, which was missing in the list of codes.
1126         Explain that enumeration values are encoded as the integer type
1127         that the compiler uses to store them.  Explain and make examples
1128         of how 'const' interacts with pointers, and the complication of
1129         the encoding of 'const char *'.
1130         (Legacy type encoding): New subsection, explaining that GCC emits
1131         incorrect type encodings for the NeXT runtime for compatibility
1132         reasons.
1133         (@@encode): New subsection, explaining @encode and particularly
1134         that protocol qualifiers are not recognized inside an @encode()
1135         expression.
1136         (Method signatures): New subsection, explaining how method
1137         signatures are encoded.
1138
1139 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1140
1141         Merge from 'apple/trunk' branch on FSF servers.  Removed small
1142         change in build_conditional_expr that had been added when fixing
1143         PR objc/27377 and which did the same check in a less complete way.
1144
1145         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1146
1147         Radar 4229905
1148         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1149         looking for objective-c common pointer types.
1150
1151         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1152
1153         Radar 4154928
1154         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1155         use their ObjC common type.
1156
1157 2010-09-27  Richard Guenther  <rguenther@suse.de>
1158
1159         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1160
1161 2010-09-27  Jie Zhang  <jie@codesourcery.com>
1162
1163         * print-tree.c (print_node): Print in-constant-pool.
1164
1165 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
1166
1167         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1168         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1169         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1170         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1171
1172 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1173
1174         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1175         from pro_epilogue_adjust_stack_<mode>_{1,2}.
1176         (pro_epilogue_adjust_stack_<mode>_add): Rename from
1177         pro_epilogue_adjust_stack_<mode>_3.
1178         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1179         renamed pro_epilogue_adjust_stack_{si,di}_add.
1180         (ix86_expand_prologue): Use indirect functions.  Update for renamed
1181         pro_epilogue_adjust_stack_{si,di}_sub.
1182
1183 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1184
1185         * config/i386/i386.md (movmsk_df): New insn.
1186         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
1187         sequence for TARGET_SSE_MATH.
1188
1189 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
1190
1191         * config/mips/mips.c (mips_builtin_decls): Declare.
1192         (mips_init_builtins): Store function declarations in
1193         mips_builtin_decls.
1194         (mips_builtin_decl): New function.
1195         (TARGET_BUILTIN_DECL): Define.
1196
1197 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
1198             Richard Henderson  <rth@redhat.com>
1199
1200         * config/i386/cygwin.asm: Include auto-host.h.
1201         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1202         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1203         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
1204         alignment code from the 64-bit path.  Use gas local labels.
1205         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1206         from _di_2.  Remove the useless constant integer argument.
1207         (pro_epilogue_adjust_stack_<mode>_3): New.
1208         (allocate_stack_worker_probe_<mode>): Macroize from
1209         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
1210         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1211         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1212         (__chkstk_ms): New function.
1213         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1214         * gcc/config/i386/t-interix: Likewise.
1215         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1216         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1217         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1218         * configure, config.in: Rebuild.
1219
1220 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1221
1222         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1223         statements because of the return slot optimization.
1224
1225 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
1226
1227         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1228         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1229         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1230         (class_likely_spilled_p): Rename to...
1231         (avr_class_likely_spilled_p): ...this. Make static. Change argument
1232         type to reg_class_t.
1233
1234 2010-09-24  Jan Hubicka  <jh@suse.cz>
1235
1236         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1237         (lto_symtab_resolve_symbols): Set it.
1238         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1239         store resolution field in cgraph/varpool.
1240         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1241         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1242         (cgraph_dump_node): Drop used_from_object_file.
1243         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1244         (cgraph_function_body_availability): Use decl_replaceable_p.
1245         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1246         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1247         cgraph_used_from_object_file_p.
1248         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1249         cgraph_used_from_object_file_p.
1250         (resolution_used_from_other_file_p): New functoin.
1251         (cgraph_used_from_object_file_p): New predicate.
1252         * cgraph.h: Include plugin-api.h
1253         (struct cgraph_local_info): Remove used_from_object_file.
1254         (struct cgraph_node): Add resolution field.
1255         (struct varpool_node): Likewise; remove used_from_object_file;
1256         reove const_value_known.
1257         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1258         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1259         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1260         varpool_used_from_object_file_p): Declare.
1261         (varpool_get_node, varpool_extra_name_alias): Update prototype.
1262         * tree.h (DECL_REPLACEABLE_P): Remove.
1263         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1264         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1265         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1266         input_overwrite_node, input_node, input_varpool_node): Stream
1267         resolution.
1268         * expr.c (expand_expr_real_1): Use const_value_known_p
1269         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1270         const_value_known.
1271         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1272         (function_and_variable_visibility): Set resolution for local vars
1273         and functions; use varpool_used_from_object_file_p.
1274         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1275         static functions.
1276         (default_binds_local_p_1): Use resolutoin info.
1277         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1278         * varpool.c (varpool_get_node): Constify.
1279         (const_value_known_p): Do not use vnode->const_value_known;
1280         use decl_replaceable_p.
1281         (varpool_finalize_decl): Do not set const_value_known.
1282         (cgraph_variable_initializer_availability): Use decl_replaceable_p
1283         (varpool_extra_name_alias): Return new node.
1284         (varpool_used_from_object_file_p): New function.
1285
1286 2010-09-24  Richard Henderson  <rth@redhat.com>
1287
1288         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1289         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1290         (do_spill): Use REG_CFA_OFFSET.
1291         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1292         as appropriate.
1293         (ia64_expand_epilogue): Likewise.
1294         (process_set): Split into ...
1295         (process_cfa_adjust_cfa): this,
1296         (process_cfa_register): this,
1297         (process_cfa_offset): and this new function.
1298         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
1299         instead of REG_FRAME_RELATED_EXPR.
1300
1301 2010-09-24  Olivier Hainque  <hainque@adacore.com>
1302
1303         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1304
1305 2010-09-24  Jan Hubicka  <jh@suse.cz>
1306
1307         * doc/extend.texi: (attribute leaf): Document.
1308         * tree.c (local_define_builtin): Handle ECF_LEAF.
1309         (build_common_builtin_nodes): Set ECF_LEAF where needed.
1310         * tree.h (ECF_LEAF): New.
1311         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1312         overwrittable and unavailable functions.
1313         (ipa_init): Put all_module_statics into optimization_summary_obstack.
1314         (copy_global_bitmap): Do not copy all_module_statics.
1315         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1316         (propagate): Handle overwritable and unavailable leaf functions;
1317         initialize global info for overwritable and unavailable leaf functions;
1318         do not free all module statics.
1319         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1320         local statics.
1321         * calls.c (flags_from_decl_or_type): Handle leaf.
1322         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1323         abnormal gotos.
1324
1325 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
1326
1327         * gengtype.c: Reindented.
1328         * gengtype.h: Reindented.
1329         * gengtype-parse.c: Reindented.
1330
1331 2010-09-24  Jan Hubicka  <jh@suse.cz>
1332
1333         PR tree-optimization/45738
1334         PR tree-optimization/45741
1335         * expr.c (string_constant): Allow CONST_DECL too;
1336         check that DECL_INITIAL is set.
1337         * varpool.c (const_value_known_p): Only look into VAR_DECL
1338         and CONST_DECL.
1339
1340 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
1341
1342         * common.opt (undef): New.
1343
1344 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
1345
1346         PR middle-end/45234
1347         * rtl.h (enum global_rtl_index): Add
1348         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1349         (LAST_VIRTUAL_POINTER_REGISTER): Define.
1350         (virtual_preferred_stack_boundary_rtx,
1351         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1352         (LAST_VIRTUAL_REGISTER): Increase by one.
1353         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1354         instead of LAST_VIRTUAL_REGISTER.
1355         * function.c (instantiate_new_reg): Handle
1356         virtual_preferred_stack_boundary_rtx.
1357         * emit-rtl.c (init_virtual_regs): Handle
1358         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1359         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1360         * explow.c (round_push): If crtl->preferred_stack_boundary
1361         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1362         virtual_preferred_stack_boundary_rtx alignment instead of
1363         crtl->preferred_stack_boundary alignment.
1364         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1365         macros.  Never decrease crtl->preferred_stack_boundary,
1366         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1367         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
1368         stack_pointer_delta in dynamic allocation, even when size
1369         is constant.
1370         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1371         macro.
1372         * print-rtl.c (print_rtx): Handle
1373         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1374         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1375         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1376         * config/frv/frv.c (frv_emit_movsi): Likewise.
1377         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1378         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1379         Likewise.
1380
1381         Revert:
1382         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1383
1384         PR middle-end/45234
1385         * calls.c (expand_call): Make sure that all variable sized
1386         adjustments are multiple of preferred stack boundary after
1387         stack alignment.
1388
1389 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1390             Dominique Dhumieres  <dominiq@lps.ens.fr>
1391
1392         PR bootstrap/45751
1393         * gcc/config/darwin-driver.c (darwin_default_min_version):
1394         Adjust size passed to memcpy in two places.
1395
1396 2010-09-24  Richard Guenther  <rguenther@suse.de>
1397
1398         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1399         Make sure to not call set_type_context with error_mark_node.
1400         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1401
1402 2010-09-24  Richard Guenther  <rguenther@suse.de>
1403
1404         * Makefile.in (OBJS-onestep): Remove.
1405         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1406         (libbackend.a): Remove onestep support.
1407         (libbackend.o): Remove.
1408         * configure.ac (--enable-intermodule): Remove.
1409         * configure: Regenerate.
1410
1411 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1412
1413         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1414         reaching the end of a block if it occurs at a DEBUG_INSN.
1415
1416 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1417
1418         PR target/44242
1419         * config/vms/vms-crt0-64.c: Removed.
1420         * config/vms/vms-crt0.c: Removed.
1421         * config/vms/vms-psxcrt0-64.c: Removed.
1422         * config/vms/vms-psxcrt0.c: Removed.
1423         * config/vms/vms-ucrt0.c: New file.
1424         * config/vms/t-vms64: Removed.
1425         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1426         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1427         * config.gcc (alpha-dec-vms): Use t-vms.
1428
1429 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1430
1431         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1432         underfull hbox in DVI output.
1433         (-fobjc-class-cxx-cdtors): Same change.
1434         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1435         option does, but moved the (lenghty) description of the exception
1436         syntax into objc.texi.
1437         (-fobjc-gc): Explain that the option is not useful with the GNU
1438         runtime.
1439         (-fzero-link): Explain that the GNU runtime always works in
1440         "zero-link" mode.
1441         * doc/objc.texi: All sections: simplified @node declarations
1442         removing specification of next, previous, up node.
1443         (Objective-C): Updated introduction.
1444         (Garbage Collection): Updated.  The bohem-gc library is now
1445         included in gcc itself.  Mention that this section only applies to
1446         the GNU Objective-C runtime.
1447         (compatibility_alias): Small tidy up.
1448         (Exceptions): New section mostly containing text previously in the
1449         description of the -fobjc-exception command-line option.
1450         (Synchronization): Same.
1451
1452 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1453
1454         * config/i386/i386.md (ix86_code_end): Move the initialization of
1455         xops array near the consumer.  Use AX_REG and SP_REG instead of
1456         numerical constants.
1457
1458 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1459
1460         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1461         method [methodname]' for an Objective-C method instead of the less
1462         satisfactory 'too many arguments to function' (with no method name).
1463
1464 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1465
1466         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1467         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1468         (execute_update_addresses_taken): Remove parameter.  Execute the
1469         optimization unconditionally.
1470         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1471         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1472         if TODO_update_address_taken is set.
1473
1474 >>>>>>> .r164755
1475 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1476
1477         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1478         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1479         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1480         (arm_output_addr_const_extra): Make static.
1481
1482 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1483
1484         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1485         define as unspec_volatile.
1486         ("nops"): Define as unspec_volatile. Use fputs to write to
1487         asm_out_file directly.  Output NOPs on separate lines using while loop.
1488         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1489         asm_out_file directly.  Output NOPs on separate lines using while loop.
1490
1491 2010-09-23  Richard Guenther  <rguenther@suse.de>
1492
1493         PR tree-optimization/45565
1494         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1495         Make sure to adjust the fndecl before replacing the stmt.
1496
1497 2010-09-23  Richard Guenther  <rguenther@suse.de>
1498
1499         PR middle-end/45750
1500         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1501         gimplifying MEM_REF.
1502
1503 2010-09-23  Alan Modra  <amodra@gmail.com>
1504
1505         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1506         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1507
1508 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1509
1510         PR rtl-optimization/44374
1511         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1512         * df-core.c (df_set_bb_dirty): Set it.
1513         * ifcvt.c (find_memory): Remove function.
1514         (dead_or_predicable): Use can_move_insns_across.
1515         * df.h (can_move_insns_across): Declare function.
1516         * cfgcleanup.c (block_was_dirty): New static variable.
1517         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1518         than df_get_bb_dirty.
1519         (try_head_merge_bb): New static function.
1520         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1521         is set.
1522         * df-problems.c: Include "target.h"
1523         (df_simulate_find_uses): New static function.
1524         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1525         (find_memory, find_memory_store): New static functions.
1526         (can_move_insns_across): New function.
1527         * Makefile.in (df-problems.o): Update dependencies.
1528
1529 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1530
1531         PR java/44095
1532         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1533         is specified and the suffix of the file isn't ".c".
1534         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1535
1536 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1537
1538         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1539         * doc/cppopts.texi: Fix markup of index entry.
1540         * doc/extend.texi (Constructing Calls): Fix markup of
1541         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1542         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1543         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1544         keywords.
1545         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1546         avoid long lines.
1547         (C Dialect Options, C++ Dialect Options, Warning Options)
1548         (Debugging Options, Spec Files, Darwin Options)
1549         (i386 and x86-64 Options, MIPS Options)
1550         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1551         index entries, avoid abbreviations, allow URLs to wrap, avoid
1552         long lines, avoid overlong pages from long @itemx lists.
1553         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1554         * doc/standards.texi (Standards): Likewise.
1555         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1556
1557 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1558
1559         * opts-common.c (prune_options): Make static.  Work with decoded
1560         options.
1561         (decode_cmdline_options_to_array): Call prune_options.  Don't
1562         resize option array here.
1563         * opts.h (prune_options): Remove prototype.
1564         * gcc.c (process_command): Take decoded options; don't call
1565         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
1566         (main): Call decode_cmdline_options_to_array here instead of
1567         prune_options.  Update call to process_command.
1568         * config/darwin-driver.c: Include opts.h.
1569         (darwin_default_min_version): Work with decoded options.  Don't
1570         handle -b or -V here.
1571         * config/darwin.h (darwin_default_min_version): Update prototype.
1572         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1573         darwin_default_min_version.
1574         * config/i386/cygwin.h (mingw_scan): Update prototype.
1575         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1576         * config/i386/cygwin1.c: Include opts.h.
1577         (mingw_scan): Work with decoded options.
1578         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1579         * config/t-darwin (darwin-driver.o): Update dependencies.
1580
1581 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1582
1583         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1584         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1585         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1586         -force-link, -force-link=, -language, -language=,
1587         -library-directory, -library-directory=, -no-canonical-prefixes,
1588         -no-standard-libraries, -no-warnings, -optimize, -output,
1589         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1590         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1591         -print-file-name=, -print-libgcc-file-name,
1592         -print-multi-directory, -print-multi-lib,
1593         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1594         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1595         -profile, -save-temps, -shared, -specs, -specs=, -static,
1596         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1597         symbolic): New.
1598         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1599         * gcc.c (A Short Introduction to Adding a Command-Line Option):
1600         Remove comment.
1601         (cc1_options): Correct specs for passing down --help,
1602         --target-help and --help=*.  Add spec for passing down --version.
1603         (struct option_map, option_map, target_option_translations,
1604         translate_options): Remove.
1605         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1606         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1607         OPT_fhelp_ and OPT_ftarget_help.
1608         (process_command): Don't call translate_options.  Call
1609         decode_cmdline_options_to_array before checking for
1610         -no-canonical-prefixes using decoded options.
1611         * opts-common.c (tm.h): Update comment on #include.
1612         (find_opt): Allow abbreviations of long options.
1613         (struct option_map, option_map): New.
1614         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1615         and -mno handling.
1616         (target_option_translations): New.
1617         (decode_cmdline_options_to_array): Handle
1618         TARGET_OPTION_TRANSLATE_TABLE in driver.
1619         * opts.c (common_handle_option): Don't handle OPT_fhelp,
1620         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1621
1622 2010-09-22  Richard Guenther  <rguenther@suse.de>
1623
1624         * tree-inline.c (optimize_inline_calls): Schedule cleanups
1625         only if we inlined something.  Block compaction and conditional
1626         folding are done by cfg cleanup.  Schedule update-address-taken.
1627         (tree_function_versioning): Remove redundant call to number_blocks.
1628         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1629         folding is done by cfg cleanup.
1630         * passes.c (init_optimization_passes): Remove update-address-taken
1631         pass after IPA inlining.
1632
1633 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
1634
1635         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1636         to update conditions. Fix reg_mode[] check.
1637
1638 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
1639
1640         * config/picochip/picochip.md (movhicc): Use expand to check whether
1641         movhicc is available and split it after reload.
1642
1643 2010-09-22  Richard Guenther  <rguenther@suse.de>
1644
1645         * tree-ssanames.c (release_dead_ssa_names): Do not remove
1646         callee edges here.
1647         * passes.c (init_optimization_passes): Remove early CFG cleanup.
1648         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1649         (pass_cleanup_cfg): Likewise.
1650         (execute_fixup_cfg): Cleanup.
1651         * tree-pass.h (pass_cleanup_cfg): Remove.
1652
1653 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1654
1655         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1656         builtins if it is true.
1657         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1658         parameter.
1659
1660 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1661
1662         * tree-sra.c (struct access): New field grp_no_warning.
1663         (create_access_replacement): Set TREE_NO_WARNING according to
1664          grp_no_warning.
1665         (create_artificial_child_access): Use build_ref_for_model and set
1666         grp_no_warning if build_user_friendly_ref_for_offset fails.
1667         (propagate_subaccesses_across_link): Likewise.
1668
1669 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1670
1671         PR target/35664
1672         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1673         ('f'): Likewise.
1674
1675 2010-09-22  Tristan Gingold  <gingold@adacore.com>
1676
1677         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1678
1679 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
1680
1681         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1682         * config/i386/i386.c (decide_alg): Update for rename.
1683
1684 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
1685
1686         PR rtl-optimization/45739
1687         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1688         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1689
1690 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
1691
1692         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1693         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1694         Remove.
1695         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1696         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1697
1698 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1699
1700         PR objc/23710
1701         * c-parser.c (c_parser_objc_method_definition): Check the return
1702         value of objc_start_method_definition and if false is returned,
1703         parse the method definition but emit no code.
1704
1705 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1706
1707         PR objc/25965
1708         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1709         call objc_get_interface_ivars ().
1710
1711 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
1712
1713         PR target/45694
1714         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1715         static chain-register is used for 64-bit.
1716
1717 2010-09-21  Richard Guenther  <rguenther@suse.de>
1718
1719         * dwarf2out.c (is_cu_die): New function.
1720         (add_pubtype): Use it.
1721         (gen_subprogram_die): Likewise.
1722         (gen_struct_or_union_type_die): Likewise.
1723         (dwarf2out_finish): Likewise.
1724         (comp_unit_die): Rename to ...
1725         (single_comp_unit_die): ... this.
1726         (comp_unit_die): New function lazily constructing and
1727         returning single_comp_unit_die.
1728         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
1729         base_type_die, subrange_type_die, modified_type_die,
1730         lower_bound_default, add_bound_info, add_prototyped_attribute,
1731         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
1732         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
1733         force_decl_die, gen_namespace_die, dwarf2out_decl,
1734         dwarf2out_start_source_file, dwarf2out_end_source_file,
1735         prune_unused_types, dwarf2out_finish): Use it.
1736         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
1737         the global list of translation-unit decls.
1738         (dwarf2out_init): Do not create single_comp_unit_die here.
1739         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
1740
1741 2010-09-21  Richard Guenther  <rguenther@suse.de>
1742
1743         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
1744         for bool for C++.
1745
1746 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
1747
1748         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
1749         (qhs_extenddi_cstr): Likewise.
1750         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
1751         them for the source operand.
1752
1753 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
1754
1755         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
1756         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
1757         (ix86_split_ashr): Ditto.
1758         (ix86_split_lshr): Ditto.
1759
1760 2010-09-21  Richard Guenther  <rguenther@suse.de>
1761
1762         PR tree-optimization/45580
1763         * tree-ssa-propagate.c (substitute_and_fold): Always replace
1764         regular uses.
1765         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
1766         virtuals fold the call into a regular indirect one.
1767
1768 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1769
1770         PR rtl-optimization/42775
1771         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
1772         scheduling is enabled.
1773
1774 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1775
1776         PR rtl-optimization/45728
1777         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
1778         gen_lowpart_common first and if that fails, force_reg first
1779         before calling gen_lowpart.
1780
1781         PR middle-end/45678
1782         * cfgexpand.c (expand_one_stack_var_at): Use
1783         crtl->max_used_stack_slot_alignment as max_align, instead
1784         of maximum of that and PREFERRED_STACK_BOUNDARY.
1785         Don't call update_stack_alignment.
1786
1787 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1788
1789         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
1790         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
1791         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
1792         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
1793         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
1794         (build_nonstandard_integer_type): Likewise.
1795         (build_range_type_1): New function, built from...
1796         (build_range_type): ...this.  Call build_range_type_1.
1797         (build_nonshared_range_type): New function.
1798         (build_array_type_1): New function, built from...
1799         (build_array_type: ...this.  Call build_array_type_1.
1800         (build_nonshared_array_type): New function.
1801         * tree.h (build_nonshared_range_type): Declare.
1802         (build_nonshared_array_type): Likewise.
1803
1804 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
1805
1806         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
1807         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1808         (arm_class_likely_spilled_p): New function.
1809
1810 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
1811
1812         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
1813         indirect functions.
1814         (ix86_split_ashl): Ditto.
1815         (ix86_split_ashr): Ditto.
1816         (ix86_split_lshr): Ditto.
1817         (ix86_adjust_counter): Ditto.
1818
1819 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1820
1821         * c-family/c-common.h (constant_string_class): Documented with
1822         comment identical to the one already in c-common.c.
1823
1824 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1825
1826         * dwarf2out.c (any_cfis_emitted): New static variable.
1827         (add_fde_cfi): Set it.
1828         (dwarf2out_frame_debug): Clear it before processing,
1829         if it is set afterwards, flush any queued reg saves.
1830
1831         PR debug/45124
1832         * dwarf2out.c (add_accessibility_attribute): Assume
1833         DW_ACCESS_private as the default for dwarf_version > 2
1834         and DW_TAG_class_type parent.
1835         (gen_inheritance_die): Assume DW_ACCESS_public as the default
1836         for dwarf_version > 2 and parent other than DW_TAG_class_type.
1837
1838 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1839
1840         PR target/45726
1841         * arm.md (arm_movt): Only enable on machines with MOVT.
1842
1843 2010-09-20  Jie Zhang  <jie@codesourcery.com>
1844
1845         * config/arm/arm.c (arm_address_offset_is_imm): New.
1846         (arm_early_store_addr_dep): New.
1847         (arm_early_load_addr_dep): New.
1848         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
1849         (arm_early_load_addr_dep): Declare.
1850         (arm_address_offset_is_imm): Declare.
1851         * config/arm/cortex-m4.md: New file.
1852         * config/arm/cortex-m4-fpu.md: New file.
1853         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
1854         (attr generic_sched): Exclude cortexm4.
1855         (attr generic_vfp): Exclude cortexm4.
1856
1857 2010-09-20  Richard Guenther  <rguenther@suse.de>
1858
1859         PR middle-end/45704
1860         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
1861
1862 2010-09-20  Jan Hubicka  <jh@suse.cz>
1863
1864         PR tree-optimize/45605
1865         * cgraph.h (const_value_known_p): Declare.
1866         (varpool_decide_const_value_known): Remove.
1867         * tree-ssa-ccp.c (get_base_constructor): Use it.
1868         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
1869         * expr.c (string_constant): Likewise.
1870         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1871         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1872         function_and_variable_visibility): Likewise.
1873         * gimplify.c (gimplify_call_expr): Likewise.
1874         * gimple-fold.c (get_symbol_constant_value): Likewise.
1875         * varpool.c (varpool_decide_const_value_known): Replace by...
1876         (const_value_known_p): ... this one; handle other kinds of DECLs
1877         too and work for automatic vars.
1878         (varpool_finalize_decl): Use const_value_known_p.
1879
1880 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1881
1882         PR target/45726
1883         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
1884
1885 2010-09-20  Richard Guenther  <rguenther@suse.de>
1886
1887         PR tree-optimization/45705
1888         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
1889
1890 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1891
1892         PR rtl-optimization/45695
1893         * combine.c (try_combine): When splitting a two set pattern,
1894         make sure the pattern which will be put into i2 doesn't use REGs
1895         or MEMs set by insns in between i2 and i3.
1896
1897 2010-09-19  Jan Hubicka  <jh@suse.cz>
1898
1899         PR lto/44246
1900         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
1901         processing same node twice.
1902
1903 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
1904
1905         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
1906         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1907         (bfin_class_likely_spilled_p): New function
1908
1909 2010-09-19  Ira Rosen  <irar@il.ibm.com>
1910
1911         PR tree-optimization/45714
1912         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
1913         created in vectorizable_call instead of the original statement in
1914         def stmt updates.
1915
1916 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
1917
1918         * config/i386/i386-protos.h (split_double_mode): New prototype.
1919         (split_di, split_ti): Remove prototypes.
1920         * config/i386/i386.c (split_double_mode): New function.
1921         (split_di, split_ti): Remove.
1922         (ix86_expand_branch): Use split_double_mode.
1923         (ix86_split_to_parts): Ditto.
1924         (ix86_split_ashl): Ditto.
1925         (ix86_split_ashr): Ditto.
1926         (ix86_split_lshr): Ditto.
1927         (ix86_force_to_memory): Ditto.
1928         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
1929
1930 2010-09-18  Jan Hubicka  <jh@suse.cz>
1931
1932         PR tree-optimization/45453
1933         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
1934         virtual functions are reachable.
1935         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
1936         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1937         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
1938         when modifying function.
1939
1940 2010-09-18  Jan Hubicka  <jh@suse.cz>
1941
1942         PR tree-optimization/45605
1943         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
1944         * gimple-fold.c (static_object_in_other_unit_p): New function.
1945         (canonicalize_constructor_val): Use it.
1946         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
1947         returning NULL.
1948         (gimple_fold_obj_type_ref_known_binfo): Use
1949         static_object_in_other_unit_p.
1950
1951 2010-09-18  Richard Guenther  <rguenther@suse.de>
1952
1953         PR tree-optimization/45709
1954         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
1955         insertions until after all PHI nodes of the block are processed.
1956
1957 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
1958
1959         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
1960
1961 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
1962
1963         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
1964
1965 2010-09-18  Richard Guenther  <rguenther@suse.de>
1966
1967         PR tree-optimization/45709
1968         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
1969
1970 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1971
1972         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
1973         (dot_deps_stmt): Same.
1974         * graphite-poly.c (dot_lst): Same.
1975         * graphite-scop-detection.c (dot_all_scops): Same.
1976         (dot_scop): Same.
1977
1978 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1979
1980         Revert:
1981         2009-12-16  Ben Elliston  <bje@au.ibm.com>
1982
1983         * tree-data-ref.c (dot_rdg_1): Added back.
1984         (dot_rdg): Same.  Added "#if 0" around system call.
1985
1986 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1987             Richard Henderson  <rth@redhat.com>
1988
1989         * config/i386/i386.c (initial_ix86_tune_features): Add
1990         X86_TUNE_PAD_SHORT_FUNCTION.
1991         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
1992         (ix86_count_insn): New.
1993         (ix86_pad_short_function): Likewise.
1994         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
1995
1996         * config/i386/i386.h (ix86_tune_indices): Add
1997         X86_TUNE_PAD_SHORT_FUNCTION.
1998         (TARGET_PAD_SHORT_FUNCTION): New.
1999
2000         * config/i386/i386.md (UNSPEC_NOPS): New.
2001         (nops): Likewise.
2002
2003 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2004
2005         PR middle-end/45234
2006         * calls.c (expand_call): Make sure that all variable sized
2007         adjustments are multiple of preferred stack boundary after
2008         stack alignment.
2009
2010 2010-09-17  DJ Delorie  <dj@redhat.com>
2011
2012         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2013         passed an invalid value, print an error instead of ICEing.
2014         (valid_psw_flag): New.
2015         (rx_expand_builtin): Call it for setpsw/clrpsw.
2016         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2017
2018         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2019         (bitclr_in_memory): Likewise.
2020         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2021
2022 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2023
2024         PR middle-end/45678
2025         * cfgexpand.c (update_stack_alignment): New.
2026         (get_decl_align_unit): Use it.
2027         (expand_one_stack_var_at): Call update_stack_alignment.
2028
2029 2010-09-17  Richard Guenther  <rguenther@suse.de>
2030
2031         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2032         Properly copy the read string.
2033
2034 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
2035
2036         * doc/options.texi (Variable): Document.
2037         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
2038         generate target_flags declarations explicitly.  Don't define
2039         VarExists variables for the driver.
2040         * common.opt (target_flags): New Variable record.
2041         (flag_dump_unnumbered, flag_dump_unnumbered_links,
2042         flag_var_tracking, flag_var_tracking_assignments,
2043         flag_var_tracking_assignments_toggle): Don't mark variables with
2044         VarExists.
2045         * config/i386/i386.c (ix86_isa_flags): Don't define here.
2046         * config/i386/i386.opt (ix86_isa_flags): Define here.
2047         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2048         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2049         VarExists.
2050         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2051         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2052         Only define for generator programs.
2053         * rtlanal.c (target_flags): Remove.
2054         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2055         flag_var_tracking_assignments_toggle): Remove.
2056
2057 2010-09-17  Michael Matz  <matz@suse.de>
2058
2059         PR tree-optimization/43432
2060         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2061         Accept backwards consecutive accesses.
2062         (vect_create_data_ref_ptr): If step is negative generate
2063         decreasing IVs.
2064         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2065         (perm_mask_for_reverse, reverse_vec_elements): New functions.
2066         (vectorizable_load): Handle loads with negative steps when easily
2067         possible.
2068
2069 2010-09-03  Jan Hubicka  <jh@suse.cz>
2070
2071         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2072
2073 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
2074
2075         * config/v850/v850.c (v850_function_value_regno_p): Make static.
2076         Adjust comments. Declare.
2077         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2078         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2079
2080 2010-09-17  Richard Guenther  <rguenther@suse.de>
2081
2082         * common.opt (combine): Remove.
2083         * gcc.c (default_compilers): Remove specs testing combine.
2084         The C compilers no longer can combine.
2085         (option_map): Remove -combine.
2086         (display_help): Remove -combine.
2087         (driver_handle_option): Remove OPT_combine handling.
2088         (compile_input_file_p): Remove.
2089         (do_spec): Remove code concerning combine.
2090         (main): Likewise.
2091         * doc/invoke.texi: Remove traces of -combine.
2092         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2093
2094 2010-09-17  Richard Guenther  <rguenther@suse.de>
2095
2096         PR middle-end/45678
2097         * builtins.c (fold_builtin_memory_op): Always properly adjust
2098         alignment of memory accesses.
2099
2100 2010-09-16  Jan Hubicka  <jh@suse.cz>
2101
2102         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2103         processing clone.
2104
2105 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
2106
2107         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2108
2109         * config/i386/i386.c (predict_jump): Add prototype.
2110         (flag_opts): Add -m8bit-idiv.
2111         (ix86_split_idivmod): New.
2112
2113         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2114         Add 2 splitters for SI/DI mode divide.
2115         (divmod<mode>4_1): New pattern.
2116         (udivmod<mode>4_1): Likewise.
2117         (testdi_ccno_1): Likewise.
2118
2119         * config/i386/i386.opt (m8bit-idiv): New.
2120
2121         * doc/invoke.texi: Document -m8bit-idiv.
2122
2123 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
2124
2125         PR bootstrap/45680
2126         * config/i386/i386.c (min_insn_size): Moved out of the
2127         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2128
2129 2010-09-16  Jan Hubicka  <jh@suse.cz>
2130
2131         * lto-cgraph.c (lto_output_node): Fix handling of clones.
2132         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2133         unreachable clones with reachable clones.
2134         * tree-inline.c (copy_bb): Fix sanity checking when producing
2135         unreachable clone.
2136
2137 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
2138
2139         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2140         (TARGET_MEMORY_MOVE_COST): Define.
2141         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2142
2143 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
2144
2145         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2146         maybe_tidy_empty_bb.
2147
2148         Revert:
2149         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
2150         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2151
2152 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2153
2154         * target.def (target_option.optimization): New hook.
2155         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2156         TARGET_OPTION_OPTIMIZATION hook.
2157         * doc/tm.texi: Regenerate.
2158         * hooks.c (hook_void_int_int): New.
2159         * hooks.h (hook_void_int_int): Declare.
2160         * opts.c: Don't include tm_p.h.
2161         (decode_options): Use targetm.target_option.optimization instead
2162         of OPTIMIZATION_OPTIONS.
2163         * system.h (OPTIMIZATION_OPTIONS): Poison.
2164         * config/arm/arm-protos.h (arm_optimization_options): Remove.
2165         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2166         (arm_optimization_options): Rename to arm_option_optimization.
2167         Make static.
2168         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2169         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2170         (cris_option_optimization): New.
2171         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2172         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2173         (crx_option_optimization): New.
2174         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2175         * config/frv/frv-protos.h (frv_optimization_options): Remove.
2176         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2177         (frv_optimization_options): Rename to frv_option_optimization.
2178         Make static.
2179         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2180         * config/h8300/h8300.c (h8300_option_optimization): New.
2181         (TARGET_OPTION_OPTIMIZATION): Define.
2182         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2183         * config/i386/i386-protos.h (optimization_options): Remove.
2184         * config/i386/i386.c (optimization_options): Rename to
2185         ix86_option_optimization.  Make static.
2186         (TARGET_OPTION_OPTIMIZATION): Define.
2187         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2188         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2189         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2190         (ia64_optimization_options): Rename to ia64_option_optimization.
2191         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
2192         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
2193         commented-out definition.
2194         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2195         instead of OPTIMIZATION_OPTIONS.
2196         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2197         (m32r_option_optimization): New.
2198         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2199         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2200         Remove.
2201         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2202         (mcore_option_optimization): New.
2203         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2204         * config/mep/mep-protos.h (mep_optimization_options): Remove.
2205         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2206         (mep_optimization_options): Rename to mep_option_optimization.
2207         Make static.  Take unused level and size parameters.
2208         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2209         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2210         (mmix_option_optimization): New.
2211         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2212         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2213         (pdp11_option_optimization): New.
2214         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2215         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2216         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2217         (optimization_options): Rename to rs6000_option_optimization.
2218         Make static.
2219         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2220         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2221         * config/rx/rx.c (rx_set_optimization_options): Rename to
2222         rx_option_optimization.  Make static.  Take unused level and size
2223         parameters.
2224         (TARGET_OPTION_OPTIMIZATION): Define.
2225         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2226         * config/s390/s390-protos.h (optimization_options): Remove.
2227         * config/s390/s390.c (optimization_options): Rename to
2228         s390_option_optimization.  Make static.  Don't mark size parameter
2229         unused.
2230         (TARGET_OPTION_OPTIMIZATION): Define.
2231         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2232         * config/sh/sh-protos.h (sh_optimization_options): Remove.
2233         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2234         (sh_optimization_options): Rename to sh_option_optimization.  Make
2235         static.  Don't mark parameters unused.
2236         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2237         * config/spu/spu-protos.h (spu_optimization_options): Remove.
2238         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2239         (spu_optimization_options): Rename to spu_option_optimization.
2240         Make static.
2241         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2242         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2243         (v850_option_optimization): New.
2244         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2245         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2246         (xtensa_option_optimization): New.
2247         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2248
2249 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2250
2251         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2252         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2253         * doc/tm.texi: Regenerate.
2254         * system.h (OVERRIDE_OPTIONS): Poison.
2255         * target.def (override): Default to hook_void_void.
2256         * targhooks.c (default_target_option_override): Remove.
2257         * genmodes.c, machmode.def: Update comments mentioning
2258         OVERRIDE_OPTIONS.
2259         * config/alpha/alpha-modes.def: Update comment mentioning
2260         alpha_override_options.
2261         * config/alpha/alpha-protos.h (override_options): Remove.
2262         * config/alpha/alpha.c (override_options): Rename to
2263         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
2264         (TARGET_OPTION_OVERRIDE): Define.
2265         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2266         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2267         of OVERRIDE_OPTIONS.
2268         * config/arc/arc-protos.h (arc_init): Remove.
2269         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2270         (arc_init): Rename to arc_option_override.  Make static.
2271         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2272         (OVERRIDE_OPTIONS): Remove.
2273         * config/arm/arm-protos.h (arm_override_options): Remove.
2274         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2275         (arm_override_options): Rename to arm_option_override.  Make
2276         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2277         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2278         * config/arm/arm.md: Update comment referring to arm_override_options.
2279         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2280         instead of OVERRIDE_OPTIONS.
2281         * config/avr/avr-protos.h (avr_override_options): Remove.
2282         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2283         (avr_override_options): Rename to avr_option_override.  Make static.
2284         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2285         * config/bfin/bfin-protos.h (override_options): Remove (twice).
2286         * config/bfin/bfin.c (override_options): Rename to
2287         bfin_option_override.  Make static.
2288         (TARGET_OPTION_OVERRIDE): Define.
2289         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2290         * config/cris/cris-protos.h (cris_override_options): Remove.
2291         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2292         (cris_override_options): Rename to cris_option_override.  Make static.
2293         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2294         * config/frv/frv-protos.h (frv_override_options): Remove.
2295         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2296         (frv_override_options): Rename to frv_option_override.  Make static.
2297         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2298         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2299         * config/h8300/h8300.c (h8300_init_once): Rename to
2300         h8300_option_override.  Make static.
2301         (TARGET_OPTION_OVERRIDE): Define.
2302         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2303         * config/i386/i386-protos.h (override_options): Remove.
2304         * config/i386/i386.c (override_options): Rename to
2305         ix86_option_override_internal.  Make static.  Comments referring
2306         to this function and callers changed.
2307         (ix86_option_override): New.
2308         (TARGET_OPTION_OVERRIDE): Define.
2309         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2310         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2311         * config/ia64/ia64.c (ia64_file_start): Update comment referring
2312         to ia64_override_options.
2313         * config/iq2000/iq2000-protos.h (override_options): Remove.
2314         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2315         (override_options): Rename to iq2000_option_override.  Make static.
2316         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2317         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2318         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2319         (lm32_override_options): Rename to lm32_option_override.  Make static.
2320         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2321         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2322         (m32r_option_override): New.
2323         (m32r_init): Update comment.
2324         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2325         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2326         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2327         (m68hc11_override_options): Rename to m68hc11_option_override.
2328         Make static.  Return void.
2329         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2330         * config/m68k/m68k-protos.h (override_options): Remove.
2331         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2332         (override_options): Rename to m68k_option_override.  Make static.
2333         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2334         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2335         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2336         (mcore_override_options): Rename to mcore_option_override.  Make
2337         static.
2338         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2339         * config/mep/mep-protos.h (mep_override_options): Remove.
2340         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2341         (mep_override_options): Rename to mep_option_override.  Make static.
2342         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2343         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2344         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2345         (mmix_override_options): Rename to mmix_option_override.  Make static.
2346         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2347         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2348         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2349         (mn10300_override_options): Rename to mn10300_option_override.
2350         Make static.
2351         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2352         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2353         * config/moxie/moxie.c (moxie_override_options): Rename to
2354         moxie_option_override.  Make static.
2355         (TARGET_OPTION_OVERRIDE): Define.
2356         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2357         * config/picochip/picochip-protos.h (picochip_override_options):
2358         Remove.  Update comment referring to picochip_override_options.
2359         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2360         (picochip_override_options): Rename to picochip_option_override.
2361         Make static.  Update comment and definition of
2362         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2363         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2364         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2365         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2366         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2367         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2368         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2369         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2370         instead of OVERRIDE_OPTIONS.
2371         * config/rs6000/rs6000-modes.def: Update comment referring to
2372         rs6000_override_options.
2373         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2374         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2375         (rs6000_override_options): Rename to
2376         rs6000_option_override_internal.  Make static.  Commented
2377         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2378         (rs6000_option_override): New.
2379         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2380         instead of OVERRIDE_OPTIONS.
2381         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2382         * config/s390/s390-protos.h (override_options): Remove.
2383         * config/s390/s390.c (override_options): Rename to
2384         s390_option_override.  Make static.
2385         (TARGET_OPTION_OVERRIDE): Define.
2386         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2387         * config/score/score-protos.h (score_override_options): Remove.
2388         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2389         (score_override_options): Rename to score_option_override.  Make
2390         static.
2391         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2392         Update comment referring to override_options.
2393         * config/score/score3.c (score3_override_options): Rename to
2394         score3_option_override.
2395         * config/score/score3.h (score3_override_options): Rename to
2396         score3_option_override.
2397         * config/score/score7.c (score7_override_options): Rename to
2398         score7_option_override.
2399         * config/score/score7.h (score7_override_options): Rename to
2400         score7_option_override.
2401         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2402         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2403         (sparc_override_options): Rename to sparc_option_override.  Make
2404         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2405         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2406         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2407         instead of OVERRIDE_OPTIONS.
2408         * config/spu/spu-protos.h (spu_override_options): Remove.
2409         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2410         (spu_override_options): Rename to spu_option_override.  Make
2411         static.
2412         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2413         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2414         OVERRIDE_OPTIONS.
2415         * config/vax/vax-protos.h (override_options): Remove.
2416         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2417         (override_options): Rename to vax_option_override.  Make static.
2418         Call SUBTARGET_OVERRIDE_OPTIONS.
2419         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2420         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2421         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2422         * config/xtensa/xtensa-protos.h (override_options): Remove.
2423         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2424         (override_options): Rename to xtensa_option_override.  Make static.
2425         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2426
2427 2010-09-16  Richard Guenther  <rguenther@suse.de>
2428
2429         PR tree-optimization/45623
2430         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2431         (get_constraint_for_component_ref): If computing a constraint
2432         for the rhs handle type punning through unions.
2433         (get_constraint_for_address_of): Adjust.
2434         (get_constraint_for_1): Likewise.
2435         (get_constraint_for): Likewise.
2436         (get_constraint_for_rhs): New function.
2437         (do_structure_copy): Adjust.
2438         (make_constraint_to): Likewise.
2439         (handle_const_call): Likewise.
2440         (find_func_aliases): Likewise.
2441         (process_ipa_clobber): Likewise.
2442         (create_variable_info_for): Likewise.
2443
2444 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2445
2446         * tree-vectorizer.c: Fix documentation.
2447         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2448         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2449         is_pattern_stmt_p, is_loop_header_bb_p,
2450         stmt_vinfo_set_inside_of_loop_cost,
2451         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2452         known_alignment_for_access_p): Likewise.
2453         * tree-vect-loop.c: Fix documentation.
2454         (vect_get_cost): Start function name from new line.
2455         * tree-vect-data-refs.c: Fix documentation.
2456         * tree-vect_stmts.c: Likewise.
2457         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2458         (vectorizable_store): Free vec_oprnds if allocated.
2459         (vectorizable_condition): Initialize several variables to avoid
2460         warnings.
2461         * tree-vect-slp.c: Fix documentation.
2462
2463 2010-09-16  Richard Guenther  <rguenther@suse.de>
2464
2465         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2466         is TS_TRANSLATION_UNIT_DECL.
2467         (initialize_tree_contains_struct): Adjust.
2468         (all_translation_units): New global vector.
2469         (build_translation_unit_decl): New function.
2470         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2471         (struct tree_translation_unit_decl): New.
2472         (all_translation_units): Declare.
2473         (union tree_node): Add translation_unit_decl member.
2474         (build_translation_unit_decl): Declare.
2475         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2476         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2477         New function.
2478         (pack_value_fields): Call it.
2479         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2480         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2481         (lto_output_tree_pointers): Call it.
2482         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2483         to TRANSLATION_UNIT_DECL.
2484         (unpack_ts_translation_unit_decl_value_fields): New function.
2485         (unpack_value_fields): Call it.
2486         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2487         (lto_input_tree_pointers): Call it.
2488         * lto-streamer.c (check_handled_ts_structures): Adjust.
2489         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2490         * c-decl.c (all_translation_units): Remove.
2491         (pop_scope): Use build_translation_unit_decl.
2492         (collect_all_refs): Adjust.
2493         (for_each_global_decl): Likewise.
2494         (c_write_global_declarations): Likewise.
2495
2496 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2497
2498         PR bootstrap/45686
2499         * fold-const.c (fold_checksum_tree): Change slot from const void **
2500         to void **, use CONST_CAST_TREE to store into *slot.
2501
2502 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2503
2504         * config/i386/i386.md: Remove unneeded empty conditions and
2505         preparation statements from expanders.
2506         * config/i386/mmx.md: Ditto.
2507         * config/i386/sse.md: Ditto.
2508
2509 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2510
2511         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2512
2513 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2514
2515         PR rtl-optimization/45593
2516         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2517         insns that were in delay slots as stand-alone insns.
2518
2519 2010-09-15  Ian Lance Taylor  <iant@google.com>
2520
2521         * incpath.c (remove_duplicates): If name is not a directory, issue
2522         a warning rather than an error.
2523
2524 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2525
2526         PR middle-end/45644
2527         * tree-sra.c (create_access): Check for bit-fields directly.
2528
2529 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2530
2531         PR tree-optimization/45633
2532         * tree-cfg.c (verify_gimple_assign_binary): Allow
2533         MINUS_EXPR with lhs and rhs1 pointer vector and
2534         rhs2 sizetype vector.
2535         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2536         or vector pointer use TER to optimize pointer subtraction.
2537
2538 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2539
2540         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2541         fcmpd to fcmps.
2542
2543 2010-09-15  Ian Lance Taylor  <iant@google.com>
2544
2545         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2546
2547 2010-09-15  Ian Lance Taylor  <iant@google.com>
2548
2549         * function.c (get_arg_pointer_save_area): Set
2550         arg_pointer_save_area_init to true.
2551
2552 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2553
2554         * tree-sra.c (generate_subtree_copies): Updated comment.
2555         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2556         obtained from the statement iterator instead.
2557         (load_assign_lhs_subreplacements): Removed parameters lhs and
2558         right_offset, which is obtained from top_racc instead.  Parameter lacc
2559         is now expected to be the root of the processed tree rather than root's
2560         first child.  Updated all callers.
2561
2562 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
2563
2564         * config/pdp11/pdp11.c (register_move_cost): Rename to
2565         pdp11_register_move_cost.
2566         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2567         pdp11_register_move_cost.
2568         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2569         pdp11_register_move_cost instead of register_move_cost.
2570
2571 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
2572
2573         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2574         pattern for vmovn. Expansion in case of non
2575         -mvectorize-with-neon-quad.
2576         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2577         non- -mvectorize-with-neon-quad case.
2578         (move_lo_quad_<mode>): New expansion to vmov into low part.
2579         (move_hi_quad_<mode>): New expansion to vmov into high part.
2580         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2581         (move_lo_quad_v4sf): Likewise.
2582         (move_lo_quad_v8hi): Likewise.
2583         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2584         low part.
2585         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2586         high part.
2587         * config/arm/iterators.md (ANY128): New mode iterator.
2588         (V_narrow_pack): New mode attribute.
2589         (V_HALF): Add attribute.
2590         (V_DOUBLE): Add attribute.
2591         (V_mode_nunits): Add attribute.
2592
2593 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2594
2595         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2596         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2597
2598 2010-09-15  Olivier Hainque  <hainque@adacore.com>
2599             Jose Ruiz  <ruiz@adacore.com>
2600
2601         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2602         * config/alpha/osf5-unwind.h: New file.
2603
2604 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2605
2606         PR bootstrap/45672
2607         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2608         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2609         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2610
2611 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2612
2613         * c-lang.h (struct lang_type): Add variable_size GTY option.
2614
2615 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2616
2617         PR bootstrap/45672
2618         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2619
2620 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2621
2622         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2623         result isn't used in memory address.
2624
2625 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2626
2627         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2628         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2629         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2630         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2631         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2632         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2633
2634         * target.def: Add units_per_simd_word to vectorize.
2635
2636         * targhooks.c (default_units_per_simd_word): New.
2637         * targhooks.h (default_units_per_simd_word): Likewise.
2638         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2639         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2640         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2641         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2642         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2643         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2644         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2645         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2646
2647         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2648         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2649
2650         * tree-vect-stmts.c: Don't include "tm_p.h".
2651         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2652         with targetm.vectorize.units_per_simd_word.
2653
2654         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2655
2656         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2657
2658         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2659         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2660
2661         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
2662         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2663
2664         * doc/tm.texi: Regenerated.
2665
2666 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2667
2668         * tree-vect-stmts.c: Include "tm_p.h".
2669
2670         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2671         out of RTX_CODE.
2672
2673 2010-09-14  Martin Jambor  <mjambor@suse.cz>
2674
2675         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
2676         location of generated statement.  Changed all callers.
2677         (build_ref_for_model): New parameter loc which used to set location of
2678         all generated expressions.  Changed all callers.
2679         (generate_subtree_copies): Likewise.
2680         (init_subtree_with_zero): Likewise.
2681         (sra_modify_expr): Set locations of all generated statements and
2682         expressions to the location the original statement.
2683         (handle_unscalarized_data_in_subtree): Likewise.
2684         (load_assign_lhs_subreplacements): Likewise.
2685         (sra_modify_constructor_assign): Likewise.
2686         (sra_modify_assign): Likewise.
2687
2688 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
2689
2690         PR target/45277
2691         PR target/45363
2692         PR target/45407
2693         * doc/install.texi (sparc*-*-*): New section.
2694         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2695
2696 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2697
2698         PR middle-end/45567
2699         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2700         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2701         (expand_builtin): Adjust caller.
2702         (expand_builtin_unop): Only use subtarget if it has the right mode.
2703
2704 2010-09-14  Tristan Gingold  <gingold@adacore.com>
2705
2706         * configure.ac (plugins): Fix typos.
2707         * configure: Regenerate.
2708
2709 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2710
2711         PR debug/45660
2712         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2713         gen_type_die for function/method return type.
2714
2715 2010-09-14  Ira Rosen  <irar@il.ibm.com>
2716
2717         PR tree-optimization/45470
2718         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2719         can throw an exception.
2720         * tree-vect-stmts.c (vectorizable_call): Likewise.
2721
2722 2010-09-14  DJ Delorie  <dj@redhat.com>
2723
2724         PR target/44749
2725         * config/mep/mep-protos.h (mep_save_register_info,
2726         mep_reinit_regs, mep_init_regs): Declare.
2727
2728         * config/mep/mep.c: Move all target definitions to the end of the
2729         file to avoid the need for duplicate declarations.
2730         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
2731         (mep_reorg_erepeat): Remove unused variables.
2732         (mep_expand_builtin): Likewise.
2733
2734         * config/mep/mep-pragma.c: Don't include rtl.h.
2735         (INVALID_REGNUM): New.
2736         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
2737         functions.
2738         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
2739         Avoid enum/integer math.
2740
2741 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
2742
2743         PR target/44749
2744         * config/mep/t-mep (GTM_H): Add insn-constants.h.
2745         * config/mep/mep.c (mep_conditional_register_usage): Take no
2746         parameters.
2747         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
2748         prototype.
2749         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
2750         call to mep_conditional_register_usage.
2751
2752 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2753
2754         PR debug/43937
2755         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
2756         the DECL as well.
2757
2758 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
2759
2760         PR rtl-optimization/45617
2761         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
2762         even if low N bits of X aren't known to be zero.
2763
2764 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2765
2766         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
2767
2768         * config/i386/i386.c (initial_ix86_tune_features): Add
2769         X86_TUNE_VECTORIZE_DOUBLE.
2770         (ix86_units_per_simd_word): New.
2771
2772         * config/i386/i386.h (ix86_tune_indices): Add
2773         X86_TUNE_VECTORIZE_DOUBLE.
2774         (TARGET_VECTORIZE_DOUBLE): New.
2775         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
2776
2777 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2778
2779         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
2780         (new_temp_expr_table): Allocate call_cnt vector.
2781         (free_temp_expr_table): Free it.
2782         (process_replaceable): Add call_cnt parm and set in vector.
2783         (find_replaceable_in_bb): Skip replacement if def/use span a call.
2784         (debug_ter): Dump call_cnt value, remove stderr uses.
2785
2786 2010-09-13  Jan Hubicka  <jh@suse.cz>
2787
2788         * tree.c (build_zero_cst): New.
2789         * tree.h (build_zero_cst): Declare.
2790         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
2791         (get_base_constructor): Break out from ...
2792         (fold_const_aggregate_ref): Here; handle empty constructors.
2793
2794 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2795
2796         * config/arm/arm.md: (define_attr "conds"): Update comment.
2797         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
2798         conds attribute to clob.
2799         (arm_sync_compare_and_swapsi): Likewise.
2800         (arm_sync_compare_and_swap<mode>): Likewise.
2801         (arm_sync_lock_test_and_setsi): Likewise.
2802         (arm_sync_lock_test_and_set<mode>): Likewise.
2803         (arm_sync_new_<sync_optab>si): Likewise.
2804         (arm_sync_new_nandsi): Likewise.
2805         (arm_sync_new_<sync_optab><mode>): Likewise.
2806         (arm_sync_new_nand<mode>): Likewise.
2807         (arm_sync_old_<sync_optab>si): Likewise.
2808         (arm_sync_old_nandsi): Likewise.
2809         (arm_sync_old_<sync_optab><mode>): Likewise.
2810         (arm_sync_old_nand<mode>): Likewise.
2811
2812 2010-09-13  Olivier Hainque  <hainque@adacore.com>
2813
2814         * fwprop.c (forward_propagate_and_simplify): Only attach a
2815         REG_EQUAL note to an insn if the destination is a register.
2816         * gcse.c (try_replace_reg): Likewise.
2817
2818 2010-09-13  Richard Guenther  <rguenther@suse.de>
2819
2820         PR tree-optimization/45611
2821         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
2822         (copy_ref_info): Likewise.
2823
2824 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
2825
2826         PR debug/45604
2827         PR debug/45419
2828         PR debug/45408
2829         * tree-pretty-print.c (dump_generic_node): Disregard top-level
2830         types of MEM_REF pointer types to the same type.
2831
2832 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
2833
2834         PR rtl-optimization/41087
2835         * ifcvt.c (noce_get_condition): Don't allow conditions with
2836         side-effects.
2837
2838 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
2839
2840         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2841         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
2842         * config/frv/frv.c (frv_register_move_cost): Make static. Change
2843         arguments type to reg_class_t. Add mode argument.
2844         (frv_memory_move_cost): New.
2845         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
2846
2847 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2848
2849         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
2850         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
2851
2852 2010-09-10  Jan Hubicka  <jh@suse.cz>
2853
2854         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
2855
2856 2010-09-10  Richard Guenther  <rguenther@suse.de>
2857
2858         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
2859         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
2860         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
2861         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
2862         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
2863
2864 2010-09-10  Richard Guenther  <rguenther@suse.de>
2865
2866         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
2867         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
2868         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
2869         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
2870
2871 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2872
2873         PR middle-end/45634
2874         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
2875         of string folding is of integral type.
2876
2877 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
2878
2879         * doc/invoke.texi (-x): Fix typo.
2880
2881 2010-09-10  Richard Guenther  <rguenther@suse.de>
2882
2883         PR debug/44115
2884         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
2885         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2886         Output DECL_DEBUG_EXPR.
2887         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2888         Input DECL_DEBUG_EXPR.
2889
2890 2010-09-10  Richard Guenther  <rguenther@suse.de>
2891
2892         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
2893         (build_index_type): Implement in terms of build_range_type.
2894         (build_range_type): Do not allow NULL_TREE type, improve
2895         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
2896         if we didn't hash.
2897         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
2898         create a distinct copy of the type.
2899
2900 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
2901
2902         * configure: Regenerated.
2903         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
2904
2905 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2906
2907         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
2908         * config/arm/cortex-a9-neon.md: New and partially generated.
2909         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
2910
2911 2010-09-10  Richard Guenther  <rguenther@suse.de>
2912
2913         * tree.h (build_index_2_type): Remove.
2914         * tree.c (build_index_2_type): Remove.
2915
2916 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
2917
2918         PR bootstrap/45630
2919         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
2920         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
2921         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
2922
2923 2010-09-10  Martin Jambor  <mjambor@suse.cz>
2924
2925         PR tree-optimization/44972
2926         * tree-sra.c: Include toplev.h.
2927         (build_ref_for_offset): Entirely reimplemented.
2928         (build_ref_for_model): New function.
2929         (build_user_friendly_ref_for_offset): New function.
2930         (analyze_access_subtree): Removed build_ref_for_offset check.
2931         (propagate_subaccesses_across_link): Likewise.
2932         (create_artificial_child_access): Use
2933         build_user_friendly_ref_for_offset.
2934         (propagate_subaccesses_across_link): Likewise.
2935         (ref_expr_for_all_replacements_p): Removed.
2936         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
2937         (sra_modify_expr): Use build_ref_for_model.
2938         (load_assign_lhs_subreplacements): Likewise.
2939         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
2940         checks for return values of build_ref_for_offset.
2941         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
2942         build_ref_for_offset.
2943         * ipa-prop.h: Include gimple.h
2944         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
2945         (ipa_analyze_indirect_call_uses): Update comment.
2946         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
2947         (IPA_PROP_H): Likewise.
2948
2949 2010-09-10  Martin Jambor  <mjambor@suse.cz>
2950
2951         PR tree-optimization/44972
2952         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
2953         calling build_ref_for_offset.
2954
2955 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2956
2957         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
2958         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
2959         * config/arm/arm-tune.md: Regenerate.
2960         * doc/invoke.texi (ARM Options): Document it.
2961
2962 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
2963
2964         * config/i386/i386.c: Include sched-int.h.
2965         (TARGET_SCHED_DISPATCH): Defined.
2966         (TARGET_SCHED_DISPATCH_DO): Defined.
2967         (DISPATCH_WINDOW_SIZE): Defined.
2968         (MAX_DISPATCH_WINDOWS): Defined.
2969         (MAX_INSN): Defined.
2970         (MAX_IMM): Defined.
2971         (MAX_IMM_SIZE): Defined.
2972         (MAX_IMM_32): Defined.
2973         (MAX_IMM_64): Defined.
2974         (MAX_LOAD): Defined.
2975         (MAX_STORE): Defined.
2976         (BIG): Defined.
2977         (dispatch_group): New.
2978         (num_allowable_groups): New.
2979         (group_name): New.
2980         (sched_insn_info_s): New.
2981         (dispatch_windows_s): New.
2982         (imm_info_s): New.
2983         (dispatch_window_list): New.
2984         (dispatch_window_list1): New.
2985         (get_mem_group): New.
2986         (is_cmp): New.
2987         (dispatch_violation): New.
2988         (is_branch): New.
2989         (is_prefetch): New.
2990         (init_window): New.
2991         (allocate_window): New.
2992         (init_dispatch_sched): New.
2993         (is_end_basic_block): New.
2994         (process_end_window): New.
2995         (allocate_next_window): New.
2996         (find_constant_1): New.
2997         (find_constant): New.
2998         (get_num_immediates): New.
2999         (has_immediate): New.
3000         (get_insn_path): New.
3001         (get_insn_group): New.
3002         (count_num_restricted): New.
3003         (fits_dispatch_window): New.
3004         (add_insn_window): New.
3005         (add_to_dispatch_window): New.
3006         (debug_dispatch_window_file): New.
3007         (debug_dispatch_window): New.
3008         (debug_insn_dispatch_info_file): New.
3009         (debug_ready_dispatch): New.
3010         (do_dispatch): New.
3011         (has_dispatch): New.
3012         * config/i386/i386.h (debug_ready_dispatch): Declared.
3013         (debug_dispatch_window): Declared.
3014         * config/i386/i386.opt (mdispatch-scheduler): New flag.
3015         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3016         (TARGET_SCHED_DISPATCH_DO): New.
3017         * doc/tm.texi: Regererated.
3018         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3019         ready_remove_first_dispatch
3020         (schedule_block): Call targetm.sched.dispatch and
3021         targetm.sched.dispatch_do.
3022         (sched_init): Call targetm.sched.dispatch and
3023         targetm.sched.dispatch_do.
3024         (ready_remove_first_dispatch): New.
3025         (number_in_ready): New.
3026         (get_ready_element): New.
3027         * hooks.c (hook_bool_rtx_int_false): New.
3028         (hook_void_rtx_int): New.
3029         * hooks.h (hook_bool_rtx_int_false): Declared.
3030         (hook_void_rtx_int): Declared.
3031         * sched-int.h (IS_DISPATCH_ON): Defined.
3032         (IS_CMP): Defined.
3033         (DISPATCH_VIOLATION): Defined.
3034         (FITS_DISPATCH_WINDOW): Defined.
3035         (DISPATCH_INIT): Defined.
3036         (ADD_TO_DISPATCH_WINDOW): Defined.
3037         (get_ready_element): Declared.
3038         (number_in_ready): Declared.
3039         * target.def (dispatch): Defined.
3040         (dispatch_do): Defined.
3041
3042 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3043
3044         PR middle-end/45312
3045         * reload1.c (merge_assigned_reloads): Remove.
3046         (reload_as_needed): Don't call it.
3047
3048 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
3049
3050         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3051         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3052         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3053
3054 2010-09-09  Matthias Klose  <doko@ubuntu.com>
3055
3056         PR bootstrap/43847
3057         * configure.ac (--enable-plugin): Enhance for cross builds.
3058         * configure: Regenerate.
3059
3060 2010-09-09  Jan Hubicka  <jh@suse.cz>
3061
3062         PR tree-optimization/45598
3063         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3064         string folding is of integral type.
3065
3066 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3067
3068         * configure.ac (gnu_indirect_function): New test.
3069         * configure: Rebuilt.
3070         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3071         * defaults.h (IFUNC_ASM_TYPE): Provide default.
3072
3073         * doc/extend.texi (Function Attributes): Document ifunc.
3074         * varasm.c (do_assemble_alias): Deal with ifuncs too.
3075
3076 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3077
3078         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3079         epilogue instruction move.
3080
3081 2010-09-09  Jan Hubicka  <jh@suse.cz>
3082
3083         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3084         command line to allow more partitions than input files.
3085
3086 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3087
3088         PR middle-end/44554
3089         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3090
3091 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3092
3093         PR middle-end/40386
3094         * ira.c (pseudo_for_reload_consideration_p): Don't use
3095         flag_ira_share_spill_slots.
3096
3097 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3098
3099         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3100         point zero operands that fit into a single GPR.
3101         (s390_preferred_reload_class): Ensure we only return general-purpose
3102         register classes.
3103         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3104         floating-point zero operands into GPRs.
3105         ("*mov<mode>_64"): Likewise.
3106         ("mov<mode>"): Likewise using lhi.
3107
3108 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3109
3110         * config/s390/s390.c (s390_symref_operand_p): Return false for
3111         literal pool references.
3112         (s390_check_qrst_address): Update caller.
3113
3114 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
3115
3116         * config/i386/predicates.md (ext_register_operand): Check that
3117         SUBREG_REG is really a register before looking for REGNO.
3118         (reg_not_xmm0_operand): Handle SUBREGs correctly.
3119         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3120
3121 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
3122
3123         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3124         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3125         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3126         * print-rtl.c (print_rtx): Likewise.
3127         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3128         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3129         for ADDR_EXPR with non-addressable object.
3130         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3131         (struct dw_val_struct): Add v.val_decl_ref.
3132         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3133         Handle DW_OP_GNU_implicit_pointer.
3134         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
3135         (get_ref_die_offset_label): New function.
3136         (implicit_ptr_descriptor): New function.
3137         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3138         (loc_descriptor): Likewise.
3139         (gen_variable_die): Put even definitions into decl_die_table.
3140         (resolve_addr_in_expr): Resolve still unresolved
3141         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3142         return false.
3143         (dwarf2out_finish): Call output_location_lists after outputting
3144         .debug_info and .debug_abbrev instead of before.
3145
3146 2010-09-09  Roland McGrath  <roland@redhat.com>
3147
3148         * dwarf2out.c (DWARF_REF_SIZE): Define.
3149         (size_of_loc_descr): Use it for DW_OP_call_ref.
3150
3151 2010-09-09  Alan Modra  <amodra@gmail.com>
3152
3153         * doc/invoke.text: Reinstate mcmodel=medium.
3154         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3155         CMODEL_MEDIUM as default.
3156         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3157         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3158         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3159         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3160
3161 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3162
3163         PR target/45250
3164         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3165         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3166         (builtin_longjmp): Likewise.
3167         (allocate_stack): Use hard_frame_pointer_rtx instead of
3168         frame_pointer_rtx.
3169         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3170         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3171         (pa_can_eliminate): Likewise.
3172         (TARGET_INTERNAL_ARG_POINTER): Define.
3173         (TARGET_CAN_ELIMINATE): Define.
3174         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3175         pointer.
3176         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3177         (pa_internal_arg_pointer, pa_can_eliminate,
3178         pa_initial_elimination_offset): New.
3179         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3180         (HARD_FRAME_POINTER_REGNUM): Set to register three.
3181         (INITIAL_FRAME_POINTER_OFFSET): Delete.
3182         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3183         Define.
3184         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3185         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3186         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3187         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3188         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3189         new soft frame pointer.
3190         * config/pa/pa64-regs.h: Likewise.
3191
3192 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3193
3194         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3195         numerical constant.
3196         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3197
3198 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3199
3200         PR debug/45531
3201         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3202
3203 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3204
3205         PR debug/45419
3206         PR debug/45408
3207         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3208         qualifiers in otherwise equal MEM_REF pointer types.
3209         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3210         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3211
3212 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3213
3214         PR target/44392
3215         * config/arm/arm.md (bswapsi2): Handle condition correctly
3216         for armv6 and optimize_size.
3217
3218 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3219
3220         PR other/18555
3221         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3222
3223 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3224
3225         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3226         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3227         ix86_expand_strlen, legitimate_pic_address_disp_p,
3228         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3229         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3230         ix86_check_movabs, ix86_secondary_memory_needed): Change function
3231         prototype to bool.
3232         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3233         return_in_memory_ms_64, ix86_check_movabs,
3234         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3235         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3236         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3237         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3238         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3239         ix86_secondary_memory_needed): Change to bool.  Return
3240         "true" and "false" values.
3241         * config/i386/i386.md: Return "true" and "false" values.
3242
3243 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3244
3245         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3246         run_expensive_tests.
3247
3248 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3249
3250         * toplev.c (output_stack_usage): Use lbasename instead of basename.
3251
3252 2010-09-08  Martin Jambor  <mjambor@suse.cz>
3253
3254         PR other/45443
3255         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3256         at -O3.
3257
3258 2010-09-08  Richard Guenther  <rguenther@suse.de>
3259
3260         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3261         (visit): Adjust.
3262         (iterative_hash_gimple_type): Likewise.
3263         (gimple_type_hash): Likewise.
3264         (gimple_register_type): Likewise.
3265         (print_gimple_types_stats): Likewise.
3266         (free_gimple_type_tables): Likewise.
3267
3268 2010-09-08  Michael Matz  <matz@suse.de>
3269
3270         PR tree-optimization/43430
3271         * tree-vect-stmts.c (vectorizable_condition): Support multiple
3272         copies for conditional statements if it's not part of a reduction.
3273
3274 2010-09-08  Michael Matz  <matz@suse.de>
3275
3276         PR tree-optimization/33244
3277         * tree-ssa-sink.c (statement_sink_location): Don't sink into
3278         empty loop latches.
3279
3280 2010-09-08  Richard Guenther  <rguenther@suse.de>
3281
3282         PR tree-optimization/45578
3283         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3284         Be more careful when transfering alignment information to
3285         the new induction variable.
3286         (copy_ref_info): Likewise.
3287
3288 2010-09-08  Richard Guenther  <rguenther@suse.de>
3289
3290         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3291         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3292
3293 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
3294
3295         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3296         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3297
3298 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3299
3300         PR doc/45587
3301         * doc/md.texi: Fixed modes on several standard pattern names.
3302
3303 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
3304
3305         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3306         (ashl<mode>3): ...this.
3307         (loongson_psra<V_suffix>): Rename to...
3308         (ashr<mode>3): ...this.
3309         (loongson_psrl<V_suffix>): Rename to...
3310         (lshr<mode>3): ...this.
3311         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3312         (CODE_FOR_loongson_psllw): Define.
3313         (CODE_FOR_loongson_psrlh): Define.
3314         (CODE_FOR_loongson_psrlw): Define.
3315         (CODE_FOR_loongson_psrah): Define.
3316         (CODE_FOR_loongson_psraw): Define.
3317
3318 2010-09-07  Richard Henderson  <rth@redhat.com>
3319
3320         * tree-vect-data-refs.c: Include tm_p.h.
3321         * Makefile.in (tree-vect-data-refs.o): Update deps.
3322         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3323         Move delarations outside #ifdef RTX_CODE.
3324
3325 2010-09-07  Richard Henderson  <rth@redhat.com>
3326
3327         * final.c (rest_of_handle_final): Unconditionally do
3328         output_function_exception_table before assemble_end_function.
3329
3330 2010-09-07  Jan Hubicka  <jh@suse.cz>
3331
3332         * tree-inline.c (tree_inlinable_function_p): Do not test
3333         DECL_REPLACEABLE_P.
3334         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3335         update_callee_keys, cgraph_decide_inlining): Test function availability.
3336         * cif-code.def (OVERWRITABLE): New code.
3337
3338 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
3339             Jack Howarth  <howarth@bromo.med.uc.edu>
3340
3341         PR target/36502
3342         PR target/42313
3343         PR target/44651
3344         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3345         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3346         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3347         MAX macro.
3348
3349 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3350
3351         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3352         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3353
3354 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3355
3356         * config.gcc: Don't append t-android for Android targets.
3357
3358         * config/t-android: Removed.
3359
3360 2010-09-07  Richard Henderson  <rth@redhat.com>
3361
3362         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3363         * doc/tm.texi.in: Add doc marker.
3364         * doc/tm.texi: Rebuild.
3365         * except.c (switch_to_exception_section): Always build.
3366         (output_one_function_exception_table): Move section switch,
3367         personality output, and label output ...
3368         (output_function_exception_table): ... here.  Use the new
3369         personality hook.
3370
3371         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3372         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3373         TARGET_ASM_INIT_SECTIONS): New.
3374         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3375         make static.
3376         (TARGET_ASM_UNWIND_EMIT): Update to match.
3377         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3378
3379         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3380         (arm_asm_init_sections): New.
3381         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3382
3383 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3384
3385         * config/arm/arm.md: Remove unused variable.
3386
3387 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3388
3389         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3390         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3391         (m32r_memory_move_cost): New function.
3392
3393 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3394
3395         * config.gcc: Append t-android for Android targets.
3396
3397         * config/t-android: New.
3398
3399 2010-09-07  Richard Henderson  <rth@redhat.com>
3400
3401         * target.def (unwind_emit_before_insn): New hook.
3402         * doc/tm.texi.in: Add @hook marker for it.
3403         * doc/tm.texi: Rebuild.
3404         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3405
3406 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3407
3408         PR fortran/43665
3409         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3410         are any type attributes.
3411
3412 2010-09-07  Jan Hubicka  <jh@suse.cz>
3413
3414         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3415         array_ref_low_bound in string access folding.
3416
3417 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3418
3419         PR target/45206
3420         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3421         eh_return fixup sequence.
3422
3423 2010-09-07  Jan Hubicka  <jh@suse.cz>
3424
3425         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3426         gimple_min_invariant.
3427
3428 2010-09-07  Richard Guenther  <rguenther@suse.de>
3429
3430         PR middle-end/45569
3431         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3432         nor CONSTRUCTOR can trap.
3433         * tree-complex.c (update_complex_assignment): Update EH info.
3434
3435 2010-09-07  Richard Guenther  <rguenther@suse.de>
3436
3437         PR middle-end/45569
3438         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3439         * passes.c (execute_function_todo): Do not verify anything if
3440         we saw errors.
3441
3442 2010-09-07  Richard Guenther  <rguenther@suse.de>
3443
3444         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3445
3446 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3447
3448         PR target/43137
3449         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3450         New define_mode_attrs.
3451         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3452         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3453         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3454         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3455         Remove pool_range attribute.
3456         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3457         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3458         pool_range and neg_pool_range attributes.
3459         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3460         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3461         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3462
3463 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3464
3465         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3466         check glibc.
3467
3468 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3469
3470         PR target/22152
3471         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3472         *mov<mode>_internal_avx, *mov<mode>_internal,
3473         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3474         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3475
3476 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3477
3478         * c-typeck.c (do_warn_double_promotion): Remove.
3479         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3480         Objective-C++ too.
3481
3482 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3483
3484         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3485         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3486         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3487         argument type to reg_class_t. Change result type to bool.
3488         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3489
3490 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3491
3492         PR libobjc/19850
3493         * gthr-posix.h (__gthread_objc_thread_detach): Use
3494         _objc_thread_attribs when detaching a thread.
3495         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3496
3497 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3498
3499         PR target/45524
3500         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3501         * configure: Regenerated.
3502
3503 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3504
3505         * combine.c (try_combine): Set subst_low_luid to i0.
3506
3507 2010-09-06  Richard Guenther  <rguenther@suse.de>
3508
3509         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3510         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3511         (build_aligned_type): Declare.
3512         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3513         (check_aligned_type): New function.
3514         (build_aligned_type): Likewise.
3515         * expr.c (expand_assignment): Handle misaligned stores via
3516         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3517         (expand_expr_real_1): Likewise.
3518         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3519         * tree-vect-stmts.c (vectorizable_store): Do not build
3520         MISALIGNED_INDIRECT_REF but initialize alignment information.
3521         (vectorizable_load): Likewise.
3522         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3523         handling.
3524         * cfgexpand.c (expand_debug_expr): Likewise.
3525         * dwarf2out.c (loc_list_from_tree): Likewise.
3526         * fold-const.c (maybe_lvalue_p): Likewise.
3527         (operand_equal_p): Likewise.
3528         (build_fold_addr_expr_with_type_loc): Likewise.
3529         * gimplify.c (gimplify_addr_expr): Likewise.
3530         (gimplify_expr): Likewise.
3531         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3532         (verify_gimple_assign_single): Likewise.
3533         * tree-dump.c (dequeue_and_dump): Likewise.
3534         (tree_could_trap_p): Likewise.
3535         * tree-predcom.c (ref_at_iteration): Likewise.
3536         * tree-pretty-print.c (dump_generic_node): Likewise.
3537         (op_code_prio): Likewise.
3538         (op_symbol_code): Likewise.
3539         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3540         * tree-ssa-loop-im.c (for_each_index): Likewise.
3541         (gen_lsm_tmp_name): Likewise.
3542         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3543         (find_interesting_uses_address): Likewise.
3544         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3545         * tree-ssa-operands.c (get_expr_operands): Likewise.
3546         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3547         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3548         (ao_ref_init_from_vn_reference): Likewise.
3549         * tree.c (staticp): Likewise.
3550         (build1_stat): Likewise.
3551         (reference_alias_ptr_type): Likewise.
3552         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3553         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3554         MISALIGNED_INDIRECT_REF handling.
3555
3556 2010-09-06  Richard Guenther  <rguenther@suse.de>
3557
3558         PR tree-optimization/45534
3559         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3560         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3561         on the target.
3562         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3563         valid on the target.
3564
3565 2010-09-06  Andreas Schwab  <schwab@redhat.com>
3566
3567         * configure.ac: Quote argument of AC_MSG_WARN.
3568         * configure: Regenerate.
3569
3570 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
3571
3572         * sel-sched.c (move_cond_jump): Correct arguments to
3573         maybe_tidy_empty_bb.
3574         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3575
3576 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
3577
3578         PR rtl-optimization/44919
3579         * sel-sched.c (move_cond_jump): Remove assert, check that
3580         the several blocks case can only happen with mutually exclusive
3581         insns instead.  Rewrite the movement code to support moving through
3582         several basic blocks.
3583
3584 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3585
3586         * config/i386/i386.md (iptrsize): New mode attribute.
3587         (tp_seg): Ditto.
3588         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3589         mode iterator.
3590         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3591         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3592         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3593         (stack_tls_protect_set_<mode>): Ditto from
3594         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
3595         of thread base pointer load.
3596         (stack_tls_protect_test_<mode>): Ditto from
3597         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
3598         of thread base pointer load.
3599         (stack_protect_set): Rewrite using indirect functions.
3600         (stack_protect_test): Ditto.
3601         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3602         (ix86_print_operand): Handle '@'.
3603
3604 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
3605
3606         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3607         MINUS_EXPR.
3608
3609 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3610
3611         * doc/invoke.texi: Document -Wdouble-promotion.
3612         * c-typeck.c (convert_arguments): Check for implicit conversions
3613         from float to double.
3614         (do_warn_double_promotion): New function.
3615         (build_conditional_expr): Use it.
3616         (build_binary_op): Likewise.
3617
3618 2010-09-05  Richard Guenther  <rguenther@suse.de>
3619
3620         PR tree-optimization/45535
3621         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3622         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
3623         dereferencing it.
3624         (indirect_refs_may_alias_p): Likewise.
3625
3626 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
3627
3628         * config/sh/sh.c (sh_option_override): Make static.
3629         Adjust comments.  Declare.
3630         (sh_function_value_regno_p): Likewise.
3631         (sh_register_move_cost): Modify the arguments, make static.
3632         Adjust comments.  Declare.
3633         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3634         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3635         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3636         REGISTER_MOVE_COST): Delete.
3637         * config/sh/sh-protos.h (sh_override_options): Delete.
3638         (sh_register_move_cost): Delete.
3639         (sh_function_value_regno_p): Delete.
3640
3641 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
3642
3643         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3644         m32r_function_value_regno_p): New functions.
3645         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3646         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3647         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3648         FUNCTION_VALUE_REGNO_P): Remove.
3649
3650 2010-09-04  Jan Hubicka  <jh@suse.cz>
3651
3652         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3653         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3654         fold_read_from_constant_string.
3655
3656         * gimple.h (canonicalize_constructor_val): Declare.
3657         * gimple-fold.c (canonicalize_constructor_val): New function.
3658         (get_symbol_constant_value):Use it.
3659         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3660
3661 2010-09-04  Jan Hubicka  <jh@suse.cz>
3662
3663         * tree-switch-conversion.c (build_one_array): Set constructor to be
3664         static.
3665         * varpool.c (varpool_finalize_decl): Compute const_value_known.
3666
3667 2010-09-04  Richard Guenther  <rguenther@suse.de>
3668
3669         PR bootstrap/45519
3670         * tree-flow.h (force_gimple_operand_1): Declare.
3671         (force_gimple_operand_gsi_1): Likewise.
3672         * gimplify.c (force_gimple_operand_1): New worker taking a
3673         gimple predicate for ...
3674         (force_gimple_operand): ... which now wraps it.
3675         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3676         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3677         last change.
3678         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3679         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3680         (create_mem_ref): Likewise.
3681
3682 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
3683
3684         * config/i386/predicates.md (sse_reg_operand): New predicate.
3685         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3686         predicate for operand 1.
3687         (XFmode push splitter): Use fp_register_operand predicate
3688         for operand 1.
3689         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3690         (SF-DF float_extend push splitter): Add reload_completed insn
3691         predicate.
3692         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3693         MODEF mode macro.  Add reload_completed insn predicate.
3694
3695 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
3696
3697         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3698         (struct df_extract_ref): Remove.
3699         (union df_ref_d): Remove extract_ref member.
3700         (df_ref_create): Remove last three arguments.
3701         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3702         * df-scan.c (df_ref_record): Remove last three arguments, do not
3703         pass them to df_ref_create_structure.
3704         (df_uses_record): Remove first and last three arguments.  Replace
3705         first argument with DF_REF_REGULAR, adjust calls to remove the
3706         width, offset and mode.  Always call recursively on the second
3707         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3708         (df_ref_create_structure): Remove first argument.
3709         (struct df_scan_problem_data): Remove ref_extract_pool.
3710         (df_scan_free_internal): Do not free it.
3711         (df_scan_alloc): Do not allocate it.
3712         (df_ref_create): Remove last three arguments, do not pass them to
3713         df_ref_create_structure.
3714         (df_free_ref): Remove DF_REF_EXTRACT case.
3715         (df_notes_rescan): Adjust call to df_uses_record.
3716         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3717         Remove DF_REF_EXTRACT case.
3718         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3719         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3720         and SUBREG definitions.
3721         (df_get_conditional_uses): Remove references to width/offset/mode,
3722         adjust call to df_ref_create_structure.
3723         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3724         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
3725         calls to df_uses_record and df_ref_record.
3726         * fwprop.c (update_df): Remove references to width/offset/mode,
3727         adjust call to df_ref_create.
3728
3729 2010-09-03  Jan Hubicka  <jh@suse.cz>
3730
3731         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
3732         (build_cdtor_fns): Update use of build_cdtor.
3733
3734 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
3735
3736         * doc/options.texi (SeparateAlias): Document.
3737         * opt-functions.awk (switch_flags): Handle SeparateAlias.
3738         * opth-gen.awk: Generate enumeration names for options marked
3739         SeparateAlias, but not for those marked Ignore.
3740         * opts-common.c (generate_canonical_option): Don't output separate
3741         argument for options marked CL_SEPARATE_ALIAS.
3742         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
3743         * opts.h (CL_SEPARATE_ALIAS): New.
3744         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3745         CL_COMMON): Adjust definitions.
3746         * config/i386/darwin.opt, config/mips/sde.opt: New.
3747         * common.opt (fdump-final-insns): New.
3748         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3749         i386/darwin.opt.
3750         (mips*-sde-elf*): Add mips/sde.opt.
3751         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
3752         -mno-data-in-code and -mcode-xonly here.
3753         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
3754         * gcc.c (option_map): Add "j" to --dump entry.
3755         (translate_options): Don't translate -d to -foutput-class-dir= here.
3756
3757 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
3758
3759         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
3760         DR_IS_WRITE.
3761         (compute_all_dependences): Same.
3762         (create_rdg_edge_for_ddr): Same.
3763         * tree-data-ref.h (DR_IS_WRITE): New.
3764         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
3765         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
3766         (write_memrefs_written_at_least_once): Same.
3767         * tree-predcom.c (suitable_component_p): Same.
3768         (determine_roots_comp): Same.
3769         (execute_load_motion): Same.
3770         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
3771         (vect_enhance_data_refs_alignment): Same.
3772         (vect_analyze_group_access): Same.
3773
3774 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
3775
3776         PR testsuite/42843
3777         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
3778         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
3779
3780 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
3781
3782         * dwarf2out.c (file scope): Remove #if0'd code.
3783         (gen_subprogram_die): Same.
3784
3785 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3786
3787         PR middle-end/45484
3788         * dwarf2out.c (flush_queued_reg_saves): Rename to...
3789         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
3790         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
3791         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
3792         * config/i386/i386.c (output_set_got): Call it.
3793
3794 2010-09-03  Michael Matz  <matz@suse.de>
3795
3796         PR middle-end/45415
3797         * tree-sra.c (sra_modify_assign): If we modify the statement,
3798         say so.
3799
3800         * tree-ssa.c (verify_ssa): Check number of operands and links
3801         per statement to agree.
3802
3803 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3804             Iain Sandoe  <iains@gcc.gnu.org>
3805
3806         PR target/45476
3807         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
3808         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
3809         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3810
3811 2010-09-03  Richard Guenther  <rguenther@suse.de>
3812
3813         * lto-streamer-out.c (output_function): Output function
3814         start and end loci.
3815         * lto-streamer-in.c (input_function): Input function start
3816         and end loci.
3817
3818 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3819
3820         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
3821         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
3822         * configure: Regenerate.
3823         * aclocal.m4: Regenerate.
3824
3825 2010-09-03  Jan Hubicka  <jh@suse.cz>
3826
3827         PR lto/44812
3828         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
3829         on functions/variables in other partition.
3830
3831 2010-09-03  Jan Hubicka  <jh@suse.cz>
3832
3833         * cgraph.h (struct varpool_node): Add const_value_known.
3834         (varpool_decide_const_value_known): Declare.
3835         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
3836         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
3837         (input_varpool_node): Restore const_value_known.
3838         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
3839         initializer folding.
3840         * ipa.c (ipa_discover_readonly_nonaddressable_var,
3841         function_and_variable_visibility): Compute const_value_known.
3842         * gimple-fold.c (get_symbol_constant_value): Use varpool for
3843         initializer folding.
3844         * varpool.c (varpool_decide_const_value_known): New function.
3845
3846 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3847
3848         * config/i386/i386.md: Remove empty preparation statements
3849         from splitters.
3850
3851 2010-09-03  Jan Hubicka  <jh@suse.cz>
3852
3853         * passes.c (rest_of_decl_compilation): Do not add local vars into
3854         varpool.
3855         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
3856         static or extern vars are in varpool.
3857         (varpool_finalize_decl): Sanity check that only static vars are
3858         finalized.
3859
3860 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3861
3862         PR debug/45500
3863         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
3864         not just generic vectors with BLKmode.
3865
3866 2010-09-03  Richard Guenther  <rguenther@suse.de>
3867
3868         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
3869         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
3870         * tree.h (TMR_SYMBOL): Remove.
3871         (TMR_BASE, TMR_OFFSET): Adjust.
3872         (TMR_INDEX2): New.
3873         * alias.c (ao_ref_from_mem): Use TMR_BASE.
3874         * builtins.c (get_object_alignment): Merge TMR_BASE and
3875         TMR_SYMBOL handling.
3876         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
3877         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
3878         handling.  Also allow TARGET_MEM_REF as base address.
3879         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
3880         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
3881         base.  Gimplify TMR_INDEX2.
3882         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
3883         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3884         (get_addr_base_and_unit_offset): Likewise.
3885         * tree-eh.c (tree_could_trap_p): Likewise.
3886         * tree-pretty-print.c (dump_generic_node): Likewise.
3887         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
3888         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
3889         base to index2.
3890         (get_address_description): Reconstruct addres description
3891         from merged TMR_BASE and TMR_INDEX2.
3892         (maybe_fold_tmr): Fold propagated addresses.
3893         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
3894         MEM_REF and TARGET_MEM_REF paths.
3895         (indirect_refs_may_alias_p): Likewise.
3896         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
3897         instead of TMR_SYMBOL.
3898         * tree-ssa-operands.c (get_tmr_operands): Simplify.
3899         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
3900         according to changes ...
3901         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
3902         Split TARGET_MEM_REF into two fields plus the base.
3903         * tree.c (mem_ref_offset): Simplify.
3904         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
3905         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
3906         Strip NOPs when folding MEM_REF addresses.
3907         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
3908         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
3909         (fold_gimple_assign): ... not here.
3910
3911 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
3912
3913         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
3914         * config/mips/mips.c (mips_shift_truncation_mask): New function.
3915         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3916
3917 2010-09-02  Richard Henderson  <rth@redhat.com>
3918
3919         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
3920         instead of readelf in the test.
3921         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
3922         in the .debug_frame section for coff targets.
3923         * configure: Rebuild.
3924
3925 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
3926
3927         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
3928         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
3929         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3930         (m32c_class_likely_spilled_p): Make static. Change argument type to
3931         reg_class_t. Change result type to bool.
3932
3933 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3934
3935         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
3936         to convert (double)(long) into a single FRIZ instruction or not
3937         when -ffast-math is used.
3938
3939         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
3940         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
3941         or FRIZ instruction if -ffast-math.
3942         * config/rs6000/rs6000.md (friz): Ditto.
3943
3944         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
3945
3946 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3947
3948         * opth-gen.awk (quote, comma): Remove unused variables.
3949
3950 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
3951
3952         * arm.c (arm_override_options): Correct fall-back code to use
3953         SUBTARGET_CPU_DEFAULT.
3954
3955 2010-09-02  Julian Brown  <julian@codesourcery.com>
3956
3957         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
3958         unspecs.
3959         (vcond<mode>, vcondu<mode>): New expanders.
3960         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
3961         comparisons with zero.
3962         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
3963         * config/arm/constraints.md (Dz): New constraint.
3964
3965 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
3966
3967         * target.def (class_likely_spilled_p): New hook.
3968         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
3969         * doc/tm.texi: Regenerate.
3970         * targhooks.c (default_class_likely_spilled_p): New function.
3971         * targhooks.h (default_class_likely_spilled_p): Declare.
3972         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
3973         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
3974         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
3975         Use fixed_reg_set instead of fixed_regs.
3976         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3977         * calls.c (avoid_likely_spilled_reg): Ditto.
3978         * ira-conflicts.c (ira_build_conflicts): Ditto.
3979         * ira.c (update_equiv_regs): Ditto.
3980         * mode-switching.c (create_pre_exit): Ditto.
3981         * regmove.c (find_matches): Ditto.
3982         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3983         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
3984         (small_register_class_p): New inline function.
3985         (push_secondary_reload, find_reusable_reload, find_reloads): Use
3986         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
3987
3988         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
3989         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
3990         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3991
3992 2010-09-02  Richard Guenther  <rguenther@suse.de>
3993
3994         PR tree-optimization/44937
3995         PR tree-optimization/45412
3996         * ipa-split.c (split_function): Properly remove PHI nodes.
3997
3998 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3999
4000         * opts.h (struct cl_option): Add warn_message field.
4001         (struct cl_decoded_option): Add warn_message field.
4002         * doc/options.texi (Ignore, Warn): Document.
4003         * opt-functions.awk (needs_state_p): Don't consider aliases or
4004         ignored options to need state saved.
4005         * optc-gen.awk: Handle Warn and Ignore.
4006         * opth-gen.awk: Output OPT_SPECIAL_ignore.
4007         * opts-common.c (decode_cmdline_option): Set warn_message field.
4008         Handle ignored options.
4009         (decode_cmdline_options_to_array, generate_option,
4010         generate_option_input_file): Set warn_message field.
4011         (read_cmdline_option): Generate warnings from warn_message field.
4012         Handle ignored options.
4013         * common.opt (Wunreachable-code, fargument-alias,
4014         fargument-noalias, fargument-noalias-global,
4015         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4016         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4017         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4018         ftree-salias): Mark Ignore.
4019         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4020         -mintel-syntax and -mno-intel-syntax here.
4021         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4022         using Warn.
4023         * opts.c (common_handle_option): Don't handle options marked as
4024         ignored.
4025         (enable_warning_as_error): Handle ignored options.
4026
4027 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4028
4029         PR driver/44076
4030         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4031         alias_target fields.
4032         * opt-functions.awk (opt_sanitized_name): Don't handle
4033         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4034         * optc-gen.awk: Generate alias fields.
4035         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4036         Don't generate such constants for aliases.
4037         * opts-common.c (generate_canonical_option): New.
4038         (decode_cmdline_option): Handle aliases.  Use
4039         generate_canonical_option for known options instead of copying the
4040         input option text.
4041         * doc/options.texi (Alias): Document.
4042         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4043         fstack-check, specs): Mark as aliases.
4044         * gcc.c (driver_handle_option): Canonicalize -L options to joined
4045         arguments.
4046         (driver_handle_option): Don't handle OPT_specs.
4047         * opts.c (common_handle_option): Don't handle options marked as
4048         aliases.
4049         (enable_warning_as_error): Handle aliases.
4050         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4051         OPT_Wlarger_than_eq.
4052         * tree-optimize.c (tree_rest_of_compilation): Use
4053         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4054
4055 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4056
4057         * config/i386/i386.md (nonmemory_operand): New mode attribute.
4058         (push memory peephole2): Macroize peepholes using SWI mode iterator.
4059         (move immediate to memory peephole2): Macroize peepholes using
4060         SWI124 mode iterator.
4061         (non-pairable NOT peephole2): Macroize peepholes using SWI124
4062         mode iterator.
4063         (simple lea add peephole2): Macroize peepholes using SWI48
4064         mode iterator.
4065         (simple lea mult peephole2): Ditto.
4066         (imul by 3,5,9 to lea peephole2): Ditto.
4067         (mov $-1, reg peephole2): Macroize peepholes using SWI248
4068         mode iterator.
4069         (imul $32bit_imm,mem,reg peephole2): Ditto.
4070         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4071
4072 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
4073
4074         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4075
4076 2010-09-02  Olivier Hainque  <hainque@adacore.com>
4077
4078         PR middle-end/44763
4079         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4080         (allocno_priority_compare_func): Use it instead of a straight
4081         difference computation over priorities.
4082
4083 2010-09-02  Andi Kleen  <ak@linux.intel.com>
4084
4085         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4086
4087 2010-09-02  Ira Rosen  <irar@il.ibm.com>
4088
4089         * tree-vectorizer.h (get_later_stmt): New function.
4090         (vect_analyze_data_ref_dependences): Add argument.
4091         * tree-vect-loop.c (vect_analyze_loop): Update call to
4092         vect_analyze_data_ref_dependences.
4093         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4094         New function.
4095         (vect_analyze_data_ref_dependence): Add argument for basic block
4096         dependencies. Check dependencies in basic block vectorization.
4097         (vect_analyze_data_ref_dependences): Add argument and update call to
4098         vect_analyze_data_ref_dependences.
4099         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4100         (vect_bb_vectorizable_with_dependencies): New.
4101         (vect_slp_analyze_bb): Check dependencies in basic block.
4102         (vect_schedule_slp_instance): Insert stores before the last store in
4103         SLP instance.
4104
4105 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4106
4107         PR target/45476
4108         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4109         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4110
4111 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
4112
4113         PR middle-end/45458
4114         * bb-reorder.c (add_labels_and_missing_jumps): Treat
4115         bbs ending with throwing insns like blocks ending with a call.
4116         (fix_up_fall_thru_edges): Likewise.
4117
4118 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
4119
4120         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4121         (m32c_function_arg_advance): Delete.
4122         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4123         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
4124         comments.  Take a const_tree and a bool.  Declare.
4125         (m32c_function_arg_advance): Likewise.
4126         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4127
4128 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4129
4130         PR target/45476
4131         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4132         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4133         * config/i386/mingw32.h: ... here.
4134
4135 2010-09-01  Andi Kleen  <ak@linux.intel.com>
4136
4137         PR lto/45475
4138         * lto-streamer-in.c (lto_input_ts_target_option): Add.
4139         (lto_input_tree_pointers): Call lto_input_ts_target_option.
4140         * lto-streamer-out (lto_output_ts_target_option): Add.
4141         (lto_output_tree_pointers): Call lto_output_ts_target_option.
4142
4143 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
4144
4145         PR/target 45452
4146         * config/i386/cygwin.h: Change order of specified import libraries.
4147         * config/i386/mingw32.h: Likewise.
4148         * config/i386/t-cygwin: Likewise.
4149         * config/i386/t-mingw32: Likewise.
4150         * config/i386/t-mingw-w32: Likewise.
4151         * config/i386/t-mingw-w64: Likewise.
4152
4153 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4154
4155         * config/arm/neon-schedgen.ml (core): New type.
4156         (allCores): List of supported cores.
4157         (availability_table): Add supported cores.
4158         (collate_bypasses): Accept core as a parameter.
4159         (worst_case_latencies_and_bypasses): Accept core as a parameter.
4160         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
4161         and coreStr to get tune attribute and prefix for functional units.
4162         (emit_bypasses): Accept core name and use it.
4163         (calculate_per_core_availability_table): New.
4164         (filter_core): New.
4165         (calculate_core_availability_table): New.
4166         (main): Use calculate_core_availablity_table.
4167         * config/arm/cortex-a8-neon.md: Update copyright year.
4168         Regenerated from ml file and merged in.
4169         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4170         cortex_a8_neon_mrc.
4171
4172 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
4173
4174         * Makefile.in (tree-switch-conversion.o): Update dependencies.
4175
4176 2010-09-01  Richard Guenther  <rguenther@suse.de>
4177
4178         * alias.c (ao_ref_from_mem): Adjust.
4179         * builtins.c (get_object_alignment): Likewise.
4180         * cfgexpand.c (expand_debug_expr): Likewise.
4181         * gimple.c (get_base_address): Likewise.
4182         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4183         (get_addr_base_and_unit_offset): Likewise.  Fix for
4184         both TMR_SYMBOL and TMR_BASE being set.
4185         * tree-eh.c (tree_could_trap_p): Likewise.
4186         * gimplify.c (gimplify_expr): Do not attempt to gimplify
4187         TMR_SYMBOL.  Always gimplify TMR_BASE.
4188         * tree-cfg.c (verify_types_in_gimple_reference): Verify
4189         TMR_BASE if there is a TMR_SYMBOL.
4190         * tree-pretty-print.c (dump_generic_node): Adjust.
4191         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4192         (tree_mem_ref_addr): Likewise.
4193         (create_mem_ref_raw): Likewise.
4194         (move_fixed_address_to_symbol): Likewise.
4195         (create_mem_ref): Likewise.
4196         (dump_mem_address): Likewise.
4197         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4198         Fix for both TMR_SYMBOL and TMR_BASE being set.
4199         (indirect_refs_may_alias_p): Likewise.
4200         * tree-ssa-operands.c (get_tmr_operands): Adjust.
4201         * tree.def (TARGET_MEM_REF): Adjust documentation.
4202
4203 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4204
4205         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4206         Rename from X86_TUNE_ADD_ESP_4.
4207         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4208         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4209         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4210         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4211         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4212         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4213         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4214         * config/i386/i386.c (initial_ix86_tune_features)
4215         <X86_TUNE_SINGLE_POP>: Invert members.
4216         <X86_TUNE_DOUBLE_POP>: Ditto.
4217         <X86_TUNE_SINGLE_PUSH>: Ditto.
4218         <X86_TUNE_DOUBLE_PUSH>: Ditto.
4219         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4220         No longer exported.
4221         (push peephole2 patterns): Macroize peepholes using P mode iterator.
4222         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4223         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4224         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4225
4226 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4227
4228         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4229         a volatile LHS if the constructor has only one element.
4230
4231 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
4232
4233         PR bootstrap/45321
4234         * tree.c (stdarg_p): Make fntype parameter const.
4235         * tree.h (stdarg_p): Likewise.
4236         (function_args_iterator): Remove unused fntype field.
4237         (function_args_iter_init): Do not initialize fntype
4238         field.  Make fntype parameter const.
4239
4240 2010-09-01  Richard Guenther  <rguenther@suse.de>
4241
4242         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4243         estimate.
4244         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4245         (execute_vrp): Compute number of iteration estimates.
4246         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4247         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4248         * tree-data-ref.c (estimated_loop_iterations): Adjust.
4249         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4250         Infer loop bounds from undefined behavior based on a new parameter.
4251         (estimate_numbers_of_iterations): Likewise.
4252         (scev_probably_wraps_p): Adjust.
4253         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4254
4255 2010-09-01  Nick Clifton  <nickc@redhat.com>
4256
4257         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4258         where appropriate.
4259         (xstormy16_legitimate_address_p): Use true and false instead of 1
4260         and 0.
4261         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4262         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4263         magic constant 2.
4264         (xstormy16_expand_call): Fix comment at start of function.
4265
4266 2010-09-01  Nick Clifton  <nickc@redhat.com>
4267
4268         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4269         when pushing accumulator register.
4270         (rx_get_stack_layout): Always save call clobbered registers inside
4271         interrupt handlers.
4272         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4273
4274 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4275
4276         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4277         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4278
4279         * libgcc-std.ver (GCC_4.6.0): Define version.
4280
4281 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4282
4283         * tree-nested.c (convert_all_function_calls): Iterate until after the
4284         sum of static chains in the nest doesn't change.
4285
4286 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
4287
4288         * config/m32c/m32c.c (classes_intersect): Remove.
4289         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4290         reg_classes_intersect_p instead of classes_intersect.
4291         (class_can_hold_mode): Change arguments type from enum reg_class to
4292         reg_class_t.  Use reg_class_contents instead of class_contents.
4293         (m32c_register_move_cost): Make static. Change arguments type from
4294         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4295         classes_intersect. Use reg_class_contents instead of class_contents.
4296         (m32c_memory_move_cost): Make static. Change arguments type from
4297         enum reg_class to reg_class_t.
4298         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4299         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4300         * config/m32c/m32c-protos.h (m32c_register_move_cost,
4301         m32c_memory_move_cost): Remove.
4302
4303 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4304
4305         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4306         (arm_function_arg): Delete.
4307         (arm_needs_doubleword_align): Take a const_tree.
4308         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4309         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4310         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4311         (arm_function_arg): Make static.  Take a const_tree and a bool.
4312         (arm_function_arg_advance): Likewise.
4313         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4314
4315 2010-08-31  Andi Kleen  <ak@linux.intel.com>
4316
4317         * common.opt (fwhopr=): Update for -fwhopr=jobserver
4318         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4319         * lto-wrapper.c (run_gcc): Add jobserver mode.
4320         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4321         argument.
4322
4323 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
4324
4325         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4326         (popsi1): Ditto.
4327         (*popdi1_epilogue): Ditto.
4328         (*popsi1_epilogue): Ditto.
4329         (popsi, popdi peephole2 patterns): Update peepholes for changed
4330         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4331
4332         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4333         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4334
4335         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4336         (override_options): Do not initialize removed ix86_gen_pop1.
4337         (gen_pop): New static function.
4338         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4339         (release_scratch_register_on_entry): Ditto.
4340         (ix86_restore_reg_using_pop): Ditto.
4341         (ix86_expand_epilogue): Ditto.
4342
4343 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
4344
4345         PR middle-end/45461
4346         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4347
4348 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4349
4350         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4351         semicolons.
4352
4353 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4354
4355         * doc/extend.texi: Fix documentation of the return value of
4356         __builtin_choose_expr.
4357
4358 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4359
4360         * config/v850/v850-protos.h (function_arg): Delete.
4361         * config/v850/v850.h (FUNCTION_ARG): Delete.
4362         (FUNCTION_ARG_ADVANCE): Move code to...
4363         * config/v850/v850.c (v850_function_arg_advance): ...here.
4364         (v850_function_arg): Make static.  Take a const_tree and a bool.
4365         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4366
4367 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4368
4369         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4370         these...
4371         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4372         ...and these...
4373         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4374         ..to here..
4375         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4376         ...and here.
4377         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4378
4379 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4380
4381         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4382         Delete.
4383         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4384         * config/rx/rx.c (rx_function_arg_size): Make static.
4385         (rx_function_arg): Likewise.
4386         (rx_function_arg_advance): New function.
4387         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4388
4389 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4390
4391         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4392         Fix indentation.
4393
4394 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4395
4396         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4397         (dwarf2out_decl) <CONST_DECL>: Likewise.
4398
4399 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4400
4401         Stack usage support
4402         * common.opt (-fstack-usage): New option.
4403         * doc/invoke.texi (Debugging options): Document it.
4404         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4405         allocate_dynamic_stack_space.
4406         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4407         and propagate it to allocate_dynamic_stack_space.
4408         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4409         * calls.c (initialize_argument_information): Pass TRUE as 4th
4410         argument to allocate_dynamic_stack_space.
4411         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4412         to 1 when pushing a variable-sized argument onto the stack.  Pass
4413         TRUE as 4th argument to allocate_dynamic_stack_space.
4414         Update current_function_pushed_stack_size.
4415         (emit_library_call_value_1): Likewise.
4416         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4417         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4418         attempt to find an upper bound.  Remove redundant code for the
4419         SETJMP_VIA_SAVE_AREA case.
4420         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4421         * function.h (struct stack_usage): New structure.
4422         (current_function_static_stack_size): New macro.
4423         (current_function_dynamic_stack_size): Likewise.
4424         (current_function_pushed_stack_size): Likewise.
4425         (current_function_dynamic_alloc_count): Likewise.
4426         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4427         (current_function_allocates_dynamic_stack_space): Likewise.
4428         (struct function): Add new field 'su'.
4429         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4430         add the value of the dynamic offset to the dynamic stack usage.
4431         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4432         for variable-sized objects.
4433         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4434         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4435         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4436         BUILT_IN_ALLOCA for variable-sized objects.
4437         * output.h (output_stack_usage): Declare.
4438         * toplev.c (stack_usage_file): New file pointer.
4439         (output_stack_usage): New function.
4440         (open_auxiliary_file): Likewise.
4441         (lang_dependent_init): Open file if flag_stack_usage is set.
4442         (finalize): Close file if stack_usage_file is not null.
4443         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4444         * config/alpha/alpha.c (compute_frame_size): New function.
4445         (alpha_expand_prologue): Use it.
4446         (alpha_start_function): Likewise.
4447         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4448         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4449         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4450         * config/mips/mips.c (mips_expand_prologue): Likewise.
4451         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4452         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4453         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4454
4455 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4456
4457         PR tree-optimization/45427
4458         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4459         Handle the case that the exit is never taken correctly.
4460         (number_of_iterations_ne): Pass exit_must_be_taken to
4461         number_of_iterations_ne_max.
4462
4463 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4464
4465         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4466         Infer -mdspr2 for the the 74K.
4467
4468 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4469
4470         PR debug/45419
4471         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4472
4473         PR middle-end/45423
4474         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4475         and TRUTH_{AND,OR,XOR}_EXPR.
4476         * c-parser.c (c_parser_omp_atomic): Handle boolean
4477         {PRE,POST}_{INC,DEC}REMENT.
4478
4479 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4480
4481         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4482         (function_arg): Delete.
4483         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4484         (FUNCTION_INCOMING_ARG): Delete.
4485         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4486         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4487         and a bool.
4488         (function_arg): Rename to...
4489         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4490         a bool.
4491         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4492         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4493         (TARGET_FUNCTION_INCOMING_ARG): Define.
4494
4495 2010-08-30  Richard Guenther  <rguenther@suse.de>
4496
4497         PR tree-optimization/21602
4498         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4499         using points-to information.
4500
4501 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4502
4503         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4504
4505 2010-08-30  Richard Guenther  <rguenther@suse.de>
4506
4507         PR tree-optimization/45449
4508         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4509         variables.
4510
4511 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4512
4513         * opts.h (CL_ERR_NEGATIVE): Define.
4514         * opts.c (unknown_option_callback): Don't postpone warnings for
4515         options marked with CL_ERR_NEGATIVE.
4516         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4517         for negative versions of CL_REJECT_NEGATIVE options.
4518
4519 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4520
4521         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4522         zero_extendsidi2_32.
4523         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4524         using SWI12 mode iterator.
4525         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4526         to define_insn_and_split pattern.
4527         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4528         using SWI24 mode iterator.
4529         (*zero_extendqi<mode>2_and): Macroize insn from
4530         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4531         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4532         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4533         SWI24 mode iterator.
4534         (*zero_extendqi<mode>2_movzbl): Ditto from
4535         *zero_extendqi{hi,si}2_movzbl.
4536         (extendsidi2_1): Rename from extendsidi2_32.
4537         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4538         SWI12 mode iterator.
4539
4540 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4541
4542         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4543         general purpose registers.
4544         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4545         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4546         with general purpose registers and memory operands.  Add associated
4547         CCImode post-reload splitter.
4548         * config/ia64/div.md: Change BImode to CCImode throughout.
4549
4550 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4551
4552         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4553
4554 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
4555
4556         * config/picochip/picochip.c (reorder_var_tracking_notes): This
4557         function was dropping debug insns which caused PR45299.
4558
4559 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
4560
4561         * config/i386/sse.md (extsuffix): New code attribute.
4562         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4563         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4564         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4565         and sse4_1_zero_extendv4qiv4si2.
4566         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4567         and sse4_1_zero_extendv2qiv2di2.
4568         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4569         and sse4_1_zero_extendv4hiv4si2.
4570         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4571         and sse4_1_zero_extendv2hiv2di2.
4572         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4573         and sse4_1_zero_extendv2siv2di2
4574
4575         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4576         using any_extend code iterator.
4577         (*avx_<s>mulv8hi3_highpart): Macroize insn from
4578         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4579         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4580
4581         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4582         gen_sse4_1_sign_extend* functions.
4583         (struct builtin_description bdesc_args): Ditto.
4584
4585 2010-08-27  Xinliang David Li  <davidxl@google.com>
4586
4587         PR/45422
4588         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4589         (iv_ca_set_no_cp): Update used inv expr count.
4590         (iv_ca_set_cp): Ditto.
4591         (iv_ca_new): Initialize new member.
4592         (iv_ca_free): Free memory.
4593
4594 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4595
4596         * config/sh/sh-protos.h (sh_function_arg): Delete.
4597         (sh_function_arg_advance): Delete.
4598         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4599         (PASS_IN_REG_P): Eliminate cast.
4600         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
4601         const_tree and a bool.
4602         (sh_function_arg): Likewise.
4603         (sh_output_mi_thunk): Call sh_function_arg_advance) and
4604         sh_function_arg.
4605         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4606
4607 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
4608             Kaz Kojima  <kkojima@gcc.gnu.org>
4609
4610         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4611         when possible.
4612         (sh_expand_epilogue): Likewise.
4613         * config/sh/sh.md (movml_push_banked): New insn.
4614         (movml_pop_banked): Likewise.
4615
4616 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
4617
4618         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4619         gen_regexp_oneof, gen_regexp_sequence): Use the string found
4620         in vector element 0 rather than the original string when there's
4621         only one element.
4622         (gen_regexp): Remove extra semicolon.
4623
4624         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4625         thumb2_movsf_vfp): Set attribute "insn".
4626         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4627         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4628         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4629         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4630         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4631         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4632         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4633         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4634         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4635         if_not_arith, if_arith_not, cond_move_not): Likewise.
4636
4637 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4638
4639         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4640         New declaration.
4641         (rs6000_allocate_stack_temp): Ditto.
4642         (rs6000_expand_convert_si_to_sfdf): Ditto.
4643
4644         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4645         line.  Update the options set if power6 or power7 server/embedded
4646         type options are used.  If we give a warning for no vsx under
4647         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4648         (rs6000_allocate_stack_temp): New function to allocate a stack
4649         tempoary and adjust the address so it meets either REG+OFFSET or
4650         REG+REG addressing requirements.
4651         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4652         that they can be used with the LFIWAX/LFIWZX instrucitons.
4653         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4654         converting signed/unsigned SImode to either SFmode/DFmode.
4655
4656         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4657         whether certain instructions can be generated.
4658         (TARGET_FCTIDZ): Ditto.
4659         (TARGET_STFIWX): Ditto.
4660         (TARGET_LFIWAX): Ditto.
4661         (TARGET_LFIWZX): Ditto.
4662         (TARGET_FCFIDS): Ditto.
4663         (TARGET_FCFIDU): Ditto.
4664         (TARGET_FCFIDUS): Ditto.
4665         (TARGET_FCTIDUZ): Ditto.
4666         (TARGET_FCTIWUZ): Ditto.
4667
4668         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4669         (UNSPEC_FCTID): Ditto.
4670         (UNSPEC_LFIWAX): Ditto.
4671         (UNSPEC_LFIWZX): Ditto.
4672         (UNSPEC_FCTIWUZ): Ditto.
4673         (rreg): Use correct constraints.
4674         (SI_CONVERT_FP): New mode attribute for floating point conversion
4675         tests.
4676         (E500_CONVERT): Ditto.
4677         (lfiwax): New insns for converting from integer to floating point
4678         utilizing newer instructions.  Attempt to optimize conversions
4679         that come from memory so that we don't load the value into a GPR,
4680         spill it to the stack and reload it into a FPR.
4681         (floatsi<mode>2_lfiwax): Ditto.
4682         (floatsi<mode>2_lfiwax_mem): Ditto.
4683         (floatsi<mode>2_lfiwax_mem2): Ditto.
4684         (lfiwzx): Ditto.
4685         (floatunssi<mode>2_lfiwzx): Ditto.
4686         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4687         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4688         (floatdidf2_mem): Ditto.
4689         (floatunsdidf2_fcfidu): Ditto.
4690         (floatunsdidf2_mem): Ditto.
4691         (floatunsdisf2): Ditto.
4692         (floatunsdisf2_fcfidus): Ditto.
4693         (floatunsdisf2_mem): Ditto.
4694         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4695         Use FCFID on 32-bit hosts that support it.
4696         (floatsidf2_internal): Ditto.
4697         (floatunssisf2): Ditto.
4698         (floatunssidf2): Ditto.
4699         (floatunssidf2_internal): Ditto.
4700         (floatsisf2): Ditto.
4701         (floatdidf2): Ditto.
4702         (floatdidf2_fpr): Ditto.
4703         (floatunsdidf2): Ditto.
4704         (floatdisf2): Ditto.
4705         (floatdisf2_fcfids): Ditto.
4706         (floatdisf2_internal1): Ditto.
4707         (fixuns_truncsfsi2): Delete, merge into common pattern for both
4708         SF/DF.  Add power7 support.
4709         (fix_truncsfsi2): Ditto.
4710         (fixuns_truncdfsi2): Ditto.
4711         (fixuns_truncdfdi2): Ditto.
4712         (fix_truncdfsi2): Ditto.
4713         (fix_truncdfsi2_internal): Ditto.
4714         (fix_truncdfsi2_internal_gfxopt): Ditto.
4715         (fix_truncdfsi2_mfpgpr): Ditto.
4716         (fctiwz): Ditto.
4717         (btruncdf2): Ditto.
4718         (btruncdf2_fpr): Ditto.
4719         (btructsf2): Ditto.
4720         (ceildf2): Ditto.
4721         (ceildf2_fpr): Ditto.
4722         (ceilsf2): Ditto.
4723         (floordf2): Ditto.
4724         (floordf2_fpr): Ditto.
4725         (floorsf2): Ditto.
4726         (rounddf2): Ditto.
4727         (rounddf2_fpr): Ditto.
4728         (roundsf2): Ditto.
4729         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
4730         (fix_trunc<mode>di2): Ditto.
4731         (fixuns_trunc<mode>si2): Ditto.
4732         (fixuns_trunc<mode>di2): Ditto.
4733         (fctiwz_<mode>): Ditto.
4734         (btrunc<mode>2): Ditto.
4735         (btrunc<mode>2_fpr): Ditto.
4736         (ceil<mode>2): Ditto.
4737         (ceil<mode>2_fpr): Ditto.
4738         (floor<mode>2): Ditto.
4739         (float<mode>2_fpr): Ditto.
4740         (round<mode>2): Ditto.
4741         (round<mode>2_fpr): Ditto.
4742         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
4743         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4744         (fix_truncdfsi2_internal): Ditto.
4745         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
4746         converted value on stack, loaded into GPR, and then stored into
4747         the final destination.
4748         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
4749         FCTIDZ.
4750         (lrint<mode>di2): New insn, provide the lrint builtin functions.
4751         (ftruncdf2): Delete, unused.
4752         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
4753
4754         * config/rs6000/vsx.md (toplevel): Update copyright year.
4755         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
4756         (VSr3): Ditto.
4757
4758 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
4759             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4760
4761         * gengtype.c (output_type_enum): Test the right union member.
4762
4763 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
4764
4765         PR target/41484
4766         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
4767         operands for operand 1.
4768         (sse4_1_extendv4qiv4si2): Ditto.
4769         (sse4_1_extendv2qiv2di2): Ditto.
4770         (sse4_1_extendv4hiv4si2): Ditto.
4771         (sse4_1_extendv2hiv2di2): Ditto.
4772         (sse4_1_extendv2siv2di2): Ditto.
4773         (sse4_1_zero_extendv8qiv8hi2): Ditto.
4774         (sse4_1_zero_extendv4qiv4si2): Ditto.
4775         (sse4_1_zero_extendv2qiv2di2): Ditto.
4776         (sse4_1_zero_extendv4hiv4si2): Ditto.
4777         (sse4_1_zero_extendv2hiv2di2): Ditto.
4778         (sse4_1_zero_extendv2siv2di2): Ditto.
4779         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
4780         (*sse4_1_extendv4qiv4si2): Ditto.
4781         (*sse4_1_extendv2qiv2di2): Ditto.
4782         (*sse4_1_extendv4hiv4si2): Ditto.
4783         (*sse4_1_extendv2hiv2di2): Ditto.
4784         (*sse4_1_extendv2siv2di2): Ditto.
4785         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
4786         (*sse4_1_zero_extendv4qiv4si2): Ditto.
4787         (*sse4_1_zero_extendv2qiv2di2): Ditto.
4788         (*sse4_1_zero_extendv4hiv4si2): Ditto.
4789         (*sse4_1_zero_extendv2hiv2di2): Ditto.
4790         (*sse4_1_zero_extendv2siv2di2): Ditto.
4791
4792 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4793
4794         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
4795         (mips_function_arg): Delete.
4796         (mips_function_arg_boundary): Take a const_tree.
4797         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
4798         (mips_arg_info): Likewise.
4799         (mips_setup_incoming_varargs): Call mips_function_arg_advance
4800         instead of FUNCTION_ARG_ADVANCE.
4801         (mips_function_arg_advance): Adjust prototype.  Make static.
4802         (mips_function_arg): Likewise.
4803         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4804         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4805
4806 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4807
4808         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4809         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
4810         (function_arg): Delete.
4811         (function_arg_boundary): Take a const_tree.
4812         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
4813         (rs6000_spe_function_arg): Likewise.
4814         (rs6000_parm_start): Likewise.
4815         (rs6000_arg_size): Likewise.
4816         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
4817         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
4818         (rs6000_mixed_function_arg): Likewise.
4819         (function_arg): Rename to...
4820         (rs6000_function_arg): ...this.
4821         (function_arg_advance): Rename to...
4822         (rs6000_function_arg_advance_1): ...this
4823         (rs6000_function_arg_advance): New function.  Call it.
4824         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
4825         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
4826         (rs6000_function_value): Likewise.
4827         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4828
4829 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4830
4831         * config/arm/arm.md (enabled): Test the value of arch_enabled
4832         rather than just using it.
4833
4834 2010-08-27  Olivier Hainque  <hainque@adacore.com>
4835             Eric Botcazou  <ebotcazou@adacore.com>
4836
4837         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
4838         cover all the possible offsets from this base.
4839         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
4840
4841 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
4842
4843         PR tree-optimization/44485
4844         * calls.c (flags_from_decl_or_type): For const or pure
4845         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
4846         together with ECF_CONST resp. ECF_PURE.
4847         * builtins.c (expand_builtin): Use flags_from_decl_or_type
4848         instead of querying flags directly.
4849         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
4850         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
4851
4852 2010-08-26  Richard Guenther  <rguenther@suse.de>
4853
4854         PR tree-optimization/45255
4855         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
4856         and externals are also invariant.
4857
4858 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4859
4860         PR rtl-optimization/44858
4861         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
4862         newi2pat, make sure they don't affect newpat.
4863
4864         PR rtl-optimization/45400
4865         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
4866         SUBREG_REG if both modes are of MODE_INT class.
4867
4868 2010-08-25  Julian Brown  <julian@codesourcery.com>
4869
4870         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
4871         * config/arm/arm.md (generic_sched): No for Cortex-A5.
4872         (generic_vfp): Likewise.
4873         (cortex-a5.md): Include.
4874         * config/arm/cortex-a5.md: New.
4875
4876 2010-08-25  Richard Guenther  <rguenther@suse.de>
4877
4878         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
4879         * gimple.c (gimple_get_alias_set): Remove special handling
4880         for pointers.
4881
4882 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4883
4884         PR middle-end/45355
4885         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
4886         dead_or_set_p when computing i0_feeds_i2_n.
4887
4888         * combine.c (find_split_point): Undo canonicalization of multiply-add
4889         to (minus x (mult)) when it seems likely that this will increase the
4890         chances of a split.
4891
4892 2010-08-25  Richard Guenther  <rguenther@suse.de>
4893
4894         PR lto/44562
4895         * lto-streamer.c (lto_record_common_node): Do not mess with
4896         TYPE_CANONICAL when not in lto.
4897         * gimple.c (gimple_register_type): Likewise.
4898
4899 2010-08-25  Richard Guenther  <rguenther@suse.de>
4900
4901         PR tree-optimization/45316
4902         * tree-ssa-pre.c (eliminate): Properly clean EH info.
4903
4904 2010-08-25  Richard Guenther  <rguenther@suse.de>
4905
4906         PR tree-optimization/45393
4907         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
4908         and clean EH info.  Avoid SSA update.
4909         (execute_cse_sincos): Cleanup the CFG if it has changed.
4910
4911 2010-08-25  Richard Guenther  <rguenther@suse.de>
4912
4913         PR middle-end/45379
4914         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
4915         TARGET_MEM_REF in alignment computation.
4916
4917 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4918
4919         PR tree-optimization/45059
4920         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
4921         type conversions from newop{1,2}.  Assert t is a comparison and
4922         newop{1,2} after the stripping are gimple vals.
4923
4924 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
4925
4926         * config/arm/iterators.md (VU, SE, V_widen_l): New.
4927         (V_unpack, US): New.
4928         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
4929         (vec_unpack<US>_lo_<mode>): Likewise.
4930         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
4931         (neon_vec_unpack<US>_lo_<mode>): Likewise.
4932         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
4933         (vec_widen_<US>mult_hi_<mode>): Likewise.
4934         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
4935         (neon_vec_<US>mult_hi_<mode>"): Likewise.
4936         (neon_unpack<US>_<mode>): Widening move intermediate step for
4937         vectorizing without -mvectorize-with-neon-quad.
4938         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
4939         for vectorizing without -mvectorize-with-neon-quad.
4940         * config/arm/predicates.md (vect_par_constant_high): Check for
4941         high-half lanes of a vector.
4942         (vect_par_constant_low): Check for low-half lanes of a vector.
4943
4944 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4945
4946         * tree-if-conv.c (struct ifc_dr): New.
4947         (IFC_DR): New.
4948         (DR_WRITTEN_AT_LEAST_ONCE): New.
4949         (DR_RW_UNCONDITIONALLY): New.
4950         (memref_read_or_written_unconditionally): Use the cached values
4951         when possible.
4952         (write_memref_written_at_least_once): Same.
4953         (if_convertible_loop_p): Initialize and free DR->aux fields.
4954
4955 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4956
4957         * gimple.c (gimple_could_trap_p_1): Not static anymore.
4958         Pass an extra bool parameter include_mem.
4959         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
4960         (gimple_assign_rhs_could_trap_p): Same.
4961         * gimple.h (gimple_could_trap_p_1): Declared.
4962         * tree-data-ref.h (same_data_refs_base_objects): New.
4963         (same_data_refs): New.
4964         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
4965         (write_memrefs_written_at_least_once): New.
4966         (ifcvt_memrefs_wont_trap): New.
4967         (operations_could_trap): New.
4968         (ifcvt_could_trap_p): New.
4969         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
4970         Gets a vector of data refs.
4971         (if_convertible_stmt_p): Same.
4972         (if_convertible_loop_p_1): New.
4973         (if_convertible_loop_p): Call if_convertible_loop_p_1.
4974
4975 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4976
4977         * common.opt (ftree-loop-if-convert-stores): New flag.
4978         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
4979         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
4980         the created statement before GSI.
4981         (if_convertible_phi_p): Allow virtual phi nodes when
4982         flag_loop_if_convert_stores is set.
4983         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
4984         Do not handle types that do not match is_gimple_reg_type.
4985         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
4986         when flag_loop_if_convert_stores is set, as LHS can contain
4987         memory refs.
4988         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
4989         to if_convertible_gimple_assign_stmt_p.
4990         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
4991         (replace_phi_with_cond_gimple_assign_stmt): Renamed
4992         predicate_scalar_phi.  Do not handle virtual phi nodes.
4993         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
4994         Call predicate_scalar_phi.
4995         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
4996         just after the labels for flag_loop_if_convert_stores, otherwise
4997         insert the predicate in the end of the BB.
4998         (predicate_mem_writes): New.
4999         (combine_blocks): Call predicate_all_scalar_phis.  When
5000         flag_loop_if_convert_stores is set, call predicate_mem_writes.
5001         (tree_if_conversion): Call mark_sym_for_renaming when
5002         flag_loop_if_convert_stores is set.
5003         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5004         flag_loop_if_convert_stores is set.
5005
5006 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
5007
5008         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5009         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5010         (pa_function_value): Make static.
5011         (override_options): Rename to...
5012         (pa_option_override): ...this. Make static.
5013         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5014         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5015         TARGET_OPTION_OVERRIDE): Define.
5016         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5017         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5018         Remove.
5019         * config/pa/pa-protos.h (override_options): Remove.
5020
5021 2010-08-24  Richard Guenther  <rguenther@suse.de>
5022
5023         PR middle-end/45379
5024         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5025         if addr->index is NULL or zero.
5026         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5027         TARGET_MEM_REF more properly.
5028         (indirect_ref_may_alias_decl_p): Likewise.
5029         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5030         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5031
5032 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
5033
5034         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5035         (m32c_override_options): Rename to...
5036         (m32c_option_override): ...this. Make static.
5037         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5038         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5039         Remove.
5040         * config/m32c/m32c-protos.h (m32c_override_options,
5041         m32c_function_value_regno_p): Remove.
5042
5043 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5044
5045         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5046         Fix a typo in a previous commit.
5047
5048 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
5049
5050         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5051         Pre-initialize innerloop_iters to one.
5052
5053 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5054
5055         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5056         existing static function global.
5057
5058         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5059         is changed to global.
5060
5061         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5062         may_be_nonaddressable_p on base, and don't collect this reference
5063         if the address of the base could not be taken.
5064
5065 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5066
5067         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5068         enable the compiler to autovectorize mathmetical functions for
5069         power7 using the Mathematical Acceleration Subsystem library.
5070
5071         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5072         handle which vector math library we have.
5073         (rs6000_override_options): Add -mveclibabi=mass support.
5074         (rs6000_builtin_vectorized_libmass): New function to handle auto
5075         vectorizing math functions that are in the MASS library.
5076         (rs6000_builtin_vectorized_function): Call it.
5077
5078         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5079         -mveclibabi=mass.
5080
5081 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5082
5083         PR boehm-gc/34544
5084         * gthr-posix.h (__gthread_active_init): Delete.
5085         (__gthread_active_p): Do activity check here.
5086         Don't include errno.h on hppa-hpux.  Update comment.
5087         * gthr-posix95.h (__gthread_active_init): Delete.
5088         (__gthread_active_p): Do activity check here.
5089         Don't include errno.h on hppa-hpux.  Update comment.
5090         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5091         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5092         add -lpthread when -mt or -pthread is specified.
5093         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5094         (LINK_GCC_C_SEQUENCE_SPEC): Define.
5095         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5096         (stublib.c, pthread_default_stacksize_np-stub.o,
5097         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5098         $(T)libgcc_stub.a): Add methods.
5099         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5100         (stublib.c, pthread_default_stacksize_np-stub.o,
5101         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5102         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5103         pthread_mutex_unlock): New stubs.
5104
5105 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
5106
5107         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5108         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5109         options.
5110         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5111         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5112         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5113         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5114         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5115         "-l".
5116         * cppspec.c: Include opts.h.
5117         (lang_specific_driver): Use cl_decoded_option structures.
5118         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5119         * doc/tm.texi: Regenerate.
5120         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5121         (driver_handle_option): Allow driver options needing no special
5122         processing.
5123         (process_command): Decode options before call to
5124         lang_specific_driver.  Pass decoded options to
5125         lang_specific_driver.
5126         * gcc.h (lang_specific_driver): Update prototype.
5127         * gccspec.c: Include opts.h.
5128         (lang_specific_driver): Use cl_decoded_option structures.
5129         * opts-common.c (option_ok_for_language, generate_option,
5130         generate_option_input_file): New.
5131         (decode_cmdline_option): Use option_ok_for_language.
5132         (decode_cmdline_options_to_array): Use generate_option_input_file.
5133         (handle_generated_option): Use generate_option.
5134         * opts.h (generate_option, generate_option_input_file): Declare.
5135
5136 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
5137
5138         * config/mips/mips.c (mips_override_options): Rename to...
5139         (mips_option_override): ...this. Make static.
5140         (TARGET_OPTION_OVERRIDE): Define.
5141         (mips_in_small_data_p): Update comment.
5142         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5143         (FIXED_REGISTERS): Update comment.
5144         * config/mips/mips-protos.h (mips_override_options): Remove.
5145
5146 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5147
5148         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5149
5150 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5151
5152         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5153         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5154
5155 2010-08-20  Jan Hubicka  <jh@suse.cz>
5156
5157         * tree-pass.h (pass_ipa_cdtor_merge): New function.
5158         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5159         heap allocated.
5160         (record_cdtor_fn): Move to ipa.c; do not test for
5161         have_ctors_dtors.
5162         (build_cdtor): Move to ipa.c; add code avoiding construction
5163         when target have ctors/dtors and there is only one ctor/dtor at given
5164         priority.
5165         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5166         sort; reverse order of constructors.
5167         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5168         (cgraph_finalize_function): Do not call record_cdtor_fn.
5169         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5170         (cgraph_build_static_cdtor): Move to ipa.c.
5171         * ipa.c: Include target.h and tree-iterator.h.
5172         (cgraph_build_static_cdtor, static_ctors, static_dtors,
5173         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5174         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5175         pass_ipa_cdtor_merge): New.
5176         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5177         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5178         bounds access.
5179
5180 2010-08-20  Jan Hubicka  <jh@suse.cz>
5181
5182         PR c++/45307
5183         PR c++/17736
5184         * cgraph.h (cgraph_only_called_directly_p,
5185         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5186         static cdtors.
5187         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5188         are not needed.
5189         (cgraph_finalize_function): Static cdtors are reachable.
5190         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5191
5192 2010-08-20  Jan Hubicka  <jh@suse.cz>
5193
5194         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5195         flag_wpa.
5196         * lto-streamer-out.c (lto_output): Likewise.
5197         * passes.c (ipa_write_optimization_summaries): Initialize statement
5198         uids.
5199
5200 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5201
5202         * tree.h (alias_diag_flags): New enum.
5203         (alias_pair): Add an 'emitted_diags' field.
5204         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5205         (assemble_alias): Initialize emitted_diags of new pairs.
5206
5207 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
5208
5209         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5210         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5211         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5212         (STACK_CHECK_PROTECT): Define.
5213         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5214         (output_probe_stack_range): Likewise.
5215         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5216         builtin stack checking is enabled.
5217         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5218         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5219         (probe_stack_range): New insn.
5220
5221 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5222
5223         PR target/45336
5224         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5225         short first.
5226
5227         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5228         char first.
5229
5230 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5231
5232         PR target/45336
5233         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5234         to cover zero extension into 64-bit register.
5235         (*sse2_pextrw): Likewise.
5236         (*sse4_1_pextrd_zext): New insn.
5237
5238 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5239
5240         revert r163410, partially revert r163267.
5241         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5242         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5243         Darwin versions.
5244
5245 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5246
5247         PR middle-end/44974
5248         * builtins.c (expand_builtin): Don't optimize away
5249         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5250
5251 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
5252
5253         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5254         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5255         alternative 1 of operand 2.
5256
5257 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5258             Paolo Bonzini  <bonzini@gnu.org>
5259
5260         * simplify-rtx.c (simplify_unary_operation_1): Optimize
5261         (sign_extend (zero_extend (...)) and
5262         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5263
5264 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5265
5266         PR rtl-optimization/45353
5267         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5268         after bb_note is a BARRIER.
5269
5270 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5271
5272         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5273         linking libgcc.a.
5274
5275 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5276             Michael Matz  <matz@suse.de>
5277
5278         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5279
5280 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5281
5282         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5283         (ggc_mark_roots): ...here.
5284
5285 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5286
5287         * vec.h (FOR_EACH_VEC_ELT): Define.
5288         * c-decl.c: Use it.
5289         * cfgloop.c: Likewise.
5290         * cfgloopmanip.c: Likewise.
5291         * cgraph.c: Likewise.
5292         * cgraphunit.c: Likewise.
5293         * combine.c: Likewise.
5294         * config/bfin/bfin.c: Likewise.
5295         * config/mips/mips.c: Likewise.
5296         * config/rs6000/rs6000.c: Likewise.
5297         * dbxout.c: Likewise.
5298         * df-scan.c: Likewise.
5299         * dominance.c: Likewise.
5300         * dse.c: Likewise.
5301         * dwarf2out.c: Likewise.
5302         * except.c: Likewise.
5303         * expr.c: Likewise.
5304         * function.c: Likewise.
5305         * gcse.c: Likewise.
5306         * genattr.c: Likewise.
5307         * ggc-common.c: Likewise.
5308         * gimplify.c: Likewise.
5309         * graphite-blocking.c: Likewise.
5310         * graphite-clast-to-gimple.c: Likewise.
5311         * graphite-dependences.c: Likewise.
5312         * graphite-interchange.c: Likewise.
5313         * graphite-poly.c: Likewise.
5314         * graphite-scop-detection.c: Likewise.
5315         * graphite-sese-to-poly.c: Likewise.
5316         * graphite.c: Likewise.
5317         * haifa-sched.c: Likewise.
5318         * ifcvt.c: Likewise.
5319         * implicit-zee.c: Likewise.
5320         * ipa-prop.c: Likewise.
5321         * ipa-struct-reorg.c: Likewise.
5322         * ipa.c: Likewise.
5323         * ira-build.c: Likewise.
5324         * ira-color.c: Likewise.
5325         * ira-emit.c: Likewise.
5326         * lambda-code.c: Likewise.
5327         * loop-invariant.c: Likewise.
5328         * loop-unroll.c: Likewise.
5329         * lower-subreg.c: Likewise.
5330         * lto-cgraph.c: Likewise.
5331         * lto-opts.c: Likewise.
5332         * lto-streamer-in.c: Likewise.
5333         * lto-streamer-out.c: Likewise.
5334         * lto-streamer.c: Likewise.
5335         * lto-symtab.c: Likewise.
5336         * matrix-reorg.c: Likewise.
5337         * opts.c: Likewise.
5338         * predict.c: Likewise.
5339         * print-tree.c: Likewise.
5340         * sdbout.c: Likewise.
5341         * sel-sched-dump.c: Likewise.
5342         * sel-sched-ir.c: Likewise.
5343         * sel-sched.c: Likewise.
5344         * sese.c: Likewise.
5345         * stor-layout.c: Likewise.
5346         * tree-cfg.c: Likewise.
5347         * tree-cfgcleanup.c: Likewise.
5348         * tree-chrec.c: Likewise.
5349         * tree-data-ref.c: Likewise.
5350         * tree-emutls.c: Likewise.
5351         * tree-inline.c: Likewise.
5352         * tree-into-ssa.c: Likewise.
5353         * tree-loop-distribution.c: Likewise.
5354         * tree-loop-linear.c: Likewise.
5355         * tree-mudflap.c: Likewise.
5356         * tree-outof-ssa.c: Likewise.
5357         * tree-parloops.c: Likewise.
5358         * tree-predcom.c: Likewise.
5359         * tree-pretty-print.c: Likewise.
5360         * tree-scalar-evolution.c: Likewise.
5361         * tree-ssa-live.c: Likewise.
5362         * tree-ssa-loop-im.c: Likewise.
5363         * tree-ssa-loop-ivcanon.c: Likewise.
5364         * tree-ssa-loop-ivopts.c: Likewise.
5365         * tree-ssa-loop-manip.c: Likewise.
5366         * tree-ssa-loop-niter.c: Likewise.
5367         * tree-ssa-loop-prefetch.c: Likewise.
5368         * tree-ssa-phiprop.c: Likewise.
5369         * tree-ssa-pre.c: Likewise.
5370         * tree-ssa-reassoc.c: Likewise.
5371         * tree-ssa-sccvn.c: Likewise.
5372         * tree-ssa-structalias.c: Likewise.
5373         * tree-ssa.c: Likewise.
5374         * tree-vect-data-refs.c: Likewise.
5375         * tree-vect-loop-manip.c: Likewise.
5376         * tree-vect-loop.c: Likewise.
5377         * tree-vect-patterns.c: Likewise.
5378         * tree-vect-slp.c: Likewise.
5379         * tree-vect-stmts.c: Likewise.
5380         * tree-vrp.c: Likewise.
5381         * tree.c: Likewise.
5382         * value-prof.c: Likewise.
5383         * var-tracking.c: Likewise.
5384         * varasm.c: Likewise.
5385         * vmsdbgout.c: Likewise.
5386
5387 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5388             Richard Guenther  <richard.guenther@gmail.com>
5389
5390         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5391         copy the src value and return a copy.
5392         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5393         (C++ Volatiles): Adjust to describe C++ semantics only.
5394
5395 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5396
5397         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5398         be zero or nonzero.
5399         * doc/tm.texi: Regenerate.
5400         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5401         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5402         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5403         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5404         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5405         to 1.
5406
5407 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5408
5409         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5410         an extra nop past a sibling call at the very end.
5411
5412 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5413
5414         PR bootstrap/45350
5415         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5416         a comment.
5417
5418 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5419
5420         * target.def (function_arg, function_incoming_arg): Remove const
5421         qualifier on CUMULATIVE_ARGS parameter.
5422         * targhooks.h (default_function_arg, default_function_incoming_arg):
5423         Likewise.
5424         * targhooks.c (default_function_arg, default_function_incoming_arg):
5425         Likewise.
5426         * config/i386/i386.c (ix86_function_arg): Likewise.
5427
5428 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5429
5430         PR target/45336
5431         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5432         SIGN_EXTENDs or ZERO_EXTENDs.
5433
5434 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5435
5436         PR target/42172
5437         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5438         Take its cost into account if nonnull.
5439         (insn_a_feeds_b): New static function.
5440         (combine_instructions): Look for four-insn combinations.
5441         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5442         them into account when computing all_adjacent and looking for other
5443         uses.
5444         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5445         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5446         (try_combine): New arg I0.  Handle four-insn combinations.
5447         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5448         like ELIM_I1.
5449
5450 2010-08-19  Jason Merrill  <jason@redhat.com>
5451
5452         PR c++/45307
5453         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5454         if ctor is empty.
5455         (gimplify_modify_expr_rhs): Adjust.
5456
5457 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5458
5459         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5460         bitmap_bit_p.
5461         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5462         * dominance.c (iterate_fix_dominators): Likewise.
5463         * dse.c (set_usage_bits): Likewise.
5464         (set_position_unneeded, record_store): Likewise.
5465         * gimple-fold.c (get_maxval_strlen): Likewise.
5466         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5467         * ipa-inline.c (update_caller_keys): Likewise.
5468         * ipa-split.c (verify_non_ssa_vars): Likewise.
5469         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5470         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5471         (close_addressof_down): Likewise.
5472         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5473         (setup_allocno_left_conflicts_size): Likewise.
5474         (ira_reassign_conflict_allocnos): Likewise.
5475         (ira_reassign_pseudos): Likewise.
5476         * ira-emit.c (change_loop): Likewise.
5477         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5478         * lto-streamer-out.c (write_symbol): Likewise.
5479         * predict.c (expr_expected_value_1): Likewise.
5480         * regstat.c (regstat_bb_compute_ri): Likewise.
5481         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5482         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5483         * stmt.c (expand_case): Likewise.
5484         * tree-eh.c (emit_eh_dispatch): Likewise.
5485         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5486         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5487         Likewise.
5488         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5489         (rdg_build_components): Likewise.
5490         * tree-object-size.c (collect_object_sizes_for): Likewise.
5491         * tree-sra.c (convert_callers): Likewise.
5492         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5493         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5494         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5495
5496 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5497
5498         * config/i386/i386.md (*lea_1): Use P mode iterator.
5499         (lea add splitter): Also handle DImode operands.
5500         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5501         predicate.  Do not use ix86_lea_for_add_ok.
5502         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5503         (lea ashift splitter): Also handle DImode operands.
5504         (DImode lea ashift splitter): Remove splitter.
5505
5506 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5507
5508         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5509         ix86_binary_operator_ok.
5510
5511 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5512
5513         PR rtl-optimization/44691
5514         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5515         is not a register.
5516
5517 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5518
5519         PR target/45070
5520         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5521          value of size 1-3 is handled correctly.
5522
5523 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5524
5525         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5526         type for the conditional has wide enough range.
5527
5528 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5529
5530         PR target/45327
5531         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5532         ix86_binary_operator_ok.
5533
5534 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5535
5536         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5537         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5538         code to output insn mnemonic.  Fix comment.
5539         (*addsi_1_zext): Add r-r-0 alternative 1.
5540         <TYPE_LEA>: Split insn to lea.
5541         <default>: Handle alternative 1.
5542         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5543         multi-level if_then_else RTX to set "type" attribute.
5544         <default>: Handle alternative 2.
5545         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5546         Use cond RTX instead of multi-level if_then_else RTX to set
5547         "type" attribute.
5548         <default>: Handle alternatives 2 and 4.
5549         (lea splitters): Update calls to ix86_lea_for_add_ok.
5550
5551         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5552         argument.
5553         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5554
5555 2010-08-18  Richard Guenther  <rguenther@suse.de>
5556
5557         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5558         use operand helpers.
5559
5560 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
5561
5562         PR middle-end/45292
5563         * optabs.c (expand_bool_compare_and_swap): Expand pending
5564         pops before trying the optab.
5565
5566 2010-08-18  Yao Qi  <yao@codesourcery.com>
5567
5568         PR target/45094
5569         * config/arm/arm.c (output_move_double): Fix typo generating
5570         instructions ('ldr'->'str').
5571
5572 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5573
5574         PR rtl-optimization/42575
5575         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5576         live ranges.
5577
5578 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5579
5580         * config/arm/arm-protos.h (arm_expand_sync): New.
5581         (arm_output_memory_barrier, arm_output_sync_insn): New.
5582         (arm_sync_loop_insns): New.
5583         * config/arm/arm.c (FL_ARCH7): New.
5584         (FL_FOR_ARCH7): Include FL_ARCH7.
5585         (arm_arch7): New.
5586         (arm_print_operand): Support %C markup.
5587         (arm_legitimize_sync_memory): New.
5588         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5589         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5590         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5591         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5592         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5593         (arm_process_output_sync_insn, arm_output_sync_insn): New.
5594         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5595         * config/arm/arm.h (struct arm_sync_generator): New.
5596         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5597         (TARGET_HAVE_MEMORY_BARRIER): New.
5598         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5599         * config/arm/arm.md: Include sync.md.
5600         (UNSPEC_MEMORY_BARRIER): New.
5601         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5602         (VUNSPEC_SYNC_OP):New.
5603         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5604         (sync_result, sync_memory, sync_required_value): New attributes.
5605         (sync_new_value, sync_t1, sync_t2): Likewise.
5606         (sync_release_barrier, sync_op): Likewise.
5607         (length): Add logic to length attribute defintion to call
5608         arm_sync_loop_insns when appropriate.
5609         * config/arm/sync.md: New file.
5610
5611 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5612
5613         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5614         ENABLE_TREE_CHECKING.
5615         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5616         and GCC >= 4.3.
5617
5618 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5619
5620         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5621         or optimizing for size, always avoid lea if possible.
5622
5623         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5624
5625 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
5626
5627         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5628         Dunmmy function with NULL return unless the target is
5629         OSX >= 10.6 (Darwin10).
5630
5631 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
5632
5633         * gcc.c (spec_function): Add remove-outfile.
5634         (remove_outfile_spec_function): New function.
5635         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5636         * invoke.texi (replace-outfile): Document.
5637
5638 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
5639
5640         PR target/45296
5641         * reginfo.c (globalize_reg): Reject stack registers.
5642
5643 2010-08-17  Richard Guenther  <rguenther@suse.de>
5644
5645         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5646         list of conditional equivalences.
5647         (free_all_edge_infos): Adjust.
5648         (record_equivalences_from_incoming_edge): Likewise.
5649         (record_cond): Likewise.
5650         (build_and_record_new_cond): Likewise.
5651         (record_conditions): Likewise.
5652         (dom_opt_leave_block): Likewise.
5653
5654 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
5655
5656         * doc/invoke.texi (ms-extension): Add documentation.
5657
5658 2010-08-17  Richard Guenther  <rguenther@suse.de>
5659
5660         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5661
5662 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
5663
5664         PR c/40563
5665         * c-decl.c (diagnose_uninitialized_cst_member): New function.
5666         (finish_decl): Use it to issue a -Wc++-compat warning about
5667         uninitialized const field in struct or union.
5668
5669         (finish_struct): Use strip_array_types.
5670
5671 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5672
5673         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5674         functions.
5675         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5676         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
5677         call block_nreverse here.
5678         (blocks_nreverse): Rename decl temporary to block.
5679
5680 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
5681
5682         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5683         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5684         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5685         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5686         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5687         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5688         thumb2_iorsi3): Delete.
5689         (orsi_notsi_si): No longer a named pattern.
5690         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5691         * config/arm/predicates.md (shift_amount_operand): New.
5692         (mult_operator): New.
5693         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5694         attr enabled): New.
5695         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
5696         arch matches t2.
5697         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
5698         (not_shiftsi_compare0): Likewise, renamed from
5699         arm_notsi_shiftsi_compare0.
5700         (not_shiftsi_compare0_scratch): Likweise, renamed from
5701         arm_notsi_shiftsi_compare0_scratch.
5702         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5703         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5704         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
5705         so that the register alternative is disabled when the shift_operator
5706         is MULT.  Use "M" as the constraint for constants.
5707         (arith_shiftsi splitter): Enable for TARGET_32BIT.
5708         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
5709         constraint for constants.
5710         (arith_shiftsi_compare0_scratch): Likewise.
5711         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5712         Handle Thumb2 alternative.
5713
5714 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * doc/options.texi (NoDriverArg): Document.
5717         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5718         -MDX and -MMDX.
5719         * opt-functions.awk (switch_flags): Handle NoDriverArg.
5720         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
5721         marking for CL_NO_DRIVER_ARG options when in the driver.
5722         * opts.h (CL_NO_DRIVER_ARG): Define.
5723         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5724         CL_COMMON): Update values.
5725
5726 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5727
5728         * common.opt: Add driver options.
5729         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
5730         * doc/options.texi (Driver, RejectDriver): Document.
5731         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
5732         print_prog_name, print_multi_directory, print_sysroot,
5733         print_multi_os_directory, print_multi_lib,
5734         print_sysroot_headers_suffix, report_times, combine_flag,
5735         use_pipes, wrapper_string): Remove.
5736         (save_switch, driver_unknown_option_callback,
5737         driver_wrong_lang_callback, driver_post_handling_callback,
5738         driver_handle_option): New.
5739         (spec_lang, last_language_n_infiles): Make file-scope static
5740         instead of local to process_command.
5741         (process_command): Use decode_cmdline_options_to_array and
5742         read_cmdline_option for option processing.  Compute have_c in
5743         prescan of decoded options.
5744         * opt-functions.awk (switch_flags): Handle Driver and
5745         RejectDriver.
5746         (var_type, var_type_struct): Handle Separate options as generating
5747         const char * variables.
5748         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
5749         CL_TARGET to be passed by caller if required.
5750         (decode_cmdline_options_to_array): Update comment.
5751         * opts.c (complain_wrong_lang): Handle options only valid for the
5752         driver.
5753         (decode_options): Update call to decode_cmdline_options_to_array.
5754         (print_filtered_help): Ignore driver-only options.
5755         (print_specific_help): Ignore CL_DRIVER.
5756         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
5757         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
5758         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
5759         Update values.
5760
5761 2010-08-16  Richard Guenther  <rguenther@suse.de>
5762
5763         * tree-cfg.c (verify_types_in_gimple_reference): Verify
5764         TARGET_MEM_REF a bit.
5765         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
5766         (create_mem_ref_raw): Always create TMR_OFFSET, store the
5767         alias pointer type via it.
5768         (copy_mem_ref_info): Adjust.
5769         (maybe_fold_tmr): Likewise.
5770         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
5771         (reference_alias_ptr_type): Likewise.
5772         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
5773         adjust documentation of TMR_OFFSET operand.
5774         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
5775         use the alias pointer type.
5776         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
5777         initialize mem attrs but the TMR itself.
5778         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
5779         similar to MEM_REF.
5780         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
5781         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
5782         (unshare_and_remove_ssa_names): Likewise.
5783         (copy_ref_info): Adjust.
5784         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
5785         TARGET_MEM_REF case.
5786         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
5787         at TMR_ORIGINAL.
5788         * tree.h (TMR_ORIGINAL): Remove.
5789         * gimple.c (get_base_address): For TARGET_MEM_REF with a
5790         symbol return that.
5791         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
5792         with a symbol.
5793         (get_addr_base_and_unit_offset): Likewise.
5794         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
5795         TARGET_MEM_REFs.
5796         (indirect_ref_may_alias_decl_p): Likewise.
5797         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
5798
5799 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
5800
5801         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
5802         with GCC version 4.6, the default setting (when not optimizing
5803         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
5804         been changed to -fomit-frame-pointer.
5805
5806 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
5807
5808         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
5809         Darwin10.  Do not link libgcc.a for Darwin >= 9.
5810
5811 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
5812
5813         * doc/invoke.texi (Warning Options): Fix terminology and markup
5814         in the description of how unknown warning options are handled.
5815
5816 2010-08-15  Ira Rosen  <irar@il.ibm.com>
5817
5818         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
5819         in basic blocks.
5820         (vect_supportable_dr_alignment): Check alignment for basic blocks.
5821         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
5822         data references.
5823         (vect_bb_vectorization_profitable_p): New function.
5824         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
5825         check if it's worthwhile to vectorize the basic block.
5826
5827 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
5828
5829         * reload.h (register_move_cost, memory_move_secondary_cost,
5830         secondary_reload_class): Adjust prototype.
5831         * rtl.h (reg_class_subset_p): Adjust prototype.
5832         * reload.c (secondary_reload_class): Change arguments type from
5833         enum reg_class to reg_class_t. Change result type to reg_class_t.
5834         * reginfo.c (register_move_cost, reg_class_subset_p): Change
5835         arguments type from enum reg_class to reg_class_t.
5836         (memory_move_secondary_cost): Change arguments type from
5837         enum reg_class to reg_class_t. Change type of saved_flags to
5838         reg_class_t.
5839
5840         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5841         Remove macros.
5842         (mips_cost): Remove.
5843         (struct mips_rtx_cost_data): Moved to mips.c.
5844         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
5845         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
5846         (mips_cost): Make static.
5847         (mips_canonicalize_move_class): Change argument type to reg_class_t.
5848         Change result type to reg_class_t.
5849         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
5850         type from enum reg_class to reg_class_t.
5851         (mips_register_move_cost): Make static. Change arguments
5852         type from enum reg_class to reg_class_t.
5853         (mips_memory_move_cost): New function.
5854         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5855
5856 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
5857
5858         PR rtl-optimization/43358
5859         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
5860         of a single hard register, using simplify_subreg_regno to decide
5861         what that register should be.
5862
5863 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
5864
5865         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
5866         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
5867         (loongson_pmull<V_suffix>): Rename to...
5868         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
5869
5870 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
5871
5872         * configure.ac: Enable -fomit-frame-pointer on darwin
5873         which support dwarf2.
5874         * config/i386/i386.c (override_options): Same.
5875
5876 2010-08-13  Jie Zhang  <jie@codesourcery.com>
5877
5878         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
5879
5880 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
5881
5882         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
5883         -MMD.
5884
5885 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
5886
5887         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
5888         up dot_prod pattern searching if a stmt is outside the loop.
5889
5890 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
5891             Uros Bizjak  <ubizjak@gmail.com>
5892
5893         * config.gcc: Handle --enable-frame-pointer.
5894
5895         * configure.ac: Add --enable-frame-pointer.
5896         * configure: Regenerated.
5897
5898         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
5899         (override_options): If not configured with --enable-frame-pointer,
5900         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
5901         optimizing for size), -fasynchronous-unwind-tables and
5902         -maccumulate-outgoing-args by default.
5903
5904 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
5905
5906         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
5907
5908         PR middle-end/45262
5909         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
5910         -a overflows.  Normalize the range.
5911
5912 2010-08-12  Richard Guenther  <rguenther@suse.de>
5913
5914         PR tree-optimization/45232
5915         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
5916         for types with undefined overflow.
5917         (reassociate_bb): Allow re-associating of bit and min/max
5918         operations for types with undefined overflow.
5919         * tree-ssa-forwprop.c (associate_plusminus): New function.
5920         (tree_ssa_forward_propagate_single_use_vars): Call it.
5921
5922 2010-08-12  Richard Guenther  <rguenther@suse.de>
5923
5924         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
5925         * tree-ssa-alias.c (get_ptr_info): Move ...
5926         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
5927         align and misalign fields conservatively.
5928         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
5929         derive alignment information.
5930         (evaluate_stmt): Derive alignment information from memory
5931         allocation functions.
5932         * tree.h (get_pointer_alignment): Make unsigned.
5933         * builtins.c (get_object_alignment): Use alignment information we
5934         have computed for pointers.
5935         (get_pointer_alignment): Likewise.  Make conservative, return
5936         and unsigned value.
5937         (expand_builtin_strlen): Adjust.
5938         (expand_builtin_memcmp): Likewise.
5939         (expand_builtin_strcmp): Likewise.
5940         (expand_builtin_strncmp): Likewise.
5941         (get_builtin_sync_mem): Use at least mode alignment.
5942         (fold_builtin_memset): Adjust.
5943         (fold_builtin_memory_op): Likewise.
5944         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
5945         information also dump pointer alignment knowledge.
5946         (dump_gimple_stmt): Likewise.
5947
5948 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
5949
5950         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
5951         (EMPTY_FIELD_BOUNDARY): Remove.
5952         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
5953
5954 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
5955
5956         PR debug/45259
5957         * caller-save.c (save_call_clobbered_regs): Only swap notes with
5958         DEBUG_INSNs if n_regs_saved.
5959
5960 2010-08-12  Wei Guozhi  <carrot@google.com>
5961
5962         PR target/44999
5963         * config/arm/arm.md (andsi3): Change to zero extension if possible.
5964         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
5965
5966 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
5967
5968         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
5969
5970         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
5971
5972 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5973
5974         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
5975         the case removed in the previous patch, when the only phi argument
5976         is defined in the same loop as the phi node itself.  Handle it
5977         separately from the invariant case by both propagating it outside
5978         the region and replacing the phi node with an assign.
5979
5980 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5981
5982         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
5983         constant phi nodes with one argument are is_gimple_min_invariant
5984         and SSA_NAME_IS_DEFAULT_DEF.
5985
5986 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5987
5988         * graphite-cloog-util.c (oppose_constraint):
5989         Extend loop counter's value range (CLOOG_ORG).
5990         (cloog_matrix_to_ppl_constraint): Same.
5991         (new_Constraint_System_from_Cloog_matrix): Same.
5992         * graphite-cloog-compat.h (matrix_num_type): New.
5993
5994 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5995
5996         * graphite.c (graphite_initialize): Do not initialize
5997         CLooG and initialize the Parma Polyhedra Library
5998         manually when using CLOOG_ORG.
5999         (graphite_finalize): Do not finalize CLooG and finalize
6000         the Parma Polyhedra Library manually when using CLOOG_ORG.
6001         * graphite-cloog-compat.h (cloog_initialize): Hide function
6002         when using CLOOG_ORG.
6003         (cloog_finalize): Same.
6004
6005 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6006
6007         * graphite-clast-to-gimple.c (free_scattering): Change
6008         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6009         (CLOOG_ORG).
6010         (build_cloog_prog): Same.
6011         * graphite-cloog-compat.h (cloog_domain): Removed.
6012         (cloog_scattering): New.
6013         (cloog_set_domain): Removed.
6014         (cloog_set_scattering): New.
6015         (cloog_next_domain): Removed.
6016         (cloog_next_scattering): New.
6017         (cloog_set_next_domain): Removed.
6018         (cloog_set_next_scattering): New.
6019         (CloogScatteringList): New.
6020         (CloogScattering): New.
6021         (cloog_scattering_free): New.
6022         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6023         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6024         New.
6025
6026 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6027
6028         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6029         CloogState.
6030         (set_cloog_options): Same.
6031         (print_clast_stmt): Same.
6032         (scop_to_clast): Same.
6033         (print_generated_program): Same.
6034         (gloog): Same.
6035         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6036         (scop_to_clast): Extend with CloogState.
6037         * graphite-cloog-util.c: Include graphite-cloog-compat.h
6038         (new_Cloog_Domain_from_ppl_Polyhedron):
6039         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6040         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6041         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6042         * graphite-cloog-util.h (build_cloog_prog): Same.
6043         * graphite-cloog-copat.h (build_cloog_prog): New.
6044         (CloogState): New.
6045         (cloog_state_malloc): New.
6046         (cloog_state_free): New.
6047         (cloog_loop_malloc): New.
6048         (cloog_options_malloc): New.
6049         (cloog_statement_alloc): New.
6050         (cloog_domain_from_cloog_matrix): New.
6051         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6052         (new_Cloog_Domain_from_ppl_Polyhedron): New.
6053
6054 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6055
6056         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6057         type of NAME now depends on used CLooG version.
6058         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6059         (gcc_type_for_clast_expr): Same.
6060         (print_clast_stmt): Replace pprint with clast_pprint.
6061         * graphite-cloog-compat.h: Provide compatibility macros for
6062         CLooG Legacy.
6063         (clast_name_p): New.
6064         (clast_expr_term): New.
6065         (clast_expr_red): New.
6066         (clast_expr_bin): New.
6067         (clast_pprint): New.
6068
6069 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6070
6071         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6072         compatible to newer CLooG releases (CLOOG_ORG).
6073         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6074         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6075         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6076         (build_cloog_prog) : New.
6077         (cloog_program_extract_scalars): New.
6078         (cloog_program_scatter): New.
6079
6080 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6081
6082         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6083         conditionally (CLOOG_ORG).
6084         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
6085         (cloog_statement_usr): New.
6086         (cloog_domain): Same.
6087         (cloog_set_domain): Same.
6088         (cloog_next_domain): Same.
6089         (cloog_set_next_domain): Same.
6090         (cloog_program_nb_scattdims): Same.
6091         (cloog_program_set_nb_scattdims): Same.
6092         (cloog_program_names): Same.
6093         (cloog_program_set_names): Same.
6094         (cloog_program_set_context): Same.
6095         (cloog_program_set_loop): Same.
6096         (cloog_program_blocklist): Same.
6097         (cloog_program_set_blocklist): Same.
6098         (cloog_program_scaldims): Same.
6099         (cloog_program_set_scaldims): Same.
6100         (cloog_names_nb_parameters): Same.
6101         (cloog_names_set_nb_parameters): Same.
6102         (cloog_names_parameters): Same.
6103         (cloog_names_set_parameters): Same.
6104         (cloog_names_set_nb_iterators): Same.
6105         (cloog_names_set_iterators): Same.
6106         (cloog_names_set_nb_scattering): Same.
6107         (cloog_names_set_scattering): Same.
6108         (cloog_statement_set_usr): Same.
6109         (cloog_loop_set_next): Same.
6110         (cloog_loop_set_domain): Same.
6111         (cloog_loop_set_block): Same.
6112         (cloog_block_list_next): Same.
6113         (cloog_block_list_set_next):
6114         (cloog_block_list_set_block): Same.
6115
6116 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6117
6118         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6119         a bool.
6120         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6121         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6122         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6123         when something has been changed.
6124         (rewrite_commutative_reductions_out_of_ssa): Same.
6125
6126 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6127
6128         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6129         handle the case when def is in the sese region.
6130         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6131         for invariant expressions.
6132         (rewrite_cross_bb_phi_deps): Removed.
6133         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6134         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6135         rewrite_cross_bb_phi_deps.
6136
6137 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6138
6139         * graphite-sese-to-poly.c
6140         (rewrite_commutative_reductions_out_of_ssa_loop): Call
6141         scev_analyzable_p only on is_gimple_reg
6142
6143 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6144
6145         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6146         (rewrite_close_phi_out_of_ssa): Propagate constant values or
6147         parametric expressions outside the scop region.
6148         (rewrite_cross_bb_scalar_deps): Same.
6149         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6150
6151 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6152
6153         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6154         SSA_NAME_DEF_STMT only on SSA_NAMEs.
6155
6156 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6157
6158         * tree-scalar-evolution.c (instantiate_scev_name): Do not
6159         instantiate default definitions.
6160
6161 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
6162             Sebastian Pop  <sebastian.pop@amd.com>
6163
6164         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6165         (loop_exits_from_bb_p): New.
6166         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6167         (loop_exits_from_bb_p): Declared.
6168         * graphite-scop-detection.c (scopdet_basic_block_info): Call
6169         loop_exits_to_bb_p.
6170
6171 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6172
6173         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6174         extra parameter for the region.  Call scev_analyzable_p.
6175         (rewrite_reductions_out_of_ssa): Update call to
6176         rewrite_close_phi_out_of_ssa.
6177         (rewrite_cross_bb_phi_deps): Same.
6178         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6179         parameter for the region.  Call scev_analyzable_p.
6180         (rewrite_commutative_reductions_out_of_ssa): Update call to
6181         rewrite_commutative_reductions_out_of_ssa_loop.
6182
6183 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6184
6185         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6186
6187 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6188
6189         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6190         SSA scalar phi nodes that can be scev_analyzable_p.
6191
6192 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6193
6194         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6195         handle SSA_NAME_IS_DEFAULT_DEF.
6196
6197 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6198
6199         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6200
6201 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6202
6203         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6204         case non close-phi nodes with one argument.
6205
6206 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6207
6208         * sese.h (scev_analyzable_p): Scevs could be expressions without
6209         chrecs and still be scev_analyzable_p.
6210
6211 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6212
6213         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6214
6215 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6216
6217         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6218         * cfgloop.h (struct loop): Remove single_iv field.
6219         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6220         (scop_canonicalize_loops): Removed.
6221         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
6222         over all the loop phi nodes in loop->header.
6223         (build_poly_scop): Remove use of scop_canonicalize_loops.
6224
6225 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6226
6227         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6228         handle GIMPLE_CALL.
6229
6230 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6231
6232         * tree-chrec.c (chrec_apply): Should only apply to the specified
6233         variable.  Also handle multivariate chains of recurrences that
6234         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
6235
6236 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6237
6238         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6239         (debug_clast_name_indexes_1): Removed.
6240         (debug_clast_name_indexes): Removed.
6241         (pbb_to_depth_to_oldiv): Removed.
6242         (build_iv_mapping): Replace the use of rename_map with iv_map.
6243         (translate_clast_user): Remove uses of rename_map.  Allocate and
6244         free iv_map.
6245         (translate_clast_for_loop): Remove uses of rename_map.
6246         (translate_clast_for): Same.
6247         (translate_clast_guard): Same.
6248         (translate_clast): Same.
6249         (gloog): Same.
6250         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6251         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6252         * sese.c (set_rename): Now static.
6253         (rename_variables_in_stmt): Removed.
6254         (rename_uses): New.
6255         (is_parameter): Removed.
6256         (is_iv): Removed.
6257         (expand_scalar_variables_call): Removed.
6258         (expand_scalar_variables_ssa_name): Removed.
6259         (expand_scalar_variables_expr): Removed.
6260         (expand_scalar_variables_stmt): Removed.
6261         (expand_scalar_variables): Removed.
6262         (rename_variables): Removed.
6263         (remove_condition): Removed.
6264         (get_true_edge_from_guard_bb): Removed.
6265         (get_false_edge_from_guard_bb): Removed.
6266         (struct igp): Removed.
6267         (default_before_guard): Removed.
6268         (convert_for_phi_arg): Removed.
6269         (add_guard_exit_phis): Removed.
6270         (insert_guard_phis): Removed.
6271         (graphite_copy_stmts_from_block): Now also uses iv_map and a
6272         region.  Do not copy conditions.  Do not copy induction variables.
6273         Call rename_uses.
6274         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6275         the translated statement.  Use the iv_map for the induction
6276         variable renaming.
6277         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6278         (set_rename): Removed declaration.
6279         (scev_analyzable_p): ...here.
6280         * tree-chrec.c (chrec_apply_map): New.
6281         * tree-chrec.h (chrec_apply_map): Declared.
6282
6283 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6284
6285         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6286         insert_loop_close_phis.
6287         * sese.c (name_defined_in_loop_p): Removed.
6288         (expr_defined_in_loop_p): Removed.
6289         (alive_after_loop): Removed.
6290         (close_phi_not_yet_inserted_p): Removed.
6291         (struct alep): Removed.
6292         (add_loop_exit_phis): Removed.
6293         (insert_loop_close_phis): Removed.
6294
6295 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6296
6297         * graphite-cloog-util.c
6298         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6299         * graphite-poly.c
6300         (psct_scattering_dim_for_loop_depth): Same.
6301
6302 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6303
6304         * graphite-cloog-util.h: Added cloog.h.
6305         * graphite-blocking.c: Removed cloog.h.
6306         * graphite-dependences.c: Same.
6307         * graphite-interchange.c: Same.
6308         * graphite-poly.c: Same.
6309         * graphite-ppl.c: Same.
6310         * graphite-scop-detection.c: Same.
6311         * graphite-sese-to-poly.c:
6312         Removed cloog.h.
6313         Removed graphite-clast-to-gimple.h.
6314         (check_poly_representation): Removed (unused).
6315         * graphite-sese-to-poly.h
6316         (check_poly_representation): Removed (unused).
6317
6318 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6319
6320         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6321         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6322         (graphite-cloog-util.o): New.
6323         (graphite-ppl.o): Added graphite-cloog-util.h.
6324         * graphite-clast-to-gimple.c:
6325         Added graphite-cloog-util.h to include statements.
6326         * graphite-cloog-util.c: New.
6327         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6328         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6329         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6330         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6331         (insert_constraint_into_matrix): Same.
6332         (ppl_Constrain_System_number_of_constraints): Same.
6333         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6334         (oppose_constraint): Same.
6335         (cloog_matrix_to_ppl_constraint): Same.
6336         (new_Constraint_System_from_Cloog_Matrix): Same.
6337         * graphite-cloog-util.h: New.
6338         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6339         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6340         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6341         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6342         (insert_constraint_into_matrix): Same.
6343         * graphite-ppl.c:
6344         Added graphite-cloog-util.h to include statements.
6345         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6346         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6347         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6348         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6349         (insert_constraint_into_matrix): Same.
6350         (ppl_Constrain_System_number_of_constraints): Same.
6351         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6352         (oppose_constraint): Same.
6353         (cloog_matrix_to_ppl_constraint): Same.
6354         (new_Constraint_System_from_Cloog_Matrix): Same.
6355         * graphite-ppl.h:
6356         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6357         graphite-cloog-util.h.
6358         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6359         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6360         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6361         (insert_constraint_into_matrix): Same.
6362
6363 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6364
6365         * graphite-clast-to-gimple.c
6366         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6367         (precision_for_interval): Same.
6368         (gcc_type_for_interval): Same.
6369         (compute_type_for_level): Same.
6370         * graphite-interchange.c
6371         (lst_interchange_profitable_p): Same.
6372         * graphite-poly.c
6373         (psct_scattering_dim_for_loop_depth): Same.
6374         * graphite-ppl.c
6375         (ppl_max_for_le_pointset): Same.
6376         (ppl_min_for_le_pointset): Same.
6377
6378 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6379
6380         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6381         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6382
6383 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6384
6385         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6386         rewrite_close_phi_out_of_ssa.
6387
6388 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6389
6390         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6391
6392 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6393
6394         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6395         rename_map.
6396         * sese.c (debug_rename_map): Same.
6397         (get_rename): Same.
6398         (set_rename): Same.
6399         (rename_variables_in_stmt): Same.
6400         (expand_scalar_variables_call): Same.
6401         (expand_scalar_variables_ssa_name): Same.
6402         (expand_scalar_variables_expr): Same.
6403         (expand_scalar_variables_stmt): Same.
6404         (expand_scalar_variables): Same.
6405         (rename_variables): Same.
6406         (graphite_copy_stmts_from_block): Same.
6407         (copy_bb_and_scalar_dependences): Same.
6408
6409 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6410
6411         * graphite-clast-to-gimple.c (copy_renames): Removed.
6412         (translate_clast_for): Do not call copy_renames.
6413         (translate_clast_guard): Same.
6414
6415 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6416
6417         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6418         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6419         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6420         before rewrite_cross_bb_scalar_deps.
6421
6422 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6423
6424         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6425         Early return in when flag_associative_math is not set.
6426
6427 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6428
6429         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6430         of SSA copies on edges except for loop->latch.
6431
6432 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6433
6434         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6435         Split out of rewrite_reductions_out_of_ssa.
6436         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6437         Declared.
6438         * graphite.c (graphite_transform_loops): Call it.
6439
6440 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6441
6442         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6443
6444 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6445
6446         * dbgcnt.def (graphite_scop): New counter.
6447         * graphite.c: Include dbgcnt.h.
6448         (graphite_transform_loops): Use new counter to limit transformations.
6449         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6450
6451 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6452
6453         * passes.c (init_optimization_passes): Add pass_graphite.
6454         Schedule a pass_copy_prop before pass_graphite_transforms.
6455         * timevar.def (TV_GRAPHITE): Declared.
6456         * tree-pass.h (pass_graphite): Declared.
6457         * tree-ssa-loop.c (pass_graphite): New.
6458
6459 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6460
6461         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6462         Remove calls to rename_nb_iterations and rename_sese_parameters.
6463         * graphite-clast-to-gimple.h (gloog): Update declaration.
6464         * graphite.c (graphite_transform_loops): Update call to gloog.
6465         * sese.c (rename_variables_in_expr): Removed.
6466         (rename_nb_iterations): Removed.
6467         (rename_sese_parameters): Removed.
6468         * sese.h (rename_nb_iterations): Removed.
6469         (rename_sese_parameters): Removed.
6470
6471 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6472
6473         * graphite-clast-to-gimple.c (gloog): Remove call to
6474         sese_adjust_liveout_phis.
6475         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6476         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6477         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6478         rewrite_phi_out_of_ssa.
6479         * sese.c (get_vdef_before_sese): Removed.
6480         (sese_adjust_vphi): Removed.
6481         (sese_adjust_liveout_phis): Removed.
6482         * sese.h (sese_adjust_liveout_phis): Removed.
6483
6484 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6485
6486         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6487         argument for the place after which to insert the out of SSA copy.
6488         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6489         (rewrite_phi_out_of_ssa): Same.
6490         (rewrite_cross_bb_scalar_deps): Same.
6491         (insert_copyout): Removed.
6492         (insert_copyin): Removed.
6493         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6494         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6495         insert_copyin.
6496
6497 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6498
6499         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6500         (rewrite_reductions_out_of_ssa): Same.
6501         (rewrite_commutative_reductions_out_of_ssa): Same.
6502         (build_poly_scop): Do not call these functions.
6503         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6504         (rewrite_reductions_out_of_ssa): Declared.
6505         (rewrite_commutative_reductions_out_of_ssa): Declared.
6506         * graphite.c (graphite_transform_loops): Call on every scop
6507         rewrite_commutative_reductions_out_of_ssa before calling
6508         rewrite_reductions_out_of_ssa and build_scop_bbs.
6509
6510 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6511
6512         * graphite-dependences.c (dot_deps): Make system call to dotty run
6513         in background.
6514         (dot_deps_stmt): Same.
6515         * graphite-poly.c (dot_lst): Same.
6516
6517 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6518
6519         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6520         phi_arg_in_outermost_loop.
6521         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6522         (remove_invariant_phi): Same.
6523
6524 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6525
6526         * target.def (output_addr_const_extra): New hook.
6527         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6528         * doc/tm.texi: Regenerate.
6529         * targhooks.c (default_asm_output_addr_const_extra): New function.
6530         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6531         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6532         target hook.
6533
6534         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6535         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6536         * config/i386/i386.h (output_addr_const_extra): Rename to...
6537         (i386_asm_output_addr_const_extra): ...this. Make static.
6538         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6539
6540 2010-08-11  Richard Henderson  <rth@redhat.com>
6541
6542         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6543
6544 2010-08-11  Nick Clifton  <nickc@redhat.com>
6545
6546         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6547         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6548         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6549         stormy16-lib2-cmpsi.c.
6550
6551         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6552         -O2.
6553
6554 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
6555
6556         * opts.h (struct cl_option_handler_func): Make handler take
6557         cl_decoded_option structure as parameter, not individual elements.
6558         (struct cl_option_handlers): Make callbacks take cl_decoded_option
6559         structure as parameter, not individual elements.
6560         (handle_option): Take cl_decoded_option structure as parameter,
6561         not individual elements.
6562         (handle_generated_option): Declare.
6563         * opts-common.c (handle_option): Take cl_decoded_option structure
6564         as parameter, not individual elements.  Update calls to callback
6565         and handler functions.
6566         (handle_generated_option): New.
6567         (read_cmdline_option): Update calls to callback functions and
6568         handle_option.
6569         * opts.c (common_handle_option, complain_wrong_lang,
6570         unknown_option_callback, post_handling_callback,
6571         lang_handle_option, target_handle_option): Take cl_decoded_option
6572         structure as parameter, not individual elements.
6573         (lang_handle_option, target_handle_option, common_handle_option):
6574         Assert option has at most one argument.
6575         (enable_warning_as_error): Call handle_generated_option instead of
6576         handle_option.  Do not pass -Werror argument as argument of
6577         generated option.
6578
6579 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6580
6581         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6582         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6583         (SUBWORD_BOOL_CAS): Likewise.
6584         (SUBWORD_SYNC_OP): Likewise.
6585         (SUBWORD_TEST_AND_SET): Likewise.
6586         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6587         (SUBWORD_SYNC_OP): Likewise.
6588         (OP_AND_FETCH_WORD): Likewise.
6589
6590 2010-08-10  Xinliang David Li  <davidxl@google.com>
6591
6592         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6593         compute max/min offset in address.
6594
6595 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
6596
6597         * ira-live.c: Include sbitmap.h.
6598         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6599         Compress live ranges even more.
6600
6601 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6602
6603         * coverage.c (ctr_labels): Delete.
6604
6605 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6606
6607         PR bootstrap/45177
6608         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6609         test here from arm_gen_load_multiple_1.
6610         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6611         multiple_operation_profitable_p.
6612
6613 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6614
6615         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6616         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
6617
6618 2010-08-10  Richard Henderson  <rth@redhat.com>
6619
6620         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6621         after saving registers.  Assert that SSE registers are only saved
6622         with a sufficiently aligned frame.
6623         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6624         remove stack_realign_fp handling.
6625         (ix86_expand_prologue): Save int registers before stack_realign_fp,
6626         and do not mark the stack alignment as frame related.
6627         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6628
6629         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6630         saves when re-aligning the stack.
6631
6632 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6633
6634         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6635         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6636         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6637
6638 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6639
6640         * dwarf2out.c (struct die_struct): Move die_tag to the end.
6641
6642 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
6643
6644         * config/arm/iterators.md: New file.
6645         * config/arm/arm.md: Include iterators.md.
6646         (QHSI): Move to new file.
6647         (LTUGEU, cnb, optab, ior_xor): Likewise.
6648         * config/arm/iwmmxt.md (VMMX): Move to new file.
6649         (VSHFT, MMX_char): Likewise.
6650         * config/arm/neon.md (VD): Move to new file.
6651         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6652         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6653         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6654         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6655         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6656         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6657         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6658         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6659         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6660         (Is_d_reg, V_mode_nunits): Likewise.
6661         * config/arm/vec-common.md (VALL): Move to new file.
6662         (VALLW, VINT, VINTW): Likewise.
6663
6664 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6665
6666         PR middle-end/45182
6667         * combine.c (make_compound_operation): Don't try to convert
6668         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6669
6670 2010-08-10  Richard Guenther  <rguenther@suse.de>
6671
6672         * tree.h (get_object_alignment): Adjust prototype.
6673         * builtins.c (get_object_alignment): Return unsigned int,
6674         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
6675         and TARGET_MEM_REF properly.
6676         (get_pointer_alignment): Adjust.
6677         * emit-rtl.c (get_mem_align_offset): Adjust comment.
6678         (set_mem_attributes_minus_bitpos): Adjust.
6679         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6680
6681 2010-08-10  Richard Guenther  <rguenther@suse.de>
6682
6683         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6684         (copy_prop_visit_assignment): Simplify.
6685         (copy_prop_visit_stmt): Also visit assignments from
6686         constants.
6687         (copy_prop_visit_phi_node): Use operand_equal_p.
6688
6689 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6690
6691         * ipa-split.c (find_split_points): Free stack.
6692
6693 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6694
6695         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6696         * tree.c (tree_node_kind): Delete corresponding entries.
6697
6698 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6699
6700         * alias.c (may_alias_p): Remove unused ret.
6701
6702 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
6703
6704         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6705         alias_sets_conflict_p.
6706         (walk_mems_1): Moved from alias.c.
6707         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6708         in alias.c.
6709         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6710         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6711         * alias.c (walk_mems_2): Moved to ddg.c.
6712         (walk_mems_1): Ditto.
6713         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6714         to ddg.c.
6715         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6716         disambiguation.
6717         *(may_alias_p): New function to check whether two memory expression
6718         may alias or not. Currently used in buidling inter-iteration memory
6719         dependence.
6720         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
6721         (insn_alias_sets_conflict_p): Removed
6722         *rtl.h (may_alias_p): New function prototype.
6723
6724 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6725
6726         * tree.c (nreverse): Assert that we don't have a BLOCK.
6727
6728 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6729
6730         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
6731         * config/arm/arm.c (arm_get_pcs_model): Likewise.
6732         * config/avr/avr.c (init_cumulative_args): Likewise.
6733         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6734         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6735         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
6736         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6737         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6738         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6739         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6740         * dwarf2out.c (gen_subprogram_die): Likewise.
6741         * function.c (allocate_struct_function): Likewise.
6742         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
6743         (deserves_ellipsis): Delete.
6744
6745 2010-08-09  Richard Guenther  <rguenther@suse.de>
6746
6747         * tree-ssa-copy.c (cached_last_copy_of): Remove.
6748         (valueize_val): New function.
6749         (get_last_copy_of): Remove.
6750         (set_copy_of_val): Simplify.
6751         (dump_copy_of): Likewise.
6752         (copy_prop_visit_cond_stmt): Use valueize_val.
6753         (copy_prop_visit_phi_node): Properly handle unvisited names.
6754         Drop code managing copy-of chains.
6755         (init_copy_prop): Adjust.
6756         (fini_copy_prop): Likewise.
6757         (execute_copy_prop): Remove obsolete comment.
6758
6759 2010-08-09  Richard Guenther  <rguenther@suse.de>
6760
6761         PR middle-end/44632
6762         * function.c (gimplify_parameters): Do not clear addressable
6763         bit of the original parameter.
6764
6765 2010-08-09  Richard Guenther  <rguenther@suse.de>
6766
6767         PR middle-end/45212
6768         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
6769         alignment from MEM_REF offset only if we took it from the
6770         base object.
6771
6772 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
6773
6774         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
6775
6776 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6777
6778         * c-tree.h (build_arg_info): Declare.
6779         * c-decl.c (build_arg_info): Define.
6780         (get_parm_info): Call it.  Delete initialization code.
6781         * c-parser.c (c_parser_parms_declarator): Likewise.
6782         (c_parser_parms_list_declaractor): Likewise.
6783
6784 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6785
6786         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
6787         (struct c_arg_info): Change type of tags field.
6788         * c-decl.c (grokdeclarator): Update for changed type of tags field.
6789         (get_parm_info): Likewise.
6790         (store_parm_decls_newstyle): Likewise.
6791
6792 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6793
6794         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
6795         (branch_island_list): Delete.
6796         (branch_islands): Declare.
6797         (add_compiler_branch_island): Adjust for branch_islands instead of
6798         branch_island_list.
6799         (macho_branch_islands): Likewise.
6800         (no_previous_def): Likewise.
6801         (get_prev_label): Likewise.
6802
6803 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6804
6805         PR boehm-gc/34544
6806         * gthr-posix.h (__gthread_start): Delete.
6807         (__gthread_active_init): Use pthread_default_stacksize_np instead of
6808         pthread_create to determine if hpux pthreads are active.
6809         * gthr-posix95.h (__gthread_start): Delete.
6810         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
6811
6812 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
6813
6814         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
6815         _WIN64 not expanded.
6816
6817 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
6818             H.J. Lu  <hongjiu.lu@intel.com>
6819
6820         PR target/45213
6821         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
6822         to output 32bit SFmode immediate as 8 byte sign extended value.
6823
6824 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6825
6826         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6827         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6828         (SUBWORD_BOOL_CAS): Likewise.
6829         (SUBWORD_SYNC_OP): Likewise.
6830         (SUBWORD_TEST_AND_SET): Likewise.
6831         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6832         (SUBWORD_SYNC_OP): Likewise.
6833         (OP_AND_FETCH_WORD): Likewise.
6834
6835 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6836
6837         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
6838         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
6839         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
6840         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
6841         generic part.
6842         (cortex_a9_sched_adjust_cost): New function.
6843         (xscale_sched_adjust_cost): New function.
6844         * config/arm/arm-protos.h (struct tune_params): New field
6845         sched_adjust_cost.
6846         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
6847
6848 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
6849
6850         PR target/44942
6851         * config/sparc/sparc.c (function_arg_advance): Always take into account
6852         the padding, if any.
6853
6854 2010-08-06  Richard Guenther  <rguenther@suse.de>
6855
6856         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
6857         (dump_lattice_value): Dump it.
6858         (get_default_value): Adjust.
6859         (get_constant_value): Likewise.
6860         (set_value_varying): Likewise.
6861         (set_lattice_value): Make sure to not go up the lattice
6862         with bitwise constant values.
6863         (get_value_for_expr): Handle ADDR_EXPRs.
6864         (value_to_double_int): New function.
6865         (get_value_from_alignment): Likewise.
6866         (do_dbg_cnt): Adjust.
6867         (ccp_lattice_meet): Handle partially constant values.
6868         (bit_value_unop_1): New function.
6869         (bit_value_binop_1): Likewise.
6870         (bit_value_unop): Likewise.
6871         (bit_value_binop): Likewise.
6872         (evaluate_stmt): Track partially constant values if
6873         flag_tree_bit_ccp is set.
6874         (ccp_fold_stmt): Dump if we folded a predicate.
6875         (ccp_visit_stmt): Adjust.
6876         * common.opt (ftree-bit-ccp): New flag.
6877         * doc/invoke.texi (ftree-bit-ccp): Document.
6878         * opts.c (decode_options): Enable bit-CCP at -O1.
6879
6880 2010-08-06  Alan Modra  <amodra@gmail.com>
6881
6882         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
6883         and -mrelocatable-lib description.
6884
6885 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6886
6887         From Martin Thuresson  <martint@google.com>
6888         * postreload.c (reload_cse_simplify_operands): Use
6889         SET_REGNO_RAW instead of SET_REGNO.
6890         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
6891         SET_REGNO.
6892         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
6893         instead of SET_REGNO.
6894         * rtl.h (SET_REGNO_RAW): New macro.
6895
6896 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
6897
6898         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
6899         computations.  Fix formatting issues.
6900         (num_sign_bit_copies1): Likewise.
6901         (canonicalize_condition): Likewise.
6902
6903 2010-08-05  Richard Henderson  <rth@redhat.com>
6904
6905         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
6906         (floor_log2): Use clz_hwi.
6907         (exact_log2): Use ctz_hwi.
6908         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
6909         * builtins.c (fold_builtin_bitop): Use them.
6910         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6911         * combine.c (get_pos_from_mask): Use ctz_hwi.
6912         * double-int.c (double_int_ctz): Likewise.
6913         * explow.c (force_reg): Likewise.
6914         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
6915
6916 2010-08-05  Richard Henderson  <rth@redhat.com>
6917
6918         PR target/45189
6919         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
6920         the alignment constant is properly sign-extended.
6921
6922 2010-08-05  Richard Guenther  <rguenther@suse.de>
6923
6924         * expr.c (store_expr): Use emit_block_move only if both
6925         source and target are MEMs.  Use store_bit_field if only
6926         the target is a MEM.
6927
6928 2010-08-05  Richard Henderson  <rth@redhat.com>
6929
6930         PR debug/45188
6931         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
6932         (INCOMING_RETURN_ADDR_RTX): Likewise.
6933         (dwarf2out_do_frame): Remove conditional compilation.
6934         (dwarf2out_frame_init): Likewise.
6935
6936 2010-08-05  Nicolas Setton  <setton@adacore.com>
6937
6938         * gcov.c (flag_display_progress): New static variable.
6939         (main): Display progress info on standard output if requested.
6940         (options): Add -d/--display-progress.
6941         (print_usage): Print them.
6942         (process_args): Handle them.
6943         * doc/gcov.texi: Document them.
6944
6945 2010-08-05  Martin Jambor  <mjambor@suse.cz>
6946
6947         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
6948         (ipcp_insert_stage): Redirect only edges not flagged with
6949         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
6950         discovered constants.
6951
6952 2010-08-05  Martin Jambor  <mjambor@suse.cz>
6953
6954         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
6955         (struct ipa_param_descriptor): New fields types and
6956         cannot_devirtualize.
6957         (ipa_param_cannot_devirtualize_p): New function.
6958         (ipa_param_types_vec_empty): Likewise.
6959         (ipa_make_edge_direct_to_target): Declare.
6960         * ipa-cp.c: Fixed first stage driver name in initial comment,
6961         described devirtualization there too.
6962         (ipcp_analyze_node): Call ipa_analyze_params_uses.
6963         (ipcp_print_all_lattices): Print devirtualization info.
6964         (ipa_set_param_cannot_devirtualize): New function.
6965         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
6966         lattice to BOTTOM.
6967         (ipcp_init_stage): Merged into...
6968         (ipcp_generate_summary): ...its caller.
6969         (ipcp_change_tops_to_bottom): Also process type lists.
6970         (ipcp_add_param_type): New function.
6971         (ipcp_copy_types): Likewise.
6972         (ipcp_propagate_types): Likewise.
6973         (ipcp_propagate_stage): Also propagate types.
6974         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
6975         Also return true if propagated types require it.
6976         (ipcp_update_callgraph): Dump redirection info.
6977         (ipcp_process_devirtualization_opportunities): New function.
6978         (ipcp_const_param_count): Include known type information.
6979         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
6980         on new node.  Fixed formatting.
6981         * ipa-prop.c (make_edge_direct_to_target): Renamed to
6982         ipa_make_edge_direct_to_target and changed all callers.  Made
6983         externally visible.
6984         (ipa_node_duplication_hook): Duplicate types vector.
6985         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
6986         redirect outgoing calls for which we can't get a decl from the
6987         statement.  Check that we can get a decl from the call statement.
6988         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6989         ipa_analyze_params_uses only when ipa-cp is disabled.
6990         * tree-inline.c (get_indirect_callee_fndecl): Removed.
6991         (expand_call_inline): Do not call get_indirect_callee_fndecl.
6992         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
6993         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
6994
6995 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
6996
6997         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
6998         temporary. Emit move from temporary to accum, so REG_EQUAL note will
6999         be attached to this insn in correct mode.
7000
7001 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7002
7003         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7004         using REGNO of base_reg directly.
7005
7006 2010-08-05  Jie Zhang  <jie@codesourcery.com>
7007
7008         PR tree-optimization/45144
7009         * tree-sra.c (type_consists_of_records_p): Return false
7010         if the record contains bit-field.
7011
7012 2010-08-04  Richard Henderson  <rth@redhat.com>
7013
7014         * config/i386/i386.c (struct ix86_frame): Remove padding and
7015         to_allocate members.
7016         (ix86_compute_frame_layout): Don't store them.
7017         (ix86_can_use_return_insn_p): Use a more direct and more obviously
7018         correct condition for the position of the stack pointer.
7019         (ix86_expand_prologue): Compute remaining stack allocation based
7020         on the ultimate stack pointer offset.
7021         (ix86_expand_epilogue): Use more obvious expressions testing for
7022         the stack pointer already pointing to the saved registers.
7023
7024         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7025         duplication deconstructing the frame pointer.  Simplify
7026         deallocation of the local stack frame.
7027
7028         * reg-notes.def (CFA_EXPRESSION): New.
7029         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7030         (dwarf2out_frame_debug_cfa_expression): New.
7031         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7032
7033         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7034         * config/i386/i386.c (ix86_expand_prologue): Set it.
7035         (ix86_expand_epilogue): Clear it.
7036         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7037         context, add REG_CFA_EXPRESSION notes.
7038
7039         * config/i386/i386.h (struct machine_frame_state): Rename from
7040         machine_cfa_state.  Add members tracking SP and FP regardless
7041         of the current CFA register.
7042         (ix86_cfa_state): Remove.
7043         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7044         and sse_reg_save_offset members.
7045         (ix86_compute_frame_layout): Set them.
7046         (gen_push): Increment sp_offset too.
7047         (choose_baseaddr_len, choose_baseaddr): New.
7048         (ix86_emit_save_reg_using_mov): New.
7049         (ix86_emit_save_regs_using_mov): Use it.
7050         (ix86_emit_save_sse_regs_using_mov): Likewise.
7051         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7052         compare vs the saved red_zone_offset.
7053         (pro_epilogue_adjust_stack): Adjust sp_offset.
7054         (ix86_adjust_stack_and_probe): Likewise.
7055         (ix86_expand_prologue): Set up, use, and validate the new
7056         frame_state_info members.  Use gen_frame_mem.
7057         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7058         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
7059         new frame_state_info members.
7060         (ix86_emit_leave): Likewise.
7061         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
7062         out-of-range stack pointer offsets here.
7063         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7064         (ix86_expand_epilogue): Use and validate the new frame_state_info
7065         members.  Break up and simplify the logic selecting the
7066         restore_regs_via_mov code path.  Ensure that there will be no
7067         out-of-range stack pointer offsets.
7068
7069         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7070
7071         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7072         argument name to reflect the expected tree; fix indentation.
7073         (ix86_asm_output_function_label): Output the entire 32-bit
7074         ms_hook here as bytes ...
7075         (ix86_expand_prologue): ... not here as insns.  Attach the
7076         unwind info for the ms_hook to a blockage insn.
7077         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7078         (ix86_ms_bitfield_layout_p): Fix indentation.
7079         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7080
7081         * config/i386/i386.c (ix86_using_red_zone): New.
7082         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7083         ix86_expand_prologue, ix86_force_to_memory): Use it.
7084
7085         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7086         saving the int registers.
7087
7088         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7089         and DWARF2_UNWIND_INFO conditional compilation.
7090
7091 2010-08-04  Richard Henderson  <rth@redhat.com>
7092
7093         PR debug/45171
7094         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7095         an is_naming_typedef_decl.
7096
7097 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
7098
7099         PR rtl-optimization/45162
7100         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7101         * dce.c (word_dce_process_block): Likewise.
7102
7103 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
7104
7105         PR target/44583
7106         * config/ia64/constraints.md (Z): New.
7107         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7108         (xfreg_or_signed_fp01_operand): New.
7109         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7110         with fr_reg_or_signed_fp01_operand and constraint G with Z.
7111         (subsf3): Ditto.
7112         (*maddsf4): Ditto.
7113         (*msubsf4): Ditto.
7114         (adddf3): Ditto.
7115         (adddf3_trunc): Ditto.
7116         (subdf3): Ditto.
7117         (*subdf3_trunc): Ditto.
7118         (*madddf4): Ditto.
7119         (*madddf4_trunc): Ditto.
7120         (*msubdf4): Ditto.
7121         (*msubdf4_trunc): Ditto.
7122         (addxf3): Replace xfreg_or_fp01_operand with
7123         xfreg_or_signed_fp01_operand and constraint G with Z.
7124         (*addxf3_truncsf): Ditto.
7125         (*addxf3_truncdf): Ditto.
7126         (subxf3): Ditto.
7127         (*subxf3_truncsf): Ditto.
7128         (*subxf3_truncdf): Ditto.
7129         (*maddxf4): Ditto.
7130         (*maddxf4_truncsf): Ditto.
7131         (*maddxf4_truncdf): Ditto.
7132         (*msubxf4): Ditto.
7133         (*msubxf4_truncsf): Ditto.
7134         (*msubxf4_truncdf): Ditto.
7135
7136 2010-08-04  Richard Guenther  <rguenther@suse.de>
7137
7138         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7139         if either alias-set is zero.
7140
7141 2010-08-04  Richard Guenther  <rguenther@suse.de>
7142
7143         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7144         * tree-ssa-ccp.c: ... here.
7145         * tree-ssa-copy.c: ... and here.
7146         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7147         value_range_t): Move ...
7148         * tree-vrp.c: ... here.
7149         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7150         (substitute_and_fold): Adjust prototype.
7151         * tree-ssa-propagate.c (replace_uses_in): Adjust.
7152         (replace_phi_args_in): Likewise.
7153         (substitute_and_fold): Take callback to query lattice instead
7154         of pointer to lattice.  Replace SSA name defs with lattice
7155         values first.
7156         * tree-ssa-ccp.c (ccp_finalize): Adjust.
7157         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7158         (get_value): New function.
7159         (fini_copy_prop): Adjust.
7160         * tree-vrp.c (vrp_finalize): Adjust.
7161
7162 2010-08-04  Richard Guenther  <rguenther@suse.de>
7163
7164         PR middle-end/45176
7165         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7166         points-to set for original MEM_REF.
7167
7168 2010-08-04  Richard Guenther  <rguenther@suse.de>
7169
7170         * tree-ssa-ccp.c (get_constant_value): New function.
7171         (get_rhs_assign_op_for_ccp): Remove.
7172         (valueize_op): New function.
7173         (ccp_fold): Use get_constant_value and valueize_op.
7174         (fold_const_aggregate_ref): Likewise.
7175         (ccp_fold_stmt): Likewise.
7176         (visit_assignment): Simplify.
7177
7178 2010-08-04  Richard Guenther  <rguenther@suse.de>
7179
7180         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7181         * double-int.h (double_int_ctz): Declare.
7182         * double-int.c (double_int_ctz): New function.
7183
7184 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7185
7186         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7187         Define.
7188         picochip_expand_movmemhi : Expand movmem pattern.
7189         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7190         Declare.
7191         * config/picochip/picochip.md (movmemhi) : New pattern.
7192
7193 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7194
7195         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7196
7197 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
7198
7199         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7200         NEG as operand of a MULT by merging it with the other operand.
7201         * combine.c (make_compound_operation): Use trunc_int_for_mode when
7202         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
7203         MULT.
7204         * config/arm/constraints.md (M): Examine only 32 bits of a
7205         HOST_WIDE_INT.
7206         * config/arm/predicates.md (power_of_two_operand): Likewise.
7207
7208 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7209
7210         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7211         non-NOTE insns.
7212
7213 2010-08-03  Jan Hubicka  <jh@suse.cz>
7214
7215         * ipa-split.c (struct split_point): Add split_part_set_retval.
7216         (find_retval): Forward declare.
7217         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7218         (consider_split): Compute current->split_part_set_retval.
7219         (visit_bb): Do not look into return value.
7220         (split_function): Handle !split_part_set_retval
7221
7222 2010-08-03  Martin Jambor  <mjambor@suse.cz>
7223
7224         * tree-sra.c (completely_scalarize_record): New parameter REF, create
7225         its own access->expr intead of using build_ref_for_offset.
7226
7227 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
7228
7229         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7230         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7231         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7232         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7233         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7234         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7235         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7236         DEFAULT_SWITCH_TAKES_ARG.
7237         * config/rx/rx.opt (-patch=): Remove option.
7238         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7239         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7240         * doc/invoke.texi (RX Options): Remove -patch=.
7241         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7242         (option_map): Remove --profile-blocks, --quiet and --silent.
7243
7244 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7245
7246         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7247         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7248         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
7249         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7250         Update calls to ix86_expand_compare and ix86_expand_branch.
7251         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
7252         ix86_expand_compare.
7253         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
7254         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7255         Make static.
7256         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7257         and ix86_compare_op1.  Update calls to ix86_expand_compare.
7258         (ix86_expand_int_movcc): Ditto.
7259         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
7260         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7261         (ix86_expand_setcc): Ditto.
7262         (ix86_expand_compare): Remove prototype.
7263         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7264         ix86_compare_op0 and ix86_compare_op1.  Update calls
7265         to ix86_expand_branch to directly pass operands[1] and operands[2].
7266         (cbranchxf4): Ditto.
7267         (cbranch<MODEF:mode>4): Ditto.
7268         (cbranchcc4): Ditto.
7269         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7270         Update calls to ix86_expand_setcc to directly pass operands[2] and
7271         operands[3].
7272         (cstorexf4): Ditto.
7273         (cstore<MODEF:mode>4): Ditto.
7274         (cstorecc4): Ditto.
7275
7276 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7277
7278         PR target/45063
7279         * caller-save.c (save_call_clobbered_regs): Remove regs from
7280         hard_regs_saved when they are set.
7281
7282 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7283
7284         PR target/41089
7285         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7286         as volatile.
7287
7288 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
7289
7290         * common.opt (ftree-loop-distribute-patterns): New.
7291         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7292         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7293         at -O3.
7294         * tree-data-ref.c (stores_zero_from_loop): New.
7295         * tree-data-ref.h (stores_zero_from_loop): Declared.
7296         * tree-loop-distribution.c (tree_loop_distribution): Call
7297         stores_zero_from_loop.
7298         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7299
7300 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7301
7302         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7303         into account.
7304
7305         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7306         * config/arm/arm.c (thumb1_code): New variable.
7307         (arm_override_options): Set it.
7308         (thumb1_final_prescan_insn): Keep track of condition code status.
7309         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7310         jumps that depend on them.
7311         * config/arm/arm.h (thumb1_code): Declare variable.
7312         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
7313         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7314         thumb1_cc_mode.
7315         (CC_STATUS_INIT): New macro.
7316         * config/arm/constraints.md (Pd): New constraint.
7317         * config/arm/predicates.md (noov_comparison_operator): New predicate.
7318         * config/arm/arm.md (is_thumb1): New define_attr.
7319         (conds): Set default to "clob" when generating Thumb1 code.
7320         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
7321         code are set.  Use two-operand assembly syntax.
7322         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
7323         pattern.
7324         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7325         codes are set.  Use two-operand assembly syntax.
7326         (zero_extendhisi splitter): Remove constraints.
7327         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7328         thumb1_movsf_insn): Set conds attribute as appropriate.
7329         (cbranchsi4_insn): Use condition code status from struct
7330         machine_function to determine whether the comparison can be eliminated.
7331         Discourage the alternative using high registers.
7332         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7333         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7334         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7335         subsi3_cbranch): Delete.
7336         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7337         one subtract and one cbranch insn.
7338
7339         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7340         thumb2_movdf_soft_insn): Delete patterns.
7341         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7342         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7343         (pool_range, neg_pool_range): Use them to define defaults.
7344         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7345         and allow for TARGET_32BIT.
7346
7347         PR target/40457
7348         * config/arm/arm.h (arm_regs_in_sequence): Declare.
7349         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7350         load_multiple_sequence, store_multiple_sequence): Delete
7351         declarations.
7352         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7353         declarations.
7354         * config/arm/ldmstm.md: New file.
7355         * config/arm/arm.c (arm_regs_in_sequence): New array.
7356         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
7357         CHECK_REGS.  All callers changed.
7358         If SAVED_ORDER is nonnull, copy the computed order into it.
7359         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
7360         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
7361         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
7362         If SAVED_ORDER is nonnull, copy the computed order into it.
7363         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
7364         like REGS.  Handle Thumb mode.
7365         (arm_gen_load_multiple_1): New function, broken out of
7366         arm_gen_load_multiple.
7367         (arm_gen_store_multiple_1): New function, broken out of
7368         arm_gen_store_multiple.
7369         (arm_gen_multiple_op): New function, with code from
7370         arm_gen_load_multiple and arm_gen_store_multiple moved here.
7371         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7372         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
7373         changed.
7374         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7375         * config/arm/predicates.md (commutative_binary_operator): New.
7376         (load_multiple_operation, store_multiple_operation): Handle more
7377         variants of these patterns with different starting offsets.  Handle
7378         Thumb-1.
7379         * config/arm/arm.md: Include "ldmstm.md".
7380         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7381         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7382         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7383         peepholes): Delete.
7384         * config/arm/ldmstm.md: New file.
7385         * config/arm/arm-ldmstm.ml: New file.
7386
7387         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7388         if statement which adds extra costs to frame-related expressions.
7389
7390 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7391
7392         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7393
7394 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7395
7396         PR target/45142
7397         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7398         alternative 2.
7399         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7400         split V4SI operands.
7401
7402 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7403
7404         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7405         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7406         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7407         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7408
7409 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7410
7411         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7412         LOCAL_INCLUDE_DIR.
7413
7414 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7415
7416         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7417         used in the call to optab_for_tree_code.  Fix the second
7418         is_widening_mult_p call.  Check that both unwidened operands
7419         have the same sign.
7420
7421 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7422
7423         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7424
7425 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7426
7427         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7428
7429 2010-07-30  DJ Delorie  <dj@redhat.com>
7430
7431         * config/rx/predicates.md (rx_constshift_operand): New.
7432         * config/rx/rx.md (zs_cond): New.
7433         (cbranchsi4): Remove mode.
7434         (*cbranchsi4_<code>): Likewise.
7435         (*tstbranchsi4_<code>): New.
7436         (*tstbranchsi4r_<code>): New.
7437         (*tstbranchsi4m_eq): New.
7438         (*tstbranchsi4m_ne): New.
7439         (cbranchsf4): Remove mode.
7440         (*cbranchsf4_<code>): Likewise.
7441
7442 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7443
7444         * rtlanal.c (simplify_subreg_regno): Don't treat
7445         HARD_FRAME_POINTER_REGNUM specially.
7446
7447 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7448
7449         * common.opt (-G): Don't define option here.
7450         * config/g.opt: New.
7451         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7452         rs6000/powerpc and score targets.
7453         * opts.c (common_handle_option): Don't handle -G here.
7454         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7455         * config/frv/frv.c (frv_handle_option): Handle -G.
7456         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7457         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7458         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7459         * config/mips/mips.c (mips_handle_option): Handle -G.
7460         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7461         * config/score/score.c (score_handle_option): Handle -G.
7462
7463 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7464
7465         * config/mmix/mmix.c: Include basic-block.h.
7466
7467 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7468
7469         PR debug/45055
7470         PR rtl-optimization/45137
7471         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7472         prototypes.
7473         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7474         New functions.
7475         * combine.c (next_nonnote_nondebug_insn): Removed.
7476         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7477         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7478         * sched-deps.c (sched_analyze_insn): Likewise.
7479         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7480         * rtlanal.c (canonicalize_condition): Likewise.
7481         * postreload.c (reload_combine_recognize_pattern): Likewise.
7482         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7483
7484 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7485
7486         * config/i386/i386.md (int_cond): Remove code iterator.
7487         (fp_cond): Ditto.
7488         (cbranch<mode>4): Use ordered_comparison_operator predicate
7489         for operator0.
7490         (cstore<mode>4): Ditto for operator1.
7491         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7492         (add<mode>cc): ditto.
7493
7494 2010-07-30  Richard Guenther  <rguenther@suse.de>
7495
7496         PR middle-end/45141
7497         * expr.c (expand_expr_real_1): Check for not handled base address.
7498
7499 2010-07-30  Richard Guenther  <rguenther@suse.de>
7500
7501         * ipa-prop.c (ipa_modify_formal_parameters): Use
7502         build_distinct_type_copy.
7503
7504 2010-07-30  Anthony Green  <green@moxielogic.com>
7505
7506         * config/moxie/rtems.h: New file.
7507         * config.gcc: Add moxie-rtems support.
7508
7509 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7510
7511         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7512         df flags as in run_fast_df_dce.
7513
7514 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7515
7516         Revert:
7517         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7518
7519         * rtl.def (NOTE): Swap operands 4 and 5.
7520         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7521         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7522         Adjust accordingly.
7523         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7524
7525 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7526
7527         PR debug/45110
7528         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7529         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7530         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7531         formal parameters.
7532         (gen_decl_die): Change return type to dw_die_ref, return what
7533         gen_formal_parameter_die returned.
7534
7535 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7536
7537         * dbgcnt.def (eipa_sra): New counter.
7538         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7539
7540 2010-07-29  Xinliang David Li  <davidxl@google.com>
7541
7542         PR bootstrap/45119
7543         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7544         in revision 162652.
7545
7546 2010-07-29  Richard Guenther  <rguenther@suse.de>
7547
7548         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7549         (TV_TREE_STORE_CCP): Likewise.
7550         (TV_TREE_REDPHI): Likewise.
7551
7552 2010-07-29  Richard Guenther  <rguenther@suse.de>
7553
7554         * double-int.h (double_int_and_not): New function.
7555         * combine.c (try_combine): Use it.
7556         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7557
7558 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7559
7560         PR rtl-optimization/42575
7561         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7562         Argument AU removed.  All callers changed.  Ignore artificial refs.
7563         Use return value of df_word_lr_simulate_defs to decide whether an insn
7564         is necessary.
7565         (fast_dce): Rename arg to WORD_LEVEL.
7566         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
7567         static.
7568         (pass_fast_rtl_byte_dce): Delete.
7569         * dce.h (run_word_dce): Declare.
7570         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7571         All callers changed.  Simplify code to only deal with two-word regs.
7572         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7573         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7574         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7575         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7576         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7577         (df_word_lr_mark_ref): Declare.
7578         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7579         df_word_lr_simulate_uses): Declare or rename from byte variants.
7580         (df_byte_lr_simulate_artificial_refs_at_top,
7581         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7582         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7583         declarations.
7584         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7585         (enum df_mm): Delete.
7586         * df-byte-scan.c: Delete file.
7587         * df-problems.c (df_word_lr_problem_data): Renamed from
7588         df_byte_lr_problem_data, all members deleted except for
7589         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
7590         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7591         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7592         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7593         df_byte_lr_confluence_0): Delete functions.
7594         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7595         callers changed.
7596         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7597         Don't initialize members that were deleted, don't try to discover data
7598         about registers.  Ignore hard regs.
7599         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7600         (df_word_lr_mark_ref): New function.
7601         (df_word_lr_bb_local_compute): Renamed from
7602         df_byte_bb_lr_local_compute; all callers changed.  Use
7603         df_word_lr_mark_ref.  Assert that artificial refs don't include
7604         pseudos.  Ignore hard registers.
7605         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7606         Assert that exit block uses don't contain pseudos.
7607         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7608         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7609         callers changed.  Ignore hard regs.
7610         (df_word_lr_transfer_function): Renamed from
7611         df_byte_lr_transfer_function; all callers changed.
7612         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7613         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7614         changed.
7615         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7616         callers changed.
7617         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7618         confluence operator 0 set to NULL.
7619         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7620         callers changed.
7621         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7622         Return bool, true if bitmap changed or insn otherwise necessary.
7623         All callers changed.  Simplify using df_word_lr_mark_ref.
7624         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7625         all callers changed.  Simplify using df_word_lr_mark_ref.
7626         * lower-subreg.c: Include "dce.h"
7627         (decompose_multiword_subregs): Call run_word_dce if df available.
7628         * Makefile.in (lower-subreg.o): Adjust dependencies.
7629         (df-byte-scan.o): Delete.
7630         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7631
7632 2010-07-29  Richard Guenther  <rguenther@suse.de>
7633
7634         * tree.c (build_vector): Assert that the vector constant
7635         has enough elements.
7636         (build_vector_from_ctor): Pad with trailing zeros.
7637
7638 2010-07-29  Richard Guenther  <rguenther@suse.de>
7639
7640         PR tree-optimization/45120
7641         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7642         Handle offset in DEREFs properly.
7643         (get_constraint_for_1): Handle MEM_REF offset properly.
7644
7645 2010-07-29  Richard Guenther  <rguenther@suse.de>
7646
7647         PR middle-end/45034
7648         * convert.c (convert_to_integer): Always use an unsigned
7649         type for narrowed negate and bitwise not.
7650
7651 2010-07-29  Ira Rosen  <irar@il.ibm.com>
7652
7653         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7654         to outer loop when creating reduction epilogue for double reduction,
7655         and switch back to the inner loop when updating the phi nodes.
7656         Update uses of outer loop exit phi nodes in double reduction (instead
7657         of uses of reduction).
7658
7659 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7660
7661         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7662         popcount on power7 and parity on power6 systems.
7663         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7664         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7665         instructions.
7666
7667         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7668         (UNSPEC_PARITY): Ditto.
7669         (SFDF): New iterator for SF/DF.
7670         (rreg2): New mode attribute for floating register constraint.
7671         (TARGET_FLOAT): New mode attribute for whether single/double float
7672         is supported.
7673         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7674         pattern.
7675         (parity<mode>2_cmpb): New insn for parity on power6 and newer
7676         machines.
7677         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7678         pattern.  Add support for fcpsgn instruction added in power6.
7679         (copysignsf3): Delete.
7680         (copysigndf3): Delete.
7681         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
7682         instead of if_then_else in RTL to avoid problems with -0.
7683
7684         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7685         of if_then_else to mirror scalar code.
7686         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7687         rs6000.md.
7688
7689         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7690         instead of if_then_else.
7691
7692 2010-07-28  Xinliang David Li  <davidxl@google.com>
7693
7694         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7695         (dump_cand): Dump var_before/after.
7696         (htab_inv_expr_eq): New function.
7697         (htab_inv_expr_hash): New function.
7698         (tree_ssa_iv_optimize_init): Support pseudo invariants.
7699         (add_candidate_1): consider base type precision.
7700         (set_use_iv_cost): New parameter.
7701         (adjust_setup_cost): Use profile information.
7702         (get_address_cost): Do not hard code width in computing address
7703         offset limits.
7704         (compare_aff_trees): New function.
7705         (get_loop_invariant_expr_id): New function.
7706         (get_computation_cost_at): New parameter and use profile information.
7707         (get_computation_cost): New parameter.
7708         (determine_use_iv_cost_generic): Pass new parameter.
7709         (determine_use_iv_cost_address): Ditto.
7710         (determine_use_iv_cost_condition): Ditto.
7711         (autoinc_possible_for_pair): Ditto.
7712         (determine_use_iv_costs): More dumps.
7713         (iv_ca_get_num_inv_exprs): New function.
7714         (iv_ca_recount_cost): Consider loop invariants in register pressure
7715         cost.
7716         (iv_ca_add_use): New parameter.
7717         (iv_ca_dump): Better dumping.
7718         (iv_ca_extend): New parameter.
7719         (try_add_cand_for): Attempt to get better partial solution.
7720         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
7721         (create_new-ivs): More dumps.
7722         (rewrite_use_compare): Ditto.
7723         (free_loop_data): More cleanup.
7724         (treee_ssa_iv_optimize_finalize): Ditto.
7725
7726 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
7727
7728         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
7729         * config/i386/i386.c (ix86_profile_before_prologue): New.
7730         (override_options): Add special handling for -mfentry.
7731         (ix86_function_regparm): Likewise.
7732         (ix86_function_sseregparm): Likewise.
7733         (ix86_frame_pointer_required): Likewise.
7734         (ix86_expand_prologue): Check for ms_hook_prologue.
7735         (x86_function_profiler): Adjust mcount output.
7736         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
7737         * config/i386/i386.opt (mfentry): New.
7738         * doc/invoke.texi (mfentry): Add documentation.
7739         * doc/tm.texi: Regenerated..
7740         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
7741         * final.c (final_start_function): Replace macro
7742         PROFILE_BEFORE_PROLOGUE by target hook.
7743         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7744         * target.def (profile_before_prologue): New hook.
7745         * targhooks.c (default_profile_before_prologue): New.
7746         * targhooks.h (default_profile_before_prologue): New.
7747
7748 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
7749
7750         PR debug/45105
7751         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
7752
7753         PR debug/45103
7754         * dwarf2out.c (dwarf2out_var_location): Always consider
7755         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
7756
7757 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7758
7759         PR rtl-optimization/45107
7760         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
7761
7762 2010-07-28  Richard Guenther  <rguenther@suse.de>
7763
7764         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
7765         (set_lattice_value): Do not query an old default value.
7766         (get_value_for_expr): New function.  Properly canonicalize
7767         float values.
7768         (ccp_visit_phi_node): Use it.
7769
7770 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
7771
7772         * config/arm/arm.c (arm_pcs_default): Remove static.
7773         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
7774         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
7775         (arm_pcs_default): Declare.
7776
7777 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
7778
7779         * config/rs6000/rs6000.c (rs6000_override_options):
7780         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
7781         ... to darwin_rs6000_override_options.
7782         (rs6000_return_in_memory): Update preceding comment for darwin
7783         64 bit ABI.  Use TARGET_MACHO inline.
7784         (rs6000_darwin64_struct_check_p): New.
7785         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
7786         (function_arg): Likewise.
7787         (rs6000_arg_partial_bytes): Likewise.
7788         (rs6000_function_value): Likewise.
7789
7790 2010-07-28  Andi Kleen  <ak@linux.intel.com>
7791
7792         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
7793
7794 2010-07-28  Richard Guenther  <rguenther@suse.de>
7795
7796         PR middle-end/44903
7797         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
7798         targets try harder to not generate unaligned accesses.
7799
7800 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7801
7802         PR rtl-optimization/45101
7803         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
7804         for gcse-las.
7805
7806 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7807
7808         PR tree-optimization/44885
7809         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
7810         with non-aliased component.
7811
7812 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
7813
7814         * config/darwin-driver.c (SWITCH_TAKES_ARG,
7815         WORD_SWITCH_TAKES_ARG): Remove.
7816         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7817         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
7818         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
7819         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
7820         definitions from gcc.c.
7821         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
7822         defaults.h.
7823         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
7824         Move to defaults.h.
7825         * opts-common.c: Include tm.h.
7826         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
7827         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
7828         Handle more than one argument.  Set canonical_option_num_elements.
7829         (decode_cmdline_options_to_array): Set
7830         canonical_option_num_elements and trailing elements of
7831         canonical_option.
7832         * opts.h (struct cl_decoded_option): Allow four elements in
7833         canonical_option.  Add field canonical_option_num_elements.
7834         * Makefile.in (opts-common.o): Update dependencies.
7835
7836 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7837
7838         PR middle-end/44790
7839         PR middle-end/44993
7840         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
7841         sure the base has address_mode before adding the offset.
7842
7843 2010-07-27  Xinliang David Li  <davidxl@google.com>
7844
7845         * tree-flow.h (create_mem_ref): Add one new parameter.
7846         * tree-ssa-address.c (create_mem_ref): New parameter.
7847         (addr_to_parts): Ditto.
7848         (move_variant_to_index): New function.
7849         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
7850
7851 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7852
7853         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
7854         4 and 5.
7855         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
7856         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
7857         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
7858         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
7859         CODE_LABELs and NOTEs.
7860         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
7861         * combine.c (try_combine): Likewise.
7862         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7863         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
7864
7865 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7866
7867         * coretypes.h (struct cl_option_handlers): Declare.
7868         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
7869         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
7870         * langhooks-def.h (lhd_handle_option): Declare.
7871         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
7872         * langhooks.c (lhd_handle_option): New.
7873         * langhooks.h (struct lang_hooks): Update prototype and return
7874         value type of handle_option hook.
7875         * optc-gen.awk: Generate target_flags_explicit definition for the
7876         driver.
7877         * opts-common.c: Include diagnostic.h.
7878         (handle_option): Move from opts.c.  Update prototype and return
7879         value type.  Use handlers structure.
7880         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
7881         handlers structure.
7882         (set_option): Move from opts.c.
7883         * opts.c (common_handle_option): Update prototype and return value
7884         type.  Update calls to handle_option and enable_warning_as_error.
7885         (unknown_option_callback, post_handling_callback,
7886         lang_handle_option, target_handle_option): New.
7887         (handle_option, read_cmdline_option): Move to opts-common.c.
7888         (read_cmdline_options): Update prototype.  Update call to
7889         read_cmdline_option.
7890         (decode_options): Initialize and use handlers structure.
7891         (set_option): Move to opts-common.c.
7892         (enable_warning_as_error): Update prototype.  Update call to
7893         handle_option.
7894         * opts.h (struct cl_option_handler_func, struct
7895         cl_option_handlers): New.
7896         (handle_option, enable_warning_as_error): Update prototypes.
7897         (read_cmdline_option): Declare.
7898         * Makefile.in (opts-common.o): Update dependencies.
7899
7900 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7901
7902         * config/arm/arm.c (params.h): Include.
7903         (arm_override_options): Tune gcse-unrestricted-cost.
7904         * config/arm/t-arm (arm.o): Define dependencies.
7905
7906 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7907
7908         PR target/42495
7909         PR middle-end/42574
7910         * basic-block.h (get_dominated_to_depth): Declare.
7911         * dominance.c (get_dominated_to_depth): New function, use
7912         get_all_dominated_blocks as a base.
7913         (get_all_dominated_blocks): Use get_dominated_to_depth.
7914
7915         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
7916         (hoist_exprs): Remove.
7917         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
7918         (compute_code_hoist_vbeinout): Add debug print outs.
7919         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
7920
7921         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
7922         quadratic behavior.
7923         * params.h (MAX_HOIST_DEPTH): New macro.
7924         * doc/invoke.texi (max-hoist-depth): Document.
7925
7926 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7927
7928         PR rtl-optimization/40956
7929         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
7930         constants.
7931
7932 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7933
7934         PR target/42495
7935         PR middle-end/42574
7936         * config/arm/arm.c (legitimize_pic_address): Use
7937         gen_calculate_pic_address pattern to emit calculation of PIC address.
7938         (will_be_in_index_register): New function.
7939         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
7940         (thumb1_legitimate_address_p): Use it provided !strict_p.
7941         * config/arm/arm.md (calculate_pic_address): New expand and split.
7942
7943 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7944
7945         PR target/42495
7946         PR middle-end/42574
7947         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
7948         * config/arm/arm.md (define_split "J", define_split "K"): Make
7949         IRA/reload friendly.
7950
7951 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7952
7953         * gcse.c (insert_insn_end_basic_block): Update signature, remove
7954         unused checks.
7955         (pre_edge_insert, hoist_code): Update.
7956
7957 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7958
7959         PR target/42495
7960         PR middle-end/42574
7961         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
7962
7963 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7964
7965         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
7966
7967 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7968
7969         PR rtl-optimization/40956
7970         PR target/42495
7971         PR middle-end/42574
7972         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
7973         for hoisting.
7974         (hoist_code): Count occurences in current block too.
7975
7976 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7977
7978         * gcse.c (struct expr:max_distance): New field.
7979         (doing_code_hoisting_p): New static variable.
7980         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
7981         simple expressions, don't change behavior for PRE.  Set max_distance.
7982         (insert_expr_in_table): Set new max_distance field.
7983         (hash_scan_set): Update.
7984         (hoist_expr_reaches_here_p): Stop search after max_distance
7985         instructions.
7986         (find_occr_in_bb): New static function.  Use it in ...
7987         (hoist_code): Calculate sizes of basic block before any changes are
7988         done.  Pass max_distance to hoist_expr_reaches_here_p.
7989         (one_code_hoisting_pass): Set doing_code_hoisting_p.
7990
7991         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
7992         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
7993         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
7994         macros.
7995         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
7996         Document.
7997
7998 2010-07-27  Jeff Law  <law@redhat.com>
7999             Maxim Kuvyrkov  <maxim@codesourcery.com>
8000
8001         * gcse.c (compute_transpout, transpout): Remove, move logic
8002         to prune_expressions.
8003         (compute_pre_data): Move pruning of trapping expressions ...
8004         (prune_expressions): ... here.  New static function.
8005         (compute_code_hoist_data): Use it.
8006         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8007
8008 2010-07-27  Xinliang David Li  <davidxl@google.com>
8009
8010         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8011         (rewrite_use_address): Adjust iv update position when needed.
8012
8013 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8014
8015         * dbgcnt.def (hoist_insn): New debug counter.
8016         * gcse.c (hoist_code): Use it.
8017
8018 2010-07-27  Xinliang David Li  <davidxl@google.com>
8019
8020         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8021         (niter_for_single_dom_exit): Passes additional parameter.
8022         (iv_period): Fix comments.
8023         (may_eliminate_iv): Handles multiple exit loops properly.
8024         (free_tree_niter_desc): New function.
8025         (free_loop_data): Frees up loop iteration descriptors.
8026
8027 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8028
8029         PR target/44542
8030         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8031         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8032         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8033         (expand_one_var): Don't consider DECL_ALIGN for variables for
8034         which expand_one_stack_var_at has been already called.
8035
8036         PR testsuite/44701
8037         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8038         constraints on IA-64.
8039
8040 2010-07-27  Jie Zhang  <jie@codesourcery.com>
8041
8042         PR target/44290
8043         Revert:
8044         2010-07-23  Jie Zhang  <jie@codesourcery.com>
8045
8046         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8047         false if ! tree_versionable_function_p.
8048
8049 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8050
8051         * dwarf2out.c (add_data_member_location_attribute): Use
8052         add_AT_unsigned instead of add_AT_int if offset is non-negative.
8053
8054 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8055
8056         * postreload.c (try_replace_in_use): New static function.
8057         (reload_combine_recognize_const_pattern): Use it here.  Allow
8058         substituting into a final add insn, and substituting into a memory
8059         reference in an insn that sets the reg.
8060
8061 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8062
8063         * common.opt (o): Add MissingArgError.
8064         * doc/options.texi (MissingArgError): Document.
8065         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8066         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8067         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8068         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8069         * langhooks.h (struct lang_hooks): Remove missing_argument.
8070         * optc-gen.awk: Handle MissingArgError and output new structure
8071         field initializers.
8072         * opts.c (read_cmdline_option): Use missing_argument_error field
8073         instead of missing_argument langhook.
8074         * opts.h (struct cl_option): Add missing_argument_error field.
8075         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8076
8077 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8078
8079         PR target/29090
8080         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8081         Darwin64 ABI, for zero-sized objects.
8082
8083 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8084
8085         PR target/35491
8086         PR target/29090
8087
8088         Merge from Apple local 4.2.1.
8089         2005-05-11  Stan Shebs  <shebs@apple.com>
8090         Fix 64-bit varargs for Darwin (Radar 4028089).
8091         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8092         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8093         Add argument, add case for 8-byte register half-filled with a float.
8094         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8095         single-precision floats specially.
8096
8097 2010-07-27  Ira Rosen  <irar@il.ibm.com>
8098
8099         PR tree-optimization/44152
8100         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8101         complex numbers for further check.
8102         (vect_supported_load_permutation_p): Check nodes with
8103         complex numbers.
8104
8105 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8106
8107         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8108         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8109         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8110         (LANG_HOOKS_INITIALIZER): Add new hooks.
8111         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8112         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8113         and complain_wrong_lang_p.  Update init_options prototype.
8114         * c-objc-common.c (c_initialize_diagnostics): First call
8115         c_common_initialize_diagnostics.
8116         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8117         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8118         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8119         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8120         (hook_uint_void_0): New.
8121         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8122         (hook_uint_void_0): New.
8123         * opts-common.c (decode_cmdline_option,
8124         decode_cmdline_options_to_array): Also fill in canonical_option field.
8125         * opts.c (complain_wrong_lang): Use langhook to determine whether
8126         to complain instead of special-casing LTO.
8127         (decode_options): Separate lang_mask determination with
8128         option_lang_mask hook from call of init_options hook.
8129         * opts.h (struct cl_decoded_option): Add canonical_option.
8130
8131 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8132
8133         PR tree-optimization/45083
8134         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8135
8136 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8137
8138         * postreload.c (reload_combine_recognize_const_pattern): Move test
8139         for limiting the insn movement to the right scope.
8140
8141         PR rtl-optimization/45051
8142         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8143         than reg_mentioned_p.
8144
8145 2010-07-26  Richard Henderson  <rth@redhat.com>
8146
8147         PR target/44132
8148         * tree-emutls.c: New file.
8149         * Makefile.in (OBJS-common): Add it.
8150         * tree-pass.h (pass_ipa_lower_emutls): Declare.
8151         * passes.c (init_optimization_passes): Add it.
8152
8153         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8154         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8155         * expr.c (emutls_var_address): Delete.
8156         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8157         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8158         (emutls_finish): Delete.
8159         * toplev.c (compile_file): Don't call it.
8160         * tree.h (emutls_decl): Delete.
8161         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8162         (emutls_finish, emutls_finalize_control_var): Delete.
8163         (emutls_object_type): Move to tree-emutls.c.
8164         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8165         default_emutls_var_fields, get_emutls_object_type,
8166         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8167         default_emutls_var_init): Likewise.
8168         (get_variable_section): Don't special case emutls.
8169         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8170         default_elf_select_section, default_unique_section,
8171         default_encode_section_info): Likewise.
8172         * varpool.c (decide_is_variable_needed): Likewise.
8173         * gimple-iterator.c (update_call_edge_frequencies): New
8174         (gsi_insert_on_edge_immediate): Use it.
8175         (gsi_insert_seq_on_edge_immediate): Likewise.
8176         (gsi_commit_one_edge_insert): Likewise.
8177
8178         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8179         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8180         (x86_64_elf_unique_section): Likewise.
8181
8182 2010-07-26  Jan Hubicka  <jh@suse.cz>
8183
8184         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8185         GTY((skip)).
8186
8187 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
8188
8189         * target.def (output_source_filename): New hook.
8190         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8191         * doc/tm.texi: Regenerate.
8192         * toplev.c (output_file_directive) Remove function.
8193         * toplev.h (output_file_directive) Remove.
8194         * output.h (default_asm_output_source_filename,
8195         output_file_directive): Declare.
8196         * varasm.h (default_asm_output_source_filename,
8197         output_file_directive): New functions.
8198
8199         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8200         * config/mips/mips-protos.h (mips_output_filename): Remove.
8201         * config/mips/mips.c (mips_output_filename): Make Static.
8202         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8203
8204 2010-07-26  Richard Guenther  <rguenther@suse.de>
8205
8206         PR tree-optimization/43784
8207         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8208         if the destination is used by the call.
8209
8210 2010-07-26  Richard Guenther  <rguenther@suse.de>
8211
8212         PR middle-end/45073
8213         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8214         SSA updating on being in SSA form.
8215
8216 2010-07-26  Richard Guenther  <rguenther@suse.de>
8217
8218         PR middle-end/45056
8219         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8220
8221 2010-07-26  Richard Guenther  <rguenther@suse.de>
8222
8223         PR tree-optimization/45071
8224         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8225         adjust op->opcode.
8226
8227 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
8228
8229         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8230         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8231         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8232         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8233         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8234         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8235         save_r31, return_r31, save_interrupt, return_interrupt,
8236         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8237         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8238         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8239         new ABI requirements.
8240         (save_r6_r9, L_callt_save_r6_r9): Remove.
8241         * config/v850/predicates.md (even_reg_operand, disp23_operand,
8242         const_float_1_operand const_float_0_operand): New Predicates.
8243         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8244         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8245         * config/v850/t-v850: Update multilibs for new target variants.
8246         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8247         * config/v850/t-v850e: Likewise.
8248         * config/v850/v850.c (v850_issue_rate): New.
8249         (v850_strict_argument_naming): New.
8250         (function_arg): Modify to generate a different ABI.
8251         (print_operand): Update case 'z' to support float modes.
8252         (output_move_single): Modify to generate appropriate and better
8253         assembly.
8254         (v850_float_z_comparison_operator, v850_select_cc_mode,
8255         v850_float_nz_comparison_operator,  v850_gen_float_compare,
8256         v850_gen_compare): New functions to support comparison of float values.
8257         (ep_memory_offset): Add support for V850E2 targets.
8258         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8259         (INTERRUPT_REGPARM_NUM): Remove.
8260         (compute_register_save_size): Add extra case to save/restore long call.
8261         (use_prolog_function): New function to support prologue.
8262         (expand_prologue): Add support for V850E2 targets and modified
8263         as per the current ABI requirements.
8264         (expand_epilogue): Likewise.
8265         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8266         (construct_save_jarl): Likewise.
8267         (construct_dispose_instruction): Update as per the current ABI
8268         requirements.
8269         (construct_prepare_instruction): Likewise.
8270         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8271         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8272         (CPP_SPEC): Updated to support v850e2 targets.
8273         (STRICT_ALIGNMENT): Modified.
8274         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8275         (FIXED_REGISTERS): Likewise.
8276         (CALL_USED_REGISTERS): Likewise.
8277         (CONDITIONAL_REGISTER_USAGE): Updated.
8278         (HARD_REGNO_MODE_OK): Updated.
8279         (reg_class): Updated to add even registers.
8280         (REG_CLASS_NAMES): Likewise.
8281         (REG_CLASS_CONTENTS): Likewise.
8282         (REGNO_REG_CLASS): Updated for CC registers.
8283         (REG_CLASS_FROM_LETTER): Added support for even registers.
8284         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8285         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8286         ARG_POINTER_REGNUM): Updated.
8287         (FUNCTION_ARG_ADVANCE): Define.
8288         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8289         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8290         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8291         (GO_IF_LEGITIMATE_ADDRESS): Updated.
8292         (SELECT_CC_MODE): Define.
8293         (REGISTER_NAMES): Updated to add psw and fcc registers.
8294         (ADDITIONAL_REGISTER_NAMES): Updated.
8295         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8296         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8297         * config/v850/v850.md (define_constants): Define new constants.
8298         (type): Update store,bit1,macc,div,fpu and single attributes.
8299         (cpu): New attribute.
8300         (cc): Add set_z attribute.
8301         (unsign23byte_load, sign23byte_load, unsign23hword_load,
8302         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8303         23word_store): New instructions for 23-bit displacement load and store.
8304         (movqi_internal, movhi_internal): Update the attributes.
8305         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8306         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8307         the attributes.
8308         (v850_tst1): Modified using CC_REGNUM.
8309         (tstsi): Remove.
8310         (cmpsi): Modified as define_expand from define_insn.
8311         (cmpsi_insn, cmpsf, cmpdf): New instructions.
8312         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8313         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8314         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8315         one_cmplsi2): Clobber the CC_REGNUM register.
8316         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8317         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8318         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8319         (setf_insn, set_z_insn, set_nz_insn): New instructions for
8320         v850e2v3 target.
8321         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8322         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8323         targets.
8324         (sasf_1, sasf_2): Remove.
8325         (sasf): New instruction.
8326         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8327         targets. CC_REGNUM register is clobbered and attributes are
8328         updated.
8329         (branch_z_normal, branch_z_invert, branch_nz_normal,
8330         branch_nz_invert): New branch related instructions.
8331         (jump): Updated the attributes.
8332         (switch): Update to support new targets. CC_REGNUM register is
8333         clobbered and attributes are updated.
8334         (call_internal_short, call_internal_long, call_value_internal_short,
8335         call_value_internal_long): Updated the attributes.
8336         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8337         clobbered and attributes are updated.
8338         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8339         Update to support new targets. CC_REGNUM register is clobbered.
8340         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8341         instructions.
8342         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8343         are updated.
8344         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8345         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8346         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8347         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8348         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8349         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8350         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8351         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8352         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8353         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8354         point instructions defined for V850e2v3 target.
8355         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8356         Add support for V850E2 targets and CC_REGNUM register is clobbered.
8357         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8358         support for new targets.
8359         * config/v850/v850-modes.def: New file.
8360         * config/v850/v850.opt(mstrict-align): Remove.
8361         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8362         mv850e2v3): New command line options for V850.
8363         * config.gcc: Update the newly added files.
8364         * doc/invoke.texi: Update the newly added command line options for
8365         V850 target.
8366
8367 2010-07-26  Richard Guenther  <rguenther@suse.de>
8368
8369         PR tree-optimization/45052
8370         * ipa-pure-const.c (check_stmt): Check volatileness.
8371
8372 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8373
8374         PR target/44707
8375         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8376         * config/sparc/sparc.c: Include reload.h.
8377         (legitimize_tls_address): Rename into...
8378         (sparc_legitimize_tls_address): ...this.
8379         (legitimize_pic_address): Rename into...
8380         (sparc_legitimize_pic_address): ...this.
8381         (sparc_expand_move): Adjust to above renaming.
8382         (sparc_tls_referenced_p): Likewise.
8383         (sparc_legitimize_tls_address): Likewise.
8384         (sparc_legitimize_pic_address): Likewise.
8385         (sparc_legitimize_address): Likewise.
8386         (sparc_output_mi_thunk): Likewise.
8387         (sparc_legitimize_reload_address): New global function.  Recognize
8388         (lo_sum (high ...) ...) patterns generated by earlier passes.
8389         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8390
8391 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8392
8393         PR target/44484
8394         * config/sparc/predicates.md (memory_reg_operand): Delete.
8395         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8396         (*sync_compare_and_swap): Encode the address form in the pattern.
8397         (*sync_compare_and_swapdi_v8plus): Likewise.
8398
8399 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8400
8401         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8402         Streamline paragraph on compatibility with the system compiler.
8403
8404 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8405
8406         PR middle-end/45035
8407         * alias.c (true_dependence_1): Fix thinko in merge of old
8408         true_dependence and canon_true_dependence.
8409
8410 2010-07-23  Jan Hubicka  <jh@suse.cz>
8411
8412         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8413         references.
8414
8415 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8416
8417         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8418         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8419         and an unnecessary assignment.
8420         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8421         self-assign warning.
8422         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8423         unnecessary self-init.
8424
8425 2010-07-23  Richard Guenther  <rguenther@suse.de>
8426
8427         PR lto/43071
8428         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8429         for -flto and -fwhopr.
8430
8431 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8432
8433         PR target/41943
8434         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8435         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8436         * config.gcc (user_headers_inc_next_pre): New.
8437         (user_headers_inc_next_post): Likewise.
8438         (*-w64-mingw*): Use for float.h post-fixing, and for
8439         stddef.h/stdarg.h pre-fixing by include_next.
8440         * configure.ac (user_headers_inc_next_post): New.
8441         (user_headers_inc_next_pre): New.
8442         * configure: Regenerated.
8443
8444 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8445
8446         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8447         Set tga_func for Solaris 2/x86 resp. SPARC.
8448         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8449         (LIB_THREAD_LDFLAGS_SPEC): Define.
8450         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8451         * configure: Regenerate.
8452         * config.in: Regenerate.
8453         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8454         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8455         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8456         alternate thread libraries on Solaris 8.
8457         Document TLS patch requirements.
8458         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8459         Document tls.
8460
8461         PR target/18788
8462         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8463         -shared.
8464
8465 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8466
8467         * tree.h (struct tree_base): Add nameless_flag bitfield.
8468         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8469         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8470         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8471         DECL_ARTIFICIAL where needed.
8472         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8473         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8474         has DECL_NAMELESS set.
8475
8476 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8477
8478         PR tree-optimization/44915
8479         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8480         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8481         (analyze_function): Likewise.
8482
8483 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8484
8485         PR tree-optimization/44914
8486         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8487         changed, add purging dead eh edges.
8488         (ipa_sra_modify_function_body): Return true if CFG was changed,
8489         simplify purging dead eh edges.
8490         (modify_function): Return true if CFG was changed.
8491         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8492         was changed.
8493         (ipa_early_sra): Likewise.
8494
8495 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8496
8497         PR target/44290
8498         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8499         if "naked".
8500         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8501         false if ! tree_versionable_function_p.
8502
8503 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8504
8505         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8506         * ipa-pure-const.c (special_builtlin_state): Remove
8507         BUILT_IN_ARGS_INFO case.
8508         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8509         * builtins.c (expand_builtin): Likewise.
8510         (expand_builtin_args_info): Remove.
8511         * doc/tm.texi (__builtin_args_info): Remove.
8512         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8513         * doc/tm.text.in: Likewise.
8514
8515 2010-07-23  Richard Guenther  <rguenther@suse.de>
8516
8517         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8518         (lto_symtab_merge_decls_2): Likewise.
8519         * tree-ssa.c (useless_type_conversion_p): Likewise.
8520         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8521         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8522         (struct type_pair_d): Make same_p an array indexed by mode.
8523         Update comment.
8524         (lookup_type_pair): Update initialization.
8525         (struct sccs): Adjust same_p type.
8526         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8527         Adjust.
8528         (print_gimple_types_stats): Likewise.
8529         * gimple.h (enum gtc_mode): New.
8530         (gimple_types_compatible_p): Adjust prototype.
8531
8532 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8533
8534         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8535         again after processing insn.
8536
8537 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8538
8539         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8540         proper words when !tree_versionable_function_p.
8541
8542 2010-07-23  Richard Guenther  <rguenther@suse.de>
8543
8544         PR tree-optimization/45037
8545         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8546
8547 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8548
8549         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8550         Add MCORE instead.
8551
8552 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8553
8554         PR lto/44992
8555         * lto-opts.c (lto_write_options): Add NULL file_data argument to
8556         lto_get_section_name.
8557         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8558         * lto-streamer-out.c (produce_asm): Likewise.
8559         (copy_function): Likewise.
8560         (produce_symtab): Likewise.
8561         (produce_asm_for_decls): Likewise.
8562         * lto-streamer.c (lto_get_section_name): Add file_data argument.
8563         Rewrite to add random postfix to LTO sections.
8564         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8565         (lto_get_section_name): Add file_data argument to prototype.
8566
8567 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8568
8569         * lto-section-in.c (lto_section_name): Synchronize names
8570         with lto_get_section_name.
8571
8572 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8573
8574         * lto-opts.c (lto_read_file_options): Check for missing section.
8575
8576 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8577
8578         * ira.c (check_allocation): Correctly handle the case where an allocno
8579         with two objects was allocated to a single reg.
8580
8581 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
8582
8583         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8584         (is_widening_mult_p): Likewise.
8585         (convert_to_widen): Use them.
8586         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
8587         well as integer ones.
8588
8589 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
8590
8591         * alias.c (true_dependence_1): New function, merged version of
8592         true_dependence and canon_true_dependence.
8593         (true_dependence): Simplify.
8594         (canon_true_dependence): Simplify.
8595
8596 2010-07-22  Richard Henderson  <rth@redhat.com>
8597
8598         PR target/45027
8599         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8600         of V4SFmode for the SSE saves; increase stack alignment if needed.
8601         (ix86_gimplify_va_arg): Don't increase stack alignment here.
8602
8603 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
8604
8605         PR bootstrap/45028
8606         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8607         call cprop_find_used_regs again via note_uses.
8608
8609 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8610
8611         * alias.c (get_alias_set): Fix formatting issues.
8612
8613 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
8614
8615         PR middle-end/44878
8616         * stmt.c (expand_value_return):  Call promote_function_mode with
8617         a for_return argument of 2 when returning by reference.
8618
8619 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
8620
8621         PR debug/45024
8622         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8623         unit DIE if we can find the scope DIE.
8624
8625 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8626
8627         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8628         changed.  Initialize OBJECT_SUBWORD.
8629         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8630         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8631         all callers changed.
8632         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8633         (finish_allocno): Likewise.
8634         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8635         (remove_low_level_allocnos): Likewise.
8636         (update_bad_spill_attribute): Likewise.
8637         (setup_min_max_allocno_live_range_point): Likewise.
8638         (sort_conflict_id_map): Likewise.
8639         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
8640         (ior_hard_reg_conflicts): New function.
8641         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8642         (compress_conflict_vecs): Iterate over objects, not allocnos.
8643         (ira_add_live_range_to_object): New function.
8644         (object_range_compare_func): Renamed from allocno_range_compare_func.
8645         All callers changed.
8646         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8647         subobjects, widen the min/max range of the lowest-order object to
8648         potentially include all other such low-order objects.
8649         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8650         (check_allocation): Likewise.  Use more fine-grained tests for register
8651         conflicts.
8652         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8653         allocno subobjects.
8654         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
8655         choices about which bits to set in each set.  Don't use
8656         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8657         using the multiple sets we computed.
8658         (push_allocno_to_stack): Iterate over allocno subobjects.
8659         (all_conflicting_hard_regs_coalesced): New static function.
8660         (setup_allocno_available_regs_num): Use it.
8661         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
8662         subobjects.
8663         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8664         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8665         by ALLOCNO_NUM_OBJECTS.
8666         (calculate_spill_cost): Likewise.
8667         (color_pass): Express if statement in a more normal way.
8668         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8669         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8670         (setup_slot_coalesced_allocno_live_ranges): Likewise.
8671         (allocno_reload_assign): Likewise.
8672         (ira_reassign_pseudos): Likewise.
8673         (fast_allocation): Likewise.
8674         * ira-conflicts.c (build_conflict_bit_table): Likewise.
8675         (print_allocno_conflicts): Likewise.
8676         (ira_build_conflicts): Likewise.
8677         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
8678         callers changed.  Test subword 0 of each allocno for conflicts.
8679         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
8680         callers changed.  Iterate over allocno subobjects.
8681         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8682         * ira-int.h (struct ira_allocno): New member: num_objects.
8683         Rename object to objects and change it into an array.
8684         (ALLOCNO_OBJECT): Add new argument N.
8685         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8686         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8687         (ior_hard_reg_conflicts): Declare.
8688         (ira_add_live_range_to_object): Declare.
8689         (ira_allocno_object_iterator): New.
8690         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8691         (FOR_EACH_ALLOCNO_OBJECT): New macro.
8692         * ira-lives.c (objects_live): Renamed from allocnos_live; all
8693         uses changed.
8694         (allocnos_processed): New sparseset.
8695         (make_object_born): Renamed from make_allocno_born; take an
8696         ira_object_t argument.  All callers changed.
8697         (make_object_dead): Renamed from make_allocno_dead; take an
8698         ira_object_t argument.  All callers changed.
8699         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8700         All callers changed.
8701         (mark_pseudo_regno_live): Iterate over allocno subobjects.
8702         (mark_pseudo_regno_dead): Likewise.
8703         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8704         functions.
8705         (mark_ref_live): Detect subword accesses and call
8706         mark_pseudo_regno_subword_live as appropriate.
8707         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8708         (process_bb_nodes_live): Deal with object-related updates first; set
8709         and test bits in allocnos_processed to avoid computing allocno
8710         statistics more than once.
8711         (create_start_finish_chains): Iterate over objects, not allocnos.
8712         (print_object_live_ranges): New function.
8713         (print_allocno_live_ranges): Use it.
8714         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8715         and objects_live.
8716
8717 2010-07-22  Richard Guenther  <rguenther@suse.de>
8718
8719         PR lto/42451
8720         * gimple.c (gtc_next_dfs_num): New global.
8721         (struct sccs): Make value a union, add integer same_p member.
8722         (gtc_visit): New function.
8723         (gimple_types_compatible_p_1): New function, split out from ...
8724         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
8725         (iterative_hash_gimple_type): Adjust for sccs change.
8726
8727 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8728
8729         PR tree-optimization/44891
8730         * tree-sra.c: Include gimple-pretty-print.h.
8731         (replace_uses_with_default_def_ssa_name): Renamed to
8732         get_repl_default_def_ssa_name, return the new SSA name instead of
8733         replacing the old one.
8734         (sra_modify_assign): Dump a message when removing a load, if the LHS
8735         is an SSA_NAME, do not do any propagation, just set the RHS to a
8736         default definition SSA NAME, type convert if necessary.
8737         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
8738
8739 2010-07-22  Richard Guenther  <rguenther@suse.de>
8740
8741         PR tree-optimization/45017
8742         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
8743         TYPE_PRECISION of integral types in addition to size.
8744
8745 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8746
8747         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
8748         when no C library is specified.
8749
8750 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8751
8752         * ipa-prop.h (struct ipa_node_params): Updated comment.
8753         (struct ipa_edge_args): Likewise.
8754         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
8755
8756 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8757
8758         * cgraphunit.c (verify_edge_count_and_frequency): New function.
8759         (verify_cgraph_node): Verify frequencies of indirect edges.
8760         * tree-inline.c (tree_function_versioning): Update frequencies of
8761         indirect edges.
8762
8763 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8764
8765         PR target/43698
8766         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8767         Set *arm_rev to be predicable.
8768
8769 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8770
8771         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
8772         (LINK_COMMAND_SPEC_A): New.
8773         (DSYMUTIL): New.
8774         (DSYMUTIL_SPEC): New.
8775         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
8776         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
8777
8778 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8779
8780         * calls.c (load_register_parameters): Move check for zero
8781         sized items so that only the call to
8782         mem_overlaps_already_clobbered_arg_p () is protected.
8783
8784 2010-07-22  Jan Hubicka  <jh@suse.cz>
8785
8786         * ipa-pure-const.c (varying_state): Break out from ...
8787         (get_function_state): ... here; always return varying_state
8788         when state would be NULL otherwise.
8789         (remove_node_data): Do not free varying state.
8790
8791 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8792
8793         PR bootstrap/44970
8794         PR middle-end/45009
8795         * postreload.c: Include "target.h".
8796         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
8797         into account.
8798         (fixup_debug_insns): Don't copy the rtx.
8799         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
8800         Don't copy when replacing.  Call fixup_debug_insns in the case where
8801         we merged one add with another.
8802         (reload_combine_recognize_pattern): Fail if there aren't any uses.
8803         Try harder to determine whether we're picking a valid index register.
8804         Don't set store_ruid for an insn we're going to scan in the
8805         next iteration.
8806         (reload_combine): Remove unused code.
8807         (reload_combine_note_use): When updating use information for
8808         an old insn, ignore a use that occurs after store_ruid.
8809         * Makefile.in (postreload.o): Update dependencies.
8810
8811         * function.c (record_hard_reg_sets): Restrict the previous change
8812         to cases where the incoming nominal mode is the same as the
8813         incoming promoted mode and everything happens in MODE_INT.
8814
8815 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8816
8817         PR debug/45015
8818         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
8819         ASM_OPERANDS_OUTPUT_IDX.
8820         (adjust_insn): For inline asm with multiple sets ensure first
8821         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
8822         the insn.
8823
8824 2010-07-21  Richard Henderson  <rth@redhat.com>
8825
8826         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
8827         comparison for avoiding xmm register saves.  Emit the xmm register
8828         saves explicitly.
8829         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
8830         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
8831         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
8832         Remove patterns and the associated splitters.
8833
8834 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
8835
8836         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
8837         and imagine parts of a complex, so that they can have the same
8838         base and fall into the same group.
8839
8840 2010-07-21  Richard Guenther  <rguenther@suse.de>
8841
8842         PR lto/45018
8843         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
8844         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
8845         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
8846
8847 2010-07-21  Martin Jambor  <mjambor@suse.cz>
8848
8849         PR tree-optimization/44900
8850         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
8851         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
8852
8853 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
8854
8855         PR middle-end/44738
8856         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
8857
8858 2010-07-21  Richard Guenther  <rguenther@suse.de>
8859
8860         PR middle-end/45013
8861         * tree-ssa.c (useless_type_conversion_p): Dispatch to
8862         gimple_types_compatible_p only when in lto.
8863         * gimple.c (gimple_types_compatible_p): Use canonical types
8864         to speed up comparison.
8865
8866 2010-07-21  Richard Guenther  <rguenther@suse.de>
8867
8868         * tree-flow.h (referenced_var): Move define ...
8869         * tree-flow-inline.h (referenced_var): ... here as an inline
8870         function.  Assert here ...
8871         * tree-dfa.c (referenced_var_lookup): ... instead of here.
8872         * tree-ssa.c (maybe_optimize_var): Check if the variable
8873         is in referenced vars.
8874         (execute_update_addresses_taken): Remove old broken check.
8875         * gimple-pretty-print.c (pp_points_to_solution): Use
8876         referenced_var_lookup.
8877         * tree-into-ssa.c (dump_decl_set): Likewise.
8878
8879 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8880
8881         PR debug/45003
8882         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
8883         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
8884         ZERO_EXTEND here.
8885
8886 2010-07-20  Richard Henderson  <rth@redhat.com>
8887
8888         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
8889
8890 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
8891
8892         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
8893         computing the sum of the stack pointer and a large constant.
8894         * config/arm/constraints.md (M): Remove superfluous parentheses.
8895         (Pc): New constraint.
8896
8897 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
8898
8899         PR debug/45006
8900         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
8901         operand's type if exp is tcc_unary class tree.
8902
8903 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
8904
8905         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
8906         Reverse sense of if_then_else condition.
8907
8908 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
8909
8910         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
8911         * config/rs6000/rs6000.c (rs6000_override_options): Set
8912         rs6000_block_move_inline_limit appropriately.
8913         (expand_block_move): Use rs6000_block_move_inline_limit.
8914         * doc/invoke.texi (mblock-move-inline-limit): Document.
8915
8916 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
8917
8918         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
8919         FROM and TO.  All callers changed.  Don't look for tracked uses,
8920         just scan the RTL for DEBUG_INSNs and substitute.
8921         (reload_combine_recognize_pattern): Call fixup_debug_insns.
8922         (reload_combine): Ignore DEBUG_INSNs.
8923
8924 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
8925
8926         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
8927         depth to 8 from 5.
8928
8929         PR debug/45003
8930         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
8931         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
8932         instead of the result's type.
8933
8934 2010-07-20  Richard Guenther  <rguenther@suse.de>
8935
8936         PR tree-optimization/44977
8937         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
8938         SSA form.
8939
8940 2010-07-20  Richard Guenther  <rguenther@suse.de>
8941
8942         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
8943         (lto_symtab_merge_decls_2): Likewise.
8944         * gimple.h (gimple_types_compatible_p): Declare.
8945         * gimple.c (gimple_queue_type_fixup): Remove.
8946         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
8947         (gimple_compatible_complete_and_incomplete_type_p): New function.
8948         (gimple_types_compatible_p): Adjust.
8949         (gimple_register_type): Remove type fixup code.
8950         (print_gimple_types_stats): Adjust.
8951         (free_gimple_type_tables): Likewise.
8952         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
8953         * tree-ssa.c (useless_type_conversion_p): Likewise.
8954
8955 2010-07-20  Richard Guenther  <rguenther@suse.de>
8956
8957         PR middle-end/44971
8958         PR middle-end/44988
8959         * tree-ssa.c (maybe_optimize_var): New function split out from ...
8960         (execute_update_addresses_taken): ... here.
8961         (non_rewritable_mem_ref_base): Likewise.
8962         (execute_update_addresses_taken): Do not iterate over all referenced
8963         vars but just all local decls and parms.
8964         Properly check call and asm arguments and rewrite call arguments.
8965
8966 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
8967
8968         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
8969         to top level.
8970         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
8971         definitions ...
8972         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
8973         New macro.
8974         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
8975
8976 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8977
8978         * gengtype.c (start_root_entry): New function, split out from
8979         write_root.  Check whether V is null and raise an error if so.
8980         (write_field_root): Check for V being null.  Don't raise an error here;
8981         set V to null instead.
8982         (write_root): Update comment above function.  Use start_root_entry.
8983
8984 2010-07-19  Xinliang David Li  <davidxl@google.com>
8985
8986         PR testsuite/44932
8987         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
8988         def edges.
8989         (find_uninit_use): Add dump.
8990         (is_use_properly_guarded): Ditto.
8991         (warn_uninitialized_phi): Ditto.
8992         (execute_late_warn_uninitialized): Ditto.
8993
8994 2010-07-19  Richard Guenther  <rguenther@suse.de>
8995
8996         PR middle-end/44941
8997         * expr.c (emit_block_move_hints): Move zero size check first.
8998         Move asserts to more useful places.
8999         * calls.c (load_register_parameters): Check for zero size.
9000
9001 2010-07-19  Richard Henderson  <rth@redhat.com>
9002
9003         * tree-optimize.c (execute_all_early_local_passes): New.  Change
9004         cgraph_state here ...
9005         (execute_early_local_optimizations): ... not here.  Remove.
9006         (pass_early_local_passes, pass_all_early_optimizations): Update.
9007
9008 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
9009
9010         * postreload.c (reload_combine_closest_single_use): Ignore the
9011         number of uses for DEBUG_INSNs.
9012         (fixup_debug_insns): New static function.
9013         (reload_combine_recognize_const_pattern): Use it.  Don't let the
9014         main loop be affected by DEBUG_INSNs.
9015         Really disallow moving adds past a jump insn.
9016         (reload_combine_recognize_pattern): Don't update use_ruid here.
9017         (reload_combine_note_use): Do it here.
9018         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9019
9020 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
9021
9022         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9023         of a loop.
9024         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9025
9026 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
9027
9028         * config/i386/darwin.h: Define darwin_emit_branch_islands.
9029         (TARGET_MACHO_BRANCH_ISLANDS): New.
9030         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9031         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9032         default value.
9033         * config/i386/i386.c (output_pic_addr_const): Do not emit
9034         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9035         (x86_output_mi_thunk): Adjust symbol creation.
9036         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9037         Remove out of date comment.
9038         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9039         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9040         (DARWIN_GENERATE_ISLANDS): Ditto.
9041         (output_call):  Do not emit branch islands unless
9042         darwin_emit_branch_islands is set.
9043         * config/darwin.c: Declare darwin_emit_branch_islands.
9044         (machopic_indirect_data_reference): Do not emit unless
9045         darwin_emit_branch_islands is set.
9046         (darwin_override_options): Set darwin_emit_branch_islands
9047         where it is needed.
9048         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9049
9050 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9051
9052         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9053         sse_runtime, sse2_runtime.
9054
9055 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
9056
9057         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9058         low half of a single-register SCmode return value before ORing
9059         it with the high half.
9060         * config/mips/mips16.S (MERGE_GPRf): Likewise.
9061
9062 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9063
9064         PR target/44805
9065         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9066         on all targets.
9067
9068 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
9069
9070         PR target/42235
9071         * postreload.c (reload_cse_move2add): Return bool, true if anything.
9072         changed.  All callers changed.
9073         (move2add_use_add2_insn): Likewise.
9074         (move2add_use_add3_insn): Likewise.
9075         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9076         reload_combine.
9077         (RELOAD_COMBINE_MAX_USES): Bump to 16.
9078         (last_jump_ruid): New static variable.
9079         (struct reg_use): New members CONTAINING_MEM and RUID.
9080         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9081         (reload_combine_split_one_ruid, reload_combine_split_ruids,
9082         reload_combine_purge_insn_uses, reload_combine_closest_single_use
9083         reload_combine_purge_reg_uses_after_ruid,
9084         reload_combine_recognize_const_pattern): New static functions.
9085         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9086         is true for our reg and that we have available index regs.
9087         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
9088         callers changed.  Use them to initialize fields in struct reg_use.
9089         (reload_combine): Initialize last_jump_ruid.  Be careful when to
9090         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
9091         Call reload_combine_recognize_const_pattern.
9092         (reload_combine_note_store): Update REAL_STORE_RUID field.
9093
9094 2010-07-16  Jason Merrill  <jason@redhat.com>
9095
9096         * Makefile.in (opts-common.o): Depend on options.h.
9097
9098 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9099
9100         * tree.c (build_common_builtin_nodes): Use build_function_type_list
9101         instead of build_function_type.
9102         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9103         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9104
9105 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9106
9107         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9108         do all the work.
9109         (rs6000_emit_int_cmove): Use function pointers for insn generation.
9110         Don't force values into registers unnecessarily.
9111         (output_isel): Assert that we're not given conditions we can't handle.
9112         Delete corresponding code.
9113         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9114         scc_comparison_operator constraint.  Permit 0 for the consequent
9115         operand.  Permit any GPR for the alternative operand.
9116         (isel_unsigned_<mode>): Likewise.
9117
9118 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
9119
9120         PR target/44942
9121         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9122         argument to const_tree.
9123         * config/i386/i386.c (function_arg_advance): If padding needs to be
9124         inserted before argument, increment cum->words by number of padding
9125         words as well.
9126         (contains_aligned_value_p): Change argument to const_tree.
9127         (ix86_function_arg_boundary): Change second argument to const_tree.
9128
9129 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
9130
9131         PR target/42235
9132         * function.c (record_hard_reg_sets): New static function.
9133         (assign_parm_setup_reg): If an optab for extending exists and the
9134         generated code clobbbers no hard regs, emit the insn directly and
9135         create a REG_EQUIV note.
9136
9137 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9138
9139         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9140         TREE_CHAIN.
9141         * c-typeck.c (push_init_level): Likewise.
9142         (process_init_element): Likewise.
9143
9144 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
9145
9146         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9147         (integer_three_node): Add.
9148         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9149         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9150         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9151         of call build_int_cst.
9152         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9153         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9154         (find_interesting_uses_address): Ditto.
9155         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9156         * tree-eh.c (lower_eh_constructs_2): Ditto.
9157         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9158         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9159         * expmed.c (expand_divmod): Ditto.
9160         * tree-mudflap.c (mx_register_decls): Ditto.
9161         * varasm.c (array_size_for_constructor): Ditto.
9162         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9163         * c-parser.c (c_parser_postfix_expression): Ditto.
9164
9165 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9166
9167         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9168         New static variables.
9169         (reload_combine_recognize_pattern): New static function, broken out
9170         of reload_combine.
9171         (reload_combine): Use it.  Only initialize first_index_reg and
9172         last_index_reg once.
9173
9174 2010-07-15  Richard Henderson  <rth@redhat.com>
9175
9176         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9177         when done.
9178
9179 2010-07-15  Jan Hubicka  <jh@suse.cz>
9180
9181         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9182         comdats for broken gold.
9183         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9184
9185 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9186
9187         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9188
9189 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9190
9191         * tree.h (DECL_CHAIN): Define.
9192         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9193         * c-decl.c: Likewise.
9194         * c-parser.c: Likewise.
9195         * c-typeck.c: Likewise.
9196         * cfgexpand.c: Likewise.
9197         * cgraph.c: Likewise.
9198         * cgraphunit.c: Likewise.
9199         * combine.c: Likewise.
9200         * config/alpha/alpha.c: Likewise.
9201         * config/arm/arm.c: Likewise.
9202         * config/frv/frv.c: Likewise.
9203         * config/i386/i386.c: Likewise.
9204         * config/i386/winnt-cxx.c: Likewise.
9205         * config/ia64/ia64.c: Likewise.
9206         * config/iq2000/iq2000.c: Likewise.
9207         * config/mep/mep.c: Likewise.
9208         * config/mips/mips.c: Likewise.
9209         * config/pa/som.h: Likewise.
9210         * config/rs6000/rs6000.c: Likewise.
9211         * config/s390/s390.c: Likewise.
9212         * config/sh/sh.c: Likewise.
9213         * config/sh/symbian-cxx.c: Likewise.
9214         * config/sparc/sparc.c: Likewise.
9215         * config/spu/spu.c: Likewise.
9216         * config/stormy16/stormy16.c: Likewise.
9217         * config/vxworks.c: Likewise.
9218         * config/xtensa/xtensa.c: Likewise.
9219         * coverage.c: Likewise.
9220         * dbxout.c: Likewise.
9221         * dwarf2out.c: Likewise.
9222         * emit-rtl.c: Likewise.
9223         * expr.c: Likewise.
9224         * function.c: Likewise.
9225         * gimple-low.c: Likewise.
9226         * gimple-pretty-print.c: Likewise.
9227         * gimplify.c: Likewise.
9228         * integrate.c: Likewise.
9229         * ipa-inline.c: Likewise.
9230         * ipa-prop.c: Likewise.
9231         * ipa-split.c: Likewise.
9232         * ipa-struct-reorg.c: Likewise.
9233         * ipa-type-escape.c: Likewise.
9234         * langhooks.c: Likewise.
9235         * lto-cgraph.c: Likewise.
9236         * omp-low.c: Likewise.
9237         * stor-layout.c: Likewise.
9238         * tree-cfg.c: Likewise.
9239         * tree-complex.c: Likewise.
9240         * tree-dfa.c: Likewise.
9241         * tree-dump.c: Likewise.
9242         * tree-inline.c: Likewise.
9243         * tree-mudflap.c: Likewise.
9244         * tree-nested.c: Likewise.
9245         * tree-object-size.c: Likewise.
9246         * tree-pretty-print.c: Likewise.
9247         * tree-sra.c: Likewise.
9248         * tree-ssa-live.c: Likewise.
9249         * tree-ssa-loop-niter.c: Likewise.
9250         * tree-ssa-math-opts.c: Likewise.
9251         * tree-ssa-reassoc.c: Likewise.
9252         * tree-ssa-sccvn.c: Likewise.
9253         * tree-ssa-structalias.c: Likewise.
9254         * tree-tailcall.c: Likewise.
9255         * tree-vrp.c: Likewise.
9256         * tree.c: Likewise.
9257         * var-tracking.c: Likewise.
9258         * varasm.c: Likewise.
9259
9260 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9261
9262         PR target/44877
9263         * config/spu/spu.c (spu_expand_builtin_1): Allow references
9264         (as well as pointers) as argument to mask_for_load builtins.
9265
9266 2010-07-15  Richard Guenther  <rguenther@suse.de>
9267
9268         PR tree-optimization/44946
9269         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9270         with accessing only padding properly.
9271
9272 2010-07-15  Jan Hubicka  <jh@suse.cz>
9273
9274         * ipa.c (function_and_variable_visibility): Variables marked as used
9275         should not be localized.
9276
9277 2010-07-15  Jan Hubicka  <jh@suse.cz>
9278
9279         * cgraph.c: Include lto-streamer.h
9280         (change_decl_assembler_name): Work when assembler name hash is at place.
9281         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9282         be sure to rename it to avoid name clash.
9283         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9284         Localize hidden symbols only when locally defined.
9285
9286 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
9287
9288         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9289
9290 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
9291             Kevin F. Quinn  <kevquinn@gentoo.org>
9292
9293         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9294         * common.opt: Add -Wtrampolines.
9295         * doc/invoke.texi: Add -Wtrampolines.
9296
9297 2010-07-15  Jie Zhang  <jie@codesourcery.com>
9298
9299         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9300         cortex_a8_issue_ls.
9301
9302 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9303
9304         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9305         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9306
9307 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9308
9309         * config/spu/spu.c (reg_names): Remove prototype.
9310         (call_used_regs): Likewise.
9311
9312 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
9313
9314         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9315         "unused" with attribute "used".
9316         (__JCR_END__): Likewise.
9317         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9318         "used" attribute.
9319         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9320
9321 2010-07-14  Richard Guenther  <rguenther@suse.de>
9322
9323         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9324         (maybe_fixup_decls): Likewise.
9325         (input_gimple_stmt): Do not fixup anything.
9326         * lto-streamer-out.c (output_gimple_stmt): Make sure all
9327         non-automatic variable uses are wrapped inside a MEM_REF.
9328
9329 2010-07-14  Richard Henderson  <rth@redhat.com>
9330
9331         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9332         for functions.
9333         * varasm.c (assemble_variable): Remove early exit for functions;
9334         assert that we're given a variable.
9335
9336 2010-07-14  Jie Zhang  <jie@codesourcery.com>
9337
9338         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9339         cortex_a8_default when neon_type is not none.
9340
9341 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9342
9343         * lower-subreg.c (subreg_context): New static bitmap.
9344         (decompose_multiword_subregs): Allocate and free it.
9345         (find_decomposable_subregs): Set a bit in it for a register that
9346         occurs in a subreg that changes mode but not size.
9347         (can_decompose_p): Test it instead of non_decomposable_context.
9348
9349 2010-07-14  Richard Guenther  <rguenther@suse.de>
9350
9351         PR tree-optimization/44824
9352         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9353         is_gimple_mem_ref_addr.
9354         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9355         non-decl_address_invariant_p addresses.
9356
9357 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9358
9359         * reload.c (find_reloads): Revert code to penalize small register
9360         classes that was brought in with the IRA merge.
9361
9362 2010-07-14  Richard Guenther  <rguenther@suse.de>
9363
9364         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9365         as base of ARRAY_REFs.
9366
9367 2010-07-14  Richard Guenther  <rguenther@suse.de>
9368
9369         PR middle-end/44930
9370         * tree-pretty-print.c (do_niy): Do not print a newline.
9371
9372 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9373
9374         * ira-int.h (struct ira_object): New.
9375         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9376         (struct ira_allocno): Remove members min, max,
9377         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9378         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9379         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9380         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9381         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9382         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9383         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9384         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9385         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9386         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9387         an ira_object_t rather than ira_allocno_t.  All uses changed.
9388         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9389         contains a vector of ira_object_t; all uses changed.
9390         (ira_objects_num): Declare variable.
9391         (ira_create_allocno_object): Declare function.
9392         (ira_conflict_vector_profitable_p): Adjust prototype.
9393         (ira_allocate_conflict_vec): Renamed from
9394         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9395         (ira_allocate_object_conflicts): Renamed from
9396         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9397         (struct ira_object_iterator): New.
9398         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9399         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9400         to conflict_vec_p.  All uses changed.
9401         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9402         Changed to take into account that conflicts are now tracked for
9403         objects.
9404         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9405         Args changed to accept ira_object_t.  All uses changed.
9406         (allocnos_conflict_p): New static function.
9407         (collected_conflict_objects): Renamed from collected_allocno_objects;
9408         now a vector of ira_object_t.  All uses changed.
9409         (build_conflict_bit_table): Changed to take into account that
9410         conflicts are now tracked for objects.
9411         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9412         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9413         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9414         setup_allocno_left_conflicts_size, allocno_reload_assign,
9415         fast_allocation): Likewise.
9416         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9417         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9418         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9419         Likewise.
9420         * ira-build.c (ira_objects_num): New variable.
9421         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9422         contains a vector of ira_object_t; all uses changed.
9423         (ira_object_id_map_vec): Corresponding change.
9424         (object_pool): New static variable.
9425         (initiate_allocnos): Initialize it.
9426         (finish_allocnos): Free it.
9427         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9428         New functions.
9429         (ira_create_allocno): Don't set members that were removed.
9430         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9431         (merge_hard_reg_conflicts): Changed to take into account that
9432         conflicts are now tracked for objects.
9433         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9434         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9435         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9436         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9437         setup_min_max_conflict_allocno_ids, ):  Likewise.
9438         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9439         to ira_object_t; all callers changed.
9440         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9441         to ira_object_t, all callers changed.
9442         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9443         to ira_object_t, all callers changed.
9444         (conflict_check, curr_conflict_check_tick): Renamed from
9445         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9446         changed.
9447         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9448         arg changed to ira_object_t, all callers changed.
9449         (create_cap_allocno): Call ira_create_allocno_object.
9450         (finish_allocno): Free the corresponding object.
9451         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9452         callers changed.  Adjusted for dealing with objects.
9453         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9454         dealing with objects.
9455         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9456
9457         * ira-int.h (struct live_range): Rename allocno member to object
9458         and change type to ira_object_t.
9459         (struct ira_object): New member live_ranges.
9460         (struct ira_allocno): Remove member live_ranges.
9461         (ALLOCNO_LIVE_RANGES): Remove.
9462         (OBJECT_LIVE_RANGES): New macro.
9463         (ira_create_live_range, ira_copy_live_range_list,
9464         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9465         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9466         * ira-build.c (ira_create_object): Initialize live ranges here.
9467         (ira_create_allocno): Not here.
9468         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9469         changed to ira_object_t, all callers changed.
9470         (copy_live_range): Rename from copy_allocno_live_range, all callers
9471         changed.
9472         (ira_copy_live_range_list): Rename from
9473         ira_copy_allocno_live_range_list, all callers changed.
9474         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9475         all callers changed.
9476         (ira_live_ranges_intersect_p): Rename from
9477         ira_allocno_live_ranges_intersect_p, all callers changed.
9478         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9479         callers changed.
9480         (ira_finish_live_range_list): Rename from
9481         ira_finish_allocno_live_range_list, all callers changed.
9482         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9483         last arg changed to ira_object_t, all callers changed.
9484         (finish_allocno): Changed to expect live ranges in the allocno's object.
9485         (move_allocno_live_ranges, copy_allocno_live_ranges,
9486         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9487         ira_flattening, ira_build): Likewise.
9488         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9489         slot_coalesced_allocno_live_ranges_intersect,
9490         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9491         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9492         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9493         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9494         make_allocno_dead, create_start_finish_chains,
9495         remove_some_program_points_and_update_live_ranges,
9496         ira_debug_live_range_list): Likewise.
9497
9498         * ira-int.h (ira_object_conflict_iterator): Rename from
9499         ira_allocno_conflict_iterator.
9500         (ira_object_conflict_iter_init): Rename from
9501         ira_allocno_conflict_iter_init, second arg changed to
9502         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9503         FOR_EACH_ALLOCNO_CONFLICT.
9504         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9505         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9506         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9507         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9508
9509 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9510
9511         PR other/44874
9512         * tree-dump.c (dump_options): Add enumerate_locals entry.
9513         Add TDF_NOID exclusion to all entry.
9514         * tree-dump.h (dump_enumerated_decls): Declare.
9515         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9516         Don't display type uid.
9517         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9518         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9519         * tree-ssa-live.c: Include gimple.h.
9520         (numbered_tree_d): New struct.
9521         (numbered_tree): New typedef.
9522         (DEF_VEC_O (numbered_tree): New.
9523         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9524         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9525         (dump_enumerated_decls): Likewise.
9526         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9527         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9528         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9529         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9530
9531 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9532
9533         * expmed.h (MAX_BITS_PER_WORD): Move to...
9534         * defaults.h (MAX_BITS_PER_WORD): ...here.
9535
9536 2010-07-13  DJ Delorie  <dj@redhat.com>
9537
9538         * config/h8300/h8300.c (h8300_init_once): Default to
9539         -fstrict_volatile_bitfields.
9540
9541         * config/sh/sh.c (sh_override_options): Default to
9542         -fstrict_volatile_bitfields.
9543
9544         * config/rx/rx.c (rx_option_override): New.
9545
9546         * config/m32c/m32c.c (m32c_override_options): Default to
9547         -fstrict_volatile_bitfields.
9548
9549 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9550
9551         * tree.h (build_function_call_expr): Delete.
9552         (build_call_expr_loc_array): New function.
9553         (build_call_expr_loc_vec): New function.
9554         * tree-flow.h (struct omp_region): Change type of ws_args field
9555         to a VEC.
9556         * builtins.c (build_function_call_expr): Delete.
9557         (build_call_expr_loc_array): New function.
9558         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
9559         (build_call_expr): Likewise.
9560         (build_call_expr_loc_vec): New function.
9561         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9562         build_function_call_expr.
9563         * expr.c (emutls_var_address): Likewise.
9564         * varasm.c (emutls_common_1): Likewise.
9565         * omp-low.c (expand_omp_atomic_mutex): Likewise.
9566         (expand_omp_taskreg): Adjust for new type of region->ws_args.
9567         (get_ws_args_for): Return a VEC instead of a tree.
9568         (expand_parallel_call): Call build_call_expr_loc_vec instead of
9569         build_function_call_expr.
9570         * stor-layout.c (self_referential_size): Likewise.
9571
9572 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9573
9574         PR testsuite/44701
9575         * recog.c (constrain_operands): Allow side-effects in memory
9576         operands if either < or > constraint is used, rather than if
9577         both < and > is used.
9578
9579 2010-07-13  Richard Guenther  <rguenther@suse.de>
9580
9581         PR middle-end/44911
9582         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9583         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
9584         without name.
9585
9586 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9587
9588         PR target/44761
9589         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9590         to variable emited.
9591         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9592         * config/sh/sh.md (symGOT_load): Likewise.
9593         (symDTPOFF2reg): Likewise.
9594         (symTPOFF2reg): Likewise.
9595
9596 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9597
9598         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9599         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9600
9601 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9602
9603         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9604         explanation.
9605         Find ucontext_t * on Solaris 11.
9606         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9607         Handle new Solaris 11 __sighndlr patterns.
9608
9609 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9610
9611         PR debug/44901
9612         * vec.h (VEC_block_remove): Fix comment.
9613         * tree-ssa-live.c (remove_unused_locals): Don't use
9614         VEC_unordered_remove on local_decls, instead replace a single
9615         vector element in each iteration if at least one element had
9616         to be removed and VEC_truncate at the end.
9617         * omp-low.c (expand_omp_taskreg): Likewise.
9618
9619 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9620
9621         * c-decl.c (finish_function): Fix typo in comment.
9622
9623 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
9624
9625         PR bootstrap/44921
9626         * postreload.c (move2add_use_add3_insn): Silence gcc warning
9627         on min_regno.
9628
9629 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
9630
9631         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9632         (simplify_stmt_using_ranges): Use it.
9633
9634 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9635
9636         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9637         member.  Do not mark as GTY(()).
9638         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9639         (spu_builtin_decls): New static variable.
9640         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9641         (spu_init_builtins): Likewise.
9642         (spu_builtin_mul_widen_even): Likewise.
9643         (spu_builtin_mul_widen_odd): Likewise.
9644         (spu_builtin_mask_for_load): Likewise.
9645         (spu_builtin_vec_perm): Likewise.
9646         * config/spu/spu-c.c: Include "target.h".
9647         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9648         of using spu_builtins[].fndecl.
9649
9650 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9651
9652         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9653         imply -minterlink-mips16.
9654
9655 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9656
9657         * config/mips/mips.h (mips16_globals): Declare.
9658         (SWITCHABLE_TARGET): Define.
9659         * config/mips/mips.c: Include target-globals.h.
9660         (mips16_globals): New variable.
9661         (mips_set_mips16_mode): Use save_target_globals and
9662         restore_target_globals instead of target_reinit.
9663
9664 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9665
9666         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
9667         to say that the function can be called more than once.
9668         * target-globals.c (save_target_globals): Call init_reg_sets.
9669
9670 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9671
9672         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9673         * bb-reorder.h: New file.
9674         * bb-reorder.c (default_target_bb_reorder): New variable.
9675         (this_target_bb_reorder): New conditional variable.
9676         (uncond_jump_length): Redefine as a macro.
9677         * target-globals.h (this_target_bb_reorder): Declare.
9678         (target_globals): Add a bb_reorder field.
9679         (restore_target_globals): Copy the bb_reorder field to
9680         this_target_bb-reorder.
9681         * target-globals.c: Include bb-reorder.h.
9682         (default_target_globals): Initialize the bb_reorder field.
9683         (save_target_globals): Likewise.
9684
9685 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9686
9687         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9688         * gcse.h: New file.
9689         * gcse.c: Include gcse.h.
9690         (default_target_gcse): New variable.
9691         (this_target_gcse): New conditional variable.
9692         (can_copy): Redefine as a macro.
9693         (can_copy_init_p): New macro.
9694         (can_copy_p): Remove can_copy_init_p.
9695         * target-globals.h (this_target_gcse): Declare.
9696         (target_globals): Add a gcse field.
9697         (restore_target_globals): Copy the gcse field to this_target_gcse.
9698         * target-globals.c: Include gcse.h.
9699         (default_target_globals): Initialize the gcse field.
9700         (save_target_globals): Likewise.
9701
9702 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9703
9704         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9705         and x_ira_prohibited_mode_move_regs_initialized_p.
9706         (ira_prohibited_mode_move_regs): Redefine as a macro.
9707         * ira.c (ira_prohibited_mode_move_regs): Delete.
9708         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9709
9710 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9711
9712         * reload.h (target_reload): Add x_cached_reg_save_code and
9713         x_cached_reg_restore_code.
9714         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9715         Redefine as macros.
9716
9717 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9718
9719         * Makefile.in (target-globals.o): Depend on builtins.h.
9720         * builtins.h: New file.
9721         * builtins.c: Include builtins.h.
9722         (default_target_builtins): New variable.
9723         (this_target_builtins): New conditional variable.
9724         (apply_args_mode, apply_result_mode): Redefine as macros.
9725         * target-globals.h (this_target_builtins): Declare.
9726         (target_globals): Add a builtins field.
9727         (restore_target_globals): Copy the builtins field to
9728         this_target_builtins.
9729         * target-globals.c: Include builtins.h.
9730         (default_target_globals): Initialize the builtins field.
9731         (save_target_globals): Likewise.
9732
9733 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9734
9735         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
9736         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
9737         from expmed.c.
9738         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
9739         (alg_hash, alg_hash_used_p): New macros.
9740         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
9741         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
9742         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
9743
9744 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9745
9746         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
9747         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
9748         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
9749         (this_op_costs, costs_classes): Redefine as macros.
9750         (record_reg_classes): Don't take op_costs as a parameter.
9751         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
9752         (scan_one_insn): Update call to record_operand_costs.
9753
9754 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9755
9756         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
9757         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
9758         (target_ira_int): New structure.
9759         (default_target_ira_int): Declare.
9760         (this_target_ira_int): Declare as a variable or define as a macro.
9761         (ira_reg_mode_hard_regset, ira_register_move_cost)
9762         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
9763         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
9764         (prohibited_class_mode_regs, ira_important_classes_num)
9765         (ira_important_classes, ira_reg_class_intersect)
9766         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
9767         (ira_reg_class_union): Redefine as macros.
9768         * ira.h (target_ira): New structure.
9769         (default_target_ira): Declare.
9770         (this_target_ira): Declare as a variable or define as a macro.
9771         (ira_available_class_regs, ira_hard_regno_cover_class)
9772         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
9773         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
9774         (ira_class_hard_regs_num): Redefine as macros.
9775         * ira.c (default_target_ira, default_target_ira_int): New variables.
9776         (this_target_ira, this_target_ira_int): New conditional variables.
9777         (ira_reg_mode_hard_regset, ira_memory_move_cost)
9778         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
9779         (ira_class_subset_p): Delete.
9780         (no_unit_alloc_regs): Redefine as a macro.
9781         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
9782         (ira_class_hard_regs_num, ira_class_hard_reg_index)
9783         (ira_available_class_regs): Delete.
9784         (alloc_reg_class_subclasses): Redefine as a macro.
9785         (ira_reg_class_cover_size, ira_reg_class_cover)
9786         (ira_important_classes_num, ira_important_classes)
9787         (ira_important_class_nums, ira_class_translate): Delete.
9788         (cover_class_order): Document the variable's lifetime.
9789         (reorder_important_classes): Don't set ira_important_class_nums.
9790         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
9791         (ira_reg_class_super_classes, ira_reg_class_union)
9792         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
9793         Delete.
9794         (setup_reg_class_nregs): Don't set ira_max_regs.
9795         (prohibited_class_mode_regs): Delete.
9796         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
9797         (target_globals): Add ira and ira_int fields.
9798         (restore_target_globals): Copy the ira field to this_target_ira
9799         and the ira_int field to this_target_ira_int.
9800         * target-globals.c: Include ira-int.h.
9801         (default_target_globals): Initialize the ira and ira_int fields.
9802         (save_target_globals): Likewise.
9803
9804 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9805
9806         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
9807         * cfgloop.h (target_cfgloop): New structure.
9808         (default_target_cfgloop): Declare.
9809         (this_target_cfgloop): Declare as a variable or define as a macro.
9810         (target_avail_regs, target_clobbered_regs, target_res_regs)
9811         (target_reg_cost, target_spill_cost): Redefine as macros.
9812         * cfgloopanal.c (default_target_cfgloop): New variable.
9813         (this_target_cfgloop): New conditional variable.
9814         (target_avail_regs, target_clobbered_regs, target_res_regs)
9815         (target_reg_cost, target_spill_cost): Delete.
9816         * target-globals.h (this_target_cfgloop): Declare.
9817         (target_globals): Add a cfgloop field.
9818         (restore_target_globals): Copy the cfgloop field to
9819         this_target_cfgloop.
9820         * target-globals.c: Include cfgloop.h.
9821         (default_target_globals): Initialize the cfgloop field.
9822         (save_target_globals): Likewise.
9823
9824 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9825
9826         * regs.h (target_regs): Add x_direct_load, x_direct_store and
9827         x_float_extend_from_mem.
9828         (direct_load, direct_store, float_extend_from_mem): New macros.
9829         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
9830
9831 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9832
9833         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
9834         (target-globals.o): Depend on $(LIBFUNCS_H).
9835         * libfuncs.h: Include hashtab.h.
9836         (libfunc_entry): Moved from optabs.c.
9837         (target_libfuncs): New structure.
9838         (default_target_libfuncs): Declare.
9839         (this_target_libfuncs): Declare as a variable or define as a macro.
9840         (libfunc_table): Redefine as a macro.
9841         * optabs.c (default_target_libfuncs): New variable.
9842         (this_target_libfuncs): New conditional variable.
9843         (libfunc_table): Delete.
9844         (libfunc_entry): Moved to optabs.h.
9845         (libfunc_hash): Redefine as a macro.
9846         (hash_libfunc, eq_libfunc): Fix comments.
9847         (init_optabs): Use libfunc_hash to detect cases where the function
9848         has already been called.  Clear the hash table instead of
9849         recreating it.
9850         * target-globals.h (this_target_libfuncs): Declare.
9851         (target_globals): Add a libfuncs field.
9852         (restore_target_globals): Copy the libfuncs field to
9853         this_target_libfuncs.
9854         * target-globals.c: Include libfuncs.h.
9855         (default_target_globals): Initialize the libfuncs field.
9856         (save_target_globals): Likewise.
9857
9858 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9859
9860         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
9861         in all dependency lists.
9862
9863 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9864
9865         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
9866         * optabs.h (target_optabs): New structure.
9867         (default_target_optabs): Declare.
9868         (this_target_optabs): Declare as a variable or define as a macro.
9869         (optab_table, convert_optab_table, direct_optab_table): Redefine
9870         as macros.
9871         * optabs.c (default_target_optabs): New variable.
9872         (this_target_optabs): New conditional variable.
9873         (optab_table, convert_optab_table, direct_optab_table): Delete.
9874         * target-globals.h (this_target_optabs): Declare.
9875         (target_globals): Add a optabs field.
9876         (restore_target_globals): Copy the optabs field to
9877         this_target_optabs.
9878         * target-globals.c: Include expr.h and optabs.h.
9879         (default_target_globals): Initialize the optabs field.
9880         (save_target_globals): Likewise.
9881
9882 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9883
9884         * flags.h (target_flagstate): Add x_flag_excess_precision.
9885         (flag_excess_precision): Redefine as a macro.
9886         * toplev.c (flag_excess_precision): Delete.
9887
9888 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9889
9890         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
9891         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
9892         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
9893         (no_caller_save_reg_set): Redefine as a macro.
9894         * reload.h (target_reload): Add x_caller_save_initialized_p and
9895         x_regno_save_mode.
9896         (caller_save_initialized_p): Redefine as a macro.
9897         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
9898         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
9899         (regno_save_mode): Redefine as a macro.
9900
9901 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9902
9903         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
9904         * expmed.h: New file.
9905         * expmed.c (default_target_costs): New variable.
9906         (this_target_costs): New conditional variable.
9907         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
9908         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
9909         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
9910         * target-globals.h (this_target_expmed): Declare.
9911         (target_globals): Add a expmed field.
9912         (restore_target_globals): Copy the expmed field to
9913         this_target_expmed.
9914         * target-globals.c: Include expmed.h.
9915         (default_target_globals): Initialize the expmed field.
9916         (save_target_globals): Likewise.
9917
9918 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9919
9920         * Makefile.in (target-globals.o): Depend on reload.h.
9921         * reload.h (target_reload): New structure.
9922         (default_target_reload): Declare.
9923         (this_target_reload): Declare as a variable or define as a macro.
9924         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
9925         * reload1.c (default_target_reload): New variable
9926         (this_target_reload): New conditional variable.
9927         (indirect_symref_ok, double_reg_address_ok): Delete.
9928         (spill_indirect_levels): Redefine as a macro.
9929         * target-globals.h (this_target_reload): Declare.
9930         (target_globals): Add a reload field.
9931         (restore_target_globals): Copy the reload field to
9932         this_target_reload.
9933         * target-globals.c: Include hard-reg-set.h.
9934         (default_target_globals): Initialize the reload field.
9935         (save_target_globals): Likewise.
9936
9937 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9938
9939         * rtl.h (target_rtl): Add x_static_reg_base_value.
9940         * alias.c (static_reg_base_value): Redefine as a macro.
9941
9942 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9943
9944         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
9945         (GTFILES): Remove reginfo.c.
9946         * rtl.h (target_rtl): Add x_top_of_stack.
9947         (top_of_stack): New macro.
9948         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
9949         (top_of_stack): Delete.
9950
9951 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9952
9953         * regs.h (target_regs): Add x_hard_regs_of_mode,
9954         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
9955         x_may_move_out_cost and x_last_mode_for_init_move_cost.
9956         (have_regs_of_mode, contains_reg_of_mode, move_cost)
9957         (may_move_in_cost, may_move_out_cost): Redefine as macros.
9958         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
9959         (may_move_in_cost, may_move_out_cost): Delete.
9960         (last_mode_for_init_move_cost): Redefine as a macro.
9961
9962 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9963
9964         * hard-reg-set.h (target_hard_regs): New structure.
9965         (default_target_hard_regs): Declare.
9966         (this_target_hard_regs): Declare as a variable or define as a macro.
9967         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
9968         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
9969         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
9970         (reg_class_size, reg_class_subclasses, reg_class_subunion)
9971         (reg_class_superunion, reg_names): Redefine as macros.
9972         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
9973         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
9974         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
9975         (reg_class_contents, reg_class_size, reg_class_subclasses)
9976         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
9977         (default_target_hard_regs): New variable
9978         (this_target_hard_regs, initial_call_really_used_regs)
9979         (initial_reg_alloc_order): New conditional variables.
9980         (initial_reg_names): New variable.
9981         (init_reg_sets): Assert that initial_call_really_used_regs,
9982         initial_reg_alloc_order and initial_reg_names
9983         are all the same size as their variable counterparts.  Use them to
9984         initialize those counterparts.
9985         * target-globals.h (this_target_hard_regs): Declare.
9986         (target_globals): Add a hard_regs field.
9987         (restore_target_globals): Copy the hard_regs field to
9988         this_target_hard_regs.
9989         * target-globals.c: Include hard-reg-set.h.
9990         (default_target_globals): Initialize the hard_regs field.
9991         (save_target_globals): Likewise.
9992
9993 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9994
9995         * Makefile.in (target-globals.o): Depend on $(RTL_H).
9996         * rtl.h (target_rtl): New structure.
9997         (default_target_rtl): Declare.
9998         (this_target_rtl): Declare as a variable or define as a macro.
9999         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10000         Redefine as macros.
10001         * emit-rtl.c (default_target_rtl): New variable.
10002         (this_target_rtl): New conditional variable.
10003         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10004         (return_address_pointer_rtx): Delete.
10005         (initial_regno_reg_rtx): New macro.
10006         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10007         (init_emit_regs): Likewise.
10008         * target-globals.h (this_target_rtl): Declare.
10009         (target_globals): Add a rtl field.
10010         (restore_target_globals): Copy the rtl field to this_target_rtl.
10011         * target-globals.c: Include rtl.h.
10012         (default_target_globals): Initialize the rtl field.
10013         (save_target_globals): Likewise.
10014
10015 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10016
10017         * Makefile.in (target-globals.o): Depend on $(REGS_H).
10018         * regs.h (target_reg_modes): New structure.
10019         (default_target_reg_modes): Declare.
10020         (this_target_reg_modes): Declare as a variable or define as a macro.
10021         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10022         * reginfo.c (default_target_reg_modes): New variable.
10023         (this_target_reg_modes): New conditional variable.
10024         (hard_regno_nregs, reg_raw_mode): Delete.
10025         * target-globals.h (this_target_regs): Declare.
10026         (target_globals): Add a regs field.
10027         (restore_target_globals): Copy the regs field to this_target_regs.
10028         * target-globals.c: Include regs.h.
10029         (default_target_globals): Initialize the regs field.
10030         (save_target_globals): Likewise.
10031
10032 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10033
10034         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10035         * doc/tm.texi: Regenerate.
10036         * Makefile.in (OBJS-common): Add target-globals.o.
10037         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10038         and target-globals.h.
10039         (target-globals.o): New rule.
10040         (GTFILES): Include $(srcdir)/target-globals.h.
10041         * defaults.h (SWITCHABLE_TARGET): Define.
10042         * gengtype.c (open_base_files): Add target-globals.h to the
10043         list of includes.
10044         * target-globals.h: New file.
10045         * target-globals.c: Likewise.
10046
10047         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10048         * flags.h (target_flag_state): New structure.
10049         (default_target_flag_state): Declare.
10050         (this_target_flag_state): Declare as a variable or define as a macro.
10051         (align_loops_log): Redefine as a macro.
10052         (align_loops_max_skip, align_jumps_log): Likewise.
10053         (align_jumps_max_skip, align_labels_log): Likewise.
10054         (align_labels_max_skip, align_functions_log): Likewise.
10055         * toplev.c (default_target_flag_state): New variable.
10056         (this_target_flag_state): New conditional variable.
10057         (align_loops_log): Delete.
10058         (align_loops_max_skip, align_jumps_log): Likewise.
10059         (align_jumps_max_skip, align_labels_log): Likewise.
10060         (align_labels_max_skip, align_functions_log): Likewise.
10061         * target-globals.h (this_target_flag_state): Declare.
10062         (target_globals): Add a flag_state field.
10063         (restore_target_globals): Copy the flag_state field to
10064         this_target_flag_state.
10065         * target-globals.c: Include flags.h.
10066         (default_target_globals): Initialize the flag_state field.
10067         (save_target_globals): Likewise.
10068
10069 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10070
10071         * postreload.c (reg_symbol_ref[]): New.
10072         (move2add_use_add2_insn): New.
10073         (move2add_use_add3_insn): New.
10074         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10075         (move2add_note_store): Likewise.
10076
10077 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
10078
10079         PR rtl-optimization/44752
10080         * genautomata.c (main): Don't emit an empty file even if there
10081         is no automaton.
10082
10083 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10084
10085         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10086         ix86_solaris_return_in_memory.
10087         * config/i386-protos.h: Reflect this.
10088         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10089         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10090         Move ...
10091         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10092
10093 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10094
10095         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10096         align the stack when it's going to be saved.
10097
10098 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10099
10100         PR pch/14940
10101         * config/host-solaris.c (mmap_fixed): New function.
10102         (sol_gt_pch_get_address): Use it.
10103         (sol_gt_pch_use_address): Likewise.
10104
10105 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10106
10107         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10108         pentiumpro on Solaris 8 and 9/x86.
10109         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10110         Document SSE/SSE2 support.
10111         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10112
10113 2010-07-12  Andi Kleen  <ak@linux.intel.com>
10114
10115         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10116         instead of gcc_assert to print better error message for multiple
10117         prevailing defs.
10118
10119 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
10120
10121         * config/i386/i386.c (ix86_asm_output_function_label): Change format
10122         string placeholder from 0x%x to %#x.
10123         (ix86_code_end): Use putc to output '\n'.
10124         (ix86_print_operand) <case ';'>: Use putc to output ';'.
10125
10126 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
10127
10128         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10129         in directive -export.
10130
10131 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
10132
10133         * reginfo.h (reg_classes_intersect_p): Change arguments type to
10134         reg_class_t.
10135         * rtl.h (reg_classes_intersect_p): Adjust prototype.
10136
10137         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10138         Remove macros.
10139         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10140         rs6000_memory_move_cost): Remove
10141         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10142         TARGET_MEMORY_MOVE_COST): Define.
10143         (rs6000_register_move_cost): Make static. Change arguments type from
10144         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10145         (rs6000_memory_move_cost): Make static. Change arguments type from
10146         'enum reg_class' to reg_class_t.
10147
10148 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
10149
10150         PR middle-end/42505
10151         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10152         lookup code into....
10153         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10154         new functions.
10155         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10156         * cfgloopanal.c (target_clobbered_regs): Define.
10157         (init_set_costs): Initialize target_clobbered_regs.
10158         (estimate_reg_pressure_cost): Add call_p argument.  When true,
10159         adjust the number of available registers to exclude the
10160         call-clobbered registers.
10161         * cfgloop.h (target_clobbered_regs): Declare.
10162         (estimate_reg_pressure_cost): Adjust declaration.
10163         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10164         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10165         (determine_set_costs): Dump target_clobbered_regs.
10166         (loop_body_includes_call): New function.
10167         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10168         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10169         call_p flag through.
10170         (best_gain_for_invariant): Likewise.
10171         (find_invariants_to_move): Likewise.
10172         (move_single_loop_invariants): Likewise, using already-computed
10173         has_call field.
10174
10175 2010-07-10  Richard Guenther  <rguenther@suse.de>
10176             Joern Rennecke  <joern.rennecke@embecosm.com>
10177
10178         PR debug/44832
10179         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10180         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10181         unless they have DECL_IGNORED_P set.
10182
10183 2010-07-10  Richard Guenther  <rguenther@suse.de>
10184
10185         PR lto/44889
10186         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10187         helper function.
10188         (gimple_types_compatible_p): Similar to pointed-to
10189         types allow and merge a mix of complete and incomplete aggregate.
10190         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10191         (iterative_hash_gimple_type): Adjust for that.
10192
10193 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
10194
10195         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10196
10197 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
10198
10199         PR objc/44140
10200         * config/darwin.c (output_objc_section_asm_op): Save and restore
10201         section when outputting ObjC section list.
10202
10203 2010-07-09  Jan Hubicka  <jh@suse.cz>
10204
10205         * lto-streamer-out.c (produce_symtab): Do not write alias
10206         cgraph/varpool nodes.
10207
10208 2010-07-09  Jan Hubicka  <jh@suse.cz>
10209
10210         * tree-inline.c (declare_return_variable): Fix ICE while
10211         inlining DECL_BY_VALUE function not in SSA form
10212
10213 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
10214
10215         PR tree-optimization/44576
10216         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10217         New.  Pull out from is_loop_prefetching_profitable to implement
10218         the trip count to ahead ratio heuristic.
10219         (mem_ref_count_reasonable_p): New.  Pull out from
10220         is_loop_prefetching_profitable to implement the instruction to
10221         memory reference ratio heuristic.  Also consider not reasonable if
10222         the memory reference count is above a threshold (to avoid
10223         explosive compilation time.
10224         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
10225         is_loop_prefetching_profitable to implement the instruction to
10226         prefetch ratio heuristic.
10227         (is_loop_prefetching_profitable): Removed.
10228         (loop_prefetch_arrays): Distribute the cost analysis across the
10229         function to allow early exit of the prefetch analysis.
10230         is_loop_prefetching_profitable is splitted into three functions,
10231         with each one called as early as possible.
10232         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
10233         number of memory references in a loop is considered too many.
10234
10235 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10236
10237         * reload.c (find_reloads): Don't clear badop if we have a winreg
10238         alternative, but not win, and the class only has fixed regs.
10239         * hard-reg-set.h (class_only_fixed_regs): Declare.
10240         * reginfo.c (class_only_fixed_regs): New array.
10241         (init_reg_sets_1): Initialize it.
10242         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10243         discourage alternatives using the stack pointer.
10244
10245         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10246
10247         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10248
10249         * config/arm/arm.md (cbranchqi4): Fix array size.
10250         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10251         calculating length.
10252
10253 2010-07-09  Richard Guenther  <rguenther@suse.de>
10254
10255         * gimple.c (struct type_fixup_s): New struct and VEC type.
10256         (gimple_register_type_fixups): New static global.
10257         (gimple_queue_type_fixup): New function.
10258         (gimple_types_compatible_p): Queue type fixups instead of
10259         applying them here.
10260         (gimple_register_type): Apply queued fixups for the
10261         canonical type.  Empty the type fixup queue.
10262
10263 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10264
10265         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10266         * configure: Regenerate.
10267         * config.in: Ditto.
10268
10269 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10270             Denys Vlasenko  <dvlasenk@redhat.com>
10271             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10272
10273         PR tree-optimization/28632
10274         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10275         (extract_range_from_binary_expr): Further optimize
10276         BIT_AND_EXPR and BIT_IOR_EXPR.
10277
10278 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
10279
10280         * tree-if-conv.c (fold_or_predicates): New.
10281         (add_to_predicate_list): Call it.
10282
10283 2010-07-09  Richard Guenther  <rguenther@suse.de>
10284
10285         PR middle-end/44890
10286         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10287         if base is a pointer.
10288         * tree-cfg.c (verify_expr): Update MEM_REF checking.
10289
10290 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10291
10292         PR target/44877
10293         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10294         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10295         builtin mask for load/store builtins.
10296
10297 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10298
10299         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10300         for "lock addl".
10301         * configure: Regenerate.
10302         * config/i386/i386.c (ix86_print_operand) <case ';'>:
10303         Remove TARGET_MACHO.
10304
10305 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
10306
10307         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10308         default ISA flags.
10309         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10310
10311 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
10312
10313         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10314
10315 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10316
10317         * config/picochip/picochip.md (commsTestPort): Emit more
10318         efficient sequence for tstport instruction.
10319
10320 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10321
10322         * config/i386/i386.c (ix86_veclib_handler): Make static.
10323
10324 2010-07-09  Richard Guenther  <rguenther@suse.de>
10325
10326         PR tree-optimization/44852
10327         * tree-ssa-alias.c: Include toplev.h for exact_log2.
10328         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10329         in MEM_REF.
10330         (indirect_refs_may_alias_p): Likewise.
10331         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10332
10333 2010-07-09  Richard Guenther  <rguenther@suse.de>
10334
10335         PR tree-optimization/44882
10336         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10337         sets do conflict.
10338         (vectorizable_load): Likewise.
10339
10340 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10341
10342         PR target/40657
10343         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10344         All callers changed.
10345         Handle the case when we're called for the epilogue.
10346         (thumb_unexpanded_epilogue): Use it.
10347         (thumb1_expand_epilogue): Likewise.
10348
10349 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10350
10351         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10352         both ranges are range_int_cst_p with non-negative minimum,
10353         try harder to derive smaller range.
10354
10355 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10356
10357         * genrecog.c: Include diagnostic-core.h before toplev.h.
10358         * genoutput.c: Likewise.
10359         * genextract.c: Likewise.
10360         * genautomata.c: Likewise.
10361         * genemit.c: Likewise.
10362         * genpeep.c: Likewise.
10363         * genattrtab.c: Likewise.
10364         * genconditions.c: Likewise.
10365         * genpreds.c: Likewise.
10366
10367 2010-07-08  Andi Kleen  <ak@linux.intel.com>
10368
10369         * lto-section-in.c (lto_section_name): Add missing comma.
10370
10371 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
10372
10373         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10374         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10375         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10376         (ia64_override_options): Rename to...
10377         (ia64_option_override): ... this one. Make static.
10378
10379 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10380
10381         PR middle-end/44843
10382         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10383         pointed-to type of the offset in a MEM_REF to compute the alignment.
10384
10385 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10386
10387         * final.c (final_scan_insn): Replace
10388         TARGET_UNWIND_INFO macro check by unwind_emit
10389         hook NULL check.
10390         * targhooks.c (default_unwind_emit): Removed.
10391         * targhooks.h (default_unwind_emit): Likewise.
10392         * target.def (unwind_emit): Set default value to NULL.
10393
10394         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10395         New prototype.
10396         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10397         for NULL fntype argument and allow 64-bit targets.
10398         (ix86_asm_output_function_label): New function.
10399         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10400         (ix86_handle_fndecl_attribute): Likewise.
10401         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10402         * doc/doc/tm.texi: Regenerated.
10403         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10404         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10405         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10406         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10407         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10408         * config/elfos.h: Likewise.
10409         * config/i386/cygming.h: Likewise.
10410         * config/netbsd-aout.h: Likewise.
10411         * config/openbsd.h: Likewise.
10412         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10413         by ix86_asm_output_function_label function call.
10414         * varasm.c (assemble_start_function): Use
10415         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10416
10417 2010-07-08  Jan Hubicka  <jh@suse.cz>
10418
10419         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10420         New function.
10421         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10422         Declare.
10423         * ipa-cp.c (ipcp_estimate_growth): Use it.
10424         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10425         Likewise.
10426
10427 2010-07-08  Jan Hubicka  <jh@suse.cz>
10428
10429         * tree-inline.c (declare_return_variable): Allocate annotation for new
10430         temporary.
10431
10432 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10433
10434         PR tree-optimization/44710
10435         * tree-if-conv.c (parse_predicate): New.
10436         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10437         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10438
10439 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10440
10441         * common.opt (ftree-loop-if-convert): New flag.
10442         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10443         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10444         when flag_tree_loop_if_convert is set.
10445
10446 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10447
10448         * config/i386/i386.c: Use short syntax for function calls
10449         through function pointers.
10450         * config/i386/i386.md: Ditto.
10451
10452 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10453
10454         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10455
10456 2010-07-08  Richard Guenther  <rguenther@suse.de>
10457
10458         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10459         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10460
10461 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10462
10463         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10464         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10465         (loc_list_from_tree): Likewise.
10466         (output_loc_operands): Handle outputting DW_OP_const[48]u
10467         with loc->dtprel set.
10468         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10469
10470 2010-07-08  Jan Hubicka  <jh@suse.cz>
10471
10472         * ipa.c: Include pointer-set.h
10473         (cgraph_externally_visible_p): New attribute ALIASED;
10474         when in LTO, hidden symbols are local unless they are aliased.
10475         (function_and_variable_visibility): Compute aliased nodes;
10476         handle LTO and hidden symbol on functions and vars.
10477         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10478         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10479
10480 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10481
10482         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10483         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10484         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10485         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10486         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10487         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10488         (ix86_gen_probe_stack_range): Likewise.
10489         (override_options): Set them.
10490         (ix86_target_stack_probe): New function.
10491         (ix86_compute_frame_layout): Force use of push instructions to
10492         save registers if stack checking with probes is enabled.
10493         (get_scratch_register_on_entry): New function.
10494         (release_scratch_register_on_entry): Likewise.
10495         (ix86_adjust_stack_and_probe): Likewise.
10496         (output_adjust_stack_and_probe): Likewise.
10497         (ix86_emit_probe_stack_range): Likewise.
10498         (output_probe_stack_range): Likewise.
10499         (ix86_expand_prologue): Emit stack checking code if static built-in
10500         stack checking is enabled.
10501         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10502         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10503         (output_adjust_stack_and_probe): Likewise.
10504         (output_probe_stack_range): Likewise.
10505         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10506         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10507         TARGET_STACK_PROBE.
10508         (allocate_stack_worker_64): Likewise.
10509         (allocate_stack): Likewise.
10510         (adjust_stack_and_probe): New insn.
10511         (probe_stack_range): Likewise.
10512
10513 2010-07-08  Richard Guenther  <rguenther@suse.de>
10514
10515         PR tree-optimization/44831
10516         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10517         a MEM_REF preserving TBAA info of the original dereference.
10518         Dereference the original pointer if the address is not invariant.
10519         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10520         at least one invariant address that we are going to dereference.
10521
10522 2010-07-08  Richard Guenther  <rguenther@suse.de>
10523
10524         PR tree-optimization/44861
10525         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10526         information when building MEM_REFs.
10527         (vectorizable_load): Likewise.
10528         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10529
10530 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10531
10532         * config/sol2-c.c: Do not include diagnostic-core.h.
10533
10534 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10535
10536         PR bootstrap/44768
10537         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10538         with respect to current_function_decl. Pass decl of the function.
10539         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10540         * ipa-inline.c (compute_inline_parameters): Pass decl to
10541         estimated_stack_frame_size.
10542
10543 2010-07-08  Richard Guenther  <rguenther@suse.de>
10544
10545         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10546         New function.
10547         (valueize_refs): Call it.
10548
10549 2010-07-08  Richard Guenther  <rguenther@suse.de>
10550
10551         PR rtl-optimization/44838
10552         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10553         SSA form do not use pointer equivalence.
10554
10555 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10556
10557         * dwarf2out.c (AT_linkage_name): Delete.
10558         (add_linkage_attr): New function.
10559         (add_linkage_name): Call it to emit the linkage attribute.
10560         (dwarf2out_finish): Likewise.
10561         (move_linkage_attr): Explicitly accept both attribute variants.
10562
10563 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10564
10565         * toplev.h: Do not include diagnostic-core.h.
10566         Include diagnostic-core.h in every file that includes toplev.h.
10567         * c-tree.h: Do not include toplev.h.
10568         * pretty-print.h: Update comment.
10569         * Makefile.in: Update dependencies.
10570         * alias.c: Include diagnostic-core.h in every file that includes
10571         toplev.h.
10572         * attribs.c: Likewise.
10573         * auto-inc-dec.c: Likewise.
10574         * bb-reorder.c: Likewise.
10575         * bt-load.c: Likewise.
10576         * caller-save.c: Likewise.
10577         * calls.c: Likewise.
10578         * cfg.c: Likewise.
10579         * cfganal.c: Likewise.
10580         * cfgbuild.c: Likewise.
10581         * cfgcleanup.c: Likewise.
10582         * cfghooks.c: Likewise.
10583         * cfgloop.c: Likewise.
10584         * combine.c: Likewise.
10585         * config/alpha/alpha.c: Likewise.
10586         * config/arc/arc.c: Likewise.
10587         * config/arm/arm.c: Likewise.
10588         * config/arm/pe.c: Likewise.
10589         * config/avr/avr.c: Likewise.
10590         * config/bfin/bfin.c: Likewise.
10591         * config/cris/cris.c: Likewise.
10592         * config/crx/crx.c: Likewise.
10593         * config/darwin-c.c: Likewise.
10594         * config/darwin.c: Likewise.
10595         * config/fr30/fr30.c: Likewise.
10596         * config/frv/frv.c: Likewise.
10597         * config/h8300/h8300.c: Likewise.
10598         * config/host-darwin.c: Likewise.
10599         * config/i386/i386.c: Likewise.
10600         * config/i386/netware.c: Likewise.
10601         * config/i386/nwld.c: Likewise.
10602         * config/i386/winnt-cxx.c: Likewise.
10603         * config/i386/winnt-stubs.c: Likewise.
10604         * config/i386/winnt.c: Likewise.
10605         * config/ia64/ia64-c.c: Likewise.
10606         * config/ia64/ia64.c: Likewise.
10607         * config/iq2000/iq2000.c: Likewise.
10608         * config/lm32/lm32.c: Likewise.
10609         * config/m32c/m32c-pragma.c: Likewise.
10610         * config/m32c/m32c.c: Likewise.
10611         * config/m32r/m32r.c: Likewise.
10612         * config/m68hc11/m68hc11.c: Likewise.
10613         * config/m68k/m68k.c: Likewise.
10614         * config/mcore/mcore.c: Likewise.
10615         * config/mep/mep-pragma.c: Likewise.
10616         * config/mep/mep.c: Likewise.
10617         * config/mmix/mmix.c: Likewise.
10618         * config/mn10300/mn10300.c: Likewise.
10619         * config/moxie/moxie.c: Likewise.
10620         * config/pa/pa.c: Likewise.
10621         * config/pdp11/pdp11.c: Likewise.
10622         * config/picochip/picochip.c: Likewise.
10623         * config/rs6000/rs6000-c.c: Likewise.
10624         * config/rs6000/rs6000.c: Likewise.
10625         * config/rx/rx.c: Likewise.
10626         * config/s390/s390.c: Likewise.
10627         * config/score/score.c: Likewise.
10628         * config/score/score3.c: Likewise.
10629         * config/score/score7.c: Likewise.
10630         * config/sh/sh.c: Likewise.
10631         * config/sh/symbian-base.c: Likewise.
10632         * config/sh/symbian-c.c: Likewise.
10633         * config/sh/symbian-cxx.c: Likewise.
10634         * config/sol2-c.c: Likewise.
10635         * config/sol2.c: Likewise.
10636         * config/sparc/sparc.c: Likewise.
10637         * config/spu/spu.c: Likewise.
10638         * config/stormy16/stormy16.c: Likewise.
10639         * config/v850/v850-c.c: Likewise.
10640         * config/v850/v850.c: Likewise.
10641         * config/vax/vax.c: Likewise.
10642         * config/vxworks.c: Likewise.
10643         * config/xtensa/xtensa.c: Likewise.
10644         * convert.c: Likewise.
10645         * cse.c: Likewise.
10646         * cselib.c: Likewise.
10647         * dbgcnt.c: Likewise.
10648         * dbxout.c: Likewise.
10649         * ddg.c: Likewise.
10650         * dominance.c: Likewise.
10651         * emit-rtl.c: Likewise.
10652         * explow.c: Likewise.
10653         * expmed.c: Likewise.
10654         * fixed-value.c: Likewise.
10655         * fold-const.c: Likewise.
10656         * fwprop.c: Likewise.
10657         * gcse.c: Likewise.
10658         * ggc-common.c: Likewise.
10659         * ggc-page.c: Likewise.
10660         * ggc-zone.c: Likewise.
10661         * gimple-low.c: Likewise.
10662         * gimplify.c: Likewise.
10663         * graph.c: Likewise.
10664         * haifa-sched.c: Likewise.
10665         * ifcvt.c: Likewise.
10666         * implicit-zee.c: Likewise.
10667         * integrate.c: Likewise.
10668         * ira-build.c: Likewise.
10669         * ira-color.c: Likewise.
10670         * ira-conflicts.c: Likewise.
10671         * ira-costs.c: Likewise.
10672         * ira-lives.c: Likewise.
10673         * ira.c: Likewise.
10674         * lists.c: Likewise.
10675         * loop-doloop.c: Likewise.
10676         * loop-iv.c: Likewise.
10677         * lto-opts.c: Likewise.
10678         * lto-symtab.c: Likewise.
10679         * main.c: Likewise.
10680         * modulo-sched.c: Likewise.
10681         * optabs.c: Likewise.
10682         * params.c: Likewise.
10683         * plugin.c: Likewise.
10684         * postreload-gcse.c: Likewise.
10685         * postreload.c: Likewise.
10686         * predict.c: Likewise.
10687         * profile.c: Likewise.
10688         * real.c: Likewise.
10689         * regcprop.c: Likewise.
10690         * reginfo.c: Likewise.
10691         * regmove.c: Likewise.
10692         * reorg.c: Likewise.
10693         * resource.c: Likewise.
10694         * rtl.c: Likewise.
10695         * rtlanal.c: Likewise.
10696         * sched-deps.c: Likewise.
10697         * sched-ebb.c: Likewise.
10698         * sched-rgn.c: Likewise.
10699         * sdbout.c: Likewise.
10700         * sel-sched-dump.c: Likewise.
10701         * sel-sched-ir.c: Likewise.
10702         * simplify-rtx.c: Likewise.
10703         * stmt.c: Likewise.
10704         * stor-layout.c: Likewise.
10705         * store-motion.c: Likewise.
10706         * targhooks.c: Likewise.
10707         * tree-cfg.c: Likewise.
10708         * tree-cfgcleanup.c: Likewise.
10709         * tree-dump.c: Likewise.
10710         * tree-eh.c: Likewise.
10711         * tree-inline.c: Likewise.
10712         * tree-nomudflap.c: Likewise.
10713         * tree-object-size.c: Likewise.
10714         * tree-optimize.c: Likewise.
10715         * tree-outof-ssa.c: Likewise.
10716         * tree-phinodes.c: Likewise.
10717         * tree-profile.c: Likewise.
10718         * tree-ssa-ccp.c: Likewise.
10719         * tree-ssa-coalesce.c: Likewise.
10720         * tree-ssa-live.c: Likewise.
10721         * tree-ssa-loop-niter.c: Likewise.
10722         * tree-ssa-loop-prefetch.c: Likewise.
10723         * tree-ssa-loop.c: Likewise.
10724         * tree-ssa-structalias.c: Likewise.
10725         * tree-ssa-uninit.c: Likewise.
10726         * tree-ssa.c: Likewise.
10727         * tree-vect-data-refs.c: Likewise.
10728         * tree-vect-loop-manip.c: Likewise.
10729         * tree-vect-loop.c: Likewise.
10730         * tree-vect-patterns.c: Likewise.
10731         * tree-vect-stmts.c: Likewise.
10732         * tree-vrp.c: Likewise.
10733         * varasm.c: Likewise.
10734         * vec.c: Likewise.
10735         * web.c: Likewise.
10736         * xcoffout.c: Likewise.
10737
10738 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
10739
10740         * gengtype.c (write_field_root): New function.
10741         (write_root): Use it.
10742
10743 2010-07-07  Wei Guozhi  <carrot@google.com>
10744
10745         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10746         of lowest bits to lshift/compare): Add a missing line.
10747
10748 2010-07-07  Wei Guozhi  <carrot@google.com>
10749
10750         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10751         of lowest bits to lshift/compare): New.
10752
10753 2010-07-07  Tom Tromey  <tromey@redhat.com>
10754
10755         * doc/tm.texi: Update.
10756         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
10757         Add @hook.
10758         * target.def (want_debug_pub_sections): New hook.
10759         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
10760         * dwarf2out.c (add_pubname_string): Check
10761         targetm.want_debug_pub_sections.
10762         (add_pubname): Likewise.
10763         (add_pubtype): Likewise.
10764
10765 2010-07-07  Jie Zhang  <jie@codesourcery.com>
10766
10767         * genautomata.c (output_automata_list_min_issue_delay_code):
10768         Correctly decompress min_issue_delay.
10769
10770 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10771
10772         PR rtl-optimization/44404
10773         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10774         possible, use reg_overlap_mentioned_p instead.
10775
10776 2010-07-07  Duncan Sands  <baldrick@free.fr>
10777
10778         PR middle-end/41355
10779         * tree.c (build_function_type_skip_args): Copy the original type using
10780         build_distinct_type_copy rather than copy_node.
10781
10782 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10783
10784         PR target/44850
10785         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
10786         revision 161876.
10787         (ix86_expand_prologue): Likewise.
10788         (ix86_handle_fndecl_attribute): Likewise.
10789         (ix86_asm_declare_function_name): Likewise.
10790         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10791         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10792         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
10793         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
10794         * doc/extend.texi: Likewise.
10795
10796 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10797
10798         PR target/44844
10799         * config/i386/i386.md (rdrand<mode>): Changed to expand to
10800         retry if the carry flag isn't valid.
10801         (rdrand<mode>_1): New.
10802
10803 2010-07-07  Richard Guenther  <rguenther@suse.de>
10804
10805         PR middle-end/44790
10806         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
10807         for expanding the constant offset for MEM_REFs.
10808
10809 2010-07-07  Richard Guenther  <rguenther@suse.de>
10810
10811         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
10812         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
10813         * gimple.h (is_gimple_operand): Remove.
10814         * gimple.c (is_gimple_operand): Likewise.
10815         (walk_gimple_op): Fix wi->val_only setting for calls.
10816         * tree-cfg.c (verify_gimple_call): Fix argument validation.
10817         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
10818         invalid gimple calls.
10819
10820 2010-07-06  Jan Hubicka  <jh@suse.cz>
10821
10822         * lto-cgraph.c (output_cgraph): Add missing declaration.
10823
10824 2010-07-06  Jan Hubicka  <jh@suse.cz>
10825
10826         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
10827         partition.
10828
10829 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
10830
10831         * doc/gimple.texi (GIMPLE_DEBUG): Document.
10832         * doc/rtl.texi (Debug Information): New node.
10833         (NOTE_INSN_VAR_LOCATION): Document.
10834         (debug_insn): Likewise.
10835         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
10836
10837 2010-07-07  Jan Hubicka  <jh@suse.cz>
10838
10839         With parts by Richard Guenther.
10840
10841         PR middle-end/44813
10842         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
10843         for functions passed by reference.
10844         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
10845         in memory when passed by reference.
10846         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
10847         beggining.
10848         * ipa-split.c (split_function): Cleanup way return value is passed;
10849         handle SSA DECL_BY_REFERENCE retvals.
10850         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
10851         DECL_BY_REFERENCE is set.
10852         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
10853         find_what_p_points_to): Handle RESULT_DECL.
10854         * tree-inline.c (declare_return_variable): Get new entry_block argument;
10855         when passing by reference ensure that RESULT_DECL is gimple_val.
10856         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
10857         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
10858
10859 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10860
10861         PR rtl-optimization/44787
10862         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
10863         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
10864
10865 2010-07-06  Jan Hubicka  <jh@suse.cz>
10866
10867         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
10868         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
10869         with body can prevail.
10870         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
10871         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
10872         * cgraph.c (cgraph_get_node_or_alias): New function.
10873         * cgraph.h (cgraph_get_node_or_alias): Declare.
10874
10875 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
10876
10877         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
10878         support.
10879         (ix86_expand_prologue): Likewise.
10880         (ix86_handle_fndecl_attribute): Likewise.
10881         (ix86_asm_declare_function_name): New function for
10882         ASM_DECLARE_FUNCTION_NAME.
10883         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
10884         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
10885         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
10886         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
10887         * doc/extend.texi: Adjust documentation about ms_hook_prologue
10888         attribute.
10889
10890 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10891
10892         * config/i386/i386.md (immediate_operand): New mode attribute.
10893
10894         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
10895         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
10896         using P mode iterator.
10897         (pro_epilogue_adjust_stack_di_2): Rename from
10898         pro_epilogue_adjust_stack_rex64_2.
10899
10900         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
10901
10902 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10903
10904         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
10905         through gen_mov_insv_1 function pointer.
10906         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
10907         gen_truncxf<mode>2 through gen_truncxf function pointer.
10908         (remainder<mode>3): Ditto.
10909         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
10910         (allocate_stack): Call gen_allocate_stack_worker_64 or
10911         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
10912         function pointer.
10913         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
10914         function pointer.
10915
10916 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10917
10918         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
10919         operand constraint instead of <r><i>m.
10920
10921 2010-07-06  Richard Guenther  <rguenther@suse.de>
10922
10923         PR middle-end/44828
10924         * convert.c (convert_to_integer): Watch out for overflowing
10925         MULT_EXPR as well.
10926
10927 2010-07-05  Jan Hubicka  <jh@suse.cz>
10928
10929         * lto-streamer.c (write_symbol_vec): Rename to ...
10930         (write_symbol) ... this one; write only symbol given and when
10931         present in cache. Sanity check that what is defined is present
10932         in cgraph/varpool with body/finalized decl.
10933         (write_symbols_of_kind): Remove.
10934         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
10935         pairs to produce symtab.
10936         (produce_asm_for_decls): Update call of produce_symtab; don't do so
10937         when doing WPA streaming.
10938
10939 2010-07-05  Jan Hubicka  <jh@suse.cz>
10940
10941         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
10942         function is still available to fold into.
10943
10944 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10945
10946         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
10947         * function.h (struct_function): Change type of local_decls field
10948         to a VEC.
10949         (add_local_decl): New function.
10950         (FOR_EACH_LOCAL_DECL): New macro.
10951         * cfgexpand.c (init_vars_expansion): Adjust for new type of
10952         cfun->local_decls.
10953         (estimated_stack_frame_size): Likewise.
10954         (expand_used_vars): Likewise.
10955         * cgraphbuild.c (build_cgraph_edges): Likewise.
10956         * function.c (instantiate_decls_1): Likewise.
10957         * ipa-struct-reorg.c (build_data_structure): Likewise.
10958         * ipa-type-escape.c (analyze_function): Likewise.
10959         * lto-streamer-in.c (input_function): Likewise.
10960         * lto-streamer-out.c (output_function): Likewise.
10961         * tree-ssa-live.c (remove_unused_locals): Likewise.
10962         * tree.c (free_lang_data_in_decl): Likewise.
10963         (find_decls_types_in_node): Likewise.
10964         * omp-low.c (remove_exit_barrier): Likewise.
10965         (expand_omp_taskreg): Likewise.
10966         (list2chain): Rename to...
10967         (vec2chain): ...this.  Adjust.
10968         * cgraphunit.c (assemble_thunk): Call add_local_decl.
10969         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
10970         * gimple-low.c (record_vars_into): Likewise.
10971         * tree-inline.c (remap_decls): Likewise.
10972         (declare_return_variable): Likewise.
10973         (declare_inline_vars): Likewise.
10974         (copy_forbidden): Adjust for new type of cfun->local_decls.
10975         (add_local_variables): New function.
10976         (expand_call_inline): Call it.
10977         (tree_function_versioning): Likewise.
10978
10979 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10980
10981         AVX Programming Reference (June, 2010)
10982         * config/i386/cpuid.h (bit_F16C): New.
10983         (bit_RDRND): Likewise.
10984         (bit_FSGSBASE): Likewise.
10985
10986         * config/i386/i386-builtin-types.def: Add
10987         "DEF_FUNCTION_TYPE (UINT16)", function types for
10988         float16 <-> float conversions and
10989         "DEF_FUNCTION_TYPE (VOID, UINT64)".
10990
10991         * config/i386/i386-c.c (ix86_target_macros_internal): Support
10992         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
10993         OPTION_MASK_ISA_F16C.
10994
10995         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
10996         (OPTION_MASK_ISA_RDRND_SET): Likewise.
10997         (OPTION_MASK_ISA_F16C_SET): Likewise.
10998         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
10999         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11000         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11001         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11002         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11003         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11004         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11005         (override_options): Handle them.
11006         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11007         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11008         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11009         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11010         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11011         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11012         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11013         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11014         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11015         (bdesc_args): Likewise.
11016         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11017         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11018         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11019         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11020         Handle non-memory store.
11021
11022         * config/i386/i386.h (TARGET_FSGSBASE): New.
11023         (TARGET_RDRND): Likewise.
11024         (TARGET_F12C): Likewise.
11025
11026         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11027         (UNSPEC_VCVTPS2PH): Likewise.
11028         (UNSPECV_RDFSBASE): Likewise.
11029         (UNSPECV_RDGSBASE): Likewise.
11030         (UNSPECV_WRFSBASE): Likewise.
11031         (UNSPECV_WRGSBASE): Likewise.
11032         (UNSPECV_RDRAND): Likewise.
11033         (rdfsbase<mode>): Likewise.
11034         (rdgsbase<mode>): Likewise.
11035         (wrfsbase<mode>): Likewise.
11036         (wrgsbase<mode>): Likewise.
11037         (rdrand<mode>): Likewise.
11038
11039         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11040
11041         * config/i386/immintrin.h (_rdrand_u16): New.
11042         (_rdrand_u32): Likewise.
11043         (_readfsbase_u32): Likewise.
11044         (_readfsbase_u64): Likewise.
11045         (_readgsbase_u32): Likewise.
11046         (_readgsbase_u64): Likewise.
11047         (_writefsbase_u32): Likewise.
11048         (_writefsbase_u64): Likewise.
11049         (_writegsbase_u32): Likewise.
11050         (_writegsbase_u64): Likewise.
11051         (_rdrand_u64): Likewise.
11052         (_cvtsh_ss): Likewise.
11053         (_mm_cvtph_ps): Likewise.
11054         (_mm256_cvtph_ps): Likewise.
11055         (_cvtss_sh): Likewise.
11056         (_mm_cvtps_ph): Likewise.
11057         (_mm256_cvtps_ph): Likewise.
11058
11059         * config/i386/sse.md (vcvtph2ps): New.
11060         (*vcvtph2ps_load): Likewise.
11061         (vcvtph2ps256): Likewise.
11062         (vcvtps2ph): Likewise.
11063         (*vcvtps2ph): Likewise.
11064         (*vcvtps2ph_store): Likewise.
11065         (vcvtps2ph256): Likewise.
11066
11067         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11068
11069         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11070
11071 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11072
11073         PR bootstrap/44512
11074         * genenums.c (main): Output include of insn-constants.h
11075         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11076
11077 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
11078
11079         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11080         (override_options): Initialize it.
11081         (ix86_expand_prologue): Use it.
11082
11083 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11084
11085         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11086
11087 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11088
11089         * double-int.h (fit_double_type): Remove declaration.
11090         * double-int.c (fit_double_type): Remove function.
11091         * tree.h (int_fits_type_p): Adjust prototype.
11092         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11093         instead of fit_double_type.
11094         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11095         instead of fit_double_type and build_int_cst_wide.
11096         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11097         instead of fit_double_type and build_int_cst_wide.
11098         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11099         of fit_double_type.
11100
11101 2010-07-05  Jan Hubicka  <jh@suse.cz>
11102
11103         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11104         in_other_partition.
11105         * lto-cgraph.c (referenced_from_other_partition_p,
11106         reachable_from_other_partition_p): Use in_other_partition flags.
11107         (output_node, output_varpool_node): COMDAT nodes always have private
11108         copies and thus are never used from other partition.
11109
11110 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11111
11112         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11113         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11114         * config/ia64/ia64.c Include reload.h.
11115         (ia64_memory_move_cost): New function.
11116         (TARGET_MEMORY_MOVE_COST): Define.
11117         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11118         memory_move_cost.
11119
11120 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11121
11122         PR middle-end/42505
11123         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11124         comments about cost model.
11125         (try_add_cand_for):  Add second strategy for choosing initial set
11126         based on original IVs, controlled by ORIGINALP argument.
11127         (get_initial_solution): Add ORIGINALP argument.
11128         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11129         (find_optimal_iv_set): Try two different strategies for choosing
11130         the IV set, and return the one with lower cost.
11131
11132 2010-07-05  Richard Guenther  <rguenther@suse.de>
11133
11134         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11135
11136 2010-07-05  Richard Guenther  <rguenther@suse.de>
11137
11138         * tree.c (reference_alias_ptr_type): New function.
11139         * tree.h (reference_alias_ptr_type): Declare.
11140         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11141         allow non-TARGET_MEM_REF new refs.
11142         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11143         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11144         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11145         (create_mem_ref): Get alias pointer type.  Adjust calls to
11146         create_mem_ref_raw.
11147         (maybe_fold_tmr): Likewise.
11148         * tree-flow.h (create_mem_ref): Adjust prototype.
11149
11150 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11151
11152         PR c++/44808
11153         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11154         *from_p is VAR_DECL.
11155
11156 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11157
11158         * tree.h (build_call_list): Remove.
11159         * tree.c (build_call_list): Remove.
11160
11161 2010-07-05  Richard Guenther  <rguenther@suse.de>
11162
11163         * double-int.h (double_int_sub): Declare.
11164         * double-int.c (double_int_sub): New function.
11165         * dwarf2out.c (field_byte_offset): Use it.
11166         * fixed-value.c (do_fixed_add): Likewise.
11167         (do_fixed_multiply): Likewise.
11168         (do_fixed_divide): Likewise.
11169         * tree-predcom.c (add_ref_to_chain): Likewise.
11170         (determine_roots_comp): Likewise.
11171         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11172
11173 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11174
11175         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
11176         implementations.
11177
11178 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
11179
11180         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11181         * arm-modes.def (CC_NOTB): Don't define.
11182         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11183         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11184         (LTUGEU): New code_iterator.
11185         (cnb, optab): New corresponding code_attrs.
11186         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
11187         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
11188         using LTUGEU.
11189         (addsi3_carryin_shift_<optab>): Likewise.
11190         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11191         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
11192         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11193         (subsi3_compare): Renamed from subsi3_compare0_c.
11194         Change CC_NOTB to CC.
11195         (arm_subsi3_insn): Allow constants for operand 0.
11196         (compare_scc peephole for eq case): New.
11197         (compare_scc splitters): Change CC_NOTB to CC.
11198
11199 2010-07-05  Richard Guenther  <rguenther@suse.de>
11200
11201         * tree-ssa-loop-im.c (for_each_index): Do not handle
11202         ALIGN_INDIRECT_REF.
11203         (gen_lsm_tmp_name): Likewise.
11204         * tree-dump.c (dequeue_and_dump): Likewise.
11205         * tree-pretty-print.c (dump_generic_node): Likewise.
11206         (op_code_prio): Likewise.
11207         (op_symbol_code): Likewise.
11208         * tree.c (staticp): Likewise.
11209         (build1_stat): Likewise.
11210         * tree.h (INDIRECT_REF_P): Likewise.
11211         * fold-const.c (maybe_lvalue_p): Likewise.
11212         (operand_equal_p): Likewise.
11213         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11214         (ao_ref_init_from_vn_reference): Likewise.
11215         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11216         (find_interesting_uses_address): Likewise.
11217         * dwarf2out.c (loc_list_from_tree): Likewise.
11218         * gimplify.c (gimplify_expr): Likewise.
11219         * tree-eh.c (tree_could_trap_p): Likewise.
11220         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11221         * cfgexpand.c (expand_debug_expr): Likewise.
11222         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11223         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11224         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11225         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11226         * tree-ssa-operands.c (get_expr_operands): Likewise.
11227         * expr.c (safe_from_p): Likewise.
11228         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
11229         * tree-vect-data-refs.c (vect_setup_realignment): Build
11230         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11231         * tree-vect-stmts.c (vectorizable_load): Likewise.
11232         * tree.def (ALIGN_INDIRECT_REF): Remove.
11233
11234 2010-07-05  Richard Guenther  <rguenther@suse.de>
11235
11236         PR tree-optimization/44784
11237         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11238         for inserted stmts.
11239         (find_or_generate_expression): Fix SCCVN insertion check.
11240
11241 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11242
11243         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11244         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11245         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11246         directives.
11247
11248 2010-07-05  Ira Rosen  <irar@il.ibm.com>
11249
11250         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11251         statements that are not vectorized.
11252         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11253         in INSIDE_COST.
11254
11255 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
11256
11257         PR bootstrap/44820
11258         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11259
11260 2010-07-05  Richard Guenther  <rguenther@suse.de>
11261
11262         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11263         RESULT_DECLs properly.
11264
11265 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11266
11267         PR rtl-optimization/44695
11268         * config/i386/i386.md (extract_code): Removed.
11269         (<u>divmodqi4): Likewise.
11270         (divmodqi4): New.
11271         (udivmodqi4): Likewise.
11272         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11273         (udivmodhiqi3): Likewise.
11274
11275 2010-07-04  Jan Hubicka  <jh@suse.cz>
11276
11277         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11278
11279 2010-07-04  Jan Hubicka  <jh@suse.cz>
11280
11281         * cgraphunit.c (init_cgraph): Only initialize dump file if it
11282         is not already initialized.
11283
11284 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11285
11286         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11287         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11288         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11289         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11290         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11291         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11292         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11293         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11294         (sync_new_nand_optab): Redefine as macros.
11295         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11296         Delete.
11297         (direct_optab_index): New enum.
11298         (direct_optab_d): New structure.
11299         (direct_optab): New typedef.
11300         (direct_optab_table): Declare.
11301         (direct_optab_handler, set_direct_optab_handler): New functions.
11302         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11303         (sync_lock_release_optab): New macros.
11304         * optabs.c (direct_optab_table): New variable.
11305         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11306         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11307         cmpstr_optab and cmpstrn_optab.
11308         (emit_conditional_move): Likewise for movcc_optab.
11309         (can_conditionally_move_p): Likewise for movcc_gen_code.
11310         (init_insn_codes): Clear direct_optab_table.
11311         (init_optabs): Don't initialize the new "direct optabs" here.
11312         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11313         vcond_gen_code.
11314         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11315         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11316         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11317         (expand_sync_operation): Likewise other sync_*_optabs.
11318         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
11319         to sync_compare_and_swap_optab.
11320         (expand_sync_lock_test_and_set): Use direct_optab_handler for
11321         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11322         to the names of both.
11323         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11324         cmpstr_optab and cmpstrn_optab.
11325         (expand_builtin_lock_release): Likewise sync_lock_release.
11326         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11327         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11328         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11329         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11330         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11331         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11332         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11333         (sync_lock_test_and_set, sync_lock_release): Delete.
11334         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11335         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11336         * genopinit.c (optabs): Use set_direct_optab_handler for the new
11337         macro optabs.
11338         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11339         the "optab" local variable.  Use direct_optab_handler for optab and
11340         sync_compare_and_swap_optab.
11341         * reload1.c (reload_in_optab, reload_out_optab): Delete.
11342         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11343         reload_in_optab and reload_out_optab.
11344         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11345         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11346         * config/pa/pa.c (pa_secondary_reload): Likewise.
11347         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11348         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11349         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11350         (VMSupportsCS8_builtin): Likewise.
11351
11352 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11353
11354         * optabs.h (optab_handlers): Change type of insn_code to int.
11355         (optab_handler, set_optab_handler, convert_optab_handler)
11356         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11357         CODE_FOR_nothing".
11358         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11359         (init_insn_codes): Zero both the above arrays.
11360         (init_optabs): Never call init_insn_codes first time around.
11361
11362 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11363
11364         * optabs.h (optab_handler, convert_optab_handler): Turn into
11365         inline functions that return an insn code.
11366         (set_optab_handler, set_convert_optab_handler): New functions.
11367         * builtins.c: Replace optab_handler(X)->insn_code with
11368         optab_handler or set_optab_handler thoughout.  Likewise
11369         convert_optab_handler(X)->insn_code with convert_optab_handler
11370         and set_convert_optab_handler.
11371         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11372         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11373         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11374         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11375         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11376         config/spu/spu.c: Likewise.
11377
11378 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11379
11380         PR target/44531
11381         * config.gcc (sh*-*-*): Use regular expressions instead of
11382         the 'i' modifier for sed substitutions.
11383
11384 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11385
11386         * gimple.c (gimple_body): Comments added.
11387
11388 2010-07-04  Richard Guenther  <rguenther@suse.de>
11389
11390         PR middle-end/44809
11391         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11392         of an INDIRECT_REF.
11393
11394 2010-07-04  Richard Guenther  <rguenther@suse.de>
11395
11396         PR tree-optimization/44479
11397         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11398         extra SSA name copy statements which preserves points-to
11399         information.
11400         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11401         Copy points-to information for all pointers.  Properly handle
11402         MEM_REFs.
11403         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11404         copy statements.
11405         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11406         dependency.
11407
11408 2010-07-04  Richard Guenther  <rguenther@suse.de>
11409
11410         PR middle-end/44785
11411         * tree-inline.c (initialize_inlined_parameters): Do not
11412         re-use pointer-map slot over remap_type call.
11413
11414 2010-07-04  Richard Guenther  <rguenther@suse.de>
11415
11416         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11417
11418 2010-07-04  Richard Guenther  <rguenther@suse.de>
11419
11420         PR tree-optimization/44656
11421         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11422         again after value-replacing in the defintions lhs.
11423
11424 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11425             Revital Eres  <eres@il.ibm.com>
11426
11427         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11428         Document new arguments.
11429         * doc/tm.texi: Regenerate.
11430         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11431         Handle unaligned store.
11432         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11433         * target.def (builtin_vectorization_cost): Add new arguments.
11434         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11435         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11436         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11437         (vect_vfa_segment_size): Fix indentation.
11438         * tree-vectorizer.h (struct _vect_peel_info): New.
11439         (struct _vect_peel_extended_info): New.
11440         (struct _loop_vec_info): Add new field for peeling hash table and a
11441         macro for its access.
11442         (VECT_MAX_COST): Define.
11443         (vect_get_load_cost): Declare.
11444         (vect_get_store_cost, vect_get_known_peeling_cost,
11445         vect_get_single_scalar_iteraion_cost): Likewise.
11446         (vect_supportable_dr_alignment): Add new argument.
11447         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11448         field.
11449         (destroy_loop_vec_info): Free peeling hash table.
11450         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11451         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11452         vect_analyze_slp. Fix indentation.
11453         (vect_get_single_scalar_iteraion_cost): New function.
11454         (vect_get_known_peeling_cost): Likewise.
11455         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11456         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11457         statement. Move outside cost calculation inside unknown peeling case.
11458         Call vect_get_known_peeling_cost for known amount of peeling.
11459         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11460         reference to the print message of forced alignment.
11461         (vect_verify_datarefs_alignment): Update call to
11462         vect_supportable_dr_alignment.
11463         (vect_get_data_access_cost): New function.
11464         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11465         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11466         vect_peeling_hash_choose_best_peeling): Likewise.
11467         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11468         to store all the accesses in the loop and find best possible access to
11469         align using peeling for known alignment case. For unknown alignment
11470         check if stores are preferred or if peeling is worthy.
11471         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11472         (vect_supportable_dr_alignment): Add new argument and check aligned
11473         accesses according to it.
11474         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11475         (cost_for_stmt): Call vect_get_stmt_cost.
11476         (vect_model_simple_cost): Likewise.
11477         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11478         vect_get_store_cost to calculate the cost of the statement.
11479         (vect_get_store_cost): New function.
11480         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11481         vect_get_load_cost to calculate the cost of the statement.
11482         (vect_get_load_cost): New function.
11483         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11484         (vectorizable_load): Likewise.
11485         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11486         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11487         arguments. Handle unaligned store.
11488         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11489         (rs6000_builtin_support_vector_misalignment): Return true for word and
11490         double word alignments for VSX.
11491         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11492         vect_supportable_dr_alignment and builtin_vectorization_cost.
11493
11494 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11495
11496         PR target/44597
11497         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11498         (prefetch_nocc_operand): Likewise.
11499         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11500         (prefetch_20): New insn.
11501         (prefetch_cc): Remove.
11502         (prefetch_nocc): Likewise.
11503
11504 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11505
11506         * expr.c (vector_mode_valid_p): Move to c-common.c.
11507         * expr.h (vector_mode_valid_p): Do not declare here.
11508         * system.h: Poison GCC_EXPR_H in front-ends.
11509         * Makefile.in: Update dependencies.
11510
11511 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11512
11513         PR target/44705
11514         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11515
11516 2010-07-03  Jan Hubicka  <jh@suse.cz>
11517
11518         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11519         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11520         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11521         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11522         Likewise.
11523
11524         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11525         Update timevars.V
11526         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11527         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11528         TV_IPA_LTO_DECL_OUT): New.
11529         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11530
11531 2010-07-03  Jan Hubicka  <jh@suse.cz>
11532
11533         * ipa-inline.c (update_edge_key): Break out from ...
11534         update_callers_keys): ... here;
11535         (update_callee_keys): Update only the edges from caller to callee.
11536         (update_all_calle_keys): Do what update_calle_keys did.
11537         (decide_inlining_of_small_functions): Avoid recomputing of all
11538         callees when badness increase.
11539
11540 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11541
11542         * config/arm/arm.c (arm_attr_length_move_neon): New.
11543         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11544         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11545         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11546         to compute length attribute.
11547
11548 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11549
11550         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11551         as predicate for operand 1 and remove its constraint.
11552         * config/arm/predicates.md (vfp_register_operand): New.
11553         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11554         (*push_fp_multi): Likewise.
11555
11556 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11557
11558         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11559
11560 2010-07-03  Jan Hubicka  <jh@suse.cz>
11561
11562         * config/i386/i386.c (override_options): Revert accidental commit.
11563
11564 2010-07-02  Le-Chun Wu  <lcwu@google.com>
11565
11566         PR c++/44128
11567         * doc/invoke.texi: Update documentation of -Wshadow.
11568
11569 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
11570             Julian Brown  <julian@codesourcery.com>
11571             Sandra Loosemore  <sandra@codesourcery.com>
11572
11573         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11574         comparisons.  Adjust to take both operands.
11575         (arm_select_cc_mode): Handle DImode comparisons.
11576         (arm_gen_compare_reg): Generate a scratch register for DImode
11577         comparisons which require one.  Use xor for Thumb equality checks.
11578         (arm_const_double_by_immediates): New.
11579         (arm_print_operand): Allow 'Q' and 'R' for constants.
11580         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11581         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11582         arm_canonicalize_comparison.
11583         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11584         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11585         prototype.
11586         (arm_const_double_by_immediates): Declare.
11587         * config/arm/constraints.md (Di): New constraint.
11588         * config/arm/predicates.md (arm_immediate_di_operand)
11589         (arm_di_operand, cmpdi_operand): New.
11590         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11591         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11592         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11593         (cstoredi4): Handle non-Cirrus also.
11594
11595 2010-07-02  Julian Brown  <julian@codesourcery.com>
11596             Sandra Loosemore  <sandra@codesourcery.com>
11597
11598         PR target/43703
11599         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11600         (smax<mode>3): Disable for NEON float modes when
11601         flag_unsafe_math_optimizations is false.
11602         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11603         (*mul<mode>3_neon)
11604         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11605         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11606         for NEON float modes when flag_unsafe_math_optimizations is false.
11607         (quad_halves_<code>v4sf): Only enable if
11608         flag_unsafe_math_optimizations is true.
11609         * doc/invoke.texi (ARM Options): Add note about floating point
11610         vectorization requiring -funsafe-math-optimizations.
11611
11612 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11613             Julian Brown  <julian@codesourcery.com>
11614
11615         * config/arm/neon.md (UNSPEC_VABA): Delete.
11616         (UNSPEC_VABAL): Delete.
11617         (UNSPEC_VABS): Delete.
11618         (UNSPEC_VMUL_N): Delete.
11619         (adddi3_neon): New.
11620         (subdi3_neon): New.
11621         (mul<mode>3add<mode>_neon): Make the pattern named.
11622         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11623         (neon_vadd<mode>): Replace with define_expand, and move the remaining
11624         unspec parts...
11625         (neon_vadd<mode>_unspec): ...to this.
11626         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11627         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11628         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11629         (neon_vaba<mode>): Rewrite in terms of vabd.
11630         (neon_vabal<mode>): Rewrite in terms of vabdl.
11631         (neon_vabs<mode>): Rewrite without unspec.
11632         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11633         (*arm_subdi3): Likewise.
11634         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11635         No_op attribute to disable assembly output checks.
11636         * config/arm/arm_neon.h: Regenerated.
11637         * doc/arm-neon-intrinsics.texi: Regenerated.
11638
11639 2010-07-02  Jan Hubicka  <jh@suse.cz>
11640
11641         * ipa-split.c (split_function): For aggregate values, set the return
11642         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
11643         *<retval> = fncall.part ().
11644         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11645
11646 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11647
11648         * config/arm/neon.md (UNSPEC_VAND): Delete.
11649         (UNSPEC_VBIC): Delete.
11650         (UNSPEC_VCLZ): Delete.
11651         (UNSPEC_VCNT): Delete.
11652         (UNSPEC_VEOR): Delete.
11653         (UNSPEC_VORN): Delete.
11654         (UNSPEC_VORR): Delete.
11655         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
11656         core registers too.
11657         (anddi3_neon): Likewise.
11658         (orndi3_neon): Likewise.
11659         (bicdi3_neon): Likewise.
11660         (xordi3_neon): Likewise.
11661         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11662         rid of unspec and handle unused operand.
11663         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11664         * config/arm/predicates.md (imm_for_neon_logic_operand):
11665         Require TARGET_NEON.
11666         (imm_for_neon_inv_logic_operand): Likewise.
11667         * config/arm/arm.md (define_split for logical_binary_operator):
11668         Disable for NEON registers.
11669         (anddi3): Add new define_expand, and rename the insn.  Disable
11670         this insn for NEON, where anddi3_neon now applies.
11671         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11672         (iordi3): As for anddi3.
11673         (xordi3): Likewise.
11674         * config/arm/neon.ml (Vand): Split DImode variants and mark them
11675         as No_op to disable testing for exact instruction match.
11676         (Vorr): Likewise.
11677         (Veor): Likewise.
11678         (Vbic): Likewise.
11679         (Vorn): Likewise.
11680         * config/arm/arm_neon.h: Regenerated.
11681         * doc/arm-neon-intrinsics.texi: Regenerated.
11682
11683 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11684
11685         * expr.h (emit_stack_probe): Declare.
11686         * explow.c (emit_stack_probe): Make global.
11687         (anti_adjust_stack_and_probe): Fix comments.
11688         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11689         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11690         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11691         * config/sparc/sparc.c: Include except.h.
11692         (sparc_emit_probe_stack_range): New function.
11693         (output_probe_stack_range): Likewise.
11694         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11695         built-in stack checking is enabled.
11696         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11697         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11698         (probe_stack_range): New insn.
11699
11700 2010-07-02  Richard Guenther  <rguenther@suse.de>
11701
11702         PR target/43958
11703         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11704         for argument alignment.
11705
11706 2010-07-02  Jan Hubicka  <jh@suse.cz>
11707
11708         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11709         walk backwards from entry_bb to check only those basic block of header
11710         that might lead to execution of split part.
11711         (consider_split) ... here.
11712         (find_return_bb): Allow assignment in return BB.
11713         (find_retval): New.
11714         (split_function): Fix name of cloned function; take care of updating
11715         return value in return_bb containing move.
11716
11717 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
11718
11719         PR target/44771
11720         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
11721         used variable insn.
11722
11723 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11724
11725         * implicit-zee.c (combine_reaching_defs): Fix long lines.
11726         (is_set_with_extension_DI): Delete.
11727         (struct zero_extend_info): New structure.
11728         (add_removable_zero_extend): New function.
11729         (find_removable_zero_extends): Use note_stores to find SETs.
11730         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
11731
11732 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11733
11734         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
11735         is_miss_rate_acceptable. Pull total_positions computation
11736         out of the loops.  Early return if miss_positions exceeds
11737         the acceptable threshold.
11738         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
11739         is_miss_rate_acceptable after renaming of compute_miss_rate.
11740
11741 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11742
11743         PR middle-end/44576
11744         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
11745         of 1000) for miss rate if the address diference is greater than or
11746         equal to the cache line size (the two reference will never hit the
11747         same cache line).
11748
11749 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
11750
11751         PR target/42835
11752         * config/arm/arm-modes.def (CC_NOTB): New mode.
11753         * config/arm/arm.c (get_arm_condition_code): Handle it.
11754         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
11755         * config/arm/arm.md (subsi3_compare0_c): New pattern.
11756         (compare_scc): Now a define_and_split.  Add a number of extra
11757         splitters before it.
11758
11759         PR target/42172
11760         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
11761         and ZERO_EXTEND.
11762         (arm_rtx_costs_1): Likewise.
11763         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
11764         * config/arm/arm.md (is_arch6): New attribute.
11765         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
11766         extendqisi2): Tighten the code somewhat, avoiding invalid
11767         RTL to occur in the expander patterns.
11768         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
11769         (thumb1_zero_extendhisi2_v6): Delete.
11770         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
11771         (thumb1_extendhisi2_v6): Delete.
11772         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
11773         (thumb1_extendqisi2_v6): Delete.
11774         (zero_extendhisi2 for register input splitter): New.
11775         (zero_extendqisi2 for register input splitter): New.
11776         (thumb1_extendhisi2 for register input splitter): New.
11777         (extendhisi2 for register input splitter): New.
11778         (extendqisi2 for register input splitter): New.
11779         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
11780         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
11781         and add support for a register alternative requiring a split.
11782         (thumb1_zero_extendqisi2): Likewise.
11783         (arm_zero_extendqisi2): Likewise.
11784         (arm_extendhisi2): Likewise.
11785         (arm_extendqisi2): Likewise.
11786
11787 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11788
11789         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
11790         instead of an unspec.
11791         (neon_expand_vector_init): Likewise.
11792         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
11793         (UNSPEC_VDUP_LANE): Delete.
11794         (UNSPEC VDUP_N): Delete.
11795         (UNSPEC_VGET_HIGH): Delete.
11796         (UNSPEC_VGET_LANE): Delete.
11797         (UNSPEC_VGET_LOW): Delete.
11798         (UNSPEC_VMVN): Delete.
11799         (UNSPEC_VSET_LANE): Delete.
11800         (V_double_vector_mode): New.
11801         (vec_set<mode>_internal): Make code emitted match that for the
11802         corresponding intrinsics.
11803         (vec_setv2di_internal): Likewise.
11804         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
11805         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
11806         (neon_vset_lane<mode>): Combine double and quad patterns and
11807         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
11808         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
11809         (neon_vdup_n<mode>): Rewrite RTL without unspec.
11810         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
11811         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
11812         with neon_vdup_lanev2di, adjusting the pattern from the latter
11813         to be predicable for consistency.
11814         (neon_vdup_lane<mode>_internal): New.
11815         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
11816         to avoid using an unspec.
11817         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
11818         (neon_vdup_lanev2di): Turn into a define_expand.
11819         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
11820         (neon_vget_high<mode>): Replace with....
11821         (neon_vget_highv16qi): New pattern using canonical RTL.
11822         (neon_vget_highv8hi): Likewise.
11823         (neon_vget_highv4si): Likewise.
11824         (neon_vget_highv4sf): Likewise.
11825         (neon_vget_highv2di): Likewise.
11826         (neon_vget_low<mode>): Replace with....
11827         (neon_vget_lowv16qi): New pattern using canonical RTL.
11828         (neon_vget_lowv8hi): Likewise.
11829         (neon_vget_lowv4si): Likewise.
11830         (neon_vget_lowv4sf): Likewise.
11831         (neon_vget_lowv2di): Likewise.
11832
11833         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
11834         test for this emitting vmov.
11835         (Vset_lane): Likewise.
11836         (Vdup_n): Likewise.
11837         (Vmov_n): Likewise.
11838
11839         * doc/arm-neon-intrinsics.texi: Regenerated.
11840
11841 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11842
11843         * config/arm/neon.md (vec_extractv2di): Correct error in register
11844         numbering to reconcile with neon_vget_lanev2di.
11845
11846 2010-07-02  Richard Guenther  <rguenther@suse.de>
11847
11848         * tree-ssa-structalias.c (pt_solution_set_var): New function.
11849         * tree-ssa-alias.h (pt_solution_set_var): Declare.
11850         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
11851         points-to information.
11852
11853 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
11854
11855         * config/s390/s390.c (override_options): Adopt prefetching
11856         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
11857
11858 2010-07-02  Jan Hubicka  <jh@suse.cz>
11859
11860         * df-problems.c (df_kill_notes): Do not collect dead  notes.
11861         (df_set_note): Just call add_reg_note.
11862         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
11863         df_create_unused_note): Do not deal with lists of old notes.
11864         (df_note_bb_compute): Likewise.
11865
11866 2010-07-02  Richard Guenther  <rguenther@suse.de>
11867
11868         * tree-ssa-structalias.c (find_func_aliases): Handle
11869         pointer alignment via BIT_AND_EXPR.
11870         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
11871
11872 2010-07-02  Richard Guenther  <rguenther@suse.de>
11873
11874         * tree-data-ref.c (initialize_data_dependence_relation): Handle
11875         mismatching number of dimensions properly.
11876
11877 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11878
11879         PR target/44707
11880         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
11881         (lo_sum (high ...) ...) patterns generated by earlier passes.
11882
11883 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11884
11885         * doc/install.texi (Prerequisites): Document Perl requirement on
11886         Solaris 2.
11887         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
11888
11889 2010-07-02  Richard Guenther  <rguenther@suse.de>
11890
11891         PR middle-end/44777
11892         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
11893
11894 2010-07-02  Jan Hubicka  <jh@suse.cz>
11895
11896         PR middle-end/44706
11897         * predict.c (predict_paths_for_bb): Handle case when control dependence
11898         BB has only abnormal edges.
11899
11900 2010-07-02  Richard Guenther  <rguenther@suse.de>
11901
11902         PR tree-optimization/44748
11903         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
11904         the embedded conversion in MEM_REFs.
11905
11906 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
11907
11908         * reload.c: Include toplev.h.
11909         * recog.c:  Likewise.
11910         * Makefile.in: Adjust dependencies.
11911
11912 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
11913
11914         PR debug/44694
11915         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
11916         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
11917
11918 2010-07-01  Richard Guenther  <rguenther@suse.de>
11919
11920         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
11921         types for offsets.
11922
11923 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11924
11925         PR target/44732
11926         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
11927         Fix argument types.
11928
11929 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
11930
11931         PR target/44727
11932         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11933         Make sure operand 0 dies.
11934
11935 2010-07-01  Richard Guenther  <rguenther@suse.de>
11936
11937         PR middle-end/42834
11938         PR middle-end/44468
11939         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
11940         * doc/generic.texi (References to storage): Document MEM_REF.
11941         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
11942         (print_call_name): Likewise.
11943         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
11944         (build_simple_mem_ref_loc): New function.
11945         (mem_ref_offset): Likewise.
11946         * tree.h (build_simple_mem_ref_loc): Declare.
11947         (build_simple_mem_ref): Define.
11948         (mem_ref_offset): Declare.
11949         * fold-const.c: Include tree-flow.h.
11950         (operand_equal_p): Handle MEM_REF.
11951         (build_fold_addr_expr_with_type_loc): Likewise.
11952         (fold_comparison): Likewise.
11953         (fold_unary_loc): Fold
11954         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
11955         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
11956         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
11957         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
11958         (ptr_deref_may_alias_ref_p_1): Likewise.
11959         (ao_ref_base_alias_set): Properly differentiate base object for
11960         offset and TBAA.
11961         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
11962         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
11963         (indirect_refs_may_alias_p): Likewise.
11964         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
11965         chasing code.
11966         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
11967         (call_may_clobber_ref_p_1): Likewise.
11968         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
11969         * expr.c (expand_assignment): Handle MEM_REF.
11970         (store_expr): Handle MEM_REFs from STRING_CSTs.
11971         (store_field): If expanding a MEM_REF of a non-addressable
11972         decl use bitfield operations.
11973         (get_inner_reference): Handle MEM_REF.
11974         (expand_expr_addr_expr_1): Likewise.
11975         (expand_expr_real_1): Likewise.
11976         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
11977         * alias.c (ao_ref_from_mem): Handle MEM_REF.
11978         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
11979         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
11980         (dr_analyze_indices): Likewise.
11981         (dr_analyze_alias): Likewise.
11982         (object_address_invariant_in_loop_p): Likewise.
11983         * gimplify.c (mark_addressable): Handle MEM_REF.
11984         (gimplify_cond_expr): Build MEM_REFs.
11985         (gimplify_modify_expr_to_memcpy): Likewise.
11986         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
11987         (gimple_fold_indirect_ref): Adjust.
11988         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
11989         * tree.def (MEM_REF): New tree code.
11990         * tree-dfa.c: Include toplev.h.
11991         (get_ref_base_and_extent): Handle MEM_REF.
11992         (get_addr_base_and_unit_offset): New function.
11993         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
11994         * gimple-fold.c (may_propagate_address_into_dereference): Handle
11995         MEM_REF.
11996         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
11997         accesses if the array has just one dimension.  Remove always true
11998         parameter.  Do not require type compatibility here.
11999         (maybe_fold_offset_to_component_ref): Remove.
12000         (maybe_fold_stmt_indirect): Remove.
12001         (maybe_fold_reference): Remove INDIRECT_REF handling.
12002         Fold back to non-MEM_REF.
12003         (maybe_fold_offset_to_address): Simplify.  Deal with type
12004         mismatches here.
12005         (maybe_fold_reference): Likewise.
12006         (maybe_fold_stmt_addition): Likewise.  Also handle
12007         &ARRAY + I in addition to &ARRAY[0] + I.
12008         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12009         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12010         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12011         * tree-ssa.c (useless_type_conversion_p): Make most pointer
12012         conversions useless.
12013         (warn_uninitialized_var): Handle MEM_REF.
12014         (maybe_rewrite_mem_ref_base): New function.
12015         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12016         to SSA form.
12017         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12018         INDIRECT_REF handling.
12019         (copy_tree_body_r): Handle MEM_REF.
12020         * gimple.c (is_gimple_addressable): Adjust.
12021         (is_gimple_address): Likewise.
12022         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12023         invariant base are invariant.
12024         (is_gimple_min_lval): Adjust.
12025         (is_gimple_mem_ref_addr): New function.
12026         (get_base_address): Handle MEM_REF.
12027         (count_ptr_derefs): Likewise.
12028         (get_base_loadstore): Likewise.
12029         * gimple.h (is_gimple_mem_ref_addr): Declare.
12030         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12031         * tree-cfg.c (verify_address): New function, split out from ...
12032         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
12033         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
12034         INDIRECT_REFs.
12035         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
12036         INDIRECT_REF.  Allow conversions.
12037         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12038         a register does not change its size.
12039         (verify_types_in_gimple_reference): Verify MEM_REF.
12040         (verify_gimple_assign_single): Disallow INDIRECT_REF.
12041         Handle MEM_REF.
12042         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12043         New.
12044         (mark_address_taken): Handle MEM_REF.
12045         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12046         (get_asm_expr_operands): Pass opf_not_non_addressable.
12047         (get_expr_operands): Handle opf_[not_]non_addressable.
12048         Handle MEM_REF.  Remove INDIRECT_REF handling.
12049         * tree-vrp.c (check_array_ref): Handle MEM_REF.
12050         (search_for_addr_array): Likewise.
12051         (check_array_bounds): Likewise.
12052         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12053         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12054         (ref_always_accessed_p): Likewise.
12055         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
12056         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12057         Handle MEM_REF.
12058         * cgraphbuild.c (mark_load): Properly check for NULL result
12059         from get_base_address.
12060         (mark_store): Likewise.
12061         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12062         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12063         handling for MEM_REF.
12064         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12065         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12066         * builtins.c (stabilize_va_list_loc): Use the function ABI
12067         valist type if we couldn't canonicalize the argument type.
12068         Always dereference with the canonical va-list type.
12069         (maybe_emit_free_warning): Handle MEM_REF.
12070         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12071         memmove to memcpy.
12072         * builtins.c (fold_builtin_memory_op): Use ref-all types
12073         for all memcpy foldings.
12074         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12075         (build_outer_var_ref): Likewise.
12076         (scan_omp_1_op): Likewise.
12077         (lower_rec_input_clauses): Likewise.
12078         (lower_lastprivate_clauses): Likewise.
12079         (lower_reduction_clauses): Likewise.
12080         (lower_copyprivate_clauses): Likewise.
12081         (expand_omp_atomic_pipeline): Likewise.
12082         (expand_omp_atomic_mutex): Likewise.
12083         (create_task_copyfn): Likewise.
12084         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12085         Remove old union trick.  Initialize constant offsets.
12086         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
12087         INDIRECT_REF.  Init base_alias_set properly.
12088         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12089         (vn_reference_fold_indirect): Adjust for MEM_REFs.
12090         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
12091         for ARRAY_REFs.
12092         (may_insert): Remove.
12093         (visit_reference_op_load): Do not test may_insert.
12094         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12095         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12096         a field to store the constant offset this op applies.
12097         (run_scc_vn): Adjust prototype.
12098         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12099         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12100         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
12101         bother about volatile qualifiers on pointers.
12102         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12103         * tree-ssa-loop-ivopts.c
12104         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12105         (strip_offset_1): Likewise.
12106         (find_interesting_uses_address): Replace INDIRECT_REF handling with
12107         MEM_REF handling.
12108         (get_computation_cost_at): Likewise.
12109         * ipa-pure-const.c (check_op): Handle MEM_REF.
12110         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12111         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12112         and constants.
12113         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12114         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12115         (eliminate_local_variables_1): Likewise.
12116         (create_call_for_reduction_1): Likewise.
12117         (create_loads_for_reductions): Likewise.
12118         (create_loads_and_stores_for_name): Likewise.
12119         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12120         (ssa_accessed_in_tree): Handle MEM_REF.
12121         (ssa_accessed_in_assign_rhs): Likewise.
12122         (update_type_size): Likewise.
12123         (analyze_accesses_for_call_stmt): Likewise.
12124         (analyze_accesses_for_assign_stmt): Likewise.
12125         (transform_access_sites): Likewise.
12126         (transform_allocation_sites): Likewise.
12127         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12128         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12129         not handle INDIRECT_REF.
12130         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12131         (cond_store_replacement): Likewise.
12132         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12133         MEM_REF, no not handle INDIRECT_REFs.
12134         (insert_into_preds_of_block): Properly initialize avail.
12135         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
12136         for ARRAY_REFs.  Properly handle reference lookups that
12137         require a bit re-interpretation.
12138         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
12139         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12140         (build_ref_for_offset_1): Remove.
12141         (build_ref_for_offset): Build MEM_REFs.
12142         (gate_intra_sra): Disable for now.
12143         (sra_ipa_modify_expr): Handle MEM_REF.
12144         (ipa_early_sra_gate): Disable for now.
12145         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12146         MEM_REF handling.
12147         (disqualify_base_of_expr): Likewise.
12148         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12149         MEM_REF handling.
12150         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12151         Use mem_ref_offset.  Remove bogus folding.
12152         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12153         (make_fancy_name_1): Add support for MEM_REF.
12154         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12155         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12156         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12157         (compute_complex_ancestor_jump_func): Likewise.
12158         (ipa_analyze_virtual_call_uses): Likewise.
12159         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12160         INDIRECT_REF folding with more generalized MEM_REF folding.
12161         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12162         (forward_propagate_addr_into_variable_array_index): Also handle
12163         &ARRAY + I in addition to &ARRAY[0] + I.
12164         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12165         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12166         creates assignments with overlap.
12167         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12168         (get_frame_field): Likewise.
12169         (get_nonlocal_debug_decl): Likewise.
12170         (convert_nonlocal_reference_op): Likewise.
12171         (struct nesting_info): Add mem_refs pointer-set.
12172         (create_nesting_tree): Allocate it.
12173         (convert_local_reference_op): Insert to be folded mem-refs.
12174         (fold_mem_refs): New function.
12175         (finalize_nesting_tree_1): Perform defered folding of mem-refs
12176         (free_nesting_tree): Free the pointer-set.
12177         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12178         (vectorizable_load): Likewise.
12179         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12180         (propagate_with_phi): Likewise.
12181         * tree-object-size.c (addr_object_size): Handle MEM_REFs
12182         instead of INDIRECT_REFs.
12183         (compute_object_offset): Handle MEM_REF.
12184         (plus_stmt_object_size): Handle MEM_REF.
12185         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12186         for &MEM_REF.
12187         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12188         (symbol_marked_for_renaming): Likewise.
12189         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12190         (fold-const.o): Add $(TREE_FLOW_H).
12191         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12192         (find_func_clobbers): Likewise.
12193         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12194         (decompose_access): Likewise.
12195         (replace_field_acc): Likewise.
12196         (replace_field_access_stmt): Likewise.
12197         (insert_new_var_in_stmt): Likewise.
12198         (get_stmt_accesses): Likewise.
12199         (reorg_structs_drive): Disable.
12200         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12201         (ix86_canonical_va_list_type): Likewise.
12202
12203 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12204
12205         PR other/44566
12206         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12207         * target.def (struct gcc_target): Replace enum reg_class with
12208         reg_class_t in hook argument / return types.
12209         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12210         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12211         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12212         * targhooks.h (default_branch_target_register_class): Likewise.
12213         (default_ira_cover_classes, default_secondary_reload): Likewise.
12214         (default_memory_move_cost, default_register_move_cost): Likewise.
12215         * targhooks.c (default_branch_target_register_class): Likewise.
12216         (default_ira_cover_classes, default_secondary_reload): Likewise.
12217         (default_memory_move_cost, default_register_move_cost): Likewise.
12218         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12219         * bt-load.c (branch_target_load_optimize): Likewise.
12220         * ira.c (setup_cover_and_important_classes): Likewise.
12221         * ira-costs.c (copy_cost): Likewise.
12222         * reload1.c (emit_input_reload_insns): Likewise.
12223         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12224         * config/frv/frv.c (frv_secondary_reload): Likewise.
12225         * config/s390/s390.c (s390_secondary_reload): Likewise.
12226         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12227         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12228         (ix86_register_move_cost): Likewise.
12229         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12230         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12231         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12232         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12233         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12234         (rs6000_ira_cover_classes): Likewise.
12235         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12236         * config/picochip/picochip-protos.h (picochip_secondary_reload):
12237         Likewise.
12238         * config/pa/pa.c (pa_secondary_reload): Likewise.
12239         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12240         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12241         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12242         * doc/tm.texi: Regenerate.
12243
12244 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
12245
12246         PR bootstrrap/44726
12247         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12248         use.
12249         (build_alias_set_optimal_p): Likewise.
12250         (build_base_obj_set_for_drs): Likewise.
12251
12252 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12253
12254         * target.def: Remove comment about licensing problems of function
12255         declarations.
12256
12257         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
12258         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12259         * doc/tm.texi: Regenerate.
12260
12261         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
12262         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12263
12264         * target.def (enum_va_list_p): Use DEFHOOK.
12265         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12266         Rename ptype to ptree.
12267         * doc/tm.texi: Regenerate.
12268
12269         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
12270         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12271         * doc/tm.texi: Regenerate.
12272
12273         * target.def (memory_move_cost): Use DEFHOOK.
12274         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12275         Rename regclass AKA class to rclass.
12276         * doc/tm.texi: Regenerate.
12277
12278         * target.def (pragma_parse): Use DEFHOOK.
12279         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12280         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12281         * doc/tm.texi: Regenerate.
12282
12283         * target.def (pass_by_reference): Use DEFHOOK.
12284         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12285         * doc/tm.texi: Regenerate.
12286
12287         * target.def (resolve_overloaded_builtin): Rename params to arglist.
12288         Use DEFHOOK.
12289         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12290         * doc/tm.texi: Regenerate.
12291
12292         * target.def (return_pops_args): Use DEFHOOK.
12293         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12294         Rename stack-size to size.
12295         * doc/tm.texi: Regenerate.
12296
12297         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
12298         last-sched_cycle to last_clock, cur_cycle to clock.
12299         * doc/tm.texi.in: Use @hook.
12300         * doc/tm.texi: Regenerate.
12301
12302         * target.def (print_operand, print_operand_address): Update comment.
12303         (print_operand_punct_valid_p): Likewise.
12304
12305 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12306
12307         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12308         to rtl.h.
12309         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12310         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12311         * rtl-error.h: New.
12312         * regrename.c: Do not include toplev.h. Include rtl-error.h.
12313         * rtl-error.c: Likewise.
12314         * reload.c: Likewise.
12315         * recog.c:  Likewise.
12316         * sel-sched.c: Likewise.
12317         * function.c: Likewise.
12318         * reg-stack.c: Likewise.
12319         * cfgrtl.c: Likewise.
12320         * reload1.c: Likewise.
12321         * final.c: Include rtl-error.
12322         * Makefile.in: Adjust dependencies.
12323
12324 2010-06-30  Jan Hubicka  <jh@suse.cz>
12325
12326         PR middle-end/PR44706
12327         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12328         to return the value.
12329
12330 2010-06-30  Michael Matz  <matz@suse.de>
12331
12332         PR bootstrap/44699
12333         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12334         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12335         a gimple reg, attach the original VDEF to the last store in the
12336         sequence.
12337
12338 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
12339
12340         PR other/44034
12341         * config/darwin.c (darwin_override_options): Use renamed
12342         targetm.asm_out.emit_unwind_label.
12343
12344 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12345
12346         PR tree-optimization/39799
12347         * tree-inline.c (remap_ssa_name): Initialize variable only if
12348         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12349
12350 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
12351
12352         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12353
12354 2010-06-30  Richard Guenther  <rguenther@suse.de>
12355
12356         PR target/44722
12357         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12358         against oscillation with reverse peephole2.
12359
12360 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12361
12362         PR target/44721
12363         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12364         Fix last commit.
12365
12366 2010-06-30  Nick Clifton  <nickc@redhat.com>
12367
12368         * config/rx/rx-modes.def: New file.
12369         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12370         (CC_REGNUM): Define.
12371         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12372         register.
12373         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12374         (SELECT_CC_MODE): Define.
12375         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
12376         (reg:CC CC_REG) instead of (cc0).
12377         (attr "cc"): Delete.
12378         (cbranchsi4): Do not split compare and branch here. Instead move
12379         it to...
12380         (cbranchsi4_<code>): ... here.  New patterns.
12381         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12382         to emit the compare instruction.
12383         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12384         cc_status flags.
12385         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12386         FIRST_PSEUDO_REGNUM.
12387         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12388         (rx_notice_update_cc): Delete.
12389         (rx_cc_modes_compatible): New function.
12390         (flags_needed_for_conditional): New function.
12391         (flags_from_mode): New function.
12392         (rx_compare_redundant): New function - scans backwards through
12393         insn list to find out if condition flags are already set correctly.
12394         (TARGET_CC_MODES_COMPATIBLE): Define.
12395         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12396
12397         * config/rx/rx.h (BRANCH_COST): Define.
12398         (REGISTER_MOVE_COST): Define.
12399         * config/rx/predicates (rx_source_operand): Allow all constant types.
12400         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12401         (tstsi4): New pattern.
12402         * config/rx/rx.c (rx_memory_move_cost): Define.
12403         (TARGET_MEMORY_MOVE_COST): Define.
12404
12405 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12406
12407         * tree.h (block_may_fallthru): Declare here.
12408         * tree-flow.h (block_may_fallthru): Do not declare here.
12409         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12410         bitmap.h
12411         * Makefile.in (c-typeck.o): Update dependencies.
12412
12413 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12414
12415         PR debug/44694
12416         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12417         * cselib.c (cfa_base_preserved_regno): New static variable.
12418         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12419         of REGNO (cfa_base_preserved_val->locs->loc).
12420         (cselib_preserve_cfa_base_value): Add regno argument, set
12421         cfa_base_preserved_regno to it.
12422         (cselib_invalidate_regno): Allow removal of registers other than
12423         cfa_base_preserved_regno from cfa_base_preserved_val.
12424         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12425         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12426         of MEM addresses, if not on LHS.
12427         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12428         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12429
12430 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12431
12432         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12433         static variables.
12434         (peep2_buf_position): New static function.
12435         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12436         peephole2_optimize): Use it.
12437         (peep2_attempt, peep2_update_life): New static functions, broken out
12438         of peephole2_optimize.
12439         (peep2_fill_buffer): New static function.
12440         (peephole2_optimize): Change the main loop to try to fill the buffer
12441         with the maximum number of insns before matching them against
12442         peepholes.  Use a forward scan.  Remove special case for targets with
12443         conditional execution.
12444         * genrecog.c (change_state): Delete dead code.
12445         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12446         Rewrite so as not to expect the second insn to have had a peephole
12447         applied yet.
12448
12449 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12450
12451         * genhooks.c (emit_findices): Cast field precision to int.
12452         (emit_documentation): Likewise.
12453
12454 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12455
12456         PR tree-optimization/43801
12457         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12458         if old_decl was DECL_ONE_ONLY.
12459
12460         PR debug/44668
12461         * dwarf2out.c (add_accessibility_attribute): New function.
12462         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12463         instead of adding DW_AT_accessibility manually.
12464         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12465         gen_typedef_die): Use it.
12466
12467 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12468
12469         * vmsdbgout.c (full_name): Just output the file name if not native.
12470
12471 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12472
12473         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12474         (funcnam_table): New static table.
12475         (funcnum_table): New static table.
12476         (write_rtnbeg): Write value saved in funcnum_table.
12477         (write_rtnend): Write value saved in funcnum_table.
12478         (vmsdbgout_begin_function): Save current function info in
12479         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12480         (vmsdbgout_finish): Iterate over funcnum_table.
12481
12482 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12483
12484         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12485         (vmsdbgout_type_decl): Declare
12486         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12487         (FUNC_EPILOGUE_LABEL): New macro
12488         (vmsdbgout_begin_epilogue): New function.
12489         (vmsdbgout_type_decl): New function.
12490
12491 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12492
12493         * vmsdbg.h: Update copyright.
12494
12495 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12496
12497         * vmsdbg.h (DST_K_TBG): New DST constant.
12498         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12499         (write_modbeg): Cast module_language to avoid warning.
12500         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12501
12502 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12503
12504         PR other/44034
12505         * target.def, doc/tm.texi.in, genhooks.c: New files.
12506         * target.h: Instead of defining individual hook members,
12507         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12508         include target.def.
12509         * target-def.h: Instead of defining individual hook initializers,
12510         include target-hooks-def.h.
12511         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12512         targetm.live_on_entry -> targetm.extra_live_on_entry
12513         targetm.sched.md_finish ->targetm.sched.finish
12514         targetm.sched.md_init -> targetm.sched.init
12515         targetm.sched.md_init_global -> targetm.sched.init_global
12516         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12517         targetm.asm_out.except_table_label ->
12518           targetm.asm_out.emit_except_table_label
12519         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12520         targetm.target_help -> targetm.help
12521         targetm.vectorize.builtin_support_vector_misalignment ->
12522           targetm.vectorize.support_vector_misalignment
12523         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12524         targetm.file_start_file_directive ->
12525          targetm.asm_file_start_file_directive
12526         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12527         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12528         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12529         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12530           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12531         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12532           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12533         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12534         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12535         * Makefile.in (TARGET_H): Depend on target.def.
12536         (TARGET_DEF_H): Depend on target-hooks-def.h.
12537         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12538         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12539         * doc/tm.texi: Regenerate.
12540
12541         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12542
12543         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12544         (targetm.sched.init): Likewise.
12545
12546 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12547
12548         PR bootstrap/44713
12549         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12550         (function_arg_advance_32): Const-ify TYPE parameter.
12551         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12552         (ix86_function_arg_advance): Change type of NAMED to bool.
12553         (function_arg_32): Const-ify CUM and TYPE parameters.
12554         (function_arg_64): Likewise.  Change type of NAMED to bool.
12555         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12556         to bool.
12557         (ix86_function_arg): Change type of NAMED to bool.
12558         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
12559         last argument as a bool.
12560
12561 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12562
12563         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12564         (OVERRIDE_OPTIONS): Add note of obsolescence.
12565         Replace references with references to TARGET_OPTION_OVERRIDE.
12566         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12567          the macro).
12568         * targhooks.c (default_target_option_override): New function.
12569         * targhooks.h (default_target_option_override): Declare.
12570         * target.h (struct gcc_target): Add override member to
12571         target_option member.
12572         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12573         targetm.target_option.override call.
12574         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12575         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12576
12577 2010-06-29  Jan Hubicka  <jh@suse.cz>
12578
12579         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12580
12581 2010-06-29  Jan Hubicka  <jh@suse.cz>
12582
12583         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12584         unreachable.
12585         (rebuild_frequencies): New function.
12586         * predict.h (rebuild_frequencies): Declare.
12587         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12588         entry block and edge reaching new_entry.
12589         (tree_function_versioning): When doing partial cloning, rebuild
12590         frequencies when done.
12591         * passes.c (execute_function_todo): Use rebild_frequencies.
12592
12593 2010-06-29  Richard Guenther  <rguenther@suse.de>
12594
12595         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12596         * tree-flow.h (enum noalias_state): Remove.
12597         (struct var_ann_d): Remove noalias_state member.
12598
12599 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12600
12601         PR target/43902
12602         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12603         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
12604         (maddhidi4): Likewise.
12605
12606         Revert parts of the change for PR25130.
12607         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12608         MEM_ALIAS_SET.
12609
12610 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12611
12612         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12613         targetm.calls.function_incoming_arg, and
12614         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12615         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12616         * target.h (struct gcc_target): Add function_arg_advance,
12617         function_arg, and function_incoming_arg fields.
12618         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12619         (TARGET_FUNCTION_INCOMING_ARG): Define.
12620         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12621         and TARGET_FUNCTION_INCOMING_ARG.
12622         * targhooks.h (default_function_arg_advance): Declare.
12623         (default_function_arg, default_function_incoming_arg): Declare.
12624         * targhooks.c (default_function_arg_advance): New function.
12625         (default_function_arg, default_function_incoming_arg): New function.
12626         * config/i386/i386.c (function_arg_advance): Rename to...
12627         (ix86_function_arg_advance): ...this.  Make static.
12628         (function_arg): Rename to...
12629         (ix86_function_arg): ...this.  Make static.
12630         (TARGET_FUNCTION_ARG_ADVANCE): Define.
12631         (TARGET_FUNCTION_ARG): Define.
12632         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12633         (FUNCTION_ARG): Delete.
12634         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12635         (function_arg): Delete prototype.
12636
12637 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12638
12639         * reginfo.c (init_reg_sets_1): Adjust comments.
12640         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12641         * calls.c (prepare_call_address): Likewise.
12642         (emit_call_1): Use targetm.calls.return_pops_args.
12643         (expand_call): Likewise.
12644         * function.c (assign_parms): Likewise.
12645         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12646         * target.h (struct gcc_target) [struct calls]: Add
12647         return_pops_args field.
12648         * targhooks.h (default_return_pops_args): Declare.
12649         * targhooks.c (default_return_pops_args): Define.
12650         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12651         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12652         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12653         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
12654         documentation.
12655         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12656         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12657         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12658         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12659         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12660         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12661         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12662         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12663         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12664         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12665         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12666         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12667         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12668         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12669         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12670         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12671         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12672         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12673         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12674         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12675         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12676         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12677         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12678         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12679         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12680         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12681         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12682         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12683         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12684         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12685         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12686         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12687         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12688         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12689         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12690         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12691         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12692         * config/i386/i386.c (ix86_return_pops_args): Make static.
12693         Constify arguments.
12694         (TARGET_RETURN_POPS_ARGS): Define.
12695         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12696         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
12697         (TARGET_RETURN_POPS_ARGS): Define.
12698         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12699         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
12700         (TARGET_RETURN_POPS_ARGS): Define.
12701
12702 2010-06-29  Richard Guenther  <rguenther@suse.de>
12703
12704         PR middle-end/44667
12705         * tree-inline.c (initialize_inlined_parameters): Make sure
12706         to remap the inlined parameter variable substitutions types.
12707
12708 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12709
12710         PR rtl-optimization/44659
12711         * combine.c (make_compound_operation) <SUBREG>: Do not return the
12712         result of force_to_mode if it partially re-expanded the compound.
12713
12714 2010-06-28  Jan Hubicka  <jh@suse.cz>
12715
12716         PR middle-end/44671
12717         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12718         RESULT_DECL.
12719
12720 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
12721
12722         * double-int.h (force_fit_type_double): Remove declaration.
12723         * double-int.c (force_fit_type_double): Move to tree.c.
12724         * tree.h (force_fit_type_double): Declare.
12725         * tree.h (force_fit_type_double): Moved from double-int.c. Use
12726         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
12727         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
12728         * convert.c (convert_to_pointer): Adjust call to
12729         force_fit_type_double.
12730         * tree-vrp.c (extract_range_from_assert,
12731         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
12732         * fold-const.c: Update comment.
12733         (int_const_binop, fold_convert_const_int_from_int,
12734         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
12735         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
12736         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
12737         round_up_loc): Adjust call to force_fit_type_double.
12738
12739 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12740
12741         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
12742
12743 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12744
12745         * tree-sra.c (convert_callers): New parameter, change fndecls of
12746         recursive calls.
12747         (modify_function): Pass the old decl to convert_callers.
12748
12749 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12750
12751         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
12752         ipa_check_create_node_params and ipa_initialize_node_params with
12753         checking asserts they are not necessary.
12754
12755 2010-06-28  Jan Hubicka  <jh@suse.cz>
12756
12757         PR tree-optimization/44687
12758         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
12759
12760 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12761
12762         PR c++/44535
12763         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
12764         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
12765         instead of BINFO_BASE_BINFO.
12766
12767 2010-06-28  Michael Matz  <matz@suse.de>
12768
12769         PR middle-end/44592
12770         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
12771         proper VDEF chain for intermediate stores in the sequence.
12772
12773 2010-06-28  Jan Hubicka  <jh@suse.cz>
12774
12775         PR tree-optimization/44357
12776         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
12777         uninlinable functions.
12778
12779 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12780
12781         * config.gcc (powerpc*-*-*): Handle titan.
12782         * config/rs6000/rs6000.c (titan_cost): New costs.
12783         (rs6000_override_options): Add "titan" to processor_target_table.
12784         Add Titan to branch alignment logic.
12785         Correctly set rs6000_cost for titan.
12786         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
12787         * config/rs6000/titan.md: New file.
12788         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
12789
12790 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12791
12792         * tree-browser.c (TB_history_stack): Convert to a VEC.
12793         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
12794         (TB_history_prev): Likewise.
12795
12796 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12797
12798         * vec.h (vec_heap_free): Add parentheses around free.
12799
12800 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
12801
12802         * system.h: Poison GCC_EXCEPT_H for front-end files.
12803
12804         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
12805         langhook.
12806         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
12807         Define to NULL by default.
12808         * except.h: Define GCC_EXCEPT_H.
12809         (doing_eh): Remove prototype.
12810         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
12811         (lang_protect_cleanup_actions): Remove.
12812         * except.c (lang_protect_cleanup_actions): Remove.
12813         (doing_eh): Remove.
12814         (gen_eh_region): Don't check doing_eh here.
12815         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
12816         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
12817         instead of lang_protect_cleanup_actions.
12818         * omp-low.c (maybe_catch_exception): Likewise.
12819         * Makefile.in: Update dependencies.
12820
12821 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
12822
12823         * cgraph.h (struct varpool_node): new used_from_object_file flag.
12824         (struct cgraph_local_info): new used_from_object_file flag.
12825         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
12826         (cgraph_clone_node): initialize used_from_object_file.
12827         (cgraph_create_virtual_clone): initialize used_from_object_file.
12828         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
12829         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
12830         when compiling with -fwhole-program.
12831         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
12832         internal resolver.
12833         * ipa.c (function_and_variable_visibility): Set externally_visible
12834         flag of varpool_node if used_from_object_file flag is set.
12835         (cgraph_externally_visible_p): check used_from_object_file flag.
12836         * doc/invoke.texi (-fwhole-program option): Change description of
12837         externally_visible attribute accordingly.
12838         * doc/extend.texi (externally_visible): Ditto.
12839
12840 2010-06-27  Jan Hubicka  <jh@suse.cz>
12841
12842         * params.def (max-inline-insns-auto): Default to 40.
12843         * doc/invoke.texi (max-inline-insns-auto): Document the change.
12844
12845 2010-06-27  Jan Hubicka  <jh@suse.cz>
12846
12847         PR middle-end/44671
12848         PR middle-end/44686
12849         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
12850         signature change.
12851         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
12852         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
12853
12854 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
12855
12856         * target.h (struct gcc_target): Add register_move_cost field.
12857         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
12858         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
12859         * targhooks.c (default_register_move_cost): New function.
12860         * targhooks.h (default_register_move_cost): Declare function.
12861         * defaults.h (REGISTER_MOVE_COST): Delete.
12862         * ira-int.h (ira_register_move_cost): Update comment.
12863         * ira.c (ira_register_move_cost): Update comment.
12864         * reload.h (register_move_cost): Declare.
12865         * reginfo.c (register_move_cost): New function.
12866         (move_cost): Update comment.
12867         (init_move_cost, memory_move_secondary_cost): Replace
12868         REGISTER_MOVE_COST with register_move_cost.
12869         * postreload.c (reload_cse_simplify_set): (Ditto.).
12870         * reload.c (find_valid_class, find_reloads): (Ditto.).
12871         * reload1.c (choose_reload_regs): (Ditto.).
12872         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
12873         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
12874         * doc/md.texi (can_create_pseudo_p): Update documentation.
12875
12876         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12877         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12878         * config/i386/i386.h (ix86_memory_move_cost): Make static.
12879         (TARGET_MEMORY_MOVE_COST): Define.
12880
12881         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
12882         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
12883         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
12884         (TARGET_MEMORY_MOVE_COST): Define.
12885
12886 2010-06-27  Richard Guenther  <rguenther@suse.de>
12887
12888         PR tree-optimization/44683
12889         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
12890         false edge from the inverted condition.
12891
12892 2010-06-27  Richard Guenther  <rguenther@suse.de>
12893
12894         PR middle-end/44684
12895         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
12896         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
12897         for register LHS.  Or non-store assignments.
12898
12899 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12900
12901         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
12902         (sparc_emit_set_const64): Likewise.  Remove disabled code.
12903         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
12904         (sparc_emit_set_const64): Likewise.
12905
12906 2010-06-26  Catherine Moore  <clm@codesourcery.com>
12907
12908         * config/mips/mips.md (alu_type): New attribute.
12909         (type): Infer type from alu_type.
12910         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
12911         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
12912         *subsi3_extended, negsi2, negdi2, *low<mode>,
12913         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
12914         xor<mode>3, *nor<mode>3,
12915         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
12916         *zero_extendhi_truncqi):  Set alu_type instead of type.
12917
12918 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
12919
12920         * config/alpha/alpha.c (alpha_need_linkage): Adjust
12921         splay_tree_new_ggc call.
12922         (alpha_use_linkage): Likewise.
12923
12924 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
12925
12926         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
12927         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
12928         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
12929         (static_specs): Remove switches_need_spaces.
12930         (process_command, do_self_spec): Hardcode handling "-o" instead of
12931         checking switches_need_spaces.
12932         * system.h (SWITCHES_NEED_SPACES): Poison.
12933
12934 2010-06-26  Richard Guenther  <rguenther@suse.de>
12935
12936         PR tree-optimization/44393
12937         * tree-loop-distribution.c (generate_loops_for_partition): Fix
12938         stmt removal and VOP renaming.
12939         (generate_memset_zero): Remove redundant stmt updating.
12940         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
12941         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
12942
12943 2010-06-26  Jan Hubicka  <jh@suse.cz>
12944
12945         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
12946         edges comming from header are equivalent.
12947         (visit_bb): Handle PHIs correctly.
12948         * tree-inline.c (copy_phis_for_bb): Be able to copy
12949         PHI from entry edge.
12950         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
12951
12952 2010-06-26  Richard Guenther  <rguenther@suse.de>
12953
12954         PR middle-end/44674
12955         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
12956         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
12957
12958 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
12959
12960         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
12961         add_infile, alloc_switch): New.
12962         (process_command): Remove variable lang_n_infiles.  Process
12963         options in a single pass.  Use new functions for allocating
12964         infiles and switches arrays.  Properly skip operands of
12965         -Xpreprocessor and -Xassembler.
12966
12967 2010-06-26  Jan Hubicka  <jh@suse.cz>
12968
12969         PR middle-end/44671
12970         * cgraphunit.c (cgraph_function_versioning): Remove wrong
12971         cgraph_make_decl_local call; fix typo copying RTL data.
12972
12973 2010-06-25  DJ Delorie  <dj@redhat.com>
12974
12975         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
12976         (m32c_output_aligned_common): Likewise.
12977         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
12978         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
12979         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
12980         (m32c_register_pragmas): Register it.
12981         * config/m32c/m32c.c (m32c_get_pragma_address): New.
12982         (m32c_insert_attributes): Set #pragma address decls volatile.
12983         (pragma_entry_eq): New.
12984         (pragma_entry_hash): New.
12985         (m32c_note_pragma_address): New.
12986         (m32c_get_pragma_address): New.
12987         (m32c_output_aligned_common): New.
12988         * doc/extend.texi: Document the new pragma.
12989
12990         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
12991         also.
12992         * config/m32c/predicates.md (m32c_any_operand): Check the code
12993         instead of memory_operand so as to allow matching volatile MEMs.
12994         (m32c_nonimmediate_operand): Likewise.
12995         (mra_operand): Allow volatiles.
12996
12997 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
12998
12999         PR debug/44610
13000         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13001         address if the offset is unknown.
13002
13003 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
13004
13005         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13006         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13007         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13008         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13009         to ia64_start_function. Invoke it.
13010         * config/ia64/ia64.c (ia64_start_function): Call new function
13011         dwarf2out_vms_debug_main_pointer.
13012
13013 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13014
13015         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13016         statements computing the true predicate.
13017
13018 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13019
13020         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13021         to boolean_true_node.
13022         (reset_bb_predicate): New.
13023         (predicate_bbs): Call reset_bb_predicate.
13024
13025 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13026
13027         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13028         (tree_if_conversion): Returns true when something has been changed.
13029         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13030         changed something.
13031
13032 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13033
13034         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13035         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13036         * tree-if-conv.c: Include dbgcnt.h.
13037         (tree_if_conversion): Use if_conversion_tree to count the number of
13038         if-convertible loops.
13039
13040 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
13041
13042         * common.opt (fprefetch-loop-arrays): Re-define
13043         -fprefetch-loop-arrays as a tri-state option with the initial
13044         value of -1.
13045         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13046         pass only when flag_prefetch_loop_arrays > 0.
13047         * toplev.c (process_options): Note that, with tri-states,
13048         flag_prefetch_loop_arrays>0 means prefetching is enabled.
13049         * config/i386/i386.c (override_options): Enable prefetching at -O3
13050         for a set of CPUs that sw prefetching is helpful.
13051         (software_prefetching_beneficial_p): New.  Return TRUE if software
13052         prefetching is beneficial for the given CPU.
13053
13054 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13055
13056         PR rtl-optimization/44326
13057         * implicit-zee.c (find_removable_zero_extends): Replace
13058         INSN_P with NONDEBUG_INSN_P.
13059
13060 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13061
13062         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13063         (struct ipa_node_params): Removed the modification_analysis_done flag.
13064         (ipa_is_param_modified): Removed.
13065         (ipa_analyze_node): Declare.
13066         (ipa_compute_jump_functions): Remove declaration.
13067         (ipa_count_arguments): Likewise.
13068         (ipa_detect_param_modifications): Likewise.
13069         (ipa_analyze_params_uses): Likewise.
13070         * ipa-prop.c (struct param_analysis_info): New type.
13071         (visit_store_addr_for_mod_analysis): Removed.
13072         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13073         moved down in the file.
13074         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13075         (ipa_count_arguments): Made static.
13076         (mark_modified): New function.
13077         (is_parm_modified_before_call): New function.
13078         (compute_pass_through_member_ptrs): New parameter parms_info, call
13079         is_parm_modified_before_call instead of ipa_is_param_modified.
13080         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13081         it to compute_pass_through_member_ptrs.
13082         (ipa_compute_jump_functions): New parameter parms_info, pass it to
13083         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
13084         on the callee if it is analyzed.  Made static.
13085         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13086         is_parm_modified_before_call instead of ipa_is_param_modified.
13087         (ipa_analyze_call_uses): New parameter parms_info, pass it to
13088         ipa_analyze_indirect_call_uses.
13089         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13090         ipa_analyze_call_uses.
13091         (ipa_analyze_params_uses): New parameter parms_info, pass it to
13092         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
13093         (ipa_analyze_node): New function.
13094         (ipa_print_node_params): Do not dump the modified flag.
13095         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13096         it.  Do not stream the modified parameter flag.
13097         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13098         it.  Do not stream the modified parameter flag.
13099         * ipa-cp.c (ipcp_analyze_node): Removed.
13100         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13101         with only a call to ipa_analyze_node.
13102         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13103         node with only a call to ipa_analyze_node.
13104
13105 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13106
13107         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13108
13109 2010-06-25  Jan Hubicka  <jh@suse.cz>
13110
13111         * tree-pass.h (pass_split_functions): Declare.
13112         * opts.c (decode_options): Enable function splitting at -O2
13113         * timevar.def (TV_IPA_FNSPLIT): New macro.
13114         * ipa-split.c: New file.
13115         * common.opt (-fpartial-inlining): New flag.
13116         * Makefile.in (ipa-split.o): New object file.
13117         * passes.c (init_optimization_passes): Add ipa-split.
13118         * params.def (partial-inlining-entry-probability): New parameters.
13119         * doc/invoke.texi (-fpartial-inlining): New.
13120
13121 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13122
13123         PR 44665
13124         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13125         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13126         (gimplify_expr): Likewise.
13127
13128 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13129
13130         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13131         statements instead of bailing out on them.
13132         (ipa_analyze_indirect_call_uses): Do not require that loads from the
13133         parameter are in the same BB as the condition.  Update comments.
13134
13135 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
13136
13137         PR middle-end/43866
13138         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13139         true or always false, return NULL_TREE.
13140         (tree_unswitch_single_loop): Optimize conditions even when reaching
13141         max-unswitch-level parameter.  If num > 0, optimize first all conditions
13142         using entry checks, then do still reachable block discovery and consider
13143         only conditions in still reachable basic blocks in the loop.
13144
13145         PR tree-optimization/44539
13146         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13147         the call doesn't have LHS, but has VDEF.
13148
13149 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13150
13151         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13152         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13153         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13154         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13155         * system.h (MODIFY_TARGET_NAME): Poison.
13156
13157 2010-06-25  Alan Modra  <amodra@gmail.com>
13158
13159         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13160         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13161         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13162         CMODEL_LARGE as default.
13163         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13164         (offsettable_ok_by_alignment): Delete.
13165         (rs6000_emit_move): Remove mcmodel=medium optimization.
13166
13167 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13168
13169         With large parts from Jim Wilson:
13170         PR target/43902
13171         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13172         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13173         * optabs.c (optab_for_tree_code): Likewise.
13174         (expand_widen_pattern_expr): Likewise.
13175         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13176         out of execute_optimize_widening_mul.
13177         (convert_plusminus_to_widen): New function.
13178         (execute_optimize_widening_mul): Use the two new functions.
13179         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13180         Remove code to generate widening multiply-accumulate.  Add support
13181         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13182         * gimple-pretty-print.c (dump_ternary_rhs): New function.
13183         (dump_gimple_assign): Call it when appropriate.
13184         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13185         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13186         (expand_gimple_stmt_1): Likewise.
13187         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13188         WIDEN_MULT_MINUS_EXPR.
13189         * tree-ssa-operands.c (get_expr_operands): Likewise.
13190         * tree-inline.c (estimate_operator_cost): Likewise.
13191         * gimple.c (extract_ops_from_tree_1): Renamed from
13192         extract_ops_from_tree.  Add new arg for a third operand; fill it.
13193         (gimple_build_assign_stat): Support operations with three operands.
13194         (gimple_build_assign_with_ops_stat): Likewise.
13195         (gimple_assign_set_rhs_from_tree): Likewise.
13196         (gimple_assign_set_rhs_with_ops_1): Renamed from
13197         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
13198         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13199         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13200         WIDEN_MULT_MINUS_EXPR.
13201         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13202         (extract_ops_from_tree_1): Adjust declaration.
13203         (gimple_assign_set_rhs_with_ops_1): Likewise.
13204         (gimple_build_assign_with_ops): Pass NULL for last operand.
13205         (gimple_build_assign_with_ops3): New macro.
13206         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13207         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13208         functions.
13209         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13210         (verify_gimple_assign): Call it.
13211         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13212         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13213         functions for dealing with three-operand statements.
13214         * tree.c (commutative_ternary_tree_code): New function.
13215         * tree.h (commutative_ternary_tree_code): Declare it.
13216         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13217         ternary statements.
13218         (gimple_assign_nonzero_warnv_p): Likewise.
13219         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13220         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13221         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
13222         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13223         (struct hashtable_expr): New member ternary in the union.
13224         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13225         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
13226         (iterative_hash_hashable_expr): Likewise.
13227         (print_expr_hash_elt): Handle EXPR_TERNARY.
13228         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13229         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13230         statements.  Handle GIMPLE_TERNARY_RHS.
13231
13232 2010-06-25  Jan Hubicka  <jh@suse.cz>
13233
13234         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13235
13236 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
13237
13238         PR c/44517
13239         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13240         parameters are not good.
13241         (c_parser_parameter_declaration): Error unknown type name if the type
13242         name can't start declaration specifiers.
13243
13244 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13245
13246         * gcc.c (translate_options): Don't mention +e in comment.
13247         (process_command): Don't handle +e specially.
13248
13249 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13250
13251         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13252
13253         * ira-build.c (merge_hard_reg_conflicts): New function.
13254         (create_cap_allocno, copy_info_to_removed_store_destinations,
13255         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13256         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13257         (remove_unnecessary_allocnos, remove_low_level_allocnos)
13258         copy_nifo_to_removed_store_destination): Use them.
13259         * ira-lives.c (make_hard_regno_born): New function, split out of
13260         make_regno_born.
13261         (make_allocno_born): Likewise.
13262         (make_hard_regno_dead): New function, split out of make_regno_dead.
13263         (make_allocno_dead): Likewise.
13264         (inc_register_pressure): New function, split out of set_allocno_live.
13265         (dec_register_pressure): New function, split out of clear_allocno_live.
13266         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13267         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
13268         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13269         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
13270         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13271         mark_pseudo_regno_live.
13272         (process_bb_node_lives): Use mark_pseudo_regno_live,
13273         make_hard_regno_born and make_allocno_dead.
13274         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13275         set_allocno_live, clear_allocno_live): Delete functions.
13276
13277         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13278         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13279         functions.
13280         (ira_flattening): Use ira_parent_allocno.
13281         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13282         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13283
13284         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13285         statement.
13286
13287         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13288         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13289         minmax_set_iter_cond, minmax_set_iter_next,
13290         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13291         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13292         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13293         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
13294         uses changed.
13295
13296         * ira-int.h (struct live_range, live_range_t): Renamed from struct
13297         ira_allocno_live_range and allocno_live_range_t; all uses changed.
13298         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13299         All uses changed.
13300
13301 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
13302
13303         * thumb2.md (thumb2_tlobits_cbranch): Delete.
13304         (peephole2 to convert zero_extract/compare of single bit to
13305          lshift/compare): New.
13306
13307 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
13308
13309         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13310         recursive call and call to 'int_const_binop'.
13311         (build_range_check, fold_cond_expr_with_comparison, unextend,
13312         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13313         multiple_of_p): Adjust call to const_binop.
13314
13315 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
13316
13317         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13318         determine size of XFmode operand.
13319         (XFmode extended DFmode push splitter): Ditto.
13320         (XFmode extended SFmode push splitter): Ditto.
13321
13322 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13323
13324         PR target/44588
13325         * config/i386/i386.md (extract_code): New.
13326         (<u>divmodqi4): Likewise.
13327         (divmodhiqi3): Likewise.
13328         (udivmodhiqi3): Likewise.
13329         (<u>divqi3): Remvoved.
13330
13331 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
13332
13333         PR middle-end/44492
13334         * recog.h (struct recog_data): Add is_asm field.
13335         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13336         present in constraints of inline-asm operand and memory operand
13337         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13338         (extract_insn): Initialize recog_data.is_asm.
13339         * doc/md.texi (Constraints): Document operand side-effect rules.
13340
13341 2010-06-24  Andi Kleen  <ak@linux.intel.com>
13342
13343         * c-parser.c (c_parser_conditional_expression): Call
13344         warn_for_omitted_condop.
13345         * doc/invoke.texi: Document omitted condop warning.
13346
13347 2010-06-24  Nick Clifton<nickc@redhat.com>
13348
13349         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13350         insn in the sequence is a jump insn before setting its label.
13351
13352 2010-06-24  Alan Modra  <amodra@gmail.com>
13353
13354         * collect2.c (main): Match exactly --version and --help.
13355
13356 2010-06-24  DJ Delorie  <dj@redhat.com>
13357
13358         * config/m32c/m32c-pragma.c: Don't include rtl.h.
13359
13360 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
13361
13362         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13363         using X87MODEF mode iterator.
13364         (pushsf splitter): Macroize splitter using P mode iterator.
13365         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13366         mode iterator.
13367
13368         (*movxf_internal): Rename from *movxf_integer.
13369         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13370         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13371         (*movdf_internal): Rename from *movdf_integer.
13372         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13373         (*movsf_internal): Rename from *movdf_1.
13374
13375 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
13376
13377         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13378         (const_gimple_seq_node): Removed typedefs.
13379
13380         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13381         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13382
13383 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13384
13385         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13386         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13387         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13388         and CODE_FOR_vec_extract_lo_v4df.
13389
13390         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13391         Changed to define_insn_and_split.
13392         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13393         (vec_extract_lo_v16hi): Likewise.
13394         (vec_extract_lo_v32qi): Likewise.
13395         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13396         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13397
13398 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13399
13400         PR target/44640
13401         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13402         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13403         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13404         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13405         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13406
13407         PR target/44640
13408         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13409
13410         PR other/44644
13411         * df-core.c (struct df): Rename to df_d.
13412         * df.h (struct df): Likewise.
13413         * dse.h (struct df): Remove forward declaration.
13414         * recog.h (struct insn_data): Rename to:
13415         (struct_insn_data_d).  Adjusted all users.
13416
13417 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13418
13419         PR ada/22220
13420         * doc/install.texi: Update requirements to build GNAT.
13421
13422 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13423
13424         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13425         enum type.
13426         (m68k_sched_attr_opx_type): Remove unreachable return.
13427         (m68k_sched_attr_opy_type): Likewise.
13428         (m68k_sched_attr_size): Likewise.
13429         (sched_get_opxy_mem_type): Likewise.
13430         (m68k_sched_attr_op_mem): Likewise.
13431
13432 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13433
13434         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13435         new statement and adjust VDEF only if necessary.  Remove superfluous
13436         call to maybe_clean_or_replace_eh_stmt.
13437         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13438         copy the flags.
13439         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13440         * tree-inline.c (copy_bb): ...and not there.
13441
13442 2010-06-22  Cary Coutant  <ccoutant@google.com>
13443
13444         * dwarf2out.c (is_nested_in_subprogram): New function.
13445         (should_move_die_to_comdat): Use it.
13446         (copy_ancestor_tree): Don't mark DIEs here.
13447         (copy_decls_walk): Start walk from root of newly-added tree;
13448         mark DIEs here instead.
13449
13450 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13451
13452         * config/i386/i386.md (unit): Also check sseishft1.
13453
13454 2010-06-22  Jan Hubicka  <jh@suse.cz>
13455
13456         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13457         enabled.
13458
13459 2010-06-22  Jan Hubicka  <jh@suse.cz>
13460
13461         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13462         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13463         Return true if something changed.
13464         * df.h (df_confluence_function_n): Return bool.
13465         * df-core.c (df_worklist_propagate_forward,
13466         df_worklist_propagate_backward): Track changes and ages.
13467         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13468         track ages.
13469         * dse.c (dse_confluence_n): Return always true.
13470
13471 2010-06-22  Jan Hubicka  <jh@suse.cz>
13472
13473         * bitmap.c (bitmap_clear_bit): Micro optimize.
13474
13475 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13476
13477         * config/i386/i386.md (SWI1248x): New mode iterator.
13478         (SWI48x): Ditto.
13479         (SWI12): Ditto.
13480         (SWI24): Ditto.
13481
13482         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13483         SWI1248x mode iterator.
13484         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13485         using SWI124 mode iterator.
13486         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13487         mode iterator.
13488         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13489         *pushdi2_prologue_rex64 using P mode iterator.
13490         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13491         using SWI48 mode iterator.
13492         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13493         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13494         using SWI1248x mode iterator.
13495         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13496         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13497         SWI48 mode iterator.
13498         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13499         iterator.
13500         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13501         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13502         SWI12 mode iterator.
13503         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13504         SWI12 mode iterator.
13505         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13506         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13507         SWI24 mode iterator.
13508         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13509         SWI48 mode iterator.
13510         (mov<mode>_insn_1): New expander.
13511         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13512         using SWI48x mode iterator.
13513
13514         (*movoi_internal_avx): Rename from *movoi_internal.
13515         (*movti_internal_rex64): Rename from *movti_rex64.
13516         (*movti_internal_sse): Rename from *movti_sse.
13517         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13518         (*movdi_internal): Rename from *movdi_2.
13519         (*movsi_internal): Rename from *movsi_1.
13520         (*movhi_internal): Rename from *movhi_1.
13521         (*movqi_internal): Rename from *movqi_1.
13522
13523         (insv): Update the call to gen_movsi_insv_1 for rename.
13524         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13525
13526 2010-06-22  Jan Hubicka  <jh@suse.cz>
13527
13528         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13529         to ...
13530         (execute_todo) ... this one.
13531
13532 2010-06-22  Alan Modra  <amodra@gmail.com>
13533
13534         PR target/44364
13535         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13536         * caller-save.c (insert_restore, insert_save): Use non-validate
13537         form of adjust_address.
13538
13539 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13540
13541         PR target/39690
13542         * config/pa/pa.c (override_options): Disable
13543         -freorder-blocks-and-partition.
13544
13545 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13546
13547         PR target/44615
13548         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13549
13550         * config/i386/i386.md (type): Add sseishft1
13551
13552         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13553         (ppro_insn_load): Likewise.
13554         (ppro_insn_store): Likewise.
13555         (ppro_insn_both): Likewise.
13556
13557         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13558         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13559         for type.
13560         (*vec_extractv2di_1_avx): Likewise.
13561         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13562         type.  Remove atom_unit.
13563         (*vec_extractv2di_1_sse2): Likewise.
13564
13565 2010-06-21  DJ Delorie  <dj@redhat.com>
13566
13567         * diagnostic.h (diagnostic_classification_change_t): New.
13568         (diagnostic_context): Add history and push/pop list.
13569         (diagnostic_push_diagnostics): Declare.
13570         (diagnostic_pop_diagnostics): Declare.
13571         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13572         from pragmas in a history chain instead of the global table.
13573         (diagnostic_push_diagnostics): New.
13574         (diagnostic_pop_diagnostics): New.
13575         (diagnostic_report_diagnostic): Scan history chain to find state
13576         of diagnostics as of the diagnostic location.
13577         * opts.c (set_option): Pass UNKNOWN_LOCATION to
13578         diagnostic_classify_diagnostic.
13579         (enable_warning_as_error): Likewise.
13580         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13581         use in the history chain.
13582         * doc/extend.texi: Document pragma GCC diagnostic changes.
13583
13584 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
13585
13586         * dwarf2out.c (add_linkage_name): New function.  Don't add
13587         anything to DW_TAG_member DIEs.
13588         (add_name_and_src_coords_attributes): Use it.
13589         (gen_variable_die): Call it for C++ static data members if
13590         specification is DW_TAG_member.
13591
13592         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13593         C++ char16_t and char32_t.
13594
13595         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13596         * genattrtab.c: Include vecprim.h.
13597         (cached_attrs, cached_attr_count, attrs_seen_once,
13598         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13599         attrs_cached_after): New variables.
13600         (find_attrs_to_cache): New function.
13601         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13602         (write_test_expr): Add attrs_cached argument, return it too,
13603         attempt to cache non-const attributes used more than once in
13604         a single case handling.
13605         (write_attr_get): Use find_attrs_to_cache, for caching candidates
13606         emit cached_* variables.  Adjust write_attr_set callers.
13607         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13608         to find attributes that should be cached in this block.  Adjust
13609         write_test_expr callers.
13610         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
13611         callers.
13612         (make_automaton_attrs): Adjust write_test_expr caller.
13613
13614         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13615         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13616         (make_automaton_attrs): If find_tune_attr returns non-NULL,
13617         write separate internal_dfa_insn_code_* and insn_default_latency_*
13618         functions for each attribute's value and emit init_sched_attrs
13619         function and function pointers.
13620         * genattr.c (const_attrs, reservations): New variables.
13621         (gen_attr): Add const attributes to const_attrs vector.
13622         (check_tune_attr, find_tune_attr): New functions.
13623         (main): Add reservations to reservations vector.  If find_tune_attr
13624         returns true, add prototype for init_sched_attrs and make
13625         internal_dfa_insn_code and insn_default_latency function pointers,
13626         otherwise define init_sched_attrs as dummy macro.
13627         * cfgexpand.c: Include insn-attr.h.
13628         (gimple_expand_cfg): Call init_sched_attrs.
13629
13630         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13631
13632         PR target/44575
13633         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13634         va_arg from a set of register save slots into a temporary,
13635         if the container is bigger than type size, do the copying
13636         using smaller mode or using memcpy.
13637
13638         PR bootstrap/44426
13639         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13640         prototype.
13641         (sel_print_to_dot): Remove macro.
13642         (sel_print): Likewise.  New prototype.
13643         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13644         (sel_print): New function.
13645
13646 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13647
13648         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13649         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13650
13651 2010-06-21  Nick Clifton  <nickc@redhat.com>
13652
13653         * config/rx/rx.h (PTRDIFF_TYPE): Define.
13654         (SMALL_REGISTER_CLASS): Define (to zero).
13655         (PRINT_OPERAND): Delete.
13656         (PRINT_OPERAND_ADDRESS): Delete.
13657         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13658         (rx_print_operand_address): Delete prototype.
13659         * config/rx/rx.c (rx_print_operand): Make static.
13660         Allow %H and %L to handle CONST_DOUBLEs.
13661         (rx_print_operand_address): Make static.
13662         (rx_gen_move_template): Rename local variable 'template' to
13663         out_template.
13664         (rx_function_arg): Do not pass unknown sized objects in registers.
13665         (TARGET_PRINT_OPERAND): Define.
13666         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13667
13668 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
13669
13670         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13671
13672 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
13673
13674         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13675         stack-alignment for simple leaf-functions.
13676
13677 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13678
13679         * doc/install.texi: Document bootstrap-lto.
13680
13681 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13682
13683         PR debug/44248
13684         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13685         (input_function): Drop them here, if VTA is disabled.
13686
13687 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
13688
13689         PR target/44546
13690         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13691         New predicate.
13692         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13693         ix86_swapped_fp_comparsion_operator instead of
13694         ix86_fp_comparison_operator.
13695
13696         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13697         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13698         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13699         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13700         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13701         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13702
13703 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
13704
13705         PR other/32998
13706         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13707         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13708         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13709         (decode_cmdline_option): Update for this return value.  Set
13710         orig_option_with_args_text field.  Set arg field for unknown
13711         options.  Make static.
13712         (decode_cmdline_options_to_array): New.
13713         (prune_options): Update handling of find_opt return value.
13714         * opts.c (read_cmdline_option): Take decoded option.  Return void.
13715         (read_cmdline_options): Take decoded options.
13716         (decode_options): Add parameters for decoded options.  Use
13717         decode_cmdline_options_to_array.  Use decoded options for -O
13718         scan.  Use integral_argument for -O parameters.  Update call to
13719         read_cmdline_options.
13720         (enable_warning_as_error): Update handling of find_opt return value.
13721         * opts.h: Update comment on unknown options.
13722         (struct cl_decoded_option): Update comments on opt_index and arg.
13723         Add orig_option_with_args_text.
13724         (decode_cmdline_option): Remove.
13725         (decode_cmdline_options_to_array): Declare.
13726         (decode_options): Update prototype.
13727         * toplev.c (save_argv): Remove.
13728         (save_decoded_options, save_decoded_options_count): New.
13729         (read_integral_parameter): Remove.
13730         (print_switch_values): Use decoded options.
13731         (toplev_main): Don't set save_argv.  Update call to decode_options.
13732         * toplev.h (read_integral_parameter): Remove.
13733         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
13734
13735 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
13736
13737         PR target/44072
13738         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
13739         immediate.
13740         * constraints.md (Pw, Px): New constraints.
13741         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
13742
13743 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
13744
13745         * config/i386/sse.md (fma4modesuffixf4): Removed.
13746         (ssemodesuffixf2s): Likewise.
13747         (ssemodesuffixf4): Likewise.
13748         (ssemodesuffixf2c): Likewise.
13749         (ssescalarmodesuffix2s): Likewise.
13750         (avxmodesuffixf2c): Likewise.
13751         (ssemodesuffix): New.
13752         (ssescalarmodesuffix): Likewise.
13753         Update patterns with ssemodesuffix and ssescalarmodesuffix.
13754
13755 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
13756
13757         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
13758
13759 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13760
13761         * stor-layout.c (debug_rli): Remove unused local variables.
13762
13763 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13764
13765         PR rtl-optimization/40900
13766         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
13767         original expression for later reuse.
13768         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
13769         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
13770
13771 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
13772
13773         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
13774         double_int_fits_in_uhwi_p): Implement as static inline.
13775         (double_int_xor): New inline function.
13776         (double_int_lrotate, double_int_rrotate, double_int_max,
13777         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13778         double_int_smin): Declare.
13779         (lrotate_double, rrotate_double): Remove declaration.
13780         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
13781         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
13782         (double_int_lrotate, double_int_rrotate, double_int_max,
13783         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13784         double_int_smin): New function.
13785         * fold-const.c (int_const_binop): Clean up, use double_int_*
13786         functions.
13787         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
13788         double_int_* and immed_double_int_const functions.
13789
13790 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13791
13792         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
13793         * function.c (types_used_by_cur_var_decl): Likewise.
13794         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
13795
13796 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13797
13798         * tree.h (record_layout_info): Change type of pending_statics field
13799         to a VEC.
13800         * stor-layout.c (start_record_layout): Store NULL into
13801         pending_statics.
13802         (debug_rli): Call debug_vec_tree instead of debug_tree.
13803         (place_field): Likewise.
13804         (finish_record_layout): Likewise.
13805
13806 2010-06-18  Alan Modra  <amodra@gmail.com>
13807
13808         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
13809
13810 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13811
13812         PR target/43740
13813         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
13814         for SET source operand from SET destination operand.
13815
13816 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
13817
13818         PR rtl-optimization/39871
13819         * reload1.c (init_eliminable_invariants): For flag_pic, disable
13820         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
13821         (function_invariant_p): Rule out a plus of frame or arg pointer with
13822         a SYMBOL_REF.
13823         * ira.c (find_reg_equiv_invariant_const): Likewise.
13824
13825 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
13826
13827         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
13828         print_operand_address and puts to output the operand for CONST.
13829
13830 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
13831
13832         PR debug/44572
13833         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
13834         hook.
13835
13836 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13837
13838         * v850-protos.h (print_operand): Delete.
13839         (print_operand_address): Delete.
13840         * v850.h (PRINT_OPERAND): Delete.
13841         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13842         (PRINT_OPERAND_ADDRESS): Delete.
13843         * v850.c (print_operand_address): Rename to...
13844         (v850_print_operand_address): ...this.  Make static. Call
13845         v850_print_operand.
13846         (print_operand): Rename to...
13847         (v850_print_operand): ...this.  Make static.  Call
13848         v850_print_operand_address.
13849         (v850_print_operand_punct_valid_p): New function.
13850         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13851         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13852
13853 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13854
13855         * config/sh/sh-protos.h (print_operand): Delete.
13856         (print_operand_address): Delete.
13857         * config/sh/sh.h (PRINT_OPERAND): Delete.
13858         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13859         (PRINT_OPERAND_ADDRESS): Delete.
13860         * config/sh/sh.c (sh_print_operand_address): Make static.
13861         (sh_print_operand): Make static.  Call sh_print_operand_address
13862         and sh_print_operand.
13863         (sh_print_operand_punct_valid_p): New function.
13864         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13865         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13866
13867 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13868
13869         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
13870         (mcore_print_operand_address): Delete.
13871         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
13872         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13873         (PRINT_OPERAND_ADDRESS): Delete.
13874         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
13875         (mcore_print_operand): Make static.
13876         (mcore_print_operand_punct_valid_p): New function.
13877         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
13878         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13879
13880 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13881
13882         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
13883         (print_operand_address): Delete.
13884         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
13885         (PRINT_OPERAND_ADDRESS): Delete.
13886         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
13887         static.
13888         (m68hc11_print_operand): Make static.
13889         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13890
13891 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13892
13893         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
13894         (m32r_print_operand_address): Delete.
13895         * config/m32r/m32r.h (m32r_punct_chars): Delete.
13896         (PRINT_OPERAND): Delete.
13897         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13898         (PRINT_OPERAND_ADDRESS): Delete.
13899         * config/m32r/m32r.c (m32r_punct_chars): Make static.
13900         (m32r_print_operand_address): Make static.
13901         (m32r_print_operand): Make static.
13902         (m32r_print_operand_punct_valid_p): New function.
13903         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13904         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13905
13906 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13907
13908         * config/iq2000/iq2000-protos.h (print_operand): Delete.
13909         (print_operand_address): Delete.
13910         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
13911         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13912         (PRINT_OPERAND_ADDRESS): Delete.
13913         (iq2000_print_operand_punct): Delete.
13914         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
13915         (iq2000_print_operand_address): Make static.
13916         (iq2000_print_operand): Make static.
13917         (iq2000_print_operand_punct_valid_p): New function.
13918         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13919         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13920
13921 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13922
13923         * config/frv/frv-protos.h (frv_print_operand): Delete.
13924         (frv_print_operand_address): Delete.
13925         * config/frv/frv.h (PRINT_OPERAND): Delete.
13926         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13927         (PRINT_OPERAND_ADDRESS): Delete.
13928         * config/frv/frv.c (frv_print_operand_address): Make static.
13929         (frv_print_operand): Make static.
13930         (frv_print_operand_punct_valid_p): New function.
13931         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13932         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13933
13934 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13935
13936         * tree.h (vec_member): Declare.
13937         * tree.c (vec_member): Define.
13938
13939 2010-06-17  Richard Guenther  <rguenther@suse.de>
13940
13941         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
13942         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
13943
13944 2010-06-17  Richard Guenther  <rguenther@suse.de>
13945
13946         * tree-inline.c (declare_return_variable): Remove bogus code.
13947
13948 2010-06-17  Richard Guenther  <rguenther@suse.de>
13949
13950         * gimplify.c (gimplify_bind_expr): Always promote complex
13951         and vector variables to registers if possible.
13952
13953 2010-06-17  Richard Guenther  <rguenther@suse.de>
13954
13955         * expr.c (get_inner_reference): Use double_int for bit_offset
13956         calculation.
13957
13958 2010-06-16  DJ Delorie  <dj@redhat.com>
13959
13960         * common.opt (-fstrict-volatile-bitfields): new.
13961         * doc/invoke.texi: Document it.
13962         * fold-const.c (optimize_bit_field_compare): For volatile
13963         bitfields, use the field's type to determine the mode, not the
13964         field's size.
13965         * expr.c (expand_assignment): Likewise.
13966         (get_inner_reference): Likewise.
13967         (expand_expr_real_1): Likewise.
13968         * expmed.c (store_fixed_bit_field): Likewise.
13969         (extract_bit_field_1): Likewise.
13970         (extract_fixed_bit_field): Likewise.
13971
13972 2010-06-16  Richard Guenther  <rguenther@suse.de>
13973
13974         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
13975
13976 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
13977
13978         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
13979         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
13980         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
13981         * debug.c: Likewise.
13982         * sdbout.c: Likewise.
13983         * vmsdbgout.c: Likewise.
13984         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
13985         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
13986         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
13987         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
13988         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
13989         * dwarf2out.c (dw_fde_struct): New fields
13990         dw_fde_vms_{end,begin}_prologue.
13991         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
13992         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
13993         (dwarf2out_vms_end_prologue): New function.
13994         (dwarf2out_vms_begin_epilogue): New function.
13995         (dw_val_struct): New value dw_val_class_vms_delta.
13996         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
13997         begin_epilogue for VMS.
13998         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
13999         new static functions.
14000         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14001         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14002         static functions.
14003         (print_die): New case dw_val_class_vms_delta.
14004         (attr_checksum): Likewise.
14005         (same_dw_val_p: Likewise.
14006         (size_of_die): Likewise.
14007         (value_format): Likewise.
14008         (output_die): Likewise.
14009         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14010         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14011         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14012         dwarf2out_cfi_begin_epilogue
14013         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14014
14015 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14016
14017         * config/cris/cris-protos.h (cris_print_operand): Delete.
14018         (cris_print_operand_address): Delete.
14019         * config/cris/cris.h (PRINT_OPERAND): Delete.
14020         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14021         (PRINT_OPERAND_ADDRESS): Delete.
14022         * config/cris/cris.c (cris_print_operand_address): Make static.
14023         (cris_print_operand): Make static.
14024         (cris_print_operand_punct_valid_p): New function.
14025         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14026         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14027
14028 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14029
14030         * config/arm/arm-protos.h (arm_print_operand): Delete.
14031         (arm_print_operand_address): Delete.
14032         * config/arm/arm.h (PRINT_OPERAND): Delete.
14033         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14034         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14035         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14036         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
14037         (arm_print_operand): Make static.
14038         (arm_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-16  Nick Clifton  <nickc@redhat.com>
14043
14044         * config/rx/constraints.md (NEGint4): New constraint.
14045         * config/rx/rx.md (attr cc): Add set_zsc.
14046         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14047         initialised.
14048         (cmpsf): Likewise.
14049         (call_internal): Clobber the cc0 register.
14050         (call_value_internal): Likewise.
14051         (cstoresi4): Likewise.
14052         (movsieq): Likewise.
14053         (movsine): Likewise.
14054         (addsi3): Add alternative to handle small negative constants.
14055         (sunsi3): Likewise.
14056         (addsi3): Do not set the O bit in the cc0 register.
14057         (adddi3): Likewise.
14058         (subsi3): Likewise.
14059         (subdi3): Likewise.
14060         (andsi3): Reorder alternatives to prefer shorter forms.
14061         (mulsi3): Likewise.
14062         (iorsi3): Likewise.
14063         (negsi2): Note that the cc0 flags are set.
14064         (rotlsi3): Note that only the Z and S bits are set in cc0.
14065         (lshrsi3): Likewise.
14066         (ashlsi3): Likewise.
14067         (subsf3): Use %Q for the MEM operand.
14068         (fix_truncsfsi2): Likewise.
14069         (floatsisf2): Likewise.
14070         (bitset): Remove early clobber from destination.
14071         (bitset_in_memory): Likewise.
14072         (lrintsf2): Clobber the cc0 register.
14073         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14074         (rx_print_operand): Handle %N.
14075
14076 2010-06-16  Jan Hubicka  <jh@suse.cz>
14077
14078         * df-core.c (df_compact_blocks): Free problem_temps vector.
14079
14080 2010-06-16  Martin Jambor  <mjambor@suse.cz>
14081
14082         PR tree-optimization/43905
14083         * tree-sra.c: Include tree-inline.h.
14084         (create_abstract_origin): Removed.
14085         (modify_function): Version the call graph node instead of creating
14086         abstract origins and dealing with same_body aliases.
14087         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14088         function is versionable.
14089         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14090
14091 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14092
14093         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14094         (CHOOSE_DYNAMIC_LINKER): Update.
14095
14096 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
14097
14098         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
14099         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14100         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14101         *prefetch_3dnow_rex.
14102
14103 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
14104
14105         * target.h (struct asm_out):Add declare_constant_name field.
14106         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14107         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14108         * output.h (default_asm_declare_constant_name): Declare.
14109         (assemble_label): Update prototype.
14110         * varasm.c (assemble_constant_contents): Use
14111         targetm.asm_out.declare_constant_name target hook.
14112         (assemble_label): Add 'file' argument.
14113         (default_asm_declare_constant_name): New function.
14114         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14115         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14116         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14117
14118         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14119         * config/darwin.c (darwin_asm_declare_constant_name): New function.
14120         (machopic_output_indirection): Update assemble_label argument list.
14121         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14122         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14123
14124 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
14125
14126         PR middle-end/44391
14127         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14128         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
14129
14130 2010-06-15  Richard Guenther  <rguenther@suse.de>
14131
14132         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14133
14134 2010-06-15  Paul Brook  <paul@codesourcery.com>
14135
14136         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14137         hard-float ABI.
14138
14139 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
14140
14141         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14142         don't get a vector type for output.
14143
14144 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
14145
14146         PR fortran/44536
14147         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14148         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14149         (LANG_HOOKS_DECLS): Add it.
14150         * gimplify.c (omp_notice_variable): Call
14151         lang_hooks.decls.omp_report_decl.
14152
14153 2010-06-15  Martin Jambor  <mjambor@suse.cz>
14154
14155         PR lto/44464
14156         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14157         on the newly dead SSA name.
14158
14159 2010-06-15  Alan Modra  <amodra@gmail.com>
14160
14161         * doc/invoke.texi: Add mcmodel to powerpc options.
14162         * configure.ac: Add HAVE_LD_LARGE_TOC test.
14163         * configure: Regenerate.
14164         * config.in: Regenerate.
14165         * config/rs6000/linux64.opt (mcmodel): New.
14166         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14167         (TARGET_CMODEL, SET_CMODEL): Define.
14168         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14169         select CMODEL_MEDIUM default.
14170         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14171         (TARGET_CMODEL): Define default.
14172         * config/rs6000/rs6000.c (cmodel): New variable.
14173         (rs6000_explicit_options): Add cmodel field.
14174         (rs6000_handle_option): Handle -mcmodel.
14175         (create_TOC_reference): Add largetoc_reg param.  Generate high,
14176         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
14177         (rs6000_delegitimize_address): Recognise new toc reference rtl
14178         and minimal-toc rtl.
14179         (rs6000_legitimize_reload_address): Handle new toc references.
14180         (print_operand_address): Handle legitimate_constant_pool_address_p
14181         match before lo_sum.
14182         (rs6000_eliminate_indexed_memrefs): Tidy.
14183         (rs6000_emit_move): Tweak threshold for inlining constants.
14184         Keep rs6000_emit_allocate_stack large stack frame offsets
14185         loaded into r0 inline.
14186         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14187         (tocrel_base, tocrel_offset): New variables.
14188         (toc_relative_expr_p): Set them here.
14189         (print_operand_address): Skip over any offset on constant pool address.
14190         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14191         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14192         (offsettable_ok_by_alignment): New function.
14193         (rs6000_emit_move): Address suitably aligned local symbol_refs
14194         relative to the toc pointer for -mcmodel=medium.
14195         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
14196         strict param.  Allow lo_sum version of addressing.  Verify reg
14197         used for -mminimal-toc and -mcmodel != small.  Update all callers.
14198         * config/rs6000/constraints.md: Update for above change.
14199         * config/rs6000/predicates.md: Likewise.
14200         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14201         code.
14202         (tls_gd): Split for -mcmodel=medium/large.
14203         (tls_gd_high, tls_gd_low): New.
14204         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14205         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14206         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14207         (largetoc_high, largetoc_low): New.
14208         (cmptf_internal2): Add clobber.
14209         * config/rs6000/rs6000-protos.h: Update.
14210
14211 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
14212
14213         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
14214         true if no prefetch is going to be generated for a given group.
14215         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14216         estimate the prefetch_count.
14217         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14218         prefetch count by considering the unroll_factor and prefetch_mod
14219         for is_loop_prefetching_profitable.
14220
14221 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
14222
14223         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14224         anything if the argument is not a MEM.
14225
14226 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14227
14228         PR debug/43650
14229         PR debug/44181
14230         PR debug/44247
14231         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14232         debug stmts.
14233         (canonicalize_loop_ivs): Likewise.
14234
14235 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14236
14237         PR debug/43656
14238         * haifa-sched.c (setup_insn_reg_pressure_info,
14239         update_register_pressure): Reject debug insns.
14240         (ready_sort): Don't setup reg pressure for debug insns.
14241         (schedule_insn): Don't update reg pressure for debug insns.
14242
14243 2010-06-14  Richard Guenther  <rguenther@suse.de>
14244
14245         * lto-streamer.c (cached_bp): Remove.
14246         (bitpack_delete): Likewise.
14247         (bitpack_create): Likewise.
14248         (bp_get_next_word): Likewise.
14249         (bp_pack_value, bp_unpack_value): Move ...
14250         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14251         Re-implement.
14252         (struct bitpack_d): Likewise.
14253         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14254         New inline functions.
14255         * lto-streamer-out.c (lto_output_bitpack): Remove.
14256         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14257         (pack_value_fields): Adjust.
14258         (lto_write_tree): Likewise.
14259         (output_gimple_stmt): Likewise.
14260         (output_function): Likewise.
14261         * lto-streamer-in.c (input_gimple_stmt): Adjust.
14262         (input_function): Likewise.
14263         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14264         (lto_input_bitpack): Remove.
14265         (lto_materialize_tree): Adjust.
14266         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14267         * lto-cgraph.c (lto_output_edge): Adjust.
14268         (lto_output_node): Likewise.
14269         (lto_output_varpool_node): Likewise.
14270         (lto_output_ref): Likewise.
14271         (input_node): Likewise.
14272         (input_varpool_node): Likewise.
14273         (input_ref): Likewise.
14274         (input_edge): Likewise.
14275         (output_node_opt_summary): Likewise.
14276         (input_node_opt_summary): Likewise.
14277         * ipa-pure-const.c (pure_const_write_summary): Likewise.
14278         (pure_const_read_summary): Likewise.
14279         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14280         (ipa_read_indirect_edge_info): Likewise.
14281         (ipa_write_node_info): Likewise.
14282         (ipa_read_node_info): Likewise.
14283
14284 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14285
14286         PR target/44534
14287         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14288         (vec_extract_lo_v16hi): Likewise.
14289         (vec_extract_lo_v32qi): Likewise.
14290
14291 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14292
14293         PR bootstrap/44426
14294         * tree.h (build_call_expr): Don't define as vararg macro, instead
14295         add a prototype.
14296         * builtins.c (build_call_nofold): Remove.
14297         (expand_builtin_int_roundingfn, expand_builtin_pow,
14298         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14299         expand_builtin_memset_args, expand_builtin_strcmp,
14300         expand_builtin_strncmp, expand_builtin_memory_chk): Use
14301         build_call_nofold_loc instead of build_call_nofold.
14302         (build_call_expr): New function.
14303
14304         PR tree-optimization/44508
14305         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14306         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14307         don't eliminate trivially dead stmts.
14308         * tree-vrp.c (vrp_finalize): Pass false as last argument
14309         to substitute_and_fold.
14310         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14311         to substitute_and_fold.
14312         * tree-ssa-ccp.c (ccp_finalize): Likewise.
14313
14314         PR bootstrap/44509
14315         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14316
14317 2010-06-14  Ira Rosen  <irar@il.ibm.com>
14318
14319         PR tree-optimization/44507
14320         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14321         to build initial vector for BIT_AND_EXPR.
14322         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14323
14324 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14325
14326         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14327         adjust z10prop set_attr.
14328
14329 2010-06-13  Jan Hubicka  <jh@suse.cz>
14330
14331         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14332         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14333         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14334         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14335         datastructure checks into checking asserts.
14336         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14337         * tree-ssa-sccvn.c (VN_INFO): Likewise.
14338         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14339         df_ref_create_structure): Likewise.
14340         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14341         pool_free): Use gcc_checking_assert.
14342         * alias.c (get_alias_set): Likewise.
14343         * var-tracking.c (variable_htab_free, shared_hash_copy,
14344         canonicalize_values_mark, variable_merge_over_cur): Likewise.
14345         * lto-streamer.c (bp_unpack_value): Likewise.
14346
14347 2010-06-13  Richard Guenther  <rguenther@suse.de>
14348
14349         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14350         Do not stream but initialize TYPE_CANONICAL to NULL.
14351         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14352         * gimple.c (gimple_types_compatible_p): Disregard
14353         TYPE_STRUCTURAL_EQUALITY_P.
14354         (gimple_register_type): Use TYPE_CANONICAL as cache.
14355         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14356         before registering common types.
14357         * config/i386/i386.c (ix86_function_arg_boundary): Do not
14358         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14359         * tree.h (TYPE_CANONICAL): Clarify documentation.
14360
14361 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
14362
14363         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14364         LIBCALL_VALUE): Remove macros.
14365         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14366         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14367         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14368         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14369         (ia64_function_value): Make static. Handle receiving the function
14370         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14371
14372 2010-06-12  Jan Hubicka  <jh@suse.cz>
14373
14374         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14375         at correct place.
14376
14377 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
14378
14379         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14380
14381 2010-06-12  Jan Hubicka  <jh@suse.cz>
14382
14383         * df-core.c (df_clear_bb_info): New function.
14384         (df_set_blocks): bb_info is always allocated.
14385         (df_get_bb_info): Use block_info_elt_size.
14386         (df_set_bb_info): Likewise.
14387         (df_compact_blocks): Update for new block_info.
14388         (grow_bb_info): New function.
14389         * df-problems.c (df_grow_bb_info): Move to df-core.c
14390         (df_rd_set_bb_info): Remove.
14391         (df_rd_free_bb_info): Do not free block pool.
14392         (df_rd_alloc): Do not create pool, use check for
14393         obstack presence instead of NULL pointer for new blocks.
14394         (df_rd_free): DO not free alloc pool; clear block_info.
14395         (problem_RD): Add size of block info structure.
14396         (df_lr_set_bb_info): Remove.
14397         (df_lr_free_bb_info): Do not free block pool.
14398         (df_lr_alloc): Do not create pool, use check for
14399         obstack presence instead of NULL pointer for new blocks.
14400         (df_lr_free): DO not free alloc pool; clear block_info.
14401         (problem_LR): Add size of block info structure.
14402         (df_live_set_bb_info): Remove.
14403         (df_live_free_bb_info): Do not free block pool.
14404         (df_live_alloc): Do not create pool, use check for
14405         obstack presence instead of NULL pointer for new blocks.
14406         (df_live_free): DO not free alloc pool; clear block_info.
14407         (problem_LIVE): Add size of block info structure.
14408         (problem_CHAIN): Add size of block info structure.
14409         (df_byte_lr_set_bb_info): Remove.
14410         (df_byte_lr_free_bb_info): Do not free block pool.
14411         (df_byte_lr_alloc): Do not create pool, use check for
14412         obstack presence instead of NULL pointer for new blocks.
14413         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14414         (problem_BYTE_LR): Add size of block info structure.
14415         (problem_NOTE): Add size of block info structure.
14416         (df_byte_MD_set_bb_info): Remove.
14417         (df_byte_MD_free_bb_info): Do not free block pool.
14418         (df_byte_MD_alloc): Do not create pool, use check for
14419         obstack presence instead of NULL pointer for new blocks.
14420         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14421         (problem_BD): Add size of block info structure.
14422         * df-scan.c (df_scan_free_internal): Free block pool.
14423         (df_scan_set_bb_info): Remove.
14424         (df_scan_free_bb_info): Check for artificial_defs instead
14425         of bb_info being non-NULL.
14426         (df_scan_alloc): DO not create df_scan_block pool.
14427         (problem_SCAN): Set size of block info.
14428         (df_bb_refs_record): Do not allocate bb_info.
14429         * df.h (df_problem): Add block_info_elt_size.
14430         (struct dataflow): Change block_info to void *.
14431         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14432         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14433         in-line structures.
14434
14435 2010-06-12  Jan Hubicka  <jh@suse.cz>
14436
14437         PR tree-optimize/44485
14438         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14439         containing use of return value of noreturn function.
14440
14441 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14442
14443         * targhooks.c (default_function_value): Don't use
14444         FUNCTION_OUTGOING_VALUE.
14445         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14446         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14447
14448 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14449
14450         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14451         Add crtfastmath.o to extra_parts.
14452         * config/mips/crtfastmath.c: New.
14453         * config/mips/linux.h (ENDFILE_SPEC): New.
14454
14455 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14456
14457         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14458         old_type in parameter.
14459         (gcc_type_for_value): Update call to gcc_type_for_interval.
14460         (compute_type_for_level_1): Renamed compute_type_for_level.
14461         Update call to gcc_type_for_interval.
14462
14463 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14464
14465         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14466         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14467
14468 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14469
14470         * opts-common.c: Include options.h.
14471         (integral_argument): Move from opts.c.
14472         (decode_cmdline_option): New.  Based on read_cmdline_option.
14473         * opts.c (integral_argument): Move to opts-common.c.
14474         (read_cmdline_option): Move most contents to
14475         decode_cmdline_option.  Use %qs in diagnostics.
14476         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14477         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14478         decode_cmdline_option): New.
14479
14480 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14481
14482         PR target/44481
14483         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14484         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14485         (partiysi2_cmp): Ditto.
14486         (*partiyhi2_cmp): Ditto.
14487         (*parityqi2_cmp): Remove.
14488
14489 2010-06-11  Jan Hubicka  <jh@suse.cz>
14490
14491         * bitmap.h (bmp_iter_next_bit): New.
14492         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14493
14494 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14495             Eric Botcazou  <ebotcazou@adacore.com>
14496
14497         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14498         computed cost.
14499
14500 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14501
14502         * config/i386/i386.md (unspec): New define_c_enum.
14503         (unspecv): Ditto.
14504
14505 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14506
14507         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14508
14509 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14510
14511         PR middle-end/44483
14512         * tree-if-conv.c (bb_predicate_s): New struct.
14513         (bb_predicate_p): New.
14514         (bb_has_predicate): New.
14515         (bb_predicate): New.
14516         (set_bb_predicate): New.
14517         (bb_predicate_gimplified_stmts): New.
14518         (set_bb_predicate_gimplified_stmts): New.
14519         (add_bb_predicate_gimplified_stmts): New.
14520         (init_bb_predicate): New.
14521         (free_bb_predicate): New.
14522         (is_predicated): Use bb_predicate.
14523         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14524         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14525         before processing their successors.
14526         (clean_predicate_lists): Removed.
14527         (find_phi_replacement_condition): Use bb_predicate.
14528         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14529         computations.
14530         (insert_gimplified_predicates): New.
14531         (combine_blocks): Call insert_gimplified_predicates.
14532         (tree_if_conversion): Call free_bb_predicate instead of
14533         clean_predicate_lists.
14534
14535 2010-10-11  Paul Brook  <paul@codesourcery.com>
14536
14537         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14538         * config/arm/arm.c (all_architectures): Change v7e-m default to
14539         cortexm4.
14540         * config/arm/arm-cores.def: Add cortex-m4.
14541         * config/arm/arm-tune.md: Regenerate.
14542
14543 2010-06-11  Jan Hubicka  <jh@suse.cz>
14544
14545         * ipa-pure-const.c (special_builtlin_state): New function.
14546         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14547         (propagate_pure_const): Use it.
14548
14549 2010-06-11  Jan Hubicka  <jh@suse.cz>
14550
14551         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14552         (df_live_alloc): Initialize df_live_scratch when initializing
14553         problem_data.
14554         (df_live_transfer_function): Update uses of df_live_scratch.
14555         (df_live_free): Free problem_data; clear df_live_scratch before
14556         releasing the obstack.
14557         (df_md_free): Free problem data.
14558
14559 2010-06-11  Jan Hubicka  <jh@suse.cz>
14560
14561         * doc/invoke.texi (Wsuggest-attribute): Document.
14562         (Wmissing-noreturn): Remove.
14563         * ipa-pure-const.c (warn_function_noreturn): New function.
14564         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14565         warn_missing_noreturn.
14566         * common.opt (Wsuggest-attribute=noreturn): New.
14567         * tree-flow.h (warn_function_noreturn): Declare.
14568         * tree-cfg.c (execute_warn_function_noreturn): Use
14569         warn_function_noreturn.
14570         (gate_warn_function_noreturn): New.
14571         (pass_warn_function_noreturn): Update.
14572
14573 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14574
14575         * c-typeck.c (handle_warn_cast_qual): Add loc
14576         parameter. Improve warning message.
14577         (build_c_cast): Pass location to handle_warn_cast_qual.
14578
14579 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14580
14581         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14582         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
14583         insn mnemonic.
14584         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14585
14586 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
14587
14588         Fix bootstap on mips
14589         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14590         be naming typedefs.
14591
14592 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
14593
14594         * system.h (helper_const_non_const_cast): New inline for
14595         gcc version <= 4.0.
14596         (CONST_CAST2): For gcc version <= 4.0 use
14597         new helper to do const/non-const casting.
14598
14599 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14600
14601         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14602         * Makefile.in (OBJS-common): Include insn-enums.o.
14603         (insn-enums.o): New rule.
14604         (simple_generated_c): Add insn-enums.c.
14605         (build/genenums.o): New rule.
14606         (genprogmd): Add "enums".
14607         * genconstants.c (print_enum_type): Declare a C string array
14608         for each enum.
14609         * genenums.c: New file.
14610         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14611         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
14612         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14613
14614 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14615
14616         * doc/md.texi (define_enum_attr): Document.
14617         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14618         * read-md.h (lookup_enum_type): Declare.
14619         * read-md.c (lookup_enum_type): New function.
14620         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14621         * genattrtab.c (attr_desc): Add an enum_name field.
14622         (evaluate_eq_attr): Take the associated attribute as argument.
14623         Get the enum prefix from the enum_name field, if defined.
14624         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
14625         (simplify_test_exp): Pass attr to evaluate_eq_attr.
14626         (add_attr_value): New function, split out from...
14627         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
14628         (write_test_expr): Pass attr to evaluate_eq_attr.
14629         (write_attr_get): Use the enum_name as the enum tag, if defined.
14630         (write_attr_valueq): Use the enum_name as a prefix, if defined.
14631         (find_attr): Initialize enum_name.
14632         (main): Handle DEFINE_ENUM_ATTR.
14633         * gensupport.c (process_rtx): Likewise.
14634         * config/mips/mips.h (mips_tune_attr): Delete.
14635         * config/mips/mips.md (cpu): Use define_attr_enum.
14636
14637 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14638
14639         * doc/md.texi (define_c_enum, define_enum): Document.
14640         * read-md.h (md_constant): Add a parent_enum field.
14641         (enum_value, enum_type): New structures.
14642         (upcase_string, traverse_enum_types): Declare.
14643         * read-md.c (enum_types): New variable.
14644         (upcase_string, add_constant): New functions.
14645         (handle_constants): Don't create the hash table here.
14646         Use add_constant.
14647         (traverse_md_constants): Don't check for a null md_constants.
14648         (decimal_string, handle_enum, traverse_enum_types): New functions.
14649         (read_md_files): Initialize md_constants and md_enums.
14650         * genconstants.c (print_md_constant): Ignore info argument.
14651         Only print constants that belong to no enum.
14652         (print_enum_type): New function.
14653         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
14654         for each defined enum type.
14655         * config/mips/mips.md (processor): New define_enum.
14656         (unspec): New define_c_enum.
14657         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14658         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14659         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14660         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14661         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14662         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14663         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14664         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14665         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14666         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14667         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14668         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14669         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14670         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14671         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14672         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14673         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14674         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14675         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14676         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14677         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14678         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14679         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14680         (UNSPEC_RDDSP): Move to mips-dsp.md.
14681         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14682         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14683         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14684         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14685         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14686         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14687         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14688         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14689         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14690         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14691         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14692         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14693         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14694         Moved to mips-dspr2.md.
14695         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14696         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14697         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14698         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14699         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14700         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14701         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14702         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14703         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14704         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14705         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14706         UNSPEC_LOONGSON_PSADBH)
14707         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14708         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14709         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14710         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14711         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14712         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14713         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14714         (cpu): Update comment.
14715         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14716         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14717         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14718         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14719         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14720         UNSPEC_LOONGSON_PCMPEQ)
14721         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
14722         UNSPEC_LOONGSON_PINSR_0)
14723         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14724         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14725         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14726         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14727         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14728         UNSPEC_LOONGSON_PSADBH)
14729         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14730         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14731         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
14732         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14733         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14734         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14735         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
14736         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
14737         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
14738         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
14739         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
14740         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
14741         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
14742         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
14743         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
14744         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
14745         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
14746         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
14747         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
14748         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
14749         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
14750         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
14751         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
14752         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
14753         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
14754         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
14755         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14756         (UNSPEC_RDDSP): Moved from mips.md.
14757         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
14758         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
14759         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
14760         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
14761         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
14762         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
14763         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
14764         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
14765         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
14766         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
14767         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
14768         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
14769         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
14770         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
14771         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
14772         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
14773         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
14774         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
14775         (UNSPEC_SCC): Moved from mips.md.
14776         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
14777         "processor_type" to "processor".
14778         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
14779         * config/mips/mips.h (processor_type): Delete.
14780         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
14781         "processor_type" to "processor".
14782
14783 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14784
14785         * configure.ac (tm_include_list): Add insn-constants.h.
14786         * configure: Regenerate.
14787         * Makefile.in (GTM_H): Move insn-constants.h here from...
14788         (TM_H): ...here.
14789         * mkconfig.sh: Remove special handling for insn-constants.h.
14790
14791 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14792
14793         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
14794         (BUILD_MD): ...this new variable.
14795         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
14796         that include the old contents of simple_generated_h and
14797         simple_generated_c.
14798         (simple_generated_h, simple_generated_c): Include them.  Add
14799         insn-constants.h.
14800         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
14801         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
14802         Remove these dependencies from the main rule and include
14803         insn-conditions.md in the command line only if it appears
14804         in the dependency list.
14805         (insn-constants.h, s-constants): Delete.
14806         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
14807         or gensupport.h.
14808         (build/genmddeps.o): Likewise.
14809         (genprogrtl): New variable that contains everything from genprogmd
14810         except mddeps and constants.
14811         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
14812         depend on $(BUILD_MD)
14813         (genprog): New variable.  Make these programs depend on
14814         $(BUILD_ERRORS).
14815         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
14816         (main): Use read_md_files instead of init_rtx_reader_args.
14817         * genconstants.c: As for genmddeps.c.
14818         * read-md.h (read_skip_construct): Declare.
14819         * read-md.c (read_skip_construct): New function.
14820         (handle_file): Allow a null handle_directive, skipping the
14821         construct if so.
14822         (parse_include): Update the comment accordingly.
14823
14824 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14825
14826         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
14827         * genmddeps.c: Include read-md.h.
14828         (main): Call init_rtx_reader_args instead of init_md_reader_args.
14829         * genattr.c (main): Likewise.
14830         * genattrtab.c (main): Likewise.
14831         * genautomata.c (main): Likewise.
14832         * gencodes.c (main): Likewise.
14833         * genconditions.c (main): Likewise.
14834         * genconfig.c (main): Likewise.
14835         * genconstants.c (main): Likewise.
14836         * genemit.c (main): Likewise.
14837         * genextract.c (main): Likewise.
14838         * genflags.c (main): Likewise.
14839         * genopinit.c (main): Likewise.
14840         * genoutput.c (main): Likewise.
14841         * genpeep.c (main): Likewise.
14842         * genrecog.c (main): Likewise.
14843         * genpreds.c (main): Likewise.
14844         * gensupport.h (in_fname): Move to read-md.h.
14845         (init_md_reader_args_cb): Rename to...
14846         (init_rtx_reader_args_cb): ...this and return a bool.
14847         (init_md_reader_args): Rename to...
14848         (init_rtx_reader_args): ...this and return a bool.
14849         (include_callback): Move to read-md.h.
14850         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
14851         (file_name_list, first_dir_md_include): Move to read-md.c
14852         (first_bracket_include): Delete unused variable.
14853         (last_dir_md_include): Move to read-md.c.
14854         (process_include): Delete, moving code to read-md.c:handle_include.
14855         (process_rtx): Don't handle INCLUDE.
14856         (save_string): Delete.
14857         (rtx_handle_directive): New function.
14858         (init_md_reader_args_cb): Rename to...
14859         (init_rtx_reader_args_cb): ...this and return a boolean success value.
14860         Use read_md_args.
14861         (init_md_reader_args): Rename to...
14862         (init_rtx_reader_args): ...this and return a boolean success value.
14863         * rtl.def (INCLUDE): Delete.
14864         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
14865         argument.
14866         * read-rtl.c (read_conditions): Don't gobble ')' here.
14867         (read_mapping): Likewise.
14868         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
14869         Handle top-level non-rtx constructs here rather than in read_rtx_1.
14870         Store the whole queue in *X.  Remove call to init_md_reader.
14871         (read_rtx_1): Rename to...
14872         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
14873         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
14874         here.
14875         (read_nested_rtx): New function.  Handle (nil) here rather than
14876         in read_rtx_code.
14877         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
14878         gobble ')' here.
14879         * read-md.h (directive_handler_t): New type.
14880         (in_fname, include_callback): Moved from read-md.h.
14881         (read_constants, init_md_reader): Delete.
14882         (read_md_files): Declare.
14883         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
14884         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
14885         from gensupport.c.
14886         (read_constants): Rename to...
14887         (handle_constants): ...this.  Don't gobble ')' here.
14888         (handle_include, handle_file, handle_toplevel_file)
14889         (parse_include): New functions, mostly taken from gensupport.c.
14890         (init_md_reader): Subsume into...
14891         (read_md_files): ...this new function.
14892
14893 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14894
14895         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
14896         (unread_char): Decrement read_md_lineno after putting back '\n'.
14897         * read-md.c (fatal_with_file_and_line): Push back any characters
14898         that we decide not to add to the context.
14899         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
14900         fatal_expected_char in cases where '/' ends a line (for example).
14901         (read_name): Don't increment read_md_lineno here.
14902         (read_escape): Likewise.
14903         (read_quoted_string): Likewise.
14904         (read_braced_string): Likewise.
14905
14906 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14907
14908         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
14909         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
14910         * genconstants.c: Include read-md.h.
14911         * read-rtl.c (md_constants): Move to read-md.c.
14912         (md_name): Move to read-md.h.
14913         (initialize_iterators): Use leading_string_hash instead of def_hash
14914         and leading_string_eq_p instead of def_name_eq_p.
14915         (read_name): Move to read-md.c.
14916         (def_hash, def_name_eq_p): Delete.
14917         (read_constants, traverse_md_constants): Move to read-md.c.
14918         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
14919         * read-md.h: Include hashtab.h.
14920         (md_name): Moved from read-rtl.c.
14921         (md_constant): Moved from read-md.h.
14922         (leading_string_hash, leading_string_eq_p, read_name)
14923         (read_constants, traverse_md_constants): Declare.
14924         * read-md.c (md_constants): Moved from read-rtl.c.
14925         (leading_string_hash, leading_string_eq_p): New functions.
14926         (read_name, read_constants, traverse_md_constants): Moved from
14927         read-rtl.c.
14928
14929 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14930
14931         * read-rtl.c (md_name): New structure.
14932         (read_name): Take an md_name instead of a buffer pointer.
14933         Use the "string" field instead of strcpy when expanding constants.
14934         (read_constants): Remove the tmp_char argument.  Update the calls
14935         to read_name, using two local name buffers instead of the tmp_char
14936         argument.  Merge the constant-creation code.
14937         (read_conditions): Remove the tmp_char argument.  Update the calls
14938         to read_name, using a local name buffer instead of the tmp_char
14939         argument.
14940         (read_mapping): Replace tmp_char variable with a local name buffer.
14941         Update the calls to read_name.
14942         (read_rtx_1): Likewise.  Update the calls to read_constants and
14943         read_conditions.
14944
14945 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14946
14947         * Makefile.in (build/read-md.o): Depend on errors.h.
14948         * read-md.h (error_with_line): Declare.
14949         * read-md.c: Include errors.h.
14950         (message_with_line_1): New function, extracted from...
14951         (message_with_line): ...here.
14952         (error_with_line): New function.
14953         * genattrtab.c: If a call to message_with_line is followed by
14954         "have_error = 1;", replace both statements with a call to
14955         error_with_line.
14956         * genoutput.c: Likewise.
14957         * genpreds.c: Likewise.
14958         * genrecog.c: If a call to message_with_line is followed by
14959         "error_count++;", replace both statements with a call to
14960         error_with_line.
14961         (errorcount): Delete.
14962         (main): Don't check it.
14963         * gensupport.c: If a call to message_with_line is followed by
14964         "errors = 1;", replace both statements with a call to error_with_line.
14965         (errors): Delete.
14966         (process_define_cond_exec): Check have_error instead of errors.
14967         (init_md_reader_args_cb): Likewise.  Don't set errors.
14968
14969 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14970
14971         * read-md.h (read_md_file): Declare.
14972         (read_char, unread_char): New functions.
14973         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14974         (read_quoted_string, read_string): Remove FILE * argument.
14975         * read-md.c (read_md_file): New variable.
14976         (read_md_filename, read_md_lineno): Update comments and remove
14977         unnecessary initialization.
14978         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14979         (read_escape, read_quoted_string, read_braced_string, read_string):
14980         Remove FILE * argument.  Update calls accordingly, using read_char
14981         and unread_char instead of getc and ungetc.
14982         * rtl.h (read_rtx): Remove FILE * argument.
14983         * read-rtl.c (iterator_group): Remove FILE * argument from
14984         "find_builtin".
14985         (iterator_traverse_data): Remove "infile" field.
14986         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
14987         (add_mapping, read_name, read_constants, read_conditions)
14988         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
14989         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
14990         Remove file arguments from all calls, using read_char and unread_char
14991         instead of getc and ungetc.
14992         * gensupport.c (process_include): Preserve read_md_file around
14993         the include.  Set read_md_file to the handle of the included file.
14994         Update call to read_rtx.
14995         (init_md_reader_args_cb): Set read_md_file to the handle of the file
14996         and remove local FILE *.  Update calls to read_rtx.
14997
14998 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14999
15000         * read-md.h (read_rtx_lineno): Rename to...
15001         (read_md_lineno): ...this.
15002         (read_rtx_filename): Rename to...
15003         (read_md_filename): ...this.
15004         (copy_rtx_ptr_loc): Rename to...
15005         (copy_md_ptr_loc): ...this.
15006         (print_rtx_ptr_loc): Rename to...
15007         (print_md_ptr_loc): ...this.
15008         * read-md.c: Likewise.  Update references after renaming.
15009         (string_obstack): Replace RTL with MD in comment.
15010         (set_rtx_ptr_loc): Rename to...
15011         (set_md_ptr_loc): ...this.
15012         (get_rtx_ptr_loc): Rename to...
15013         (get_md_ptr_loc): ...this.
15014         * genconditions.c: Update references after renaming.
15015         * genemit.c: Likewise.
15016         * genoutput.c: Likewise.
15017         * genpreds.c: Likewise.
15018         * gensupport.c: Likewise.
15019         * read-rtl.c: Likewise.
15020
15021 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15022
15023         * Makefile.in (READ_MD_H): New variable.
15024         (BUILD_RTL): Add build/read-md.o.
15025         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15026         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15027         (build/genattrtab.o, build/genconditions.o build/genemit.o)
15028         (build/genextract.o, build/genflags.o, build/genoutput.o)
15029         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15030         (build/read-md.o): New rule.
15031         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15032         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15033         * coretypes.h: ...here.
15034         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15035         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15036         * genattr.c: Include read-md.h.
15037         * genattrtab.c: Likewise.
15038         * genconditions.c: Likewise.
15039         * genemit.c: Likewise.
15040         * genextract.c: Likewise.
15041         * genflags.c: Likewise.
15042         * genoutput.c: Likewise.
15043         * genpreds.c: Likewise.
15044         * genrecog.c: Likewise.
15045         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15046         (join_c_conditions, print_c_condition, read_rtx_filename)
15047         (read_rtx_lineno): Move to read-md.h.
15048         * read-rtl.c: Include read-md.h.
15049         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15050         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15051         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15052         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15053         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15054         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15055         (read_braced_string, read_string): Move to read-md.c.
15056         (read_rtx): Move some initialization to init_md_reader and call
15057         init_md_reader here.
15058         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15059         Move to read-md.h.
15060         * gensupport.c: Include read-md.h.
15061         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15062         * read-md.h, read-md.c: New files.
15063
15064 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
15065
15066         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15067         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15068         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15069         * config/moxie/moxie.c (moxie_function_value): Make static.
15070         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15071         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15072
15073 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15074
15075         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15076         * dbgcnt.def (tree_sra): New counter.
15077         * tree-sra.c: Include dbgcnt.h.
15078         (gate_intra_sra): Check tree_sra debug counter.
15079
15080 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15081
15082         PR tree-optimization/44258
15083         * tree-sra.c (build_access_subtree): Return false iff there is a
15084         partial overlap.
15085         (build_access_trees): Likewise.
15086         (analyze_all_variable_accesses): Disqualify candidates if
15087         build_access_trees returns true for them.
15088
15089 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
15090
15091         PR debug/41371
15092         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15093         tail-recurse into canonical node.  Fast-forward over
15094         non-canonical VALUEs.
15095
15096 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15097
15098         PR boostrap/44470
15099         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15100         (*addsi_1_zext) <TYPE_LEA>: Likewise.
15101         (add lea splitter): Likewise.
15102         (add_zext lea splitter): Likewise.
15103
15104 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
15105
15106         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15107
15108 2010-06-10  Jan Hubicka  <jh@suse.cz>
15109
15110         * df-problems.c (df_live_problem_data): Add live_bitmaps.
15111         (df_live_alloc): Initialize problem data and live_osbtacks.
15112         (df_live_finalize): Remove obstack, problem data; do not
15113         clear all bitmaps.
15114         (df_live_top_dump, df_live_bottom_dump): Do not dump old
15115         data when not allocated.
15116         (df_live_verify_solution_start): Do not allocate problem data.
15117         (df_live_verify_solution_end): Check if out is allocated.
15118         (struct df_md_problem_data): New structure.
15119         (df_md_alloc): Allocate problem data.
15120         (df_md_free): Free problem data; do not clear bitmaps.
15121
15122 2010-06-10  Jan Beulich  <jbeulich@novell.com>
15123
15124         PR bootstrap/37304
15125         * configure.ac: Replace $() with ${} when intending to expand
15126         variables rather than invoking commands.
15127         * configure: Re-generate.
15128
15129 2010-06-10  Jan Hubicka  <jh@suse.cz>
15130
15131         PR rtl-optimization/44460
15132         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15133         TYPE_NEEDS_CONSTRUCTING sanity check.
15134
15135 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
15136
15137         * doc/include/fdl.texi: Move to GFDL version 1.3.
15138
15139         * doc/cpp.texi: Move to GFDL version 1.3.
15140         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
15141         * doc/gccint.texi: Move to GFDL version 1.3.
15142         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
15143         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
15144         * doc/invoke.texi: Move to GFDL version 1.3.
15145
15146 2010-06-09  Jan Hubicka  <jh@suse.cz>
15147
15148         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15149         Break out from ...
15150         (propagate) ... here; swap the order.
15151
15152 2010-06-09  Jan Hubicka  <jh@suse.cz>
15153
15154         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15155         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15156         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15157         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15158
15159 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15160
15161         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15162         Do not the gather memory reference in the outer loop if the step
15163         is not a constant.
15164
15165 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15166
15167         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15168         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15169         8 to 4.  Minor change of the related comments.
15170
15171 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15172
15173         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15174         the scev analysis when the variable is not used outside the loop
15175         in a close phi node: call compute_overall_effect_of_inner_loop.
15176
15177 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15178
15179         * graphite-sese-to-poly.c (single_pred_cond): Renamed
15180         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
15181         (build_sese_conditions_before): Renamed call to single_pred_cond.
15182         (build_sese_conditions_after): Same.
15183
15184 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15185
15186         * graphite-poly.h: Fix comments and indentation.
15187         * graphite-sese-to-poly.c: Same.
15188         (build_sese_conditions_before): Compute stmt and gbb only when needed.
15189         * tree-chrec.c: Fix comments and indentation.
15190         (tree-ssa-loop-niter.c): Same.
15191
15192 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15193
15194         PR rtl-optimization/42461
15195         * dce.c (deletable_insn_p): Return true for const or pure calls again.
15196         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15197
15198 2010-06-09  Jan Hubicka  <jh@suse.cz>
15199
15200         * bitmap.c (bitmap_and): Walk array forward.
15201         (bitmap_and_compl_into): Likewise.
15202         (bitmap_xor): Likewise.
15203         (bitmap_xor_into):  Likewise.
15204         (bitmap_equal_p): Likewise.
15205         (bitmap_intersect_p): Likewise.
15206         (bitmap_intersect_compl_p): Likewise.
15207         (bitmap_ior_and_into): Likewise.
15208         (bitmap_elt_copy): Likewise.
15209         (bitmap_and_compl): Likewise.
15210         (bitmap_elt_ior): Likewise.
15211
15212 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
15213
15214         * opts-common.c (prune_options): Ensure replacement argv array
15215         is correctly terminated by a NULL entry.
15216
15217 2010-06-09  Jan Hubicka  <jh@suse.cz>
15218
15219         * cgraph.h (varpool_first_static_initializer,
15220         varpool_next_static_initializer): Make checking only when
15221         checking enabled.
15222         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15223         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15224         gcc_assert to gcc_checking_assert.
15225         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15226         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15227         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15228         op_iter_init_phiuse, op_iter_init_phidef,
15229         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15230         gcc_checking_assert.
15231         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15232         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15233         partition_is_global, live_on_entry, live_on_exit,
15234         live_merge_and_clear): Likewise.
15235         * system.h (gcc_checking_assert): New macro.
15236         * gimple.h (set_bb_seq): Use gcc_checking_assert.
15237
15238 2010-06-09  Jason Merrill  <jason@redhat.com>
15239
15240         * Makefile.in (TAGS): Collect tags info from c-family.
15241
15242 2010-06-09  Jan Hubicka  <jh@suse.cz>
15243
15244         * gimple.h (gcc_gimple_checking_assert): New macro.
15245         (gimple_set_def_ops, gimple_set_use_ops,
15246         gimple_set_vuse, gimple_set_vdef,
15247         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15248         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15249         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15250         gimple_asm_output_op, gimple_asm_output_op_ptr,
15251         gimple_asm_set_output_op, gimple_asm_clobber_op,
15252         gimple_asm_set_clobber_op, gimple_asm_label_op,
15253         gimple_asm_set_label_op, gimple_try_set_kind,
15254         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15255         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15256         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15257         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15258         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15259         gimple_omp_for_set_initial, gimple_omp_for_final,
15260         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15261         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15262         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15263         conditional with ENABLE_GIMPLE_CHECKING.
15264         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15265
15266 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
15267
15268         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15269         (get_computation_cost_at): Use it.
15270         (determine_use_iv_cost_condition): Likewise.
15271         (determine_iv_cost): Likewise.
15272
15273 2010-06-09  Richard Guenther  <rguenther@suse.de>
15274
15275         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15276         replace constants.
15277
15278 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
15279
15280         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15281
15282 2010-06-09  Martin Jambor  <mjambor@suse.cz>
15283
15284         PR tree-optimization/44423
15285         * tree-sra.c (dump_access): Dump also grp_assignment_read.
15286         (analyze_access_subtree): Pass negative allow_replacements to children
15287         if the current type is scalar.
15288
15289 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15290
15291         PR testsuite/42843
15292         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15293         * doc/plugins.texi (Plugin license check): Update information
15294         on type of plugin_is_GPL_compatible.
15295         * Makefile.in (PLUGINCC): Define as $(COMPILER).
15296         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15297
15298 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15299
15300         * config/arm/arm.c (thumb2_reorg): New function.
15301         (arm_reorg): Call it.
15302         * config/arm/thumb2.md (define_peephole2 for flag clobbering
15303         arithmetic operations): Delete.
15304
15305 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
15306
15307         PR target/44067
15308         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15309         e500v2 target.
15310
15311 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15312
15313         PR plugins/44459
15314         * gcc-plugin.h: Encapsulate all declarations in extern "C".
15315
15316 2010-06-08  Jan Hubicka  <jh@suse.cz>
15317
15318         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15319         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15320
15321 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
15322
15323         PR tree-optimization/39874
15324         PR middle-end/28685
15325         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15326         Declare.
15327         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15328         same_bool_result_p): New.
15329         (and_var_with_comparison, and_var_with_comparison_1,
15330         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15331         (or_var_with_comparison, or_var_with_comparison_1,
15332         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15333         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15334         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15335         of combine_comparisons.
15336         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15337
15338 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
15339
15340         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15341         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15342         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15343         pdp11_function_value_regno_p): New functions.
15344         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15345         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15346
15347 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
15348
15349         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15350         Thumb-2 in the MINUS case.
15351
15352 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15353
15354         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15355
15356         * doc/gty.texi (GTY Options): Document typed GC allocation and
15357         variable_size GTY option.
15358
15359         * ggc-internal.h: New.
15360
15361         * ggc.h: Update copyright year.
15362         (digit_string): Move to stringpool.c.
15363         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15364         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15365         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15366         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15367         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15368         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15369         (ggc_force_collect, ggc_get_size, ggc_statistics)
15370         (ggc_print_common_statistics): Move to ggc-internal.h.
15371         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15372         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15373         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15374         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15375         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15376         (ggc_alloc_zone_pass_stat): Remove.
15377         (ggc_internal_alloc_stat, ggc_internal_alloc)
15378         (ggc_internal_cleared_alloc_stat): New.
15379         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15380         (ggc_internal_vec_alloc_stat)
15381         (ggc_internal_cleared_vec_alloc_stat)
15382         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15383         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15384         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15385         (ggc_cleared_alloc_ptr_array_two_args): New.
15386         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15387         (ggc_splay_alloc): Change the type of the first argument to
15388         enum gt_types_enum.
15389         (ggc_alloc_string): Make macro.
15390         (ggc_alloc_string_stat): New.
15391         (ggc_strdup): Redefine.
15392         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15393         (ggc_alloc_rtvec_sized): New.
15394         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15395         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15396         (ggc_internal_cleared_alloc_zone_stat)
15397         (ggc_internal_zone_alloc_stat)
15398         (ggc_internal_zone_cleared_alloc_stat)
15399         (ggc_internal_zone_vec_alloc_stat)
15400         (ggc_alloc_zone_rtx_def_stat)
15401         (ggc_alloc_zone_tree_node_stat)
15402         (ggc_alloc_zone_cleared_tree_node_stat)
15403         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15404
15405         * ggc-common.c: Include ggc-internal.h.
15406         (ggc_internal_cleared_alloc_stat): Rename from
15407         ggc_alloc_cleared_stat.
15408         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15409         (ggc_calloc): Remove.
15410         (ggc_cleared_alloc_htab_ignore_args): New.
15411         (ggc_cleared_alloc_ptr_array_two_args): New.
15412         (ggc_splay_alloc): Add obj_type parameter.
15413         (init_ggc_heuristics): Formatting fixes.
15414
15415         * ggc-none.c: Update copyright year.
15416         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15417         (ggc_alloc_cleared_stat): Rename to
15418         ggc_internal_cleared_alloc_stat.
15419         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15420
15421         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15422         Remove references to ggc_alloc in comments.
15423         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15424         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15425         (new_ggc_zone, destroy_ggc_zone): Remove.
15426         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15427
15428         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15429         ggc_alloc in comments.
15430         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15431         (ggc_internal_alloc_zone_pass_stat): New.
15432         (ggc_internal_cleared_alloc_zone_stat): New.
15433         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15434         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15435         (new_ggc_zone, destroy_ggc_zone): Remove.
15436
15437         * stringpool.c: Update copyright year.  Include ggc-internal.h
15438         (digit_vector): Make static.
15439         (digit_string): Moved from ggc.h.
15440         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15441         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15442
15443         * Makefile.in (GGC_INTERNAL_H): New.
15444         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15445         $(GGC_INTERNAL_H) to dependencies.
15446
15447         * gentype.c: Update copyright year.
15448         (walk_type): Accept variable_size GTY option.
15449         (USED_BY_TYPED_GC_P): New macro.
15450         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15451         whitespace at the end of strings.
15452         (get_type_specifier, variable_size_p): New functions.
15453         (alloc_quantity, alloc_zone): New enums.
15454         (write_typed_alloc_def): New function.
15455         (write_typed_struct_alloc_def): Likewise.
15456         (write_typed_typed_typedef_alloc_def): Likewise.
15457         (write_typed_alloc_defns): Likewise.
15458         (output_typename, write_splay_tree_allocator_def): Likewise.
15459         (write_splay_tree_allocators): Likewise.
15460         (main): Call write_typed_alloc_defns and
15461         write_splay_tree_allocators.
15462
15463         * lto-streamer.h (lto_file_decl_data_ptr): New.
15464
15465         * passes.c (order): Define using cgraph_node_ptr.
15466
15467         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15468         ht_identifier_ptr.
15469
15470         * gimple.h (union gimple_statement_d): Likewise.
15471
15472         * rtl.h (struct rtx_def): Likewise.
15473         (struct rtvec_def): Likewise.
15474
15475         * tree.h (union tree_node): Likewise.
15476
15477         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15478
15479         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15480
15481         * tree-scalar-evolution.c (scev_initialize): Likewise.
15482
15483         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15484
15485         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15486
15487         * omp-low.c (lower_omp_critical): Likewise.
15488
15489         * bitmap.h (struct bitmap_head_def): Update comment to not
15490         reference ggc_alloc.
15491
15492         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15493
15494         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15495
15496         * ipa-prop.c (duplicate_ggc_array): Rename to
15497         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15498         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15499
15500         * gimple.c (gimple_alloc_stat): Use
15501         ggc_alloc_cleared_gimple_statement_d_stat.
15502
15503         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15504
15505         * tree.c (make_node_stat): Use
15506         ggc_alloc_zone_cleared_tree_node_stat.
15507         (make_tree_vec_stat): Likewise.
15508         (build_vl_exp_stat): Likewise.
15509         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15510         (make_tree_binfo_stat): Likewise.
15511         (tree_cons_stat): Likewise.
15512
15513         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15514         (shallow_copy_rtx_stat): Likewise.
15515         (make_node_stat): Likewise.
15516
15517         * lto-symtab.c: Fix comment.
15518
15519         * tree-cfg.c (create_bb): Update comment to not reference
15520         ggc_alloc_cleared.
15521         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15522
15523         * varpool.c (varpool_node): Use typed GC allocation.
15524         (varpool_extra_name_alias): Likewise.
15525
15526         * varasm.c (emutls_decl): Likewise.
15527         (get_unnamed_section): Likewise.
15528         (get_noswitch_section): Likewise.
15529         (get_section): Likewise.
15530         (get_block_for_section): Likewise.
15531         (build_constant_desc): Likewise.
15532         (create_constant_pool): Likewise.
15533         (force_const_mem): Likewise.
15534
15535         * tree.c (build_vl_exp_stat): Likewise.
15536         (build_real): Likewise.
15537         (build_string): Likewise.
15538         (decl_debug_expr_insert): Likewise.
15539         (decl_value_expr_insert): Likewise.
15540         (type_hash_add): Likewise.
15541         (build_omp_clause): Likewise.
15542
15543         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15544
15545         * tree-ssa.c (init_tree_ssa): Likewise.
15546
15547         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15548
15549         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15550
15551         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15552
15553         * tree-ssa-alias.c (get_ptr_info): Likewise.
15554
15555         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15556
15557         * tree-phinodes.c (allocate_phi_node): Likewise.
15558
15559         * tree-iterator.c (tsi_link_before): Likewise.
15560         (tsi_link_after): Likewise.
15561
15562         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15563
15564         * tree-dfa.c (create_var_ann): Likewise.
15565
15566         * tree-cfg.c (create_bb): Likewise.
15567
15568         * toplev.c (alloc_for_identifier_to_locale): Likewise.
15569         (general_init): Likewise.
15570
15571         * stringpool.c (stringpool_ggc_alloc): Likewise.
15572         (gt_pch_save_stringpool): Likewise.
15573
15574         * sese.c (if_region_set_false_region): Likewise.
15575
15576         * passes.c (do_per_function_toporder): Likewise.
15577
15578         * optabs.c (set_optab_libfunc): Likewise.
15579         (set_conv_libfunc): Likewise.
15580
15581         * lto-symtab.c (lto_symtab_register_decl): Likewise.
15582
15583         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15584         (input_eh_region): Likewise.
15585         (input_eh_lp): Likewise.
15586         (make_new_block): Likewise.
15587         (unpack_ts_real_cst_value_fields): Likewise.
15588
15589         * lto-section-in.c (lto_new_in_decl_state): Likewise.
15590
15591         * lto-cgraph.c (input_node_opt_summary): Likewise.
15592
15593         * loop-init.c (loop_optimizer_init): Likewise.
15594
15595         * lambda.h (lambda_vector_new): Likewise.
15596
15597         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15598
15599         * ira.c (update_equiv_regs): Likewise.
15600
15601         * ipa.c (cgraph_node_set_new): Likewise.
15602         (cgraph_node_set_add): Likewise.
15603         (varpool_node_set_new): Likewise.
15604         (varpool_node_set_add): Likewise.
15605
15606         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15607         (duplicate_ipa_jump_func_array): Likewise.
15608         (ipa_read_node_info): Likewise.
15609
15610         * ipa-cp.c (ipcp_create_replace_map): Likewise.
15611
15612         * integrate.c (get_hard_reg_initial_val): Likewise.
15613
15614         * gimple.c (gimple_alloc_stat): Likewise.
15615         (gimple_build_omp_for): Likewise.
15616         (gimple_seq_alloc): Likewise.
15617         (gimple_copy): Likewise.
15618
15619         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15620         (gsi_insert_after_without_update): Likewise.
15621
15622         * function.c (add_frame_space): Likewise.
15623         (insert_temp_slot_address): Likewise.
15624         (assign_stack_temp_for_type): Likewise.
15625         (allocate_struct_function): Likewise.
15626         (types_used_by_var_decl_insert): Likewise.
15627
15628         * except.c (init_eh_for_function): Likewise.
15629         (gen_eh_region): Likewise.
15630         (gen_eh_region_catch): Likewise.
15631         (gen_eh_landing_pad): Likewise.
15632         (add_call_site): Likewise.
15633
15634         * emit-rtl.c (get_mem_attrs): Likewise.
15635         (get_reg_attrs): Likewise.
15636         (start_sequence): Likewise.
15637         (init_emit): Likewise.
15638
15639         * dwarf2out.c (new_cfi): Likewise.
15640         (queue_reg_save): Likewise.
15641         (dwarf2out_frame_init): Likewise.
15642         (new_loc_descr): Likewise.
15643         (find_AT_string): Likewise.
15644         (new_die): Likewise.
15645         (add_var_loc_to_decl): Likewise.
15646         (clone_die): Likewise.
15647         (clone_as_declaration): Likewise.
15648         (break_out_comdat_types): Likewise.
15649         (new_loc_list): Likewise.
15650         (loc_descriptor): Likewise.
15651         (add_loc_descr_to_each): Likewise.
15652         (add_const_value_attribute): Likewise.
15653         (tree_add_const_value_attribute): Likewise.
15654         (add_comp_dir_attribute): Likewise.
15655         (add_name_and_src_coords_attributes): Likewise.
15656         (lookup_filename): Likewise.
15657         (store_vcall_insn): Likewise.
15658         (dwarf2out_init): Likewise.
15659
15660         * dbxout.c (dbxout_init): Likewise.
15661
15662         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15663
15664         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15665
15666         * config/score/score7.c (score7_output_external): Likewise.
15667
15668         * config/score/score3.c (score3_output_external): Likewise.
15669
15670         * config/s390/s390.c (s390_init_machine_status): Likewise.
15671
15672         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15673         (rs6000_init_machine_status): Likewise.
15674         (output_toc): Likewise.
15675
15676         * config/pa/pa.c (pa_init_machine_status): Likewise.
15677         (get_deferred_plabel): Likewise.
15678
15679         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15680
15681         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15682
15683         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15684
15685         * config/mep/mep.c (mep_init_machine_status): Likewise.
15686         (mep_note_pragma_flag): Likewise.
15687
15688         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15689
15690         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15691
15692         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15693
15694         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15695         (i386_pe_maybe_record_exported_symbol): Likewise.
15696
15697         * config/i386/i386.c (get_dllimport_decl): Likewise.
15698         (ix86_init_machine_status): Likewise.
15699         (assign_386_stack_local): Likewise.
15700
15701         * config/frv/frv.c (frv_init_machine_status): Likewise.
15702
15703         * config/darwin.c (machopic_indirection_name): Likewise.
15704
15705         * config/cris/cris.c (cris_init_machine_status): Likewise.
15706
15707         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15708
15709         * config/avr/avr.c (avr_init_machine_status): Likewise.
15710
15711         * config/arm/arm.c (arm_init_machine_status): Likewise.
15712
15713         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15714         (alpha_need_linkage): Likewise.
15715         (alpha_use_linkage): Likewise.
15716
15717         * cgraph.c (cgraph_allocate_node): Likewise.
15718         (cgraph_create_edge_1): Likewise.
15719         (cgraph_create_indirect_edge): Likewise.
15720         (cgraph_add_asm_node): Likewise.
15721
15722         * cfgrtl.c (init_rtl_bb_info): Likewise.
15723
15724         * cfgloop.c (alloc_loop): Likewise.
15725         (rescan_loop_exit): Likewise.
15726
15727         * cfg.c (init_flow): Likewise.
15728         (alloc_block): Likewise.
15729         (unchecked_make_edge): Likewise.
15730
15731         * c-parser.c (c_parse_init): Likewise.
15732         (c_parse_file): Likewise.
15733
15734         * c-decl.c (bind): Likewise.
15735         (record_inline_static): Likewise.
15736         (push_scope): Likewise.
15737         (make_label): Likewise.
15738         (lookup_label_for_goto): Likewise.
15739         (finish_struct): Likewise.
15740         (finish_enum): Likewise.
15741         (c_push_function_context): Likewise.
15742
15743         * bitmap.c (bitmap_element_allocate): Likewise.
15744         (bitmap_gc_alloc_stat): Likewise.
15745
15746         * alias.c (record_alias_subset): Likewise.
15747         (init_alias_analysis): Likewise.
15748
15749 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
15750
15751         * fold-const.c (fold_comparison): Remove redundant parenthesis.
15752         * tree-inline.c (expand_call_inline): Pass translated return value of
15753         cgraph_inline_failed_string to diagnostic function.
15754
15755 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
15756             Shujing Zhao  <pearly.zhao@oracle.com>
15757
15758         PR c/37724
15759         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
15760         implicit bad conversions is initialization.
15761         (error_init): Use gmsgid instead of msgid for argument name and change
15762         the call for error.
15763         (pedwarn_init): Use gmsgid instead of msgid for argument name and
15764         change the call for pedwarn.
15765         (warning_init): Use gmsgid instead of msgid for argument name and
15766         change the call for warning.
15767
15768 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
15769
15770         * config/mips/mips-protos.h (mips_print_operand): Delete.
15771         (mips_print_operand_address): Delete.
15772         * config/mips/mips.h (mips_print_operand_punct): Delete.
15773         (PRINT_OPERAND): Delete.
15774         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15775         (PRINT_OPERAND_ADDRESS): Delete.
15776         * config/mips/mips.c (mips_print_operand_punct): Make static.
15777         (mips_print_operand_address): Make static.
15778         (mips_print_operand): Make static.  Call
15779         mips_print_operand_punct_valid_p.
15780         (mips_print_operand_punct_valid_p): New function.
15781         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15782         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15783
15784 2010-06-07  Jan Hubicka  <jh@suse.cz>
15785
15786         PR middle-end/44454
15787         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
15788         are allocated.
15789
15790 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15791
15792         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
15793         name of RECORD.
15794
15795 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15796
15797         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15798         attributes): Document gas.
15799
15800 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
15801
15802         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
15803         <TYPE_LEA>: Split instruction.
15804         <default>: Remove alternative 2 handling.
15805         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
15806         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
15807         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
15808
15809         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
15810         (ashift_zext lea splitter): Use DImode for multiplication.
15811
15812         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
15813         to generate addition.
15814
15815 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
15816
15817         * common.opt (fira-verbose): Use Var.
15818         (fpcc-struct-return): Use Init instead of VarExists.
15819         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
15820         toplev.c.
15821         * flags.h (flag_signed_char, flag_short_enums,
15822         flag_pcc_struct_return, flag_ira_verbose,
15823         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
15824         * toplev.c (flag_detailed_statistics, flag_signed_char,
15825         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
15826         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
15827         * toplev.h (flag_crossjumping, flag_if_conversion,
15828         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
15829         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
15830         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
15831         flag_cprop_registers, time_report, flag_ira_loop_pressure,
15832         flag_ira_coalesce, flag_ira_move_spills,
15833         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
15834
15835 2010-06-07  Jan Hubicka  <jh@suse.cz>
15836
15837         * df-core.c (df_analyze_problem): Do verification after allocation.
15838
15839         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
15840         (df_lr_alloc): Initialize problem data; move bitmaps to
15841         lr_bitmaps obstack.
15842         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
15843         (df_lr_verify_solution_start): Do not initialize problem data;
15844         allocate bitmaps in lr_bitmaps.
15845         (df_lr_verify_solution_end): Do not free problem data.
15846
15847 2010-06-07  Jan Hubicka  <jh@suse.cz>
15848
15849         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
15850         if caller is noreturn.
15851         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
15852         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
15853         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
15854         * ipa-pure-const.c (check_decl): Add IPA parameter.
15855         (state_from_flags): New function.
15856         (better_state, worse_state): New functions.
15857         (check_call): When in IPA mode, do not care about callees.
15858         (check_load, check_store): Update.
15859         (check_ipa_load, check_ipa_store): New.
15860         (check_stmt): When in IPA mode, use IPA checkers.
15861         (analyze_function): Use state_from_flags.
15862         (propagate): Check indirect edges and references.
15863
15864 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
15865
15866         PR rtl-optimization/44404
15867         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
15868         of count_occurrences to see if it's safe to modify mem_insn.
15869
15870 2010-06-07  Richard Guenther  <rguenther@suse.de>
15871
15872         * gimplify.c (gimplify_cleanup_point_expr): For empty body
15873         and EH-only cleanup drop the cleanup instead of inserting it
15874         unconditionally.
15875
15876 2010-06-07  Ira Rosen  <irar@il.ibm.com>
15877
15878         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
15879         documentation.
15880         * targhooks.c (default_builtin_vectorization_cost): New function.
15881         * targhooks.h (default_builtin_vectorization_cost): Declare.
15882         * target.h (enum vect_cost_for_stmt): Define.
15883         (builtin_vectorization_cost): Change argument and comment.
15884         * tree-vectorizer.h: Remove cost model macros.
15885         * tree-vect-loop.c: Include target.h.
15886         (vect_get_cost): New function.
15887         (vect_estimate_min_profitable_iters): Replace cost model macros with
15888         calls to vect_get_cost.
15889         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
15890         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
15891         default implementation.
15892         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
15893         calls to target hook builtin_vectorization_cost.
15894         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
15895         Likewise.
15896         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
15897         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
15898         implementation to return costs.
15899         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15900         * config/spu/spu.h: Remove vectorizer cost model macros.
15901         * config/i386/i386.h: Likewise.
15902         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
15903         a call to target hook builtin_vectorization_cost.
15904
15905 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
15906
15907         PR target/44319
15908         * config/i386/i386.c (override_options): Turn zee pass on for level 2
15909         and above and defer till target is known.
15910         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
15911         turn off otherwise.
15912
15913 2010-05-25  Jan Hubicka  <jh@suse.cz>
15914
15915         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
15916         (df_compact_blocks): Likewise.
15917         * df.h (struct df): Turn hardware_regs_used,
15918         regular_block_artificial_uses, eh_block_artificial_uses,
15919         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
15920         bitmap_head.
15921         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
15922         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
15923         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
15924         df_scan_blocks, df_insn_delete, df_insn_rescan,
15925         df_insn_rescan_debug_internal, df_insn_rescan_all,
15926         df_process_deferred_rescans, df_process_deferred_rescans,
15927         df_notes_rescan, df_get_call_refs, df_get_call_refs,
15928         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
15929         df_record_entry_block_defs, df_record_exit_block_uses,
15930         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
15931         df_scan_verify): Update.
15932
15933 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
15934
15935         PR c++/44188
15936         * c-common.c (is_typedef_decl): Move this definition ...
15937         * tree.c (is_typedef_decl): ... here.
15938         (typdef_variant_p): Move definition here from cp/tree.c.
15939         * c-common.h (is_typedef_decl): Move this declaration ...
15940         * tree.h (is_typedef_decl): ... here.
15941         (typedef_variant_p): Move declaration here from cp/cp-tree.h
15942         * dwarf2out.c (is_naming_typedef_decl): New function.
15943         (gen_tagged_type_die): Split out of ...
15944         (gen_type_die_with_usage): ... this function. When an anonymous
15945         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15946         is emitted for the typedef.
15947         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15948         anonymous tagged types.
15949
15950 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15951
15952         PR c/20000
15953         * c-decl.c (grokdeclarator): Delete warning.
15954
15955 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15956
15957         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
15958         newly built CALL_EXPR.
15959         * tree-profile.c (tree_profiling): Don't profile functions produced
15960         for built-in stuff.
15961
15962 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
15963
15964         PR bootstrap/44427
15965         PR bootstrap/44428
15966         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
15967         endianness-independent.
15968
15969 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
15970
15971         * c-common.c: Move to c-family/.
15972         * c-common.def: Likewise.
15973         * c-common.h: Likewise.
15974         * c-cppbuiltin.c: Likewise.
15975         * c-dump.c: Likewise.
15976         * c-format.c: Likewise.
15977         * c-format.h : Likewise.
15978         * c-gimplify.c: Likewise.
15979         * c-lex.c: Likewise.
15980         * c-omp.c: Likewise.
15981         * c.opt: Likewise.
15982         * c-opts.c: Likewise.
15983         * c-pch.c: Likewise.
15984         * c-ppoutput.c: Likewise.
15985         * c-pragma.c: Likewise.
15986         * c-pragma.h: Likewise.
15987         * c-pretty-print.c: Likewise.
15988         * c-pretty-print.h: Likewise.
15989         * c-semantics.c: Likewise.
15990         * stub-objc.c: Likewise.
15991
15992         * gengtype.c (get_file_langdir): Special-case files in c-family/.
15993         (get_output_file_with_visibility): Fix name for c-common.h.
15994         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
15995
15996         * c-tree.h: Update include path for moved files.
15997         * c-lang.c: Likewise.
15998         * c-lang.h: Likewise.
15999         * c-parser.c: Likewise.
16000         * c-convert.c: Likewise.
16001         * c-decl.c: Likewise.
16002         * c-objc-common.c: Likewise.
16003         * configure.ac: Make sure c-family/ exists in the build directory.
16004         * configure: Regenerate.
16005         * Makefile.in: Update paths for moved files.  Regroup files per
16006         location and update dependencies.  Move generated_files down after
16007         ALL_GTFILES_H.
16008
16009         * config/spu/spu-c.c: Update paths for moved files.
16010         * config/mep/mep-pragma.c: Likewise.
16011         * config/darwin-c.c: Likewise.
16012         * config/i386/msformat-c.c: Likewise.
16013         * config/i386/i386-c.c: Likewise.
16014         * config/avr/avr-c.c: Likewise.
16015         * config/sol2-c.c: Likewise.
16016         * config/ia64/ia64-c.c: Likewise.
16017         * config/rs6000/rs6000-c.c: Likewise.
16018         * config/arm/arm.c: Likewise.
16019         * config/arm/arm-c.c: Likewise.
16020         * config/h8300/h8300.c: Likewise.
16021         * config/v850/v850-c.c: Likewise.
16022
16023         * config/t-darwin: Fix dependencies for moved files.
16024         * config/t-sol2: Fix dependencies for moved files.
16025         * config/mep/t-mep: Fix dependencies for moved files.
16026         * config/ia64/t-ia64: Fix dependencies for moved files.
16027         * config/rs6000/t-rs6000: Fix dependencies for moved files.
16028         * config/v850/t-v850: Fix dependencies for moved files.
16029         * config/v850/t-v850e: Fix dependencies for moved files.
16030
16031         * config/m32c/m32c-pragma.c
16032
16033         * po/exgettext: Look in c-family/ also.
16034
16035 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
16036
16037         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16038         (mark_control_dependent_edges_necessary): Call it instead of marking
16039         the last statement manually.
16040         (propagate_necessity): Likewise.
16041
16042 2010-06-05  Jan Hubicka  <jh@suse.cz>
16043
16044         * basic-block.h (compute_dominance_frontiers): Updated.
16045         (compute_idf): Likewise.
16046
16047         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16048         for dominance frontiers.
16049         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16050         (insert_updated_phi_nodes_for): Likewise.
16051         (update_ssa): Likewise.
16052         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16053         (compute_dominance_frontiers): Likewise.
16054         (compute_idf): Likewise.
16055         * df-problems.c (df_md_local_compute): Likewise.
16056
16057 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
16058
16059         * target.h (struct gcc_target): Add memory_move_cost field.
16060         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16061         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16062         * targhooks.c (default_memory_move_cost): New function.
16063         * targhooks.h (default_memory_move_cost): Declare function.
16064         * reload.h (memory_move_cost): Declare.
16065         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16066         * reginfo.c (memory_move_cost): New function.
16067         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16068         * ira.h (ira_memory_move_cost): Update comment.
16069         * ira.c (ira_memory_move_cost): Update comment.
16070         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16071         with memory_move_cost.
16072         * postreload.c (reload_cse_simplify_set): (Ditto.).
16073         * reload1.c (choose_reload_regs): (Ditto.).
16074         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16075         (MEMORY_MOVE_COST):  Revise documentation.
16076
16077         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16078         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16079         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16080         type of 'in' argument to bool.
16081         (TARGET_MEMORY_MOVE_COST): Define.
16082
16083 2010-06-05  Jan Hubicka  <jh@suse.cz>
16084
16085         * ipa-pure-const.c (propagate): Fix typo in handling of functions
16086         that cannot return.  Be more careful when merging the results with
16087         previously known ones.
16088
16089 2010-06-05  Matthias Klose  <doko@ubuntu.com>
16090
16091         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16092         function to add the -iplugindir option.
16093         (find_plugindir_spec_function): Add new declaration and function.
16094         (static_spec_func): Use it for "find-plugindir".
16095
16096 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
16097
16098         PR c++/44361
16099         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16100         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16101         statement expression.
16102
16103 2010-06-05  Jan Hubicka  <jh@suse.cz>
16104
16105         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16106         (df_rd_problem_data): Convert sparse_invalidated_by_call,
16107         dense_invalidated_by_call to bitmap head.
16108         (df_rd_alloc, df_rd_bb_local_compute_process_def,
16109         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16110         df_rd_start_dump, df_lr_verify_transfer_functions,
16111         df_live_verify_transfer_functions, df_chain_create_bb,
16112         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16113         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16114         df_simulate_one_insn_forwards, df_md_alloc,
16115         df_md_bb_local_compute_process_def,
16116         df_md_bb_local_compute_process_def, df_md_local_compute,
16117         df_md_transfer_function df_md_free): Update.
16118
16119 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
16120
16121         PR c/44322
16122         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16123         target type for ADDR_EXPR; require no changes to qualifiers except
16124         for function types.
16125         * c-tree.h (c_build_type_variant): Remove.
16126
16127 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16128
16129         * genautomata.c (get_excl_set): Do work per element, not per char.
16130         (check_presence_pattern_sets): Similar.
16131         (check_absence_pattern_sets): Similar.
16132
16133 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16134
16135         * genautomata.c (curr_state_pass_num): Delete.
16136         (min_issue_delay_pass_states): Delete.
16137         (min_issue_delay): Delete.
16138         (initiate_min_issue_delay_pass_states): Delete.
16139         (output_min_issue_delay_table): Compute min_issue_delay_vect
16140         using a breadth-first search variant.
16141         (output_tables): Don't call initiate_min_issue_delay_pass_states.
16142
16143 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16144
16145         PR boostrap/44421
16146         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16147         (df_byte_lr_bb_local_compute): Likewise.
16148
16149 2010-06-03  Jason Merrill  <jason@redhat.com>
16150
16151         Implement noexcept operator (5.3.7)
16152         * c-common.c (c_common_reswords): Add noexcept.
16153         * c-common.h (enum rid): Add RID_NOEXCEPT.
16154
16155 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
16156
16157         * config/darwin-driver.c (darwin_default_min_version): Use
16158         GCC-specific formats in diagnostics.
16159         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16160         diagnostics.
16161         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16162         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16163         eval_spec_function, handle_braces, process_brace_body, main,
16164         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16165         getenv_spec_function, compare_version_strings,
16166         version_compare_spec_function): Use GCC-specific formats in
16167         diagnostics.
16168
16169 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16170
16171         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16172         that operand 0 and operand 1 are equal.
16173         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16174         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16175         and operand 1 are equal.
16176         <default>: Ditto.  Remove ??? comment.
16177         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16178         and operand 1 are equal.
16179         <default>: Ditto.  Remove ??? comment.
16180         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16181         are equal.
16182         (*add<mode>_4) <default>: Ditto.
16183         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16184
16185 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
16186
16187         * config/i386/i386-protos.h (ix86_print_operand): Declare.
16188         * config/i386/i386.c (ix86_print_operand): Make non-static.
16189         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16190         * output.h (output_operand): Declare.
16191         * final.c (output_operand): Make non-static.
16192
16193 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
16194
16195         PR rtl-optimization/44013
16196         * sched-deps.c (add_dependence_list_and_free): Don't free lists
16197         when processing debug insns.
16198
16199         PR debug/41371
16200         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16201         recursing.  Check that recursion is bounded.  Rename inner var
16202         to avoid hiding incoming argument.
16203
16204 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16205
16206         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16207         operands[2] == 255.
16208         (*addqi_3): Ditto.
16209         (*addqi_4): Ditto.
16210         (*addqi_5): Ditto.
16211         (*addqi_ext_1_rex64): Ditto.
16212         (*addqi_ext_1): Ditto.
16213
16214         (*addqi_4): Check for incdec_operand in QImode.
16215
16216         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16217         using SWI mode iterator.
16218         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16219         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16220         mode iterator.
16221         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16222         using SWI mode iterator.
16223
16224 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16225
16226         PR c/25880
16227         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16228         * c-format.c (gcc_diag_flag_specs): Add hash.
16229         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16230         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16231         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16232         pp_c_cv_qualifiers. Handle qualifiers spelling here.
16233         (pp_c_type_qualifier_list): Call the function above.
16234         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16235         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16236         (WARN_FOR_QUALIFIERS): New macro.
16237         (convert_for_assignment): Use it.
16238
16239 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
16240
16241         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16242
16243 2010-06-04  Jan Hubicka  <jh@suse.cz>
16244
16245         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16246         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16247         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16248         DF_BYTE_LR_OUT): Update for embedded bitmaps.
16249         * fwprop.c (single_def_use_enter_block): Likewise.
16250         * ddg.c (create_ddg_dep_from_intra_loop_link,
16251         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16252         * loop-iv.c (latch_dominating_def): Likewise.
16253         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16254         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16255         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16256         df_rd_transfer_function, df_rd_top_dump,
16257         df_rd_bottom_dump): Update.
16258         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16259         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16260         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16261         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16262         df_lr_verify_solution_start, df_lr_verify_solution_end,
16263         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16264         df_live_free_bb_info, df_live_alloc, df_live_reset,
16265         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16266         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16267         df_live_verify_solution_start, df_live_verify_solution_end,
16268         df_live_verify_transfer_functions, df_chain_create_bb,
16269         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16270         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16271         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16272         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16273         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16274         df_byte_lr_transfer_function, df_byte_lr_top_dump,
16275         df_byte_lr_bottom_dump, df_create_unused_note,
16276         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16277         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16278         df_md_transfer_function, df_md_init, df_md_confluence_0,
16279         df_md_confluence_n,
16280         df_md_top_dump, df_md_bottom_dump): Update.
16281         (struct df_lr_problem_data): Embedd bitmap headers.
16282
16283 2010-06-04  Jan Hubicka  <jh@suse.cz>
16284
16285         * dce.c (dce_process_block): Do not re-scan already marked
16286         instructions.
16287
16288 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16289
16290         PR rtl-optimization/39871
16291         PR rtl-optimization/40615
16292         PR rtl-optimization/42500
16293         PR rtl-optimization/42502
16294         * ira.c (init_reg_equiv_memory_loc: New function.
16295         (ira): Call it twice.
16296         * reload.h (calculate_elim_costs_all_insns): Declare.
16297         * ira-costs.c: Include "reload.h".
16298         (regno_equiv_gains): New static variable.
16299         (init_costs): Allocate it.
16300         (finish_costs): Free it.
16301         (ira_costs): Call calculate_elim_costs_all_insns.
16302         (find_costs_and_classes): Take estimated elimination costs
16303         into account.
16304         (ira_adjust_equiv_reg_cost): New function.
16305         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16306         * reload1.c (init_eliminable_invariants, free_reg_equiv,
16307         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16308         (elim_bb): New static variable.
16309         (reload): Move code out of here into init_eliminable_invariants and
16310         free_reg_equiv.  Call them.
16311         (calculate_elim_costs_all_insns): New function.
16312         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
16313         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
16314         but call note_reg_elim_costly if we turned a valid memory address
16315         into an invalid one.
16316         * Makefile.in (ira-costs.o): Depend on reload.h.
16317
16318 2010-06-04  Julian Brown  <julian@codesourcery.com>
16319
16320         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16321         for pool ranges.
16322
16323 2010-06-04  Richard Guenther  <rguenther@suse.de>
16324
16325         PR lto/41584
16326         * cgraph.h (struct varpool_node): Add lto_file_data field.
16327         * lto-cgraph.c (input_varpool_node): Initialize it.
16328
16329 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16330
16331         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16332         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16333         predicate in "type" attribute calculation.
16334         (*addsi_1_zext): Ditto.
16335         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16336         (*addsi_2_zext): Ditto.
16337         (*add<mode>_3): Ditto.
16338         (*addsi_3_zext): Ditto.
16339         (*add<mode>_5): Ditto.
16340
16341 2010-06-03  Jan Hubicka  <jh@suse.cz>
16342
16343         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16344         of bitmap_bit_p.
16345         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16346
16347 2010-06-03  Jan Hubicka  <jh@suse.cz>
16348
16349         * df-problems.c (df_create_unused_note, df_note_bb_compute):
16350         micro-optimize the checks when to add new note.
16351
16352 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
16353
16354         * final.c (output_asm_insn): Call
16355         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
16356         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
16357         (output_address): Call targetm.asm_out.print_operand_address.
16358         Update comments.
16359         * target.h (struct gcc_target): Add print_operand,
16360         print_operand_address, and print_operand_punct_valid_p fields.
16361         * targhooks.h (default_print_operand): Declare.
16362         (default_print_operand_address): Declare.
16363         (default_print_operand_punct_valid_p): Declare.
16364         * targhooks.c (default_print_operand): Define.
16365         (default_print_operand_address): Define.
16366         (default_print_operand_punct_valid_p): Define.
16367         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16368         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16369         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16370         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16371         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16372         * vmsdbgout.c (addr_const_to_string): Update comment.
16373         * config/i386/i386.c (print_operand): Rename to...
16374         (ix86_print_operand): ...this.  Make static.
16375         (print_operand_address): Rename to...
16376         (ix86_print_operand_address): ...this.  Make static.  Call
16377         ix86_print_operand instead of PRINT_OPERAND.
16378         (ix86_print_operand_punct_valid_p): New function.
16379         (TARGET_PRINT_OPERAND): Define.
16380         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16381         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16382         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16383         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16384         (PRINT_OPERAND): Delete.
16385         (PRINT_OPERAND_ADDRESS): Delete.
16386         * config/i386/i386-protos.h (print_operand): Delete prototype.
16387         (print_operand_address): Delete prototype.
16388
16389 2010-06-03  Richard Guenther  <rguenther@suse.de>
16390
16391         PR tree-optimization/44403
16392         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16393         Preserve pointer qualifiers.
16394         (vect_create_data_ref_ptr): Likewise.
16395
16396 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16397
16398         PR c++/44294
16399         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16400
16401         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16402
16403 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16404
16405         PR debug/44375
16406         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16407         return false if merging the bbs would lead to goto_locus
16408         location being lost from the IL.
16409
16410 2010-06-03  Jan Hubicka  <jh@suse.cz>
16411             Jakub Jelinek  <jakub@redhat.com>
16412
16413         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16414         set->regs[i] is NULL or has just one entry.
16415
16416 2010-06-03  Jan Hubicka  <jh@suse.cz>
16417
16418         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16419         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16420
16421 2010-06-03  Paul Brook  <paul@codesourcery.com>
16422
16423         * config/arm/arm.c (FL_TUNE): Define.
16424         (arm_default_cpu, arm_cpu_select): Remove.
16425         (all_cores): Populate core field.
16426         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16427         (arm_find_cpu): New function.
16428         (arm_handle_option): Lookup cpu/architecture names.
16429         (arm_override_options): Cleanup mcpu/march/mtune handling.
16430         (arm_file_start): Ditto.
16431
16432 2010-06-03  Alan Modra  <amodra@gmail.com>
16433
16434         PR target/44169
16435         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16436         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16437         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16438         (rs6000_emit_load_toc_table): Likewise.
16439
16440 2010-06-02  Jan Hubicka  <jh@suse.cz>
16441
16442         * passes.c (init_optimization_passes): Put ipa reference
16443         after ipa pure-const.
16444
16445 2010-06-02  Jan Hubicka  <jh@suse.cz>
16446
16447         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16448         calls_read_all and calls_write_all.
16449         (get_reference_optimization_summary): Fix formatting.
16450         (is_proper_for_analysis): Check that decl is not readonly.
16451         (propagate_bits): Check CONST/PURE/noreturn flags.
16452         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16453         (analyze_function): Ignore indirect edges.
16454         (copy_global_bitmap): For all module statics, do nothing.
16455         (generate_summary): Do not print calls_read_all/calls_write_all.
16456         (read_write_all_from_decl): Take node as argument; check
16457         cgraph_node_cannot_return.
16458         (propagate): Reorganize read_all/write_all computation;
16459         check indirect edges; check ecf flags; use all_module_statics
16460         in the results; do not free all_module_statics.
16461         (stream_out_bitmap): Handle all_module_statics.
16462         (ipa_reference_write_optimization_summary): Likewise; use
16463         varpool/cgraph encoders to get boundaries.
16464         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16465         use it when possible.
16466
16467 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16468
16469         PR target/44218
16470         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16471         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16472
16473         * doc/extend.texi (powerpc builtins): Document vec_recip,
16474         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16475
16476         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16477         (rs6000_emit_swrsqrt): Ditto.
16478         (rs6000_emit_swdivsf): Delete.
16479         (rs6000_emit_swdivdf): Ditto.
16480         (rs6000_emit_swrsqrtsf): Ditto.
16481
16482         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16483         describe the reciprocal estimate support for each type.
16484         (recip_options): Map -mrecip=<opt> into option bits.
16485         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16486         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16487         reciprocal estimate instructions.
16488         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16489         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16490         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16491         cost information if -mdebug=cost or -mdebug=reg.
16492         (rs6000_override_options): Set -mrecip-precision for power6, and
16493         power7 machines.  If -mvsx or -mdfp, enable various options that
16494         came in previous instruction set ISAs, unless the option was
16495         explicitly disabled by the command line option.  Parse
16496         -mrecip=<opt> options.
16497         (rs6000_builtin_vectorized_function): Add support for vectorizing
16498         the reciprocal estimate builtins and expansions.
16499         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16500         (bdesc_2arg): Add reciprocal estimate builtins.
16501         (bdesc_1arg): Add reciprocal square root estimate builtins.
16502         (rs6000_expand_builtin): Rewrite to use a switch statement,
16503         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16504         (rs6000_init_builtins): Create declarations for reciprocal
16505         estimate builtins.
16506         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16507         sized, prefer traditional floating point registers, if integer
16508         vector types, prefer altivec registers.  Don't actually look at
16509         the memory address any more.
16510         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16511         builtins.
16512         (rs6000_load_constant_and_splat): New helper function to load up
16513         the constant for reciprocal estimate instructions.
16514         (rs6000_emit_madd): New helper function for generating
16515         multiply/add type instructions, based on the current switches.
16516         (rs6000_emit_msub): Ditto.
16517         (rs6000_emit_mnsub): Ditto.
16518         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16519         replace a divide with a reciprocal estimate and fixup, adding
16520         support for machines with high precision and vectors.
16521         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16522         low precision machines.
16523         (rs6000_emit_swdiv): New common function to be called to replace a
16524         division with reciprocal estimate and fixup.
16525         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16526         for double and vector types.  Add support for high precision machines.
16527
16528         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16529         the reciprocal estimate instructions can be generated.
16530         (TARGET_FRE): Ditto.
16531         (TARGET_FRSQRTES): Ditto.
16532         (TARGET_FRSQRTE): Ditto.
16533         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16534
16535         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16536         square root estimate on vectors.
16537         (re<mode>2): New insn for reciprocal division estimate on vectors.
16538
16539         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16540         New builtin.
16541         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16542         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16543         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16544         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16545         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16546         (RS6000_BUILTIN_RSQRT): Ditto.
16547         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16548         floating point builtin.
16549
16550         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16551         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16552         __RECIP_PRECISION__ based on the command line switches.
16553         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16554
16555         * config/rs6000/rs6000.opt (-mrecip): Document add support for
16556         replacing division instructions with reciprocal estimate and fixup.
16557         (-mrecip=<opt>): New option.
16558         (-mrecip-precision): Ditto.
16559
16560         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16561         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16562         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16563         precision scalar.
16564
16565         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16566         (UNSPEC_VREFP): Ditto.
16567         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16568         conterparts with regard to support of -mno-fused-madd and -ffast-math.
16569         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16570         reciprocal estimate instructions to be generated.
16571         (altivec_vrefp): Ditto.
16572
16573         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16574         estimate support.
16575         (rreg): New mode attribute for reciprocal estimate support.
16576         (recip<mode>3): New insn for division using reciprocal estimate
16577         and fixup builtins.
16578         (divide define_split): New define_split to convert floating point
16579         division to use reciprocal estimate if the user used the
16580         appropriate options and the split is run when we can add new
16581         pseudo registers for the fixup.
16582         (rsqrt<mode>2): New insn for reciprocal square root support.
16583         (recipsf3): Move into recip<mode>3.
16584         (recipdf3): Ditto.
16585         (fres): Use TARGET_FRES.
16586         (rsqrtsf2): Move into rsqrt<mode>2.
16587         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16588         (copysignsf3): Add support for VSX.
16589         (fred): Use TARGET_FRE.
16590         (fred_fpr): Ditto.
16591         (rsqrtdf_internal1): New function for frsqrte instruciton.
16592
16593         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16594         (vec_rsqrt): Ditto.
16595
16596 2010-06-03  Richard Guenther  <rguenther@suse.de>
16597
16598         PR middle-end/44291
16599         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16600         (set_user_assembler_libfunc): Likewise.
16601
16602 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16603
16604         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16605         defaults.h.
16606         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16607         to defaults.h
16608         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16609         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16610         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16611         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16612         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16613         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16614         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16615         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16616         * defaults.h: Updated for above mentioned changes.
16617
16618 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
16619
16620         * c-common.c: Remove header include of tm_p.h.
16621         * Makefile.in (c-common.o): Remove TM_P_H dependency.
16622
16623 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
16624
16625         * tree.h (struct tree_decl_map): New type.
16626         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16627         (tree_decl_map_hash): New prototype.
16628         (debug_expr_for_decl, value_expr_for_decl): Change into
16629         tree_decl_map hashtab from tree_map.
16630         (init_ttree): Adjust initialization.
16631         (tree_decl_map_hash): New function.
16632         (decl_debug_expr_lookup, decl_debug_expr_insert,
16633         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16634
16635 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16636
16637         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16638         linker emulations.
16639         * configure: Regenerate.
16640         * config.in: Regenerate.
16641
16642         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16643         (X86_64_EMULATION): Define.
16644         (TARGET_LD_EMULATION): Use them.
16645
16646         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16647         (SPARC64_EMULATION): Define.
16648         (LINK_ARCH_SPEC): Use them.
16649
16650 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16651
16652         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16653         smallest_mode_for_size for computing the precision types of new
16654         graphite IVs.  Do not call lang_hooks.types.type_for_size.
16655
16656 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16657
16658         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16659         information.
16660         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16661
16662 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16663
16664         PR middle-end/44363
16665         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16666         return false instead.
16667
16668 2010-06-02  Jan Hubicka  <jh@suse.cz>
16669
16670         PR middle-end/44295
16671         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16672         create new cgraph node to check callee.
16673
16674 2010-06-02  Richard Guenther  <rguenther@suse.de>
16675
16676         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16677
16678 2010-06-02  Richard Guenther  <rguenther@suse.de>
16679
16680         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16681         (lto_wrapper_cleanup): ... this.  Do not exit.
16682         (fatal): Adjust.  Exit here.
16683         (fatal_perror): Likewise.
16684         (fatal_signal): New function.
16685         (main): Set up signal handlers to cleanup temporary files.
16686         * Makefile.in (lto-wrapper.o): Adjust dependencies.
16687
16688 2010-06-02  Richard Guenther  <rguenther@suse.de>
16689
16690         PR tree-optimization/44377
16691         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16692
16693 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16694
16695         * config/s390/2097.md (z10_fhex): Remove insn reservation.
16696         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16697         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16698         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16699         instruction.
16700         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16701
16702 2010-06-02  Jan Hubicka  <jh@suse.cz>
16703
16704         * bitmap.c (bitmap_descriptor): Add search_iter.
16705         (bitmap_find_bit): Increment it.
16706         (print_statistics): Print it.
16707
16708 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
16709
16710         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16711         instead of gimple_build_call_vec.  Delete unnecessary local variable.
16712
16713 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16714
16715         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16716         change from yesterday.
16717
16718 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16719
16720         * c-ada-spec.c: Clean up redundant includes.
16721
16722 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
16723
16724         * gimplify.c: Do not include except.h and optabs.h.
16725         (gimplify_body): Do not initialize RTL profiling.
16726         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
16727         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
16728         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
16729         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
16730         langhooks.h.
16731
16732         * tree-pretty-print.h: Include pretty-print.h.
16733         * gimple-pretty-print.h: Include pretty-print.h.
16734
16735         * tree-pretty-print.c: Do not include diagnostic.h.
16736         * tree-vrp.c: Likewise.
16737         * tree-tailcall.c: Likewise
16738         * tree-scalar-evolution.c: Likewise
16739         * tree-ssa-dse.c: Likewise
16740         * tree-chrec.c: Likewise
16741         * tree-ssa-sccvn.c: Likewise
16742         * tree-ssa-copyrename.c: Likewise
16743         * tree-nomudflap.c: Likewise
16744         * tree-call-cdce.c: Likewise
16745         * tree-stdarg.c: Likewise
16746         * tree-ssa-math-opts.c: Likewise
16747         * tree-nrv.c: Likewise
16748         * tree-ssa-sink.c: Likewise
16749         * tree-browser.c: Likewise
16750         * tree-ssa-loop-ivcanon.c: Likewise
16751         * tree-ssa-loop.c: Likewise
16752         * tree-parloops.c: Likewise
16753         * tree-ssa-address.c: Likewise
16754         * tree-ssa-ifcombine.c: Likewise
16755         * tree-if-conv.c: Likewise
16756         * tree-data-ref.c: Likewise
16757         * tree-affine.c: Likewise
16758         * tree-ssa-phiopt.c: Likewise
16759         * tree-ssa-coalesce.c: Likewise
16760         * tree-ssa-pre.c: Likewise
16761         * tree-ssa-live.c: Likewise
16762         * tree-predcom.c: Likewise
16763         * tree-ssa-forwprop.c: Likewise
16764         * tree-ssa-dce.c: Likewise
16765         * tree-ssa-ter.c: Likewise
16766         * tree-ssa-loop-prefetch.c: Likewise
16767         * tree-optimize.c: Likewise
16768         * tree-ssa-phiprop.c: Likewise
16769         * tree-object-size.c: Likewise
16770         * tree-outof-ssa.c: Likewise
16771         * tree-ssa-structalias.c: Likewise
16772         * tree-switch-conversion.c: Likewise
16773         * tree-ssa-reassoc.c: Likewise
16774         * tree-ssa-operands.c: Likewise
16775         * tree-vectorizer.c: Likewise
16776         * tree-vect-data-refs.c: Likewise
16777         * tree-vect-generic.c: Likewise
16778         * tree-vect-stmts.c: Likewise
16779         * tree-vect-patterns.c: Likewise
16780         * tree-vect-slp.c: Likewise
16781         * tree-vect-loop.c: Likewise
16782         * tree-ssa-loop-ivopts.c: Likewise
16783         * tree-ssa-loop-im.c: Likewise
16784         * tree-ssa-loop-niter.c: Likewise
16785         * tree-ssa-loop-unswitch.c: Likewise
16786         * tree-ssa-loop-manip.c: Likewise
16787         * tree-ssa-loop-ch.c: Likewise
16788         * tree-dump.c: Likewise
16789         * tree-complex.c: Likewise
16790
16791         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
16792         * tree-ssa-uninit.c: Likewise
16793         * tree-ssa-threadupdate.c: Likewise
16794         * tree-ssa-uncprop.c: Likewise
16795         * tree-ssa-ccp.c: Likewise
16796         * tree-ssa-dom.c: Likewise
16797         * tree-ssa-propagate.c: Likewise
16798         * tree-ssa-alias.c: Likewise
16799         * tree-dfa.c: Likewise
16800         * tree-cfgcleanup.c: Likewise
16801         * tree-sra.c: Likewise
16802         * tree-ssa-copy.c: Likewise
16803         * tree-ssa.c: Likewise
16804         * tree-profile.c: Likewise
16805         * tree-cfg.c: Likewise
16806         * tree-ssa-threadedge.c: Likewise
16807         * tree-vect-loop-manip.c: Likewise
16808
16809         * tree-inline.c: Do not include diagnostic.h and expr.h.
16810         Include rtl.h.
16811         (copy_decl_for_dup_finish): Do not use NULL_RTX.
16812
16813         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
16814         * tree-loop-distribution.c: Likewise.
16815
16816 2010-06-01  Jan Hubicka  <jh@suse.cz>
16817
16818         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
16819
16820 2010-06-01  Jan Hubicka  <jh@suse.cz>
16821
16822         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
16823         remove return value.
16824         (split_bbs_on_noreturn_calls) .... here.
16825         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
16826         * tree-flow.h (fixup_noreturn_call): New.
16827
16828 2010-06-01  Jan Hubicka  <jh@suse.cz>
16829
16830         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16831
16832 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
16833
16834         * tree.h (build_nt_call_list): Delete.
16835         * tree.c (build_nt_call_list): Delete.
16836
16837 2010-06-01  Jan Hubicka  <jh@suse.cz>
16838
16839         * fwprop.c: Make emit-rtl.h include last.
16840         * rtlanal.c: Include emit-rtl.h.
16841         * genautomata.c: Output emit-rtl include into insn-automata.c
16842         * df-scan.c: Include emit-rtl.h.
16843         * haifa-sched.c: Indlude emit-rtl.h.
16844         * mode-switching.c: Indlude emit-rtl.h.
16845         * graph.c: Indlude emit-rtl.h.
16846         * sel-sched.c: Include emit-rtl.h.
16847         * sel-sched-ir.c: Include emit-rtl.h.
16848         * ira-build.c: Include emit-rtl.h.
16849         * emit-rtl.c (first_insn, last_insn): Remove defines.
16850         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
16851         Move to emit-rtl.h.
16852         (set_new_first_and_last_insn, get_last_insn_anywhere,
16853         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
16854         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
16855         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
16856         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
16857         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
16858         Use accessor functions.
16859         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16860          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16861         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16862         mem_expr_equal_p): Move here from rtl.h.
16863         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
16864         Move here from emit-rtl.c; make inline.
16865         * cfglayout.h: Include emit-rtl.h.
16866         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16867          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16868         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16869         mem_expr_equal_p, get_insns, set_first-insn,
16870         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
16871         * reg-stack.c: Include emit-rtl.h.
16872         * dce.c: Likewise.
16873
16874 2010-06-01  Jan Hubicka  <jh@suse.cz>
16875
16876         * cgraph.h (tree_function_versioning): Update prototype.
16877         (cgraph_function_versioning): Update prototype.
16878         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
16879         bitmap.
16880         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
16881         (cgraph_materialize_clone, save_inline_function_body): Update use of
16882         tree_function_versioning.
16883         * tree-inline.c (copy_bb): Look for previous copied block to link
16884         after; fix debug output.
16885         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
16886         (copy_body): Likewise.
16887         (expand_call_inline): Update use of copy_body.
16888         (tree_function_versioning): Update use of copy body; accept
16889         blocks_to_copy and new_entry.
16890
16891 2010-06-01  Jan Hubicka  <jh@suse.cz>
16892
16893         * gegenrtl.c: Remove unnecesary prototypes.
16894         (gendecl): Remove.
16895         (gendef): Produce static inline.
16896         (gencode): Remove.
16897         (main): Do not decode parameters; generate header only.
16898         * Makefile.in (genrtl.c): Remove.
16899
16900 2010-06-01  Jan Hubicka  <jh@suse.cz>
16901
16902         * tree-switch-conversion.c (build_one_array): Make it readonly.
16903
16904 2010-06-01  Richard Guenther  <rguenther@suse.de>
16905
16906         * optabs.c (init_optabs): Guard all accesses to reinit.
16907         * ipa-pure-const.c (propagate): Fix another typo.
16908         * opts.c (common_handle_option): Split assignment to bool.
16909         * c-opts.c (c_common_handle_option): Likewise.
16910
16911 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
16912             Matthew Gingell  <gingell@adacore.com>
16913
16914         * doc/invoke.texi: Mention -fdump-ada-spec.
16915         * tree-dump.c (dump_files): Add ada-spec.
16916         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
16917         * tree-pass.h (tree_dump_index): Add TDI_ada.
16918         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
16919         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
16920         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
16921         * c-decl.c: Include c-ada-spec.h.
16922         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
16923         functions.
16924         (c_write_global_declarations): Add handling of -fdump-ada-spec.
16925         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
16926         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
16927         * c-ada-spec.h, c-ada-spec.c: New files.
16928
16929 2010-06-01  Richard Guenther  <rguenther@suse.de>
16930
16931         PR lto/43853
16932         * ipa-pure-const.c (get_function_state): Hand back varying state
16933         if we do not have one.
16934         (has_function_state): New function.
16935         (duplicate_node_data): Adjust.
16936         (remove_node_data): Likewise.
16937         (pure_const_write_summary): Likewise.
16938         (propagate): Likewise.  Fix typo.
16939
16940 2010-06-01  Jan Hubicka  <jh@suse.cz>
16941
16942         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
16943         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
16944         (execute_all_ipa_transforms): Do not play with the states.
16945
16946 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16947
16948         * config/arm/t-linux-androideabi: New.
16949         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
16950
16951 2010-06-01  Jan Hubicka  <jh@suse.cz>
16952
16953         * tree-inline.c (estimate_num_insns): For stdarg functions look
16954         into call statement to count cost of argument passing.
16955
16956 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
16957
16958         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
16959         argument for fprintf.
16960         (ix86_output_addr_diff_elt): Likewise.
16961         (x86_function_profiler): Likewise.
16962         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
16963         (LPREFIX): Likewise.
16964         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
16965
16966 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
16967
16968         PR target/44338
16969         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
16970         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
16971         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
16972         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
16973         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
16974         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
16975         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
16976         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
16977         TARGET_FUSED_MADD.
16978
16979 2010-05-31  Jan Hubicka  <jh@suse.cz>
16980
16981         * tree.h (tree_range_check_failed): Declare noreturn.
16982
16983 2010-05-31  Jan Hubicka  <jh@suse.cz>
16984
16985         * gimple.c (gimple_call_builtin_p): New function.
16986         * gimple.h (gimple_call_builtin_p): Declare.
16987         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
16988         to exit.
16989         (execute_warn_function_return): BUILT_IN_RETURN is return.
16990         (split_critical_edges): Return edges are not critical.
16991         (is_ctrl_altering_stmt): Builtin_in_return is altering.
16992         (gimple_verify_flow_info): Handle built_in_return.
16993         (execute_warn_function_return): Handle built_in_return.
16994         * ipa-pure-const.c (check_call): Ignore builtin_return.
16995
16996 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
16997
16998         PR middle-end/44337
16999         * expr.c (expand_assignment): Don't store anything for out-of-bounds
17000         array accesses with non-MEM.
17001
17002         PR tree-optimization/44182
17003         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17004         newly needs to end a bb is followed by debug stmts, instead return
17005         true from the function at the end.
17006         (maybe_move_debug_stmts_to_successors): New function.
17007         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17008
17009 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
17010
17011         PR target/44161
17012         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17013
17014 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17015
17016         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17017         for nested functions in non-optimized compilation.
17018
17019 2010-05-31  Richard Guenther  <rguenther@suse.de>
17020
17021         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17022
17023 2010-05-30  Jan Hubicka  <jh@suse.cz>
17024
17025         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17026
17027 2010-05-30  Richard Guenther  <rguenther@suse.de>
17028
17029         PR lto/42975
17030         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17031         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17032         no longer needed.
17033
17034 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
17035
17036         * config/darwin.c (output_objc_section_asm_op): Add comment.
17037         (name_needs_quotes): Add '_' to list of valid comment chars.
17038         (machopic_output_function_base_name): Remove unneeded quotes.
17039         (darwin_encode_section_info): Adjust asm whitespace.
17040         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17041         (ASM_OUTPUT_LOCAL): Ditto.
17042         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17043         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17044         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17045
17046 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
17047
17048         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17049         RS6000_OUTPUT_BASENAME unconditionally.
17050         (rs6000_output_function_epilogue): Likewise.
17051
17052 2010-05-30  Jan Hubicka  <jh@suse.cz>
17053
17054         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17055         nodes.
17056
17057 2010-05-30  Richard Guenther  <rguenther@suse.de>
17058
17059         * tree-cfg.c (verify_gimple_assign_single): Implement
17060         verification for COND_EXPR rhs.
17061
17062 2010-05-30  Jan Hubicka  <jh@suse.cz>
17063
17064         * cgraph.h (cgraph_dump_file): Declare.
17065         * cgraphunit.c (cgraph_dump_file): Export.
17066         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17067
17068 2010-05-30  Jan Hubicka  <jh@suse.cz>
17069
17070         * dwarf2out.c (reference_to_unused,
17071         premark_types_used_by_global_vars_helper): Avoid creation of new
17072         varpool nodes.
17073
17074 2010-05-30  Jan Hubicka  <jh@suse.cz>
17075
17076         * cgraph.h (cgraph_node_cannot_return,
17077         cgraph_edge_cannot_lead_to_return): New functions.
17078         * cgraph.c (cgraph_node_cannot_return,
17079         cgraph_edge_cannot_lead_to_return): Use them.
17080         * ipa-pure-const.c (pure_const_names): New static var.
17081         (check_call): Handle calls not leading to return.
17082         (pure_const_read_summary): Dump info read.
17083         (propagate): Dump info about propagation process; ignore side effects
17084         of functions not leading to exit; fix handling of pure functions.
17085
17086 2010-05-30  Jan Hubicka  <jh@suse.cz>
17087
17088         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17089         for tail call epilogues.
17090
17091 2010-05-30  Jan Hubicka  <jh@suse.cz>
17092
17093         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17094         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17095         dump files.
17096
17097 2010-05-29  Jan Hubicka  <jh@suse.cz>
17098
17099         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17100         node; remove references in node we no longer keep in cgrpah but need
17101         body of.
17102
17103 2010-05-29  Jan Hubicka  <jh@suse.cz>
17104
17105         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17106
17107 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17108
17109         PR target/44165
17110         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17111
17112 2010-05-29  Jan Hubicka  <jh@suse.cz>
17113
17114         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17115         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17116         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17117         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17118         debug_names_replaced_by, debug_update_ssa): Likewise.
17119         * sbitmap.c (debug_sbitmap): Likewise.
17120         * genrecog.c (debug_decision, debug_decision_list): Likewise.
17121         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17122         debug_tree_chain): Likewise.
17123         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17124         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17125         * optabs.c (debug_optab_libfuncs): Likewise.
17126         (verify_loop_closed_ssa): Likewise.
17127         * value-prof.c (verify_histograms): Likewise.
17128         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17129         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17130         * cfghooks.c (verify_flow_info): Likewise.
17131         * fold-const.c (debug_fold_checksum): Likewise.
17132         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17133         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17134         Likewise.
17135         * omega.c (debug_omega_problem): Likewise.
17136         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17137         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17138         * dominance.c (verify_dominators, debug_dominance_info,
17139         debug_dominance_tree): Likewise.
17140         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17141         * df_regno_debug, df_ref_debug,
17142         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17143         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17144         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17145         * sel-sched.c (debug_state): Likewise.
17146         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17147         Likewise.
17148         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17149         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17150         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17151         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17152         Likewise.
17153         * c-pretty-print.c (debug_c_tree): Likewise.
17154         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17155         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17156         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17157         * ebitmap.c (debug_ebitmap): Likewise.
17158         * function.c (debug_find_var_in_block_tree): Likewise.
17159         * print-rtl.c (debug_rtx): Likewise.
17160         (debug_rtx_count): Likewise.
17161         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17162         * stor-layout.c (debug_rli): Likewise.
17163         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17164         * tree-data-ref.c (debug_data_references,
17165         debug_data_dependence_relations, debug_data_reference,
17166         debug_data_dependence_relation, debug_rdg_vertex,
17167         debug_rdg_component, debug_rdg): Likewise.
17168         * tree-affine.c (debug_aff): Likewise.
17169         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17170         Likewise.
17171         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17172         * emit-rtl.c (verify_rtl_sharing): Likewise.
17173         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17174         debug_value_expressions): Likewise.
17175         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17176         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17177         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17178         * cfglayout.c (verify_insn_chain): Likewise.
17179         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17180         debug_clast_stmt, debug_generated_program): Likewise.
17181         * ggc-page.c (debug_print_page_list): Likewise.
17182         * tree-ssa-ter.c (debug_ter): Likewise.
17183         * graphite-dependences.c (debug_pddr): Likewise.
17184         * sched-deps.c (debug_ds): Likewise.
17185         * tree-ssa.c (verify_ssa): Likewise.
17186         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17187         debug_scattering_functions, debug_iteration_domains, debug_pdr,
17188         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17189         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17190         * tree-inline.c (debug_find_tree): Likewise.
17191         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17192         debug_ppl_powerset_matrix): Likewise.
17193         * var-tracking.c (debug_dv): Likewise.
17194         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17195         * cfgloop.c (verify_loop_structure): Likewise.
17196         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17197         * c-common.c (verify_sequence_points): Likewise.
17198         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17199         debug_candidates, debug_rgn_dependencies): Likewise.
17200         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17201         * debug_constraint_graph, debug_solution_for_var,
17202         debug_sa_points_to_info): Likewise.
17203         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17204         Likewie.
17205         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17206         debug_loops, debug_loop, debug_loop_num): Likewise.
17207         * passes.c (debug_pass): Likewise.
17208         (dump_properties): Likewise; add cfglayout property.
17209         (debug_properties): Likewise.
17210         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17211         * varpool.c (debug_varpool): Likewise.
17212         * regcprop.c (debug_value_data): Likewise.
17213         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17214         debug_immediate_uses_for): Likewise.
17215
17216 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17217
17218         PR bootstrap/44315
17219         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17220         Filter out insn-flags.h.
17221
17222 2010-05-29  Jan Hubicka  <jh@suse.cz>
17223
17224         * cgraph.h (struct varpool_node_set_def,
17225         struct cgraph_node_set_def): Remove unused AUX pointer.
17226         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17227         VEC_empty macro.
17228
17229 2010-05-29  Jan Hubicka  <jh@suse.cz>
17230
17231         PR middle-end/44324
17232         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17233
17234 2010-05-29  Richard Guenther  <rguenther@suse.de>
17235
17236         * lto-streamer.c (cached_bp): New global variable.
17237         (bitpack_create): Return the cached bitpack, if available.
17238         (bitpack_delete): Clear and cache the bitpack, if appropriate.
17239         (bp_pack_value): Remove redundant asserts.
17240
17241 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17242
17243         PR middle-end/44306
17244         * tree-if-conv.c (is_true_predicate): New.
17245         (is_predicated): Use is_true_predicate.
17246         (add_to_predicate_list): Same.  Do not use unshare_expr.
17247         (add_to_dst_predicate_list): Same.
17248
17249 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17250
17251         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17252         field on edges.
17253         (predicate_bbs): Same.
17254         (clean_predicate_lists): Same.
17255         (find_phi_replacement_condition): Do not AND the predicate from
17256         edge->aux.
17257
17258 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17259
17260         PR bootstrap/44315
17261         * Makefile.in (build/gencondmd.o): Add a missing `\'.
17262
17263 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17264
17265         PR target/44261
17266         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17267         (negdf2): Adjust expander pattern and use negdf2_slow.
17268         (negsf2): Likewise.
17269
17270 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
17271
17272         * basic-block.h (struct control_flow_graph): Move last_label_uid field
17273         up.
17274         * df.h (struct df_base_ref): Move regno field up.
17275         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17276         * expr.h (struct separate_ops): Move location field up.
17277         * optabs.h (struct optab_d): Move libcall_basename field down.
17278         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17279         * config/i386/i386.h (struct machine_function): Convert call_abi field
17280         into a bitfield.  Move cfa field to the end of the structure.
17281
17282 2010-05-29  Jan Hubicka  <jh@suse.cz>
17283
17284         * varpool.c (varpool_get_node): Fix lookup.
17285
17286 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17287
17288         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
17289         RTL specific prototypes with #ifdef RTX_CODE.
17290         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17291         * config/spu/t-spu-elf: Fix dependencies.
17292
17293         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17294
17295 2010-05-29  Mike Stump  <mikestump@comcast.net>
17296
17297         PR bootstrap/44315
17298         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17299         TM_H when building to avoid dependency loops.
17300
17301 2010-05-29  Jan Hubicka  <jh@suse.cz>
17302
17303         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17304         refs and body; not the whole node for masters of materialized clones.
17305
17306 2010-05-29  Mike Stump  <mikestump@comcast.net>
17307
17308         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17309
17310 2010-05-29  Jan Hubicka  <jh@suse.cz>
17311
17312         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17313         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17314         use of clone_function_name.
17315         * cgraph.h (cgraph_create_virtual_clone,
17316         cgraph_function_versioning): update prototypes.
17317         (clone_function_name): Declare.
17318         * ipa-cp.c (ipcp_insert_stage): Update call of
17319         cgraph_create_virtual_clone.
17320         * omp-low.c (create_omp_child_function_name): Use
17321         cgraph_create_virtual_clone.
17322         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17323         (cgraph_function_versioning): Take SUFFIX argument; produce new name
17324         and make decl local.
17325
17326 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17327
17328         * vec.h: Include statistics.h
17329         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
17330         with VEC_H.
17331
17332 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17333
17334         * c-lex.c: Do not include c-tree.h.
17335         * c-pretty-print.c: Likewise.
17336         * c-opts.c: Likewise.
17337         * c-gimplify.c: Likewise.
17338         * c-common.c: Likewise.
17339         * c-dump.c: Likewise.  Include c-common.h.
17340
17341 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17342
17343         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17344         before including diagnostic-core.h.
17345         (c_cpp_error): New prototype moved from c-tree.h.
17346         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17347         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17348         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17349         (c_cpp_error): Prototype moved to c-common.h.
17350         * Makefile.in: Update dependency for C_COMMON_H.
17351
17352 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17353
17354         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17355         * c-common.c (c_register_addr_space): Remove here.
17356         * c-decl.c (c_register_addr_space): Re-add here.
17357
17358 2010-05-28  Mike Stump  <mikestump@comcast.net>
17359
17360         * config/darwin-c.c: Remove c-tree.h include.
17361
17362 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17363
17364         * gcc.c: Include diagnostic.h.
17365         (error_count): Remove.  All users changed to use errorcount.
17366         (programname): Remove.  All users changed to use progname.
17367         (fancy_abort, internal_error, fatal_error, error, warning, inform,
17368         fnotice): Remove.
17369         (execute): Don't include "Internal error" and bug reporting
17370         information in argument of internal_error call.
17371         (process_command): Don't increment error_count after calling
17372         perror_with_name.
17373         (input_filename): Rename to gcc_input_filename.  All users
17374         changed.
17375         (main): Call diagnostic_initialize.  Register delete_temp_files
17376         with atexit.  Use seen_error to test for errors.
17377         * gcc.h: Include diagnostic-core.h.
17378         (fatal_error, error, warning): Remove.
17379         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17380         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17381         (gcc.o): Update dependencies.
17382
17383 2010-05-28  Jeff Law  <law@redhat.com>
17384
17385         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17386         functions.
17387         * ira.h (ira_bad_reload_regno): Declare
17388         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17389
17390         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17391         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17392         (allocno_reload_assign): Likewise.
17393
17394 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17395
17396         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17397         build1_stat.
17398
17399 2010-05-28  Richard Guenther  <rguenther@suse.de>
17400
17401         PR lto/44312
17402         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17403         Stream fixed-point constants mode.
17404         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17405         and TYPE_PRECISION.
17406         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17407         Stream fixed-point constants mode.
17408         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17409         and TYPE_PRECISION.
17410
17411 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17412
17413         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17414         only place it was called from.
17415         (number_of_latch_executions): Do not return chrec_dont_know when the
17416         may_be_zero is a runtime condition: instead, return a COND_EXPR
17417         including the may_be_zero condition.
17418         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17419         of nb_iterations.
17420         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17421         COND_EXPRs.
17422
17423 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17424
17425         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17426         generate COND_EXPRs for degenerate_phi_result.
17427
17428 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17429
17430         PR middle-end/44293
17431         * tree-if-conv.c (if_convertible_loop_p): Check the
17432         if-convertibility of phi nodes in non predicated BBs.
17433
17434 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17435
17436         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17437
17438 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17439
17440         PR driver/15303
17441         * gcc.c (inform, warning, inform): New functions.
17442         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17443         gmsgid.  All callers changed.
17444         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17445         (fatal_error): Rename to fatal_signal.  All users changed.
17446         (fatal): Rename to fatal_error; change cmsgid parameter to
17447         gmsgid.  All callers changed.
17448         (process_command): Use warning instead of error for warnings.
17449         (end_going_arg): Don't use _() around argument of error.
17450         (do_spec_1): Use inform for message from %n specs.  Use warning
17451         instead of error for warnings.
17452         (main): Use inform for comparison messages.  Use warning for
17453         message about unused linker input.
17454         (error): Increment error_count.  Print "error: ".
17455         * gcc.h (fatal): Change to fatal_error.
17456         (warning): Declare.
17457         * config/darwin-driver.c (darwin_default_min_version): Use warning
17458         instead of fprintf for warnings.
17459         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17460
17461 2010-05-28  Julian Brown  <julian@codesourcery.com>
17462
17463         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17464         (*thumb2_addsi3_compare0_scratch): New.
17465         * config/arm/constraints.md (Pv): New.
17466         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17467         for ARM mode only.
17468         (*addsi3_compare0_scratch): Likewise.
17469
17470 2010-05-28  Jan Hubicka  <jh@suse.cz>
17471
17472         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17473         check.
17474         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17475         only on local statics.
17476
17477 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17478
17479         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17480
17481 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17482
17483         PR bootstrap/44314
17484         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17485         (OPTION_GLIBC): Define.
17486
17487 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17488
17489         PR debug/41048
17490         * dwarf2out.c (double_int_type_size_in_bits): New function.
17491         (round_up_to_align): Change first argument and return value to
17492         double_int.
17493         (field_byte_offset): Work internally on double_ints.
17494
17495         PR target/43636
17496         * builtins.c (expand_movstr): Use a temporary pseudo instead
17497         of target even when target is not NULL and not const0_rtx, but
17498         fails movstr predicate.
17499         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17500
17501 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17502
17503         * final.c (rest_of_clean_state): Use %m in errors instead of
17504         strerror (errno).
17505         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17506         instead of strerror.
17507         * toplev.c (process_options): Use %m in errors instead of strerror
17508         (errno).
17509         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17510         (errno).
17511
17512 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17513
17514         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17515         (ix86_canonical_va_list_type): Make static.  Add declaration.
17516         (ix86_enum_va_list): Make static.  Reindent.
17517         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17518         (ix86_canonical_va_list_type): Ditto.
17519         (ix86_enum_va_list): Ditto.
17520
17521 2010-05-28  Richard Guenther  <rguenther@suse.de>
17522
17523         * lto-wrapper.c (run_gcc): With -save-temps generate a
17524         user-visible ltrans filename.  Fixup ltrans unit numbering.
17525
17526 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17527
17528         * c-common.c (c_common_nodes_and_builtins): Replace use
17529         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17530         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17531         to ix86_enum_va_list.
17532         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17533         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17534         (TARGET_ENUM_VA_LIST_P): Add hook description.
17535         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17536         * target.h (gcc_target): Add enum_va_list hook.
17537
17538         PR bootstrap/44299
17539         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17540         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17541         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17542
17543 2010-05-28  Alan Modra  <amodra@gmail.com>
17544
17545         PR target/44266
17546         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17547         emit_library_call machinery to set up __tls_get_addr calls.
17548
17549 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17550
17551         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17552
17553 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17554
17555         Revert fix for PR c++/44188
17556         * c-common.c (is_typedef_decl): Revert the moving of  this
17557         definition ...
17558         * tree.c (is_typedef_decl): ... here.
17559         (typdef_variant_p): Revert the moving of this  definition
17560         here from cp/tree.c.
17561         * c-common.h (is_typedef_decl): Revert the moving of this
17562         declaration ...
17563         * tree.h (is_typedef_decl): ... here.
17564         (typedef_variant_p): Revert the moving of this  declaration here
17565         from cp/cp-tree.h
17566         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17567         (gen_tagged_type_die): Revert the splitting out of ...
17568         (gen_type_die_with_usage): ... this function. Revert the anonymous
17569         tagged type handling.
17570         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
17571         typedefs naming anonymous tagged types.
17572
17573 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17574
17575         * config/rs6000/rs6000-modes.def (PSImode): Delete.
17576
17577 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17578
17579         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17580         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17581         throughout.
17582         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17583         "xer" to "ca".
17584         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17585         XER_REGS to CA_REGS throughout.
17586         * config/rs6000/rs6000.h: Same.
17587         (ADDITIONAL_REGISTER_NAMES): Add "xer".
17588         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
17589         that mode_iterator "P" is the size for arithmetic carries as well.
17590         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17591
17592 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17593
17594         PR bootstrap/44255
17595         * combine.c (struct rtx_subst_pair): Define unconditionally.
17596         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
17597         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17598         Call make_compound_operation on pair->to.
17599         (propagate_for_debug): Don't call make_compound_operation here.
17600         Always use simplify_replace_fn_rtx.
17601
17602 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
17603
17604         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17605         * config/xtensa/xtensa.c (override_options): Check
17606           TARGET_FORCE_NO_PIC and set flag_pic.
17607         * config/xtensa/xtensa.opt: Document -mforce-no-pic
17608
17609 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17610
17611         PR bootstrap/44299
17612         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17613         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17614
17615 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17616
17617         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
17618         toplev.h.
17619         * diagnostic.c: Don't include toplev.h.
17620         (progname): Define.  Moved from toplev.c.
17621         (seen_error): New function.
17622         * diagnostic.h: Include diagnostic-core.h.
17623         (diagnostic_t, emit_diagnostic): Don't declare here.
17624         * toplev.c (progname): Move to toplev.c.
17625         (emit_debug_global_declarations, compile_file, finalize,
17626         do_compile, toplev_main): Use seen_error.
17627         * toplev.h: Include diagnostic-core.h.
17628         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17629         internal_error, warning, warning_at, error, error_n, error_at,
17630         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17631         verbatim, fnotice, progname): Move to diagnostic-core.h.
17632         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17633         (expand_builtin_expect): Use seen_error.
17634         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17635         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17636         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17637         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17638         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17639         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17640         errorcount for errors.
17641         * c-opts.c (c_common_finish): Use seen_error.
17642         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17643         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17644         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17645         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17646         (get_coverage_counts): Use seen_error.
17647         * dwarf2out.c (dwarf2out_finish): Use seen_error.
17648         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17649         gimplify_body): Use seen_error.
17650         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17651         * ipa-pure-const.c (gate_pure_const): Use seen_error.
17652         * ipa-reference.c (gate_reference): Use seen_error.
17653         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17654         * lambda-code.c: Include diagnostic-core.h instead of
17655         diagnostic.h.
17656         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17657         * lto-compress.c: Include diagnostic-core.h instead of
17658         diagnostic.h.
17659         * lto-section-in.c: Include diagnostic-core.h instead of
17660         diagnostic.h.
17661         * lto-streamer-out.c: Include diagnostic-core.h instead of
17662         diagnostic.h.
17663         * lto-streamer.c: Include diagnostic-core.h instead of
17664         diagnostic.h.
17665         (gate_lto_out): Use seen_error.
17666         * matrix-reorg.c: Include diagnostic-core.h instead of
17667         diagnostic.h.
17668         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17669         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17670         (gate_expand_omp, lower_omp_1): Use seen_error.
17671         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17672         (rest_of_decl_compilation, rest_of_type_compilation,
17673         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17674         * tree-cfg.c (label_to_block_fn): Use seen_error.
17675         * tree-inline.c (optimize_inline_calls): Use seen_error.
17676         * tree-mudflap.c (mudflap_finish_file): Use
17677         seen_error.
17678         * tree-optimize.c (gate_all_optimizations,
17679         gate_all_early_local_passes, gate_all_early_optimizations): Use
17680         seen_error.
17681         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17682         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17683         (varpool_remove_unreferenced_decls,
17684         varpool_assemble_pending_decls): Use seen_error.
17685         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17686         (TOPLEV_H, DIAGNOSTIC_H): Update.
17687         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17688         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17689         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17690         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17691         coverage.o, lambda-code.o): Update dependencies.
17692
17693 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
17694
17695         PR c++/44188
17696         * c-common.c (is_typedef_decl): Move this definition ...
17697         * tree.c (is_typedef_decl): ... here.
17698         (typdef_variant_p): Move definition here from cp/tree.c.
17699         * c-common.h (is_typedef_decl): Move this declaration ...
17700         * tree.h (is_typedef_decl): ... here.
17701         (typedef_variant_p): Move declaration here from cp/cp-tree.h
17702         * dwarf2out.c (is_naming_typedef_decl): New function.
17703         (gen_tagged_type_die): Split out of ...
17704         (gen_type_die_with_usage): ... this function. When an anonymous
17705         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17706         is emitted for the typedef.
17707         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17708         anonymous tagged types.
17709
17710 2010-05-27  Jason Merrill  <jason@redhat.com>
17711
17712         * print-tree.c (debug_vec_tree): New fn.
17713         (print_vec_tree): New fn.
17714         * tree.h: Declare them.
17715         * gdbinit.in (pvt): New command.
17716
17717         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17718
17719         * gdbinit.in (pdd): New command.
17720
17721 2010-05-27  Jan Hubicka  <jh@suse.cz>
17722
17723         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
17724         (update_caller_keys): Return early if there are no callers;
17725         only update fibheap when decresing the key.
17726         (update_callee_keys): Avoid recursion.
17727         (decide_inlining_of_small_functions): When badness does not match;
17728         re-insert into fibheap.
17729
17730 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
17731
17732         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
17733         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
17734         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
17735         (ALL_HOST_OBJS): Now a union of the above two.
17736         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
17737         all files in ALL_HOST_FRONTEND_OBJS.
17738         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
17739
17740         * c-common.c: Pretend to be a backend file by undefining
17741         IN_GCC_FRONTEND (still need rtl.h here).
17742
17743 2010-05-27  Jan Hubicka  <jh@suse.cz>
17744
17745         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
17746         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
17747
17748 2010-05-27  Jan Hubicka  <jh@suse.cz>
17749
17750         * sched-ebb.c: Rename struct deps to struct deps_desc.
17751         * ddg.c: Likewise.
17752         * sel-sched-ir.c: Likewise.
17753         * sched-deps.c: Likewise.
17754         * sched-int.h: Likewise.
17755         * sched-rgn.c: Likewise.
17756
17757 2010-05-27  Jon Beniston  <jon@beniston.com>
17758
17759         PR 43726
17760         * config/lm32/lm32.h: Remove definition of
17761         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
17762
17763 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17764
17765         PR lto/44230
17766         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
17767
17768 2010-05-27  Richard Guenther  <rguenther@suse.de>
17769
17770         PR tree-optimization/44284
17771         * tree-vect-stmts.c (vectorizable_assignment): Handle
17772         sign-changing conversions as simple copy.
17773
17774 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17775
17776         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
17777         Bionic C library.
17778         (__gthread_active_p): Check for pthread_create if compiling against
17779         Bionic C library.
17780
17781 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17782
17783         Support compilation for Android platform.  Reimplement -mandroid.
17784
17785         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
17786         (*android*): Set ANDROID_DEFAULT.
17787         (arm*-*-linux*): Include linux-android.h.
17788         (arm*-*-eabi*): Don't include previous -mandroid implementation.
17789         * config/arm/eabi.h: Remove, move Android-specific parts ...
17790         * config/linux-android.h: ... here.  New file.
17791         * config/arm/eabi.opt: Rename to ...
17792         * config/linux-android.opt: ... this.
17793         (mandroid): Allow -mno-android option.  Initialize based on
17794         ANDROID_DEFAULT.
17795         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
17796         Move logic to corresponding LINUX_TARGET_* macros.
17797         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
17798         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
17799         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
17800         Android definitions.
17801         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
17802         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
17803         Document.
17804
17805 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17806
17807         Add support for Bionic C library
17808
17809         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
17810         macro.
17811         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
17812         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
17813
17814         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
17815         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
17816         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
17817         to support multiple C libraries.  Handle Bionic.
17818         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
17819         (BIONIC_DYNAMIC_LINKER64): Define.
17820         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
17821         Update.
17822         (TARGET_HAS_SINCOS): Enable for Bionic.
17823
17824         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
17825         the last option specified on command line take effect.
17826         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
17827         (mbionic): New.
17828         (mglibc, muclibc): Update.
17829
17830         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
17831         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
17832         DEFAULT_LIBC.
17833
17834         * doc/invoke.texi (-mglibc, -muclibc): Update.
17835         (-mbionic): Document.
17836
17837 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17838
17839         * c-common.h (c_register_addr_space): Add prototype.
17840         (ADDR_SPACE_KEYWORD): Remove.
17841         * c-common.c (c_register_addr_space): New function.
17842         (c_addr_space_name): Reimplement.
17843         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
17844
17845         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
17846         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
17847
17848         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
17849         Remove TARGET_ADDR_SPACE_KEYWORDS.
17850
17851 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17852
17853         * input.c: New file.
17854         * input.h (main_input_filename): Move declaration to toplev.h.
17855         * toplev.c (input_location, line_table): Move to input.c
17856         * toplev.h (main_input_filename): Move declaration from input.h.
17857         * tree.c (expand_location): Move to input.c.
17858         * Makefile.in (OBJS-common): Add input.o.
17859         (input.o): Add dependencies.
17860
17861 2010-05-27  Richard Guenther  <rguenther@suse.de>
17862
17863         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
17864         for non-existant files.
17865         (fork_execute): Mark args_name file as deleted.
17866
17867 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17868
17869         PR bootstrp/44287
17870         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
17871         (narrow_signed_type): Likewise.
17872
17873 2010-05-26  Jan Hubicka  <jh@suse.cz>
17874
17875         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
17876         edge only when checking is enabled; check using former_clone_of;
17877         check inline clones too.
17878         (cgraph_materialize_clone): Record former_clone_of pointer.
17879         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
17880         combining redirections; dump args_to_skip bitmap
17881         (cgraph_materialize_all_clones): Do no redirection here.
17882         * ipa-inline.c (inline_transform): Do redirection here.
17883         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
17884         cheking only).
17885
17886 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17887
17888         * config/avr/avr-c.c: Do not include regs.h.
17889         Include cpplib.h for cpp_define and tree.h for c-common.h.
17890         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
17891         * config/avr/t-avr: Fix dependencies for avr-c.o.
17892
17893 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17894
17895         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
17896         string instead of SYMBOL_REF rtx.
17897         * rtl.h (set_stack_check_libfunc): Move prototype from here...
17898         * libfuncs.h: ...to here.  Adjust for explow.c change.
17899
17900 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
17901
17902         * pretty-print.c: Don't include ggc.h.
17903         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
17904         (identifier_to_locale): Use them for allocation.
17905         * pretty-print.h (identifier_to_locale_alloc,
17906         identifier_to_locale_free): Declare.
17907         * toplev.c (alloc_for_identifier_to_locale): New.
17908         (general_init): Set identifier_to_locale_alloc and
17909         identifier_to_locale_free.
17910         * Makefile.in (pretty-print.o): Update dependencies.
17911
17912 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17913
17914         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
17915         pointer types if they have different alignment or mode.
17916
17917 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
17918
17919         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17920         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17921         * config/sparc/sparc-protos.h (function_value): Remove declaration.
17922         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
17923         sparc_function_value_regno_p): New functions.
17924         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17925         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17926         (function_value): Rename to...
17927         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
17928         argument to 'outgoing'.
17929         (function_arg_record_value, function_arg_union_value,
17930         function_arg_vector_value): Update comment.
17931
17932 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17933
17934         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
17935         (fde_needed_for_eh_p): New predicate.
17936         (output_call_frame_info): Use it throughout to decide whether FDEs
17937         are needed for EH purpose.
17938         (dwarf2out_begin_prologue): Reorder assignments.
17939
17940 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17941
17942         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
17943         special case loop->header.
17944         (is_predicated): New.
17945         (if_convertible_loop_p): Call it.
17946
17947 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17948
17949         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
17950         iterator in parameter.  Do not generate code during the analysis.
17951         (tree_if_convert_cond_stmt): Removed.
17952         (tree_if_convert_stmt): Removed.
17953         (predicate_bbs): New.
17954         (if_convertible_loop_p): Call predicate_bbs.
17955         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
17956         now contains all the analysis part.
17957
17958 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17959
17960         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
17961         statements in the analysis part.
17962         (tree_if_convert_stmt): Update comment.
17963         (remove_conditions_and_labels): New.
17964         (combine_blocks): Call remove_conditions_and_labels.
17965         (tree_if_conversion): Update comment.
17966
17967 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17968
17969         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
17970         than 2 predecessors or more than 2 successors.
17971
17972 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17973
17974         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
17975         of loops in which the data dependence analysis fails.
17976
17977 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17978
17979         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
17980         CDI_POST_DOMINATORS.
17981         (tree_if_conversion): Same.
17982
17983 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17984
17985         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
17986
17987 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17988
17989         * tree-if-conv.c: Update copyright years.  Fix comments.
17990         Fix indentation.
17991
17992 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
17993
17994         * builtin-types.def (BT_INT128): New primitive type.
17995         (BT_UINT128): Likewise.
17996         * c-common.c (c_common_r): Add __int128 keyword.
17997         (c_common_type_for_size): Handle __int128.
17998         (c_common_type_for_mode): Likewise.
17999         (c_common_signed_or_unsigned_type): Likewise.
18000         (c_common_nodes_and_builtins): Add builtin type
18001         if target supports 128-bit integer scalar.
18002         * c-common.h (enum rid): Add RID_INT128.
18003         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18004         if target supports 128-bit integer scalar.
18005         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18006         (finish_declspecs): Likewise.
18007         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18008         (c_token_starts_declspecs): Likewise.
18009         (c_parser_declspecs): Likewise.
18010         (c_parser_attributes): Likewise.
18011         (c_parser_objc_selector): Likewise.
18012         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18013         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18014         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18015         * tree.c (make_or_reuse_type): Likewise.
18016         (make_unsigned_type): Likewise.
18017         (build_common_tree_nodes_2): Likewise.
18018         * tree.h (enum integer_type_kind): Add itk_int128 and
18019         itk_unsigned_int128.
18020         (int128_integer_type_node): New define.
18021         (int128_unsigned_type_node): New define.
18022         * doc/extend.texi: Add documentation about __int128 type.
18023
18024 2010-05-26  Richard Guenther  <rguenther@suse.de>
18025
18026         * tree-ssa-sccvn.c (copy_nary): Adjust.
18027         (copy_phis): Rename to ...
18028         (copy_phi): ... this.  Adjust.
18029         (copy_references): Rename to ...
18030         (copy_reference): ... this.  Adjust.
18031         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18032         result into the valid table.
18033
18034 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18035
18036         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18037         insn-config.h, insn-codes.h, recog.h, and optabs.h.
18038
18039 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18040
18041         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18042
18043 2010-05-26  Richard Guenther  <rguenther@suse.de>
18044
18045         * opts.c (common_handle_option): Handle OPT_Ofast.
18046
18047 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18048
18049         * diagnostic.c: Don't include opts.h.
18050         (permissive_error_option): Define.
18051         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
18052         for classify_diagnostic.  Don't use memset for
18053         classify_diagnostic.  Initialize new and recently added fields.
18054         (diagnostic_classify_diagnostic): Use context->n_opts instead of
18055         N_OPTS.
18056         (diagnostic_report_diagnostic): Pass context parameter to
18057         diagnostic_report_warnings_p.  Use option_enabled and option_name
18058         hooks from context.
18059         (emit_diagnostic): Use permissive_error_option.
18060         (permerror): Likewise.
18061         * diagnostic.h: Don't include options.h.
18062         (struct diagnostic_context): Add n_opts, opt_permissive,
18063         inhibit_warnings, warn_system_headers, option_enabled and
18064         option_name fields.  Change classify_diagnostic to a pointer.
18065         * opts-diagnostic.h: New file.
18066         * opts.c: Include opts-diagnostic.h.
18067         (common_handle_option): Set global_dc fields for -Wfatal-errors,
18068         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18069         (option_name): New function.
18070         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18071         (c_common_handle_option): Set global_dc->permissive for
18072         -fpermissive.
18073         * c-common.c (c_cpp_error): Save and restore
18074         global_dc->warn_system_headers, not variable warn_system_headers.
18075         * toplev.c: Include opts-diagnostic.h.
18076         (general_init): Update call to diagnostic_initialize.  Set
18077         global_dc->show_column, global_dc->option_enabled and
18078         global_dc->option_name.
18079         (process_options): Don't set global_dc fields here.
18080         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18081         (diagnostic.o, opts.o, toplev.o): Update dependencies.
18082
18083 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18084
18085         * config/picochip/picochip.md (movsi): Split a movsi from a
18086         const after reload.
18087
18088 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18089
18090         * ggc-zone.c: Update copyright year.
18091         (poison_region): Mark memory for Valgrind as undefined before
18092         memset () call and inaccessible afterwards.
18093         (ggc_pch_total_size): Change type of i to int.
18094
18095 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18096
18097         * ggc-common.c (ggc_free_overhead): Allow empty slot.
18098
18099 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18100
18101         * ggc-common.c: Update copyright year.
18102         (ggc_rlimit_bound): Remove prototype.  Compile only if
18103         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18104         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18105         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
18106         (ggc_min_heapsize_heuristic): Likewise.
18107
18108 2010-05-26  Richard Guenther  <rguenther@suse.de>
18109
18110         PR rtl-optimization/44164
18111         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18112         no-common access-path disambiguation.
18113         (indirect_ref_may_alias_decl_p): Adjust.
18114         (indirect_refs_may_alias_p): Likewise.
18115         (refs_may_alias_p_1): Likewise.
18116
18117 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18118
18119         * c-typeck.c: Do not include expr.h.
18120
18121 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18122
18123         * rtl.h (decl_default_tls_model): Move prototype from here...
18124         * output.h: ...to here.
18125         * c-decl.c: Do not include rtl.h.
18126         * c-pragma.c: Likewise.
18127         * c-parser.c: Likewise.
18128         * c-gimplify.c: Likewise.  And also not hard-reg-set.
18129         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
18130         FIXME note for it.  Add a FIXME note for expr.h.
18131         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18132         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18133         defined.
18134
18135 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
18136
18137         PR target/44199
18138         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18139         or total_size is larger than red zone size for non-V4 ABI, emit a
18140         stack_tie resp. frame_tie insn before stack pointer restore.
18141         * config/rs6000/rs6000.md (frame_tie): New insn.
18142
18143 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18144
18145         * function.h (struct function): Add can_throw_non_call_exceptions bit.
18146         * lto-streamer-in.c (input_function): Stream it in.
18147         * lto-streamer-out.c (output_function): Stream it out.
18148         * function.c (allocate_struct_function): Set it.
18149         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18150         for flag_non_call_exceptions.
18151         * cfgbuild.c (control_flow_insn_p): Likewise.
18152         (make_edges): Likewise.
18153         * cfgexpand.c (expand_stack_alignment): Likewise.
18154         * combine.c (distribute_notes): Likewise.
18155         * cse.c (cse_extended_basic_block): Likewise.
18156         * except.c (insn_could_throw_p): Likewise.
18157         * gcse.c (simple_mem): Likewise.
18158         * ipa-pure-const.c (check_call): Likewise.
18159         (check_stmt ): Likewise.
18160         * lower-subreg.c (lower-subreg.c): Likewise.
18161         * optabs.c (emit_libcall_block): Likewise.
18162         (prepare_cmp_insn): Likewise.
18163         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18164         * postreload.c (rest_of_handle_postreload): Likewise.
18165         * reload1.c (reload_as_needed): Likewise.
18166         (emit_input_reload_insns): Likewise.
18167         (emit_output_reload_insns): Likewise.
18168         (fixup_abnormal_edges): Likewise.
18169         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18170         * store-motion.c (find_moveable_store): Likewise.
18171         * tree-eh.c (stmt_could_throw_p): Likewise.
18172         (tree_could_throw_p): Likewise.
18173         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18174         * config/arm/arm.c (arm_expand_prologue): Likewise.
18175         (thumb1_expand_prologue): Likewise.
18176         * config/rx/rx.md (cbranchsf4): Likewise.
18177         (cmpsf): Likewise.
18178         * config/s390/s390.c (s390_emit_prologue): Likewise.
18179         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18180         (inline_forbidden_into_p): New predicate.
18181         (expand_call_inline): Use it to forbid inlining.
18182         (tree_can_inline_p): Likewise.
18183
18184 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18185
18186         * config/i386/i386-c.c: Do not include rtl.h.
18187         * config/i386/t-i386: Update dependencies.
18188
18189 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18190
18191         * attribs.c: Do not include rtl.h.
18192         * Makefile.in: Update dependencies.
18193
18194 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
18195
18196         * double-int.h (double_int_and): New.
18197         * combine.c (try_combine): Clean up, use double_int_* and
18198         immed_double_int_const functions.
18199
18200 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18201
18202         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18203         stderr to /dev/null instead of grep -q.
18204         * configure: Regenerate.
18205
18206 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18207
18208         * Makefile.in (EXCEPT_H): Fix typo.
18209
18210 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
18211
18212         * ira-build.c (update_conflict_hard_reg_costs): New.
18213         (ira_build): Call update_conflict_hard_reg_costs.
18214
18215 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18216
18217         PR debug/41371
18218         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18219         ENABLE_CHECKING.
18220         (intersect_loc_chains): Walk the s2var's loc_chain together
18221         with s1node chain as long as the locations are equal, don't
18222         call find_loc_in_1pdv in that case.
18223
18224         PR debug/42801
18225         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18226         (copy_bind_expr): ... instead of here.
18227         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18228         if the block hasn't been remapped.
18229         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18230         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18231
18232 2010-05-25  Richard Guenther  <rguenther@suse.de>
18233
18234         PR middle-end/44069
18235         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18236         out-of-bounds array accesses.
18237
18238 2010-05-25  Richard Guenther  <rguenther@suse.de>
18239
18240         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18241         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18242         (run_gcc): Re-organize to make cleanup easier.
18243
18244 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18245
18246         * config/s390/s390.c (optimization_options): Fix and move the
18247         flag_prefetch_loop_arrays override ...
18248         (override_options): ... here.
18249
18250 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
18251
18252         * diagnostic.c: Don't include plugin.h.
18253         (diagnostic_report_diagnostic): Don't handle plugins specially
18254         here.  Pass context to internal_error callback.
18255         * diagnostic.h (struct diagnostic_context): Add context parameter
18256         to internal_error callback.
18257         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18258         * plugin.h (struct diagnostic_context): Declare.
18259         (warn_if_plugins, plugins_internal_error_function): Declare.
18260         * toplev.c (general_init): Set global_dc->internal_error.
18261         * Makefile.in (diagnostic.o): Update dependencies.
18262
18263 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
18264
18265         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18266         * config/rs6000/t-darwin64: New.
18267         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18268         build crt2.
18269
18270 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
18271
18272         PR 44203
18273         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18274         match the original (and intended) behaviour before r159557.  This
18275         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18276         in two ways.
18277
18278 2010-05-25  Richard Guenther  <rguenther@suse.de>
18279
18280         * doc/invoke.texi: Document -Ofast.
18281         * target.h (struct gcc_target): Add handle_ofast.
18282         * target-def.h (TARGET_HANDLE_OFAST): Add.
18283         (TARGET_INITIALIZER): Adjust.
18284         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
18285         * common.opt (Ofast): Add.
18286
18287 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18288
18289         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18290         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18291
18292 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18293
18294         PR target/43610
18295         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18296         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
18297         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
18298         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18299
18300 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18301
18302         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18303         DW_OP_minus with negated offset instead of DW_OP_plus.
18304         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18305
18306 2010-05-25  Wei Guozhi  <carrot@google.com>
18307
18308         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18309         tst instruction and a new alternative.
18310         * config/arm/constraints.md (Pu): New constraint.
18311
18312 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
18313
18314         * function.c (assign_stack_local_1): Initialize variable
18315         to avoid warning when bootstrapping at -O3.
18316
18317 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18318
18319         * configure.ac (all_lang_makefiles): Remove everything related to it.
18320         * configure: Regenerate.
18321         * Makefile.in: Fix reference to ada Make-lang.in.
18322         Remove support for LANG_MAKEFILES.
18323
18324 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
18325             Sandra Loosemore  <sandra@codesourcery.com>
18326
18327         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18328         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18329         description.  Add arm_neon_fp16_ok.
18330         (Add Options): Add arm_neon and arm_neon_fp16.
18331
18332 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
18333
18334         * diagnostic.c: Don't include flags.h.
18335         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18336         context parameters.  Check flags in the context passed as a parameter.
18337         (diagnostic_build_prefix): Add context parameter.  Check
18338         show_column flag in context.
18339         (diagnostic_action_after_output): Check fatal_errors flag in context.
18340         (diagnostic_report_current_module): Check show_column flag in context.
18341         (default_diagnostic_starter): Update call to
18342         diagnostic_build_prefix.
18343         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18344         (emit_diagnostic): Pass context to permissive_error_kind.
18345         (permerror): Pass context to permissive_error_kind.
18346         * diagnostic.h (struct diagnostic_context): Add show_column,
18347         pedantic_errors, permissive and fatal_errors fields.
18348         (diagnostic_build_prefix): Update prototype.
18349         * langhooks.c
18350         * toplev.c (process_options): Set flags in global_dc from
18351         flag_show_column, flag_pedantic_errors, flag_permissive,
18352         flag_fatal_errors.
18353         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18354         to diagnostic_build_prefix.
18355         * Makefile.in (diagnostic.o): Update dependencies.
18356
18357 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18358
18359         * config/i386/ia32intrin.h (__crc32q): Define only if
18360         __SSE4_2__ is defined.
18361
18362 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
18363
18364         PR target/44132
18365         PR middle-end/43602
18366         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18367         DECL_VISIBILITY_SPECIFIED.
18368         (emutls_decl): Set DECL_PRESERVE_P and copy
18369         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18370         (emutls_finalize_control_var): New callback.
18371         (emutls_finish): Finalize emutls control variables.
18372         * toplev.c (compile_file): Move the call to emutls_finish ()
18373         before varpool_assemble_pending_decls ().
18374
18375 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
18376
18377         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18378         added to the preprocessor condition.
18379
18380 2010-05-24  Paul Brook  <paul@codesourcery.com>
18381
18382         * gengtype-lex.l: Add HARD_REG_SET.
18383         * expr.c (expand_expr_real_1): Record writes to hard registers.
18384         * function.c (rtl_data): Add asm_clobbers.
18385         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18386         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18387         Use crtl->asm_clobbers.
18388
18389 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18390
18391         * doc/makefile.texi (Makefile): Mention stages 'profile'
18392         and 'feedback' for profiledbootstrap.
18393
18394 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18395
18396         PR target/44245
18397         * config/i386/i386.c (def_builtin): Properly check
18398         OPTION_MASK_ISA_64BIT.
18399
18400 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18401
18402         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18403         typedefs with different but compatible types.  Allow duplicate
18404         typedefs with the same type except for pedantic non-C1X, but give
18405         warning for variably modified types.
18406         * c-typeck.c (tagged_types_tu_compatible_p,
18407         function_types_compatible_p, type_lists_compatible_p,
18408         comptypes_internal): Add parameter different_types_p; set
18409         *different_types_p for different but compatible types.  All
18410         callers changed.
18411         (comptypes_check_different_types): New.
18412         * c-tree.h (comptypes_check_different_types): Declare.
18413
18414 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18415
18416         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18417         * jump.c: Include basic-block.h.
18418         * profile.c: Likewise.
18419         * tree-profile.c: Likewise.
18420         * coverage.c: Likewise.
18421         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18422         (optimize_function_for_speed_p): Likewise.
18423         * function.h (optimize_function_for_size_p,
18424         optimize_function_for_speed_p): Moved here from basic-block.h.
18425         * Makefile.in: Update dependencies.
18426
18427 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18428
18429         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18430         before calling make; allow override through $MAKE.
18431         * doc/invoke.texi (Optimize Options): Document override.
18432
18433 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18434
18435         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18436         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18437         (rs6000_mode_dependent_address_ptr): Make static.
18438         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18439         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18440         Remove.
18441
18442 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18443
18444         PR target/43869
18445         * config/i386/i386.c: Make sure that the correct regparm is passed.
18446
18447 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18448
18449         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18450         * sbitmap.c: ...to here to internalize sbitmap element access.
18451         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18452         Explain why basic-block.h is included.
18453         * function.h: Include tm.h for CUMULATIVE_ARGS.
18454         * Makefile.in: Update dependencies.
18455
18456 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18457
18458         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18459         New core types.
18460         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18461         * sbitmap.c: Include sbitmap.h.
18462         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18463         hard-reg-set.h.  Split everything related to regsets out from here...
18464         * regset.h: ...to here.  New file.
18465         * df.h: Include regset.h and sbitmap.h.
18466         * tree-flow.h: Likewise.
18467         * cfgloop.h: Likewise.
18468         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18469         * cgraph.h: Include vec.h and function.h.
18470         * reload.h (struct insn_chain): Change types of live_throughout
18471         and dead_or_set from regset_head to bitmap_head.
18472         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18473         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18474         spilled_regs from regset_head to bitmap_head to avoid dependency
18475         in regset.h.
18476         * sel-sched-ir.h: Include regset.h.
18477         * reload.c: Include df.h before reload.h.
18478         * caller-save.c: Likewise.
18479         * reload1.c: Likewise.
18480         * ira.c: Likewise.
18481         (mark_elimination): Update type of r to bitmap, consistent with
18482         DF_LR_IN.
18483         * dominance.c: Include bitmap.h.
18484         * modulo-sched.c: Include df.h.
18485         * cfganal.c: Include bitmap.h and sbitmap.h.
18486         * cfgbuild.c: Include sbitmap.h.
18487         * lcm.c: Include sbitmap.h.
18488         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18489         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18490         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18491         * cselib.c: Include bitmap.h.
18492         * tree-optimize.c: Include regset.h.
18493         * stmt.c: Include bitmap.h.
18494         * Makefile.in: Update dependencies.
18495
18496 2010-05-22  Jan Hubicka  <jh@suse.cz>
18497
18498         * cgraph.h (struct varpool_node): Add same_comdat_group.
18499         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18500         pointer.
18501         (output_varpool): Update call of lto_output_varpool_node.
18502         (input_varpool): Read same_comdat_group pointer.
18503         (input_varpool_1): Fixup same_comdat_group pointer.
18504         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18505         group is needed, all are.
18506         * varpool.c (varpool_remove_node): Remove node from same comdat group
18507         linklist too.
18508         (varpool_analyze_pending_decls): Walk same comdat groups.
18509
18510 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18511
18512         * rtl.h (union rtunion_def): Remove rt_bit member.
18513         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18514         * print-rtl (print_rtx): Do not print the member.
18515         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18516         * gengenrtl.c (type_from_format): Likewise.
18517         (accessor_from_format): Likewise.
18518
18519 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18520
18521         * dbgcnt.c: Include toplev.h instead of errors.h.
18522         * ira-emit.c: Don't include errors.h.
18523         * ira.c: Include toplev.h instead of errors.h.
18524         * lto-compress.c: Include toplev.h instead of errors.h.
18525         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18526         ira.o, dbgcnt.o): Update dependencies.
18527
18528 2010-05-22  Richard Guenther  <rguenther@suse.de>
18529
18530         * gimple.c (gimple_types_compatible_p): Check type qualifications
18531         before merging pointer to complete and pointer to incomplete type.
18532         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18533         we use our own resolution algorithm.  The gold linker plugin
18534         doesn't do the job we want it to do here.
18535
18536 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18537
18538         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18539         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18540         (sparc_mode_dependent_address_p): New function.
18541
18542 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18543
18544         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18545
18546         * timevar.c: Do not include any core headers.
18547         (timevar_print): De-i18n-ize.
18548         (print_time): Likewise.
18549         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18550
18551 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18552
18553         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18554         langhooks-def.h.
18555         (diagnostic_initialize): Initialize x_data not last_function.
18556         (diagnostic_report_current_function): Move to tree-diagnostic.c.
18557         (default_diagnostic_starter): Call
18558         diagnostic_report_current_module not
18559         diagnostic_report_current_function.
18560         (diagnostic_report_diagnostic): Initialize x_data not
18561         abstract_origin.
18562         (verbatim): Likewise.
18563         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18564         x_data.
18565         (struct diagnostic_context): Change last_function to x_data.
18566         (diagnostic_auxiliary_data): Replace with
18567         diagnostic_context_auxiliary_data and
18568         diagnostic_info_auxiliary_data.
18569         (diagnostic_last_function_changed, diagnostic_set_last_function,
18570         diagnostic_report_current_function): Move to tree-diagnostic.h.
18571         (print_declaration, dump_generic_node, print_generic_stmt,
18572         print_generic_stmt_indented, print_generic_expr,
18573         print_generic_decl, debug_c_tree, dump_omp_clauses,
18574         print_call_name, debug_generic_expr, debug_generic_stmt,
18575         debug_tree_chain, default_tree_printer): Move to
18576         tree-pretty-print.h.
18577         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18578         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18579         gimple-pretty-print.h.
18580         * pretty-print.c: Don't include tree.h
18581         (pp_base_format): Don't handle %K here.
18582         (pp_base_tree_identifier): Move to tree-pretty-print.c.
18583         * pretty-print.h (text_info): Change abstract_origin to x_data.
18584         (pp_tree_identifier, pp_unsupported_tree,
18585         pp_base_tree_identifier): Move to tree-pretty-print.h.
18586         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18587         tree-pretty-print.h: New files.
18588         * tree-pretty-print.c: Include tree-pretty-print.h.
18589         (percent_K_format): New.  Moved from pretty-print.c.
18590         (pp_base_tree_identifier): Move from pretty-print.c.
18591         * c-objc-common.c: Include tree-pretty-print.h.
18592         (c_tree_printer): Handle %K here.
18593         * langhooks.c: Include tree-diagnostic.h.
18594         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18595         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18596         (default_tree_printer): Handle %K using percent_K_format.
18597         (general_init): Use default_tree_diagnostic_starter.
18598         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18599         (free_lang_data): Use default_tree_diagnostic_starter.
18600         * c-pretty-print.c: Include tree-pretty-print.h.
18601         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18602         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18603         * dwarf2out.c: Include tree-pretty-print.h.
18604         * except.c: Include tree-pretty-print.h.
18605         * gimple-pretty-print.c: Include tree-pretty-print.h and
18606         gimple-pretty-print.h.
18607         * gimplify.c: Include tree-pretty-print.h.
18608         * graphite-poly.c: Include tree-pretty-print.h and
18609         gimple-pretty-print.h.
18610         * ipa-cp.c: Include tree-pretty-print.h.
18611         * ipa-inline.c: Include gimple-pretty-print.h.
18612         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18613         * ipa-pure-const.c: Include gimple-pretty-print.h.
18614         * ipa-struct-reorg.c: Include tree-pretty-print.h and
18615         gimple-pretty-print.h.
18616         * ipa-type-escape.c: Include tree-pretty-print.h.
18617         * print-rtl.c: Include tree-pretty-print.h.
18618         * print-tree.c: Include gimple-pretty-print.h.
18619         * sese.c: Include tree-pretty-print.h.
18620         * tree-affine.c: Include tree-pretty-print.h.
18621         * tree-browser.c: Include tree-pretty-print.h.
18622         * tree-call-cdce.c: Include gimple-pretty-print.h.
18623         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18624         * tree-chrec.c: Include tree-pretty-print.h.
18625         * tree-data-ref.c: Include tree-pretty-print.h and
18626         gimple-pretty-print.h.
18627         * tree-dfa.c: Include tree-pretty-print.h.
18628         * tree-if-conv.c: Include tree-pretty-print.h and
18629         gimple-pretty-print.h.
18630         * tree-inline.c: Include tree-pretty-print.h.
18631         * tree-into-ssa.c: Include tree-pretty-print.h and
18632         gimple-pretty-print.h.
18633         * tree-nrv.c: Include tree-pretty-print.h.
18634         * tree-object-size.c: Include tree-pretty-print.h and
18635         gimple-pretty-print.h.
18636         * tree-outof-ssa.c: Include tree-pretty-print.h and
18637         gimple-pretty-print.h.
18638         * tree-parloops.c: Include tree-pretty-print.h and
18639         gimple-pretty-print.h.
18640         * tree-predcom.c: Include tree-pretty-print.h and
18641         gimple-pretty-print.h.
18642         * tree-scalar-evolution.c: Include tree-pretty-print.h and
18643         gimple-pretty-print.h.
18644         * tree-sra.c: Include tree-pretty-print.h.
18645         * tree-ssa-address.c: Include tree-pretty-print.h.
18646         * tree-ssa-alias.c: Include tree-pretty-print.h.
18647         * tree-ssa-ccp.c: Include tree-pretty-print.h and
18648         gimple-pretty-print.h.
18649         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18650         * tree-ssa-copy.c: Include tree-pretty-print.h and
18651         gimple-pretty-print.h.
18652         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18653         * tree-ssa-dce.c: Include tree-pretty-print.h and
18654         gimple-pretty-print.h.
18655         * tree-ssa-dom.c: Include tree-pretty-print.h and
18656         gimple-pretty-print.h.
18657         * tree-ssa-dse.c: Include gimple-pretty-print.h.
18658         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18659         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18660         * tree-ssa-live.c: Include tree-pretty-print.h and
18661         gimple-pretty-print.h.
18662         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18663         gimple-pretty-print.h.
18664         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18665         gimple-pretty-print.h.
18666         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18667         gimple-pretty-print.h.
18668         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18669         gimple-pretty-print.h.
18670         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18671         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18672         * tree-ssa-operands.c: Include tree-pretty-print.h and
18673         gimple-pretty-print.h.
18674         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18675         gimple-pretty-print.h.
18676         * tree-ssa-pre.c: Include tree-pretty-print.h and
18677         gimple-pretty-print.h.
18678         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18679         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18680         gimple-pretty-print.h.
18681         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18682         gimple-pretty-print.h.
18683         * tree-ssa-sink.c: Include gimple-pretty-print.h.
18684         * tree-ssa-ter.c: Include tree-pretty-print.h and
18685         gimple-pretty-print.h.
18686         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18687         * tree-ssa.c: Include tree-pretty-print.h and
18688         gimple-pretty-print.h.
18689         * tree-stdarg.c: Include gimple-pretty-print.h.
18690         * tree-switch-conversion.c: Include gimple-pretty-print.h.
18691         * tree-tailcall.c: Include tree-pretty-print.h and
18692         gimple-pretty-print.h.
18693         * tree-vect-data-refs.c: Include tree-pretty-print.h and
18694         gimple-pretty-print.h.
18695         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18696         gimple-pretty-print.h.
18697         * tree-vect-loop.c: Include tree-pretty-print.h and
18698         gimple-pretty-print.h.
18699         * tree-vect-patterns.c: Include gimple-pretty-print.h.
18700         * tree-vect-slp.c: Include tree-pretty-print.h and
18701         gimple-pretty-print.h.
18702         * tree-vect-stmts.c: Include tree-pretty-print.h and
18703         gimple-pretty-print.h.
18704         * tree-vectorizer.c: Include tree-pretty-print.h.
18705         * tree-vrp.c: Include tree-pretty-print.h and
18706         gimple-pretty-print.h.
18707         * value-prof.c: Include tree-pretty-print.h and
18708         gimple-pretty-print.h.
18709         * var-tracking.c: Include tree-pretty-print.h.
18710         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18711         (tree-diagnostic.o): New dependencies.
18712         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18713         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18714         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18715         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18716         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18717         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18718         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18719         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18720         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
18721         tree-ssa-address.o, tree-ssa-loop-niter.o,
18722         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
18723         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
18724         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
18725         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
18726         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
18727         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
18728         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
18729         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
18730         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
18731         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
18732         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
18733         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
18734         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
18735         tree-switch-conversion.o, var-tracking.o, value-prof.o,
18736         cfgexpand.o, pretty-print.o): Update dependencies.
18737
18738 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
18739
18740         * tree-ssa-structalias.c: Remove tm_p.h from include.
18741
18742 2010-05-21  Jeff Law  <law@redhat.com>
18743
18744         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
18745
18746 2010-05-21  Jason Merrill  <jason@redhat.com>
18747
18748         * tree-eh.c (cleanup_is_dead_in): New.
18749         (lower_try_finally): Don't generate a dead cleanup region.
18750         (lower_cleanup): Likewise.
18751
18752 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18753
18754         PR debug/44223
18755         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
18756         unchain each use from the cyclic next_regno_use chain first.
18757
18758 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18759
18760         * real: Do not include gmp.h, mpfr.h, and mpc.h.
18761         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
18762         (real_value_negate, real_value_abs): New prototypes.
18763         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
18764         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
18765         new include file for interface between MPFR and REAL_VALUE_TYPE.
18766         * real.c: Include realmpfr.h.
18767         (real_arithmetic2): Remove legacy function.
18768         (real_value_negate): New.
18769         (real_value_abs): New.
18770         (mfpr_from_real, real_from_mpfr): Move from here...
18771         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
18772         * builtins.c: Include realmpfr.h.
18773         * fold-const.c: Include realmpfr.h.
18774         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18775         (fold_negate_const): Likewise.
18776         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
18777         * toplev.c: Include realmpfr.h.
18778         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
18779         and real_value_negate.
18780         * fixed-value.c (check_real_for_fixed_mode): Likewise.
18781         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
18782         (vfp3_const_double_index): Likewise.
18783         (arm_print_operand): Likewise.
18784         * Makefile.in: Update dependencies.
18785
18786 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18787
18788         * config/s390/s390.c (override_options): Increase the default
18789         of max-completely-peel-times.
18790
18791 2010-05-21  Julian Brown  <julian@codesourcery.com>
18792             Mark Mitchell  <mark@codesourcery.com>
18793
18794         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
18795         sibling calls for Thumb-1.
18796         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
18797         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
18798         Thumb-2.
18799         (*call_insn, *call_value_insn): Don't use for Thumb-2.
18800         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
18801         for Thumb-2.
18802         (return): New expander.
18803         (*arm_return): New name for ARM return insn.
18804         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
18805
18806 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
18807
18808         * config.gcc (sparc64-*-rtems*): New target.
18809
18810 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18811
18812         * tree.c (build_function_decl_skip_args): Fix grammar.
18813         (build_function_type_list_1): Fix typos, adjust formatting.
18814
18815 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18816
18817         * tree.h: Include real.h and fixed-value.h as basic datatypes.
18818         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
18819         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
18820         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
18821         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
18822         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
18823         tree-pretty-print.c, tree-loop-distribution.c,
18824         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
18825         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
18826         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
18827         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
18828         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
18829         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
18830         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
18831         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
18832         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
18833         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
18834         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
18835         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
18836         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
18837         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
18838         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
18839         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
18840         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
18841         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
18842         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
18843         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
18844         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
18845         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
18846         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
18847         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
18848         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
18849         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
18850         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
18851         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
18852         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
18853         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
18854         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
18855         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
18856         config/score/score7.c, config/score/score.c, config/arm/arm.c,
18857         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
18858         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
18859         config/bfin/bfin.c: Clean up redundant includes.
18860         * Makefile.in: Update accordingly.
18861
18862 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18863
18864         PR middle-end/44204
18865         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
18866         statement has no arguments.
18867
18868 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
18869
18870         PR/44139
18871         * varasm.c (emutls_decl): Merge attributes to new decl.
18872
18873 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
18874
18875         PR middle-end/44101
18876         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
18877         around the uniquized constructor if its type requires a conversion.
18878
18879 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18880
18881         PR debug/44205
18882         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
18883         at -O0 goto_locus of any of the incoming edges differs from
18884         goto_locus of outgoing edge, or gimple_location of any of the
18885         labels differs.
18886
18887 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
18888
18889         * ira.c (ira_non_ordered_class_hard_regs): Define.
18890         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
18891         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
18892         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
18893         cost of unaligned hard regs when allocating multi-reg pseudos.
18894
18895 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
18896
18897         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
18898         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
18899         for TARGET_NO_FLOAT.
18900         * config/mips/mips.c (mips_file_start): Expand conditional expression
18901         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
18902         (mips_override_options): Move -mno-float override -msoft-float and
18903         -mhard-float.
18904         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
18905         Condition(TARGET_SUPPORTS_NO_FLOAT).
18906         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
18907         __mips_no_float here.
18908         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
18909         (TARGET_SUPPORTS_NO_FLOAT): Define.
18910         * config/mips/sdemtk.opt: Delete.
18911
18912 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
18913
18914         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
18915
18916 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
18917
18918         PR target/43733
18919         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
18920         * configure: Regenerate.
18921         * config.in: Regenerate.
18922         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
18923         instead of sahf only for 64bit targets.
18924
18925 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
18926
18927         PR debug/44178
18928         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
18929         setup_ref_regs for DEBUG_INSNs.
18930
18931 2010-05-20  Jan Hubicka  <jh@suse.cz>
18932
18933         PR middle-end/44197
18934         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
18935
18936 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
18937
18938         PR bootstrap/43870
18939         * df-scan.c (df_ref_compare): Stabilize sort.
18940
18941 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
18942
18943         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
18944         argument.  Don't use DW_OP_piece if offset is non-zero,
18945         put offset into second DW_OP_bit_piece argument.
18946         (dw_sra_loc_expr): Adjust callers.  For memory expressions
18947         compute offset.
18948
18949 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
18950
18951         PR target/44202
18952         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
18953         settings for 16-bit-constant "addo" alternative.
18954
18955 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
18956
18957         * config/mips/mips-dsp.md (add<DSPV:mode>3,
18958         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
18959
18960         PR target/43764
18961         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
18962         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
18963         Use it.
18964
18965 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
18966
18967         * diagnostic.c (FLOAT, FFS): Don't undefine.
18968         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
18969         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
18970         include ordering.
18971
18972 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
18973
18974         * combine.c (propagate_for_debug): Call make_compound_operation
18975         on the source value.
18976         (try_combine): When implementing a split chosen by find_split_point,
18977         either copy i2src or set it to null.  Assert that i2src is not null
18978         before substituting into CALL_INSN_FUNCTION_USAGE.
18979
18980 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
18981
18982         * double-int.h (double_int_ior): New function.
18983         * tree.h (build_int_cst_wide_type): Remove.
18984         * tree.c (build_int_cst_wide_type): Remove.
18985         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
18986         of build_int_cst_wide_type.
18987         * stor-layout.c (set_sizetype): (Ditto.).
18988         * dojump.c (do_jump): Use build_int_cstu instead of
18989         build_int_cst_wide_type.
18990
18991 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18992
18993         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
18994         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
18995         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
18996         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
18997         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
18998         propagate the 'data' argument to copy_tree_r.
18999         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19000         Propagate 'data' argument to walk_tree.
19001         (copy_if_shared): New function.
19002         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19003         (unmark_visited): New function.
19004         (unshare_body): Call copy_if_shared instead of doing it manually.
19005         (unvisit_body): Call unmark_visited instead of doing it manually.
19006
19007 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
19008
19009         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19010         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
19011         * hooks.c: Likewise.
19012         * target-def.h (TARGET_FOLD_BUILTIN): Define to
19013         hook_tree_tree_int_treep_bool_null.
19014         * target.h (struct gcc_target): Update signature of fold_builtin
19015         field.
19016         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19017         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19018         instead of the call expression.
19019         (fold_builtin_call_array): Pass n and argarray directly.
19020         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19021         consing a list.
19022         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
19023         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
19024         `i' and use it in place of `arity'.
19025         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19026         Dereference `args' directly.
19027         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19028
19029 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19030
19031         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19032         3dnow, sse3, sse2.
19033         (Directives): Document optional dg-require-effective-target
19034         selector.
19035
19036 2010-05-19  Richard Guenther  <rguenther@suse.de>
19037
19038         PR lto/44196
19039         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19040
19041 2010-05-19  Richard Guenther  <rguenther@suse.de>
19042
19043         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19044         * common.opt (fwhopr=): New.
19045         * opts.c (common_handle_option): Handle OPT_fwhopr.
19046         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19047         * collect2.c (main): Match -fwhopr*.
19048         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19049         Execute ltrans stage in parallel when jobs is bigger than 1.
19050
19051 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19052
19053         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19054         pentiumpro on Solaris 8/x86 with Sun as.
19055         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19056         hidden alias bug.
19057         (gcc_cv_as_ix86_quad): Check for .quad directive.
19058         * configure: Regenerate.
19059         * config.in: Regenerate.
19060         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19061
19062 2010-05-19  Martin Jambor  <mjambor@suse.cz>
19063
19064         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19065         also for indirect edges.  Actual printing moved...
19066         (ipa_print_node_jump_functions_for_edge): ...here.
19067         (ipa_compute_jump_functions): Renamed to
19068         ipa_compute_jump_functions_for_edge and made static.
19069         (ipa_compute_jump_functions): New function.
19070         (make_edge_direct_to_target): Check if the number of arguments on
19071         the newly direct edge is the same as the number of parametrs of
19072         the callee.
19073         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19074         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
19075         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19076         analysis functions unconditionally, call the new
19077         ipa_analyze_params_uses on the node instead of every edge.
19078
19079 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
19080
19081         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19082         to tree.
19083         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
19084         also checks for a constant int vs.  non-constant but
19085         loop-invariant steps.
19086         (find_or_create_group): Change the sort algorithm to only consider
19087         steps that are constant ints.
19088         (idx_analyze_ref): Adopt code to handle a tree instead of a
19089         HOST_WIDE_INT for step.
19090         (gather_memory_references_ref): Handle tree instead of int and be
19091         prepared to see a NULL_TREE.
19092         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19093         prefetches if the step cannot be calculated at compile time.
19094         (issue_prefetch_ref): Issue prefetches for non-constant but
19095         loop-invariant steps.
19096
19097 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19098
19099         Revert:
19100         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19101
19102         * tree.h (build_call_list): Remove.
19103         * tree.c (build_call_list): Remove.
19104
19105 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19106
19107         * tree.h (build_call_list): Remove.
19108         * tree.c (build_call_list): Remove.
19109
19110 2010-05-18  Jan Hubicka  <jh@suse.cz>
19111
19112         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19113
19114 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
19115
19116         PR rtl-optimization/43332
19117         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19118
19119 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
19120
19121         * tree.h (build_int_cstu): Implement as static inline.
19122         * tree.c (build_int_cstu): Remove function.
19123         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19124         sign extended.
19125
19126 2010-05-18  Richard Guenther  <rguenther@suse.de>
19127
19128         PR lto/44143
19129         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
19130         (debug): Initialize from -save-temps.
19131         (collect_execute): Print command-line when verbose.
19132         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
19133         for ltrans invocation.  Produce -dumpbase flag again.
19134         (process_args): Remove.
19135         (main): Simplify.
19136         * collect2.c (maybe_run_lto_and_relink): Only pass object
19137         files to lto-wrapper.
19138         * gcc.c (LINK_COMMAND_SPEC): Likewise.
19139
19140 2010-05-18  Jan Hubicka  <jh@suse.cz>
19141
19142         * opts.c (decode_options): Do not disable whopr at ipa_cp.
19143         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19144
19145 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19146
19147         PR lto/44184
19148         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19149         in a GIMPLE_ASM.
19150         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19151         in a GIMPLE_ASM.
19152
19153 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
19154
19155         PR debug/41371
19156         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19157         rtx_equal_p inline.
19158
19159 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19160
19161         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19162         lto-macho as lto_binary_reader.
19163
19164         * darwin.c (darwin_asm_named_section): Do not add assembler comment
19165         after .section directive; just print it before the directive instead.
19166
19167 2010-05-17  Jan Hubicka  <jh@suse.cz>
19168
19169         * cgraph.c (cgraph_create_virtual_clone): Only check
19170         versionable_function_p when not in wpa and checking is enabled.
19171         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19172         there are no more functions to materialize.
19173
19174 2010-05-17  Jan Hubicka  <jh@suse.cz>
19175
19176         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19177         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19178         New functions.
19179         (output_cgraph): Call output_cgraph_opt_summary.
19180         (input_cgrpah): Call input_cgraph_opt_summary.
19181         (output_cgraph_opt_summary_p, output_node_opt_summary,
19182         input_node_opt_summary, input_cgraph_opt_section): New functions.
19183         * lto-section-in.c (lto_section_name): Add cgraphopt.
19184         * tree-inline.c (tree_function_versioning): Handle parm_num.
19185         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19186         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19187
19188 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19189
19190         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19191         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19192         the insn to prefetch ratio heuristic to loops with known trip count.
19193
19194 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19195
19196         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19197         (schedule_prefetches): Do not generate a prefetch if the unroll factor
19198         is far from what is required by the prefetch.
19199
19200 2010-05-17  Jan Hubicka  <jh@suse.cz>
19201
19202         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19203         (ipcp_estimate_growth): Likewise.
19204         (ipcp_const_param_count): Likewise.
19205         (ipcp_insert_stage): Likewise.
19206         * ipa-prop.c (visit_load_for_mod_analysis): New function.
19207         (visit_store_addr_for_mod_analysis): Set used flag.
19208         (ipa_detect_param_modifications): Set used flag for SSE params;
19209         update use of walk_stmt_load_store_addr_ops.
19210         (ipa_print_node_params): Print used flag.
19211         (ipa_write_node_info): Stream used flag.
19212         (ipa_read_node_info): Likewise.
19213         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19214         (ipa_is_param_used): New function.
19215         (lto_ipa_fixup_call_notes): Remove unused declaration.
19216
19217 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19218
19219         PR target/44074
19220         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19221         * configure: Regenerate.
19222         * config.in: Regenerate.
19223         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19224         !HAVE_AS_IX86_REP_LOCK_PREFIX.
19225         Don't emit whitespace.
19226         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19227         (*rep_movsi): Likewise.
19228         (*rep_movsi_rex64): Likewise.
19229         (*rep_movqi): Likewise.
19230         (*rep_movqi_rex64): Likewise.
19231         (*rep_stosdi_rex64): Likewise.
19232         (*rep_stossi): Likewise.
19233         (*rep_stossi_rex64): Likewise.
19234         (*rep_stosqi): Likewise.
19235         (*rep_stosqi_rex64): Likewise.
19236         (*cmpstrnqi_nz_1): Use {%;} after repz.
19237         (*cmpstrnqi_nz_rex_1): Likewise.
19238         (*cmpstrnqi_1): Likewise.
19239         (*cmpstrnqi_rex_1): Likewise.
19240         (*strlenqi_1): Use {%;} after repnz.
19241         (*strlenqi_rex_1): Likewise.
19242         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19243         (*sync_compare_and_swap<mode>): Likewise.
19244         (sync_double_compare_and_swap<mode>): Likewise.
19245         (*sync_double_compare_and_swapdi_pic): Likewise.
19246         (sync_old_add<mode>): Likewise.
19247         (sync_add<mode>): Likewise.
19248         (sync_sub<mode>): Likewise.
19249         (sync_<code><mode>): Likewise.
19250
19251 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19252
19253         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19254         otr_token and polymorphic.
19255         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19256         (cgraph_clone_edge): Copy the above fields.
19257         * tree.c (get_binfo_at_offset): New function.
19258         * tree.h (get_binfo_at_offset): Declare.
19259         * ipa-prop.h (enum jump_func_type): Added known_type jump function
19260         type, reordered items, updated comments.
19261         (union jump_func_value): Added base_type field, reordered fields.
19262         (enum ipa_lattice_type): Moved down in the file.
19263         (struct ipa_param_descriptor): New field polymorphic.
19264         (ipa_is_param_polymorphic): New function.
19265         * ipa-prop.c: Include gimple.h and gimple-fold.h.
19266         (ipa_print_node_jump_functions): Print known type jump functions.
19267         (compute_complex_pass_through): Renamed to...
19268         (compute_complex_assign_jump_func): this.
19269         (compute_complex_ancestor_jump_func): New function.
19270         (compute_known_type_jump_func): Likewise.
19271         (compute_scalar_jump_functions): Create known type and complex ancestor
19272         jump functions.
19273         (ipa_note_param_call): New parameter polymorphic, set the corresponding
19274         flag in the call note accordingly.
19275         (ipa_analyze_call_uses): Renamed to...
19276         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
19277         variable var only in the block where it is used.
19278         (ipa_analyze_virtual_call_uses): New function.
19279         (ipa_analyze_call_uses): Likewise.
19280         (combine_known_type_and_ancestor_jfs): Likewise.
19281         (update_jump_functions_after_inlining): Implemented handling of a
19282         number of new jump function types combination.
19283         (print_edge_addition_message): Removed.
19284         (make_edge_direct_to_target): New function.
19285         (try_make_edge_direct_simple_call): Likewise.
19286         (try_make_edge_direct_virtual_call): Likewise.
19287         (update_call_notes_after_inlining): Renamed to...
19288         (update_indirect_edges_after_inlining): this.  Moved edge creation for
19289         indirect calls to try_make_edge_direct_simple_call, also calls
19290         try_make_edge_direct_virtual_call for virtual calls.
19291         (ipa_print_node_params): Changed the header message.
19292         (ipa_write_jump_function): Stream also known type jump functions.
19293         (ipa_read_jump_function): Likewise.
19294         (ipa_write_indirect_edge_info): Stream new fields in
19295         cgraph_indirect_call_info.
19296         (ipa_read_indirect_edge_info): Likewise.
19297         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19298         GIMPLE_FOLD_H.
19299
19300 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19301
19302         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19303
19304 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19305
19306         * tree.h (CALL_EXPR_ARGS): Delete.
19307         (call_expr_arglist): Delete.
19308         * tree.c (call_expr_arglist): Delete.
19309         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19310         targetm.fold_builtin.
19311         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19312         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19313         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19314         arglist parameter.  Use CALL_EXPR_ARG.
19315         (picochip_expand_builtin_3op): Likewise.
19316         (picochip_expand_builtin_2opvoid): Likewise.
19317         (picochip_expand_array_get): Likewise.
19318         (picochip_expand_array_put): Likewise.
19319         (picochip_expand_array_testport): Likewise.
19320         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
19321         rather than arglist.
19322         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19323         CALL_EXPR_ARGS.
19324         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19325         than TREE_VALUE and TREE_CHAIN.
19326         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19327         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19328         the arglist.
19329
19330 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19331
19332         PR bootstrap/42347
19333         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19334         to have no fallthru edge.
19335
19336         PR middle-end/44102
19337         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19338         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19339         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19340         add BARRIER after previous bb if needed.
19341
19342 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19343
19344         * tree.c (build_function_type_list_1): Remove bogus assert condition.
19345
19346 2010-05-17  Alan Modra  <amodra@gmail.com>
19347
19348         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19349         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
19350         with copy_reg rtx param.
19351         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19352         Correct cases where code for ABI_V4 did not initialise the reg
19353         used to access frame.  Also leave frame_reg_rtx as sp for large
19354         frames that save no regs.
19355
19356 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19357
19358         PR middle-end/44133
19359         * tree-sra.c (create_access_replacement): New parameter rename, mark
19360         the replaement for renaming only when it is true.
19361         (get_access_replacement): Pass true in the rename parameter of
19362         create_access_replacement.
19363         (get_unrenamed_access_replacement): New function.
19364         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19365         replacement declaration from it.
19366
19367 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
19368
19369         * function.c (try_fit_stack_local, add_frame_space): New static
19370         functions.
19371         (assign_stack_local_1): Use them.  Look for opportunities to use
19372         space previously wasted on alignment.
19373         * function.h (struct frame_space): New.
19374         (struct rtl_data): Add FRAME_SPACE_LIST member.
19375         * reload1.c (something_was_spilled): New static variable.
19376         (alter_reg): Set it.
19377         (reload): Test it in addition to testing if the frame size changed.
19378
19379 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19380
19381         * config/s390/s390.c: Define sane prefetch settings and activate
19382         flag_prefetch_loop_arrays on -O3.
19383         * config/s390/s390.h: Declare that read can use write prefetch.
19384
19385 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19386
19387         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19388         build.
19389
19390 2010-05-16  Jan Hubicka  <jh@suse.cz>
19391
19392         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19393         function body; do not check stdarg field of struct function.
19394
19395 2010-05-16  Jan Hubicka  <jh@suse.cz>
19396
19397         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19398         * cgraph.h (cgraph_local_info): Add versionable flag.
19399         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19400         (ipcp_versionable_function_p): Use it.
19401         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19402         versionable flag.
19403
19404 2010-05-16  Jan Hubicka  <jh@suse.cz>
19405
19406         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19407         clone into hash when it is different from orig.
19408         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19409         * cgraph.h (cgraph_clone_node): Update prototype.
19410         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19411         (lto_cgraph_encoder_delete): Delete body map.
19412         (lto_cgraph_encoder_size): Move to header.
19413         (lto_cgraph_encoder_encode_body_p,
19414         lto_set_cgraph_encoder_encode_body): New.
19415         (lto_output_node): Do not take written_decls argument; output clone_of
19416         pointer.
19417         (add_node_to): Add include_body_argument; call
19418         lto_set_cgraph_encoder_encode_body on master of the clone.
19419         (add_references): Update use of add_node_to.
19420         (compute_ltrans_boundary): Likewise.
19421         (output_cgraph): Do not create written_decls bitmap.
19422         (input_node): Take nodes argument; stream in clone_of correctly.
19423         (input_cgraph_1): Update use of input_node.
19424         * lto-streamer-out.c (lto_output): Use encoder info to decide
19425         what bodies to output.
19426         * ipa-inline.c (cgraph_clone_inlined_nodes,
19427         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19428         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19429         (lto_cgraph_encoder_size): Define here.
19430         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19431         Declare.
19432
19433 2010-05-16  Richard Guenther  <rguenther@suse.de>
19434
19435         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19436         -fipa-type-escape.
19437         * ipa-type-escape.c (gate_type_escape_vars): Run when
19438         -fipa-struct-reorg runs.
19439         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19440         * common.opt (fipa-type-escape): Remove.
19441
19442 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19443
19444         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19445         (decode_options): Likewise.
19446         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19447
19448 2010-05-16  Jan Hubicka  <jh@suse.cz>
19449
19450         * ipa.c (function_and_variable_visibility): Also bring local all
19451         aliases.
19452
19453 2010-05-16  Richard Guenther  <rguenther@suse.de>
19454
19455         * alias.c (nonoverlapping_memrefs_p): Remove use of
19456         IPA type-escape information.
19457
19458 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19459
19460         * c-common.c (c_common_reswords): Add _Static_assert for C.
19461         * c-parser.c (c_token_starts_declaration,
19462         c_parser_next_token_starts_declaration,
19463         c_parser_static_assert_declaration_no_semi,
19464         c_parser_static_assert_declaration): New.
19465         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19466         Handle static assertions if static_assert_ok.
19467         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19468         c_parser_compound_statement_nostart, c_parser_label,
19469         c_parser_for_statement, c_parser_objc_methodprotolist,
19470         c_parser_omp_for_loop): All callers of
19471         c_parser_declaration_or_fndef changed.
19472         (c_parser_struct_declaration): Handle static assertions.
19473         (c_parser_compound_statement_nostart): Use
19474         c_parser_next_token_starts_declaration and
19475         c_token_starts_declaration to detect start of declarations.
19476         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19477         Likewise.
19478
19479 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19480
19481         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19482         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19483         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19484         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19485         (mmix_function_outgoing_value): Rename to...
19486         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19487         (mmix_function_value_regno_p): Make static.
19488         (mmix_libcall_value): New function.
19489         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19490         mmix_function_value_regno_p): Remove declaration.
19491
19492 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19493
19494         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19495         BUILT_IN_ALLOCA if stack checking is enabled.
19496
19497 2010-05-16  Richard Guenther  <rguenther@suse.de>
19498
19499         * var-tracking.c (vars_copy_1): Inline ...
19500         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19501         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19502         (variable_merge_over_cur): Adjust.  Merge asserts.
19503         (variable_merge_over_src): Likewise.
19504         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19505         (variable_post_merge_new_vals): Merge asserts.
19506         (variable_post_merge_perm_vals): Likewise.
19507         (find_mem_expr_in_1pdv): Likewise.
19508         (dataflow_set_different_value): Remove.
19509         (onepart_variable_different_p): Merge asserts.
19510         (variable_different_p): Likewise.
19511         (dataflow_set_different_1): Inline ...
19512         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19513         (emit_notes_for_differences_1): Merge asserts.
19514
19515 2010-05-16  Richard Guenther  <rguenther@suse.de>
19516
19517         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19518         * optabs.c (libfunc_decl_hash): Likewise.
19519         * varasm.c (emutls_decl): Likewise.
19520
19521 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19522
19523         * c-decl.c: Don't include gimple.h.
19524         (merge_decls): Do not copy gimple_body.
19525
19526 2010-05-15  Jason Merrill  <jason@redhat.com>
19527
19528         * c.opt: Add -fnothrow-opt.
19529
19530 2010-05-15  Jan Hubicka  <jh@suse.cz>
19531
19532         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19533         analyzed.
19534         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19535
19536 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19537
19538         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19539         * Makefile.in: Add it.
19540         Fix all other Makefile dependencies for changes below.
19541         * tree.h: Include it instead of defining VEC primitives here.
19542         * gimple.h: Likewise.
19543         * rtl.h: Likewise.
19544         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19545         * except.h: Include vecir.h, break dependence on tree.h.
19546
19547         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19548         Move from here...
19549         * tree-iterator.c: ...to here.
19550         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19551
19552         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19553         tm_p.h.
19554         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19555         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19556         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19557         tree-mudflap.h, and target.h.
19558         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19559         predict.h, tree-inline.h, gimple.h, and langhooks.h.
19560         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19561         Add FIXME for why gimple.h is still included (should be unnecessary
19562         since GCC 4.5 gimplification unit-at-a-time).
19563         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19564         * c-pragma.c: Add FIXME for why function.h needs to be included just
19565         for cfun, at front-end level.
19566         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19567         Do not include ggc.h, but include vecprim.h for VEC(char).
19568         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19569         Explain why target.h is included.
19570         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19571         Explain why gimple.h is included.
19572         * c-ppoutput.c: Do not include tm.h.
19573         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
19574         * c-parses.c: Explain why rtl.h is included, and that this (and only
19575         this) is also why tm.h must be included.
19576         Do not include except.h.
19577         * c-lang.c: Do not include ggc.h.
19578
19579 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
19580
19581         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19582
19583 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
19584
19585         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19586         unions by default if those structs and unions have no tags.  Do
19587         not condition anonymous struct and unions handling on flag_iso.
19588         Allow anonymous structs and unions for C1X.
19589         (finish_struct): Do not diagnose lack of named fields when
19590         anonymous structs and unions present for C1X.  Accept flexible
19591         array members in structure with anonymous structs or unions but no
19592         directly named fields.
19593         * doc/extend.texi (Unnamed Fields): Update.
19594
19595 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19596
19597         * gimple.h (compare_field_offset): Rename into...
19598         (gimple_compare_field_offset): ...this.
19599         * gimple.c (compare_field_offset): Rename into...
19600         (gimple_compare_field_offset): ...this.  Compare the full access if
19601         the offset is self-referential.
19602         (gimple_types_compatible_p): Adjust for above renaming.
19603         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
19604         DECL_NONADDRESSABLE_P flag of fields before merging them.
19605
19606 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
19607
19608         * tree.h (ctor_to_list): Delete.
19609         * tree.c (ctor_to_list): Delete.
19610
19611 2010-05-15  Jan Hubicka  <jh@suse.cz>
19612
19613         * ipa-reference.c: Include toplev.h
19614         (is_proper_for_analysis): Only add to all_module_statics
19615         if it is allocated.
19616         (write_node_summary_p, stream_out_bitmap,
19617         ipa_reference_write_optimization_summary,
19618         ipa_reference_read_optimization_summary): New.
19619         (struct ipa_opt_pass_d pass_ipa_reference): Add
19620         optimization summary streaming.
19621         * lto-cgraph.c (referenced_from_this_partition_p,
19622         reachable_from_this_partition_p): New functions.
19623         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19624         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19625         * opts.c (decode_options): Enable ipa_reference.
19626         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19627         * lto-streamer.h (referenced_from_this_partition_p,
19628         reachable_from_this_partition_p): Declare.
19629
19630 2010-05-15  Richard Guenther  <rguenther@suse.de>
19631
19632         PR tree-optimization/44038
19633         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19634         taking the address of a V_C_E of a constant.
19635
19636 2010-05-14  Jan Hubicka  <jh@suse.cz>
19637
19638         * tree.h (memory_identifier_string): Remove.
19639         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19640         (ipa_reference_global_vars_info_d): Remove statics_not_read and
19641         statics_not_written.
19642         (ipa_reference_optimization_summary_d): New structure.
19643         (ipa_reference_optimization_summary_t): New type and vector.
19644         (ipa_reference_vars_info_d): Embedd structures instead of using
19645         pointers.
19646         (reference_vars_to_consider): Remove out of GGC space.
19647         (module_statics_escape): Remove.
19648         (global_info_obstack): Rename to ...
19649         (optimization_summary_obstack): ... this one.
19650         (initialization_status_t): Remove.
19651         (memory_identifier_string): Remove.
19652         (get_reference_vars_info): Fix indenting.
19653         (set_reference_vars_info): Likewise.
19654         (get_reference_optimization_summary): New.
19655         (set_reference_optimization_summary): New.
19656         (get_global_reference_vars_info): Remove.
19657         (ipa_reference_get_read_global): Remove.
19658         (ipa_reference_get_written_global): Remove.
19659         (ipa_reference_get_not_read_global): Update.
19660         (ipa_reference_get_not_written_global): Update.
19661         (is_proper_for_analysis): Outlaw addressable.
19662         (propagate_bits): Update for new datastructures.
19663         (analyze_variable): Remove.
19664         (init_function_info): Update for new datastructures.
19665         (clean_function_local_data): Remove.
19666         (clean_function): Remove.
19667         (copy_global_bitmap): Use optimizations_summary_obstack.
19668         (duplicate_node_data): Duplicate optimization summary only.
19669         (remove_node_data): Remove optimization summary only.
19670         (generate_summary): Do not analyze variables; do not compute
19671         module_statics_escape; do not prune solutions by it.
19672         (read_write_all_from_decl): Fix typos in comments.
19673         (propagate): Doscover readonly and nonaddressable first;
19674         update for new datastructures; share global bitmaps.
19675         * ipa-reference.h (ipa_reference_get_read_global,
19676         ipa_reference_get_written_global): Remove.
19677         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19678         * Makefile.in: Remove ipa-refereference from GT files.
19679
19680 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19681
19682         PR debug/44112
19683         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19684         for all SYMBOL_REF_DECLs.
19685
19686 2010-05-14  Jan Hubicka  <jh@suse.cz>
19687
19688         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19689         (varpool_all_refs_explicit_p): New inline function.
19690         * ipa-reference.c: Update comment.
19691         (module_statics_written): Remove.
19692         (get_static_decl): Remove.
19693         (ipa_init): Do not initialize module_statics_written.
19694         (analyze_function): Likewise.
19695         (generate_summary): Likewise; do not compute module_statics_readonly
19696         and do not update variable flags.
19697         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19698         * ipa.c: Inlucde flags.h
19699         (cgraph_local_node_p): New.
19700         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19701         promote functions to local.
19702         (ipa_discover_readonly_nonaddressable_vars): New function.
19703         (function_and_variable_visibility): Use cgraph_local_node_p.
19704         * varpool.c (varpool_finalize_decl): Set force_output for
19705         DECL_PRESERVE_P vars.
19706
19707 2010-05-14  Jan Hubicka  <jh@suse.cz>
19708
19709         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19710
19711 2010-05-14  Richard Guenther  <rguenther@suse.de>
19712
19713         PR tree-optimization/44119
19714         * tree-ssa-pre.c (eliminate): Properly mark replacement of
19715         a PHI node necessary.
19716
19717 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19718
19719         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19720
19721 2010-05-14  Jason Merrill  <jason@redhat.com>
19722
19723         PR c++/44127
19724         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
19725         (gimple_call_set_nothrow): New.
19726         * gimple.c (gimple_build_call_from_tree): Call it.
19727         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
19728
19729         PR c++/44127
19730         * gimplify.c (gimplify_seq_add_stmt): No longer static.
19731         * gimple.h: Declare it.
19732         * gimple.c (gimple_build_eh_filter): No ops.
19733
19734 2010-05-14  Jan Hubicka  <jh@suse.cz>
19735
19736         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
19737         nodes already in queue.
19738         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
19739         re-enqueueing node.
19740
19741 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19742
19743         PR debug/44136
19744         * cfgexpand.c (expand_debug_expr): If non-memory op0
19745         has BLKmode, return NULL.
19746
19747 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
19748
19749         * config.gcc: Add support for --with-cpu option for bdver1.
19750         * config/i386/i386.h (TARGET_BDVER1): New macro.
19751         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
19752         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19753         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
19754         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19755         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
19756         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
19757         (processor_type): Add PROCESSOR_BDVER1.
19758         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
19759         processor_type in config/i386/i386.h.
19760         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
19761         movaps <reg, reg> instead of movapd <reg, reg> when replacing
19762         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
19763         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19764         to emit packed xor instead of packed double/packed integer
19765         xor for SSE and AVX when moving a zero value.
19766         * config/i386/sse.md: Add check for
19767         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
19768         movapd/movdqa for SSE and AVX.
19769         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
19770         single logical operations i.e and, or and xor instead of packed double
19771         logical operations for SSE and AVX.
19772         * config/i386/i386-c.c (ix86_target_macros_internal):
19773         Add PROCESSOR_BDVER1.
19774         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
19775         (has_fma4, has_xop): New.
19776         * config/i386/i386.c (bdver1_cost): New variable.
19777         (m_BDVER1): New macro.
19778         (m_AMD_MULTIPLE): Add m_BDVER1.
19779         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
19780         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
19781         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
19782         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
19783         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
19784         x86_tune_sse_partial_reg_dependency,
19785         x86_tune_sse_unaligned_load_optimal,
19786         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
19787         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
19788         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
19789         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
19790         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
19791         Enable/disable for bdver1.
19792         (processor_target_table): Add bdver1_cost.
19793         (cpu_names): Add bdver1.
19794         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
19795          processor_alias_table.
19796         (ix86_expand_vector_move_misalign): Change.
19797         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
19798         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
19799         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
19800         of movupd/movdqu for SSE and AVX.
19801         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
19802         (ix86_tune_adjust_cost): Add code for bdver1.
19803         (standard_sse_constant_opcode): Add check for
19804         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
19805         of packed double xor for SSE and AVX.
19806
19807 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
19808
19809         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
19810         result to unsigned.
19811
19812 2010-05-14  Tristan Gingold  <gingold@adacore.com>
19813
19814         * toplev.c (default_debug_hooks): Remove this variable.
19815         (process_options): Remove assignments to default_debug_hooks.
19816
19817 2010-05-14  Martin Jambor  <mjambor@suse.cz>
19818
19819         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
19820         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
19821         * langhooks.h (struct lang_hooks_for_decls): Removed field
19822         fold_obj_type_ref.
19823         * tree.c (free_lang_data): Remove assignment to
19824         lang_hooks.fold_obj_type_ref.
19825         * tree.def (OBJ_TYPE_REF): Update comment.
19826
19827 2010-05-14  Richard Guenther  <rguenther@suse.de>
19828
19829         PR tree-optimization/44124
19830         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
19831
19832 2010-05-14  Alan Modra  <amodra@gmail.com>
19833
19834         PR target/44075
19835         * config/rs6000/rs6000.c (struct machine_function): Reorder
19836         fields for better packing.  Add lr_save_state.
19837         (rs6000_ra_ever_killed): Return lr_save_state if set.
19838         (rs6000_emit_eh_reg_restore): Set lr_save_state.
19839
19840 2010-05-13  Jan Hubicka  <jh@suse.cz>
19841
19842         * varpool.c (decide_is_variable_needed): Drop code checking
19843         TREE_SYMBOL_REFERENCED.
19844
19845 2010-05-13  Jan Hubicka  <jh@suse.cz>
19846
19847         * final.c (output_addr_const): Do not call mark_decl_referenced.
19848         * cgraphunit.c (process_function_and_variable_attributes): Use
19849         mark_needed_node dirrectly.
19850         (assemble_thunk): Do not call mark_decl_referenced.
19851
19852 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
19853
19854         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
19855
19856 2010-05-13  Jeff Law  <law@redhat.com>
19857
19858         * ira-conflicts.c (print_allocno_conflicts): New function broken out
19859         from...
19860         (print_conflicts): Call print_allocno_conflicts.
19861
19862 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19863
19864         PR debug/44104
19865         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
19866         if it is NULL.
19867
19868 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
19869
19870         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
19871         t-mingw-w64 or t-mingw-w32 for multilib configuration.
19872         * config/i386/t-mingw-w32: New.
19873         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
19874
19875 2010-05-13  Martin Jambor  <mjambor@suse.cz>
19876
19877         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
19878         gimple-fold.c).
19879         * gimple-fold.c (get_base_binfo_for_type): New function.
19880         (gimple_get_relevant_ref_binfo): Likewise.
19881         (gimple_fold_obj_type_ref_known_binfo): Likewise.
19882         (gimple_fold_obj_type_ref): Likewise.
19883         (fold_gimple_call): Simplify condition for folding virtual calls
19884         and call gimple_fold_obj_type_ref.
19885         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
19886         (gimple_fold_obj_type_ref_known_binfo): Likewise.
19887
19888 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
19889
19890         * config/rs6000/rs6000-protos.h
19891         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
19892         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
19893         (rs6000_debug_mode_dependent_address)
19894         (rs6000_mode_dependent_address_ptr): Likewise.
19895
19896 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19897
19898         PR debug/43983
19899         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
19900         by SRA.
19901         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
19902         * tree-sra.c (create_access_replacement): Call unshare_expr before
19903         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
19904         * dwarf2out.c: Include tree-flow.h.
19905         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
19906         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
19907         Handle DW_OP_bit_piece.
19908         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
19909         construct_piece_list, adjust_piece_list): New functions.
19910         (add_var_loc_to_decl): Handle SRA optimized variables.
19911         Adjust for var_loc_note to loc field renaming.
19912         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
19913         in VAR_LOCATION note.
19914         (new_loc_descr_op_bit_piece): New function.
19915         (dw_sra_loc_expr): New function.
19916         (dw_loc_list): Use it.  Don't handle the last range after the
19917         loop, handle it inside of the loop.  Adjust for var_loc_note
19918         to loc field renaming.
19919         (add_location_or_const_value_attribute): Only special case
19920         single entry loc lists if loc is NOTE_P.  Adjust for
19921         var_loc_note to loc field renaming.
19922         (dwarf2out_var_location): Don't set newloc->var_loc_note
19923         and newloc->next here.
19924
19925 2010-05-12  Jan Hubicka  <jh@suse.cz>
19926
19927         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
19928         flag.
19929         * cgraph.h (cgraph_only_called_directly_p,
19930         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
19931         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
19932         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
19933         (assemble
19934         * ipa.c (cgraph_remove_unreachable_nodes): Use
19935         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
19936         flags.
19937         * tree-inline.c (copy_bb): Check address_taken flag.
19938         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
19939         externally_visible flag.
19940
19941 2010-05-12  Jason Merrill  <jason@redhat.com>
19942
19943         PR bootstrap/44048
19944         PR target/44099
19945         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
19946         * sdbout.c (plain_type_1): Likewise.
19947         * dwarf2out.c (is_base_type): Likewise.
19948         (gen_type_die_with_usage): Likewise.  Generate
19949         DW_TAG_unspecified_type for any LANG_TYPE.
19950
19951 2010-05-12  Jan Hubicka  <jh@suse.cz>
19952
19953         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
19954         indrect edges too.
19955         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
19956         (cgraph_clone_edge): Update.
19957         (cgraph_node_remove_callees): Remove indirect calls too.
19958         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
19959         (cgraph_create_indirect_edge): Update prototype.
19960         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
19961         is_proper_for_analysis.
19962         (add_new_function, visited_nodes, function_insertion_hook_holder,
19963         get_local_reference_vars_info, mark_address_taken, mark_address,
19964         mark_load, mark_store, check_asm_memory_clobber, check_call,
19965         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
19966         (ipa_init): Do not initialize visited_nodes;
19967         function_insertion_hook_holder.
19968         (analyze_variable): Rewrite.
19969         (analyze_function): Rewrite.
19970         (copy_local_bitmap): Remove.
19971         (duplicate_node_dat): Do not duplicate local info.
19972         (generate_summary): Simplify to only walk cgraph.
19973         (write_node_summary_p, ipa_reference_write_summary,
19974         ipa_reference_read_summary): Remove.
19975         (propagate): Do not remove function insertion;
19976         generate summary.
19977         (pass_ipa_reference): NULLify summary handling fields.
19978         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
19979         (input_edge): Input ecf_flags.
19980         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
19981         (update_indirect_edges_after_inlining): Ignore edges with unknown
19982         param.
19983
19984 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
19985
19986         * implicit-zee.c: New file.
19987         * tree-pass.h (pass_implicit_zee): Declare.
19988         * passes.c (init_optimization_passes): Add zee pass.
19989         * common.opt (fzee): New flag.
19990         * timevar.def (TV_ZEE): Define.
19991         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
19992         and beyond.
19993         * Makefile.in (implicit-zee.o): Add new build file.
19994
19995 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19996             Nathan Froyd  <froydnj@codesourcery.com>
19997
19998         * c-common.c (sync_resolve_params): Remove write-only variable.
19999
20000 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
20001
20002         * target.h (struct gcc_target): Add mode_dependent_address_p field.
20003         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20004         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20005         * targhooks.c (default_mode_dependent_address_p): New function.
20006         * targhooks.h (default_mode_dependent_address_p): Declare function.
20007         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20008         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20009         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20010         target hook. Change return type to bool.
20011         * recog.h (mode_dependent_address_p): Change return type to bool.
20012
20013 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20014             Nathan Froyd  <froydnj@codesourcery.com>
20015
20016         * tree-mudflap.c (build_function_type_0, build_function_type_1,
20017         build_function_type_2, build_function_type_3): Remove.
20018         (mudflap_init): Use build_function_type_list.
20019
20020 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20021             Nathan Froyd  <froydnj@codesourcery.com>
20022
20023         * coverage.c (build_fn_info_value): Call build_constructor instead of
20024         build_constructor_from_list.
20025         (build_ctr_info_value): Likewise.
20026         (build_gcov_info): Likewise.
20027
20028 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
20029
20030         * tree.c (build_constructor): Compute TREE_CONSTANT for the
20031         resultant constructor.
20032         (build_constructor_single): Don't set TREE_CONSTANT.
20033         (build_constructor_from_list): Don't compute TREE_CONSTANT.
20034
20035 2010-05-12  Jan Hubicka  <jh@suse.cz>
20036
20037         * cgraph.h (struct varpool_node): Add aux.
20038         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20039         * varpool.c (varpool_remove_node): Do not remove initializer.
20040         (varpool_reset_queue): Export.
20041         (varpool_finalize_decl): Volatile vars are forced to be output.
20042         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20043         replaced decl.
20044         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20045         process_references, varpool_can_remove_if_no_refs): New functions.
20046         (cgraph_remove_unreachable_nodes): Handle variables too.
20047
20048 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20049
20050         PR target/44088
20051         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20052
20053 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
20054
20055         PR middle-end/44085
20056         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20057         change value of ORT_TASK.
20058         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20059         (omp_notice_threadprivate_variable): New function.
20060         (omp_notice_variable): Call it for threadprivate variables.
20061         If enclosing ctx is a task, print enclosing task rather than
20062         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
20063         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20064         if task has untied clause.
20065
20066         PR debug/42278
20067         * dwarf2out.c (base_type_die): Don't add name attribute here.
20068         (modified_type_die): Instead of sizetype use
20069         its underlying original type.  If a DW_TAG_base_type doesn't
20070         have name added, add __unknown__.
20071         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20072         always call force_type_die instead.
20073
20074 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
20075
20076         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20077         for __stack_chk_guard.
20078
20079 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20080
20081         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20082         don't call start_source_file debug hook here...
20083         (finish_options): ... but here, after outputting predefined and
20084         command line defines and undefs.
20085
20086         PR middle-end/44071
20087         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20088         no fallthru edge.
20089         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20090         optimizing away empty bb with no successors, move over its
20091         footer chain to fallthru predecessor.
20092         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20093         (rtl_split_edge): For asm goto call patch_jump_insn even if
20094         splitting fallthru edge.
20095
20096         PR c++/44059
20097         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20098         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20099         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20100         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20101         on DW.ref.* decls.
20102
20103         PR c++/44062
20104         * c-parser.c (c_parser_expression): Mark LHS of a comma
20105         expression as read if it is a decl, handled component or
20106         COMPOUND_EXPR with that on the RHS.
20107         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20108         if it is a decl or handled component.
20109
20110 2010-05-11  Jan Hubicka  <jh@suse.cz>
20111
20112         * lto-symtab.c (lto_symtab_free): New function.
20113         * lto-streamer.h (lto_symtab_free): Declare.
20114
20115 2010-05-11  Jan Hubicka  <jh@suse.cz>
20116
20117         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20118         that if function is needed it is reachable.
20119         (lto_output_node): See if it the function is reachable or referenced.
20120         (output_cgraph): Update call of lto_output_node.
20121         * lto-streamer.h (reachable_from_other_partition_p): Declare.
20122
20123 2010-05-11  Jan Hubicka  <jh@suse.cz>
20124
20125         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20126         Mark as used.
20127
20128 2010-05-11  Jan Hubicka  <jh@suse.cz>
20129
20130         PR tree-optimize/44063
20131         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20132         queue.
20133         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20134         limits.
20135         (estimate_function_body_sizes): Compute sizes even when disregarding.
20136
20137 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
20138
20139         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20140
20141 2010-05-11  Jan Hubicka  <jh@suse.cz>
20142
20143         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20144         into every boundary.
20145
20146 2010-05-11  Jan Hubicka  <jh@suse.cz>
20147
20148         * matrix-reorg.c (matrix_reorg): Rebuild edges.
20149
20150 2010-05-11  Jan Hubicka  <jh@suse.cz>
20151
20152         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20153         lto_streamer_cache_delete): Put nodes into heap.
20154         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20155         heap.
20156
20157 2010-05-11  Jan Hubicka  <jh@suse.cz>
20158
20159         * cgraphbuild.c (cgraph_rebuild_references): New.
20160         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20161         out extern inlines.
20162         * cgraph.h (cgraph_rebuild_references): Declare.
20163         * tree-inline.c (tree_function_versioning): Use it.
20164         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20165
20166 2010-05-11  Jan Hubicka  <jh@suse.cz>
20167
20168         * cgraph.c: Include ipa-utils.h
20169         (cgraph_create_virtual_clone): Update references.
20170         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20171
20172 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20173
20174         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20175         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20176         cache size.
20177
20178 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20179
20180         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20181
20182 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20183
20184         * gcc.c (execute): For -### don't quote arguments that
20185         contain just alphanumerics and _/-. characters.
20186         * doc/invoke.texi: Document that change for -###.
20187
20188         PR debug/44023
20189         * df-problems.c (struct dead_debug): Add to_rescan field.
20190         (dead_debug_init): Clear to_rescan field.
20191         (dead_debug_finish): Rescan all debug insns in to_rescan
20192         bitmap and free the bitmap.
20193         (dead_debug_insert_before): Instead of rescanning debug insns
20194         immediately queue their rescanning until dead_debug_finish.
20195         (df_note_bb_compute): After dead_debug_add do continue instead
20196         of break.
20197
20198 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
20199
20200         PR debug/44028
20201         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20202         clear also INSN_REG_USE_LIST.
20203
20204 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20205
20206         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20207
20208 2010-05-10  Jan Hubicka  <jh@suse.cz>
20209
20210         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20211         commited change.
20212
20213 2010-05-10  Jan Hubicka  <jh@suse.cz>
20214
20215         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20216         Allocate encoders.
20217         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20218         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20219         (lto_streamer_cache_create): Init alloc pool.
20220         (lto_streamer_cache_delete): Free alloc pool.
20221         * lto-streamer.h: Include alloc pool.
20222         (lto_streamer_cache_d): Use alloc pool.
20223         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20224
20225 2010-05-10  Jan Hubicka  <jh@suse.cz>
20226
20227         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20228         * cgraphbuild.c: Include except.h
20229         (record_type_list, record_eh_tables): New function.
20230         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20231
20232 2010-05-10  Jan Hubicka  <jh@suse.cz>
20233
20234         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20235         __frame_dummy_init_array_entry, force_to_data): Attribute as used
20236         rather than unused.
20237
20238 2010-05-10  Michael Matz  <matz@suse.de>
20239
20240         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20241         (can_reassociate_p): Use FLOAT_TYPE_P.
20242         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20243         (vect_force_simple_reduction): ... this.
20244         * tree-parloops.c (gather_scalar_reductions): Use
20245         vect_force_simple_reduction.
20246         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20247         vect_is_simple_reduction, add modify argument, if true rewrite
20248         "a-b" into "a+(-b)".
20249         (vect_is_simple_reduction, vect_force_simple_reduction): New
20250         functions.
20251         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20252
20253 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20254             Vladimir Makarov  <vmakarov@redhat.com>
20255
20256         PR rtl-optimization/44012
20257         * ira-build.c (remove_unnecessary_allocnos): Nullify
20258         regno_allocno_map of the removed allocno.
20259
20260 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20261
20262         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20263         to /dev/null.
20264         * configure: Regenerate.
20265
20266 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20267
20268         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20269         unused.
20270         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20271         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20272         support in Sun ld.
20273         * configure: Regenerate.
20274
20275 2010-05-10  Richard Guenther  <rguenther@suse.de>
20276
20277         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20278         marked if the entry identifier is marked.
20279
20280 2010-05-10  Richard Guenther  <rguenther@suse.de>
20281
20282         * c-common.c (struct c_common_attributes): Add fnspec attribute.
20283         (handle_fnspec_attribute): New function.
20284         * gimple.h (gimple_call_return_flags): Declare.
20285         (gimple_call_arg_flags): Likewise.
20286         * gimple.c (gimple_call_arg_flags): New function.
20287         (gimple_call_return_flags): Likewise.
20288         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20289         New argument flags.
20290         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20291         return value flags.
20292         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20293         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20294         main work to ...
20295         (make_heapvar_for): ... this new function.
20296         (handle_rhs_call): Handle fnspec attribute argument specifiers.
20297         (handle_lhs_call): Likewise.
20298         (find_func_aliases): Adjust.
20299
20300 2010-05-10  Richard Guenther  <rguenther@suse.de>
20301
20302         PR tree-optimization/44050
20303         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20304
20305 2010-05-10  Wei Guozhi  <carrot@google.com>
20306
20307         PR target/42879
20308         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20309
20310 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20311
20312         PR c/10676
20313         * c-typeck.c (lookup_field): Take a type directly.  Update
20314         recursive calls.
20315         (build_component_ref): Update call to lookup_field.
20316         (set_init_label): Use lookup_field to find initialized field.
20317         Handle returned list of fields like a sequence of designators.
20318
20319 2010-05-09  Richard Guenther  <rguenther@suse.de>
20320
20321         PR middle-end/44024
20322         * fold-const.c (tree_single_nonzero_warnv_p): Properly
20323         handle &FUNCTION_DECL.
20324
20325 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20326
20327         PR c/4784
20328         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
20329         structures and unions recursively.
20330         (detect_field_duplicates): Move duplicate detection with a hash to
20331         detect_field_duplicates_hash.  Always use a hash if anonymous
20332         structures or unions are present.
20333         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20334         give errors.
20335
20336 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20337
20338         PR target/44046
20339         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20340         detect Atom, Core 2 and Core i7.
20341
20342 2010-05-09  Richard Guenther  <rguenther@suse.de>
20343
20344         * gcc.c (store_arg): Handle temporary file deletion for
20345         joined arguments.
20346
20347 2010-05-09  Richard Guenther  <rguenther@suse.de>
20348
20349         PR middle-end/44043
20350         * ipa-inline.c (estimate_function_body_sizes): Return after
20351         disregarding inline limits.
20352
20353 2010-05-09  Richard Guenther  <rguenther@suse.de>
20354
20355         * gcc.c (store_arg): Revert last change.
20356
20357 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
20358
20359         PR middle-end/28685
20360         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20361         (optimize_ops_list): Call it.
20362
20363 2010-05-08  Richard Guenther  <rguenther@suse.de>
20364
20365         PR tree-optimization/44030
20366         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
20367         NECESSARY flag if we propagate from a inserted expression.
20368
20369 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
20370
20371         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20372         domain types as equal if they are both PLACEHOLDER_EXPRs.
20373
20374 2010-05-08  Richard Guenther  <rguenther@suse.de>
20375
20376         * lto-wrapper.c (run_gcc): Remove linker output from
20377         command line for LTRANS invocation.
20378
20379 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20380
20381         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20382         lto-macho as lto_binary_reader.
20383         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20384         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20385         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20386         in lto_start and lto_end calls.
20387         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20388         magic numbers.
20389         (scan_prog_file): Update is_elf_or_coff call.
20390         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20391
20392         * collect2.c (main): Fix enum comparison.
20393
20394         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20395         Add prototypes.
20396         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20397         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20398         and TARGET_ASM_LTO_END.
20399         * darwin.c: Include obstack.h and lto-streamer.h.
20400         (lto_section_names_offset, lto_section_names_obstack,
20401         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20402         global variables.
20403         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20404         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20405         to a temporary file.
20406         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20407         (darwin_asm_named_section): For LTO sections, replace the name with
20408         the offset of the section name in a string table, and build this
20409         table.
20410         (darwin_file_start): Initialize global vars for LTO support.
20411         (darwin_file_end): If output to asm_out_file was redirected, append it
20412         to the proper asm_out_file here.  Add the section names section.
20413
20414 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20415
20416         * c-pragma.c (pending_weak_d, pending_weak): New.
20417         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20418         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20419         handle_pragma_weak): Update the uses of pending_weaks.
20420
20421 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20422
20423         PR documentation/44016
20424         * doc/standards.texi (Standards): Link to unversioned
20425         cxx0x_status.html page.
20426
20427 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20428
20429         PR target/43708
20430         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20431         in addition to TREE_USED, to avoid "set but unused" warnings.
20432
20433 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20434
20435         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20436         (is_loop_prefetching_profitable): Do not insert prefetches
20437         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20438         times the prefetch ahead distance.
20439
20440 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20441
20442         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20443         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20444         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20445         the unroll_factor.
20446
20447 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20448
20449         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20450         a diagnostic info when the insn-to-mem ratio is too small.
20451
20452 2010-05-07  Richard Guenther  <rguenther@suse.de>
20453
20454         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20455         the linker plugin.
20456         (store_arg): Queue temp_filename for deletion instead of
20457         the whole argument.
20458
20459 2010-05-07  Richard Guenther  <rguenther@suse.de>
20460
20461         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20462         (run_gcc): Handle LTRANS phase invocation.
20463         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20464
20465 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20466
20467         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20468         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20469
20470 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20471
20472         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20473
20474 2010-05-07  Richard Guenther  <rguenther@suse.de>
20475
20476         PR tree-optimization/44020
20477         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20478         code when PRE is not yet initialized.
20479
20480 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20481
20482         * config/mips/dbxmdebug.h: Remove.
20483         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20484
20485 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20486
20487         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20488         with null pointer and also warn about ordered comparison of zero with
20489         pointer if -Wextra.
20490
20491 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20492
20493         * graphite-blocking.c
20494         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20495         * graphite-clast-to-gimple.c
20496         (clast_to_gcc_expression): Same.
20497         (precision_for_value): Same.
20498         (precision_for_interval): Same.
20499         (gcc_type_for_interval): Same.
20500         (graphite_create_new_guard): Same.
20501         (compute_bounds_for_level): Same.
20502         (graphite_create_new_loop_guard): Same.
20503         * graphite-interchange.c
20504         (build_linearized_memory_access): Same.
20505         (pdr_stride_in_loop): Same.
20506         (memory_strides_in_loop_1): Same.
20507         (memory_strides_in_loop): Same.
20508         (extend_scattering): Same.
20509         (psct_scattering_dim_for_loop_depth): Same.
20510         (pbb_number_of_iterations): Same.
20511         * graphite-poly.h
20512         (debug_iteration_domains): Same.
20513         * graphite-ppl.c
20514         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20515         (ppl_set_inhomogeneous_gmp): Same.
20516         (ppl_strip_loop): Same.
20517         (ppl_lexico_compare_linear_expressions): Same.
20518         (ppl_read_polyhedron_matrix): Same.
20519         (ppl_max_for_le_pointset): Same.
20520         * graphite-ppl.h
20521         (ppl_read_polyhedron_matrix): Same.
20522         (tree_int_to_gmp): Same.
20523         (gmp_cst_to_tree): Same.
20524         (ppl_set_inhomogeneous): Same.
20525         (ppl_set_inhomogeneous_tree): Same.
20526         (ppl_set_coef): Same.
20527         (ppl_set_coef_tree): Same.
20528         * graphite-sese-to-poly.c
20529         (build_pbb_scattering_polyhedrons): Same.
20530         (build_scop_scattering): Same.
20531         (scan_tree_for_params_right_scev): Same.
20532         (scan_tree_for_params): Same.
20533         (find_params_in_bb): Same.
20534         (find_scop_parameters): Same.
20535         (add_upper_bounds_from_estimated_nit): Same.
20536         (build_loop_iteration_domains): Same.
20537         (add_condition_to_domain): Same.
20538         (pdr_add_memory_accesses): Same.
20539
20540 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20541
20542         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20543         CLooG's value_* macros to their respective mpz_* counterparts.
20544         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20545         (graphite_create_new_loop_guard): Same.
20546         * graphite-interchange.c (build_linearized_memory_access): Same.
20547         (pdr_stride_in_loop): Same.
20548         (memory_strides_in_loop_1): Same.
20549         (1st_interchange_profitable_p): Same.
20550         * graphite-poly.c (extend_scattering): Same.
20551         (psct_scattering_dim_for_loop_depth): Same.
20552         (pbb_number_of_iterations): Same.
20553         (pbb_number_of_iterations_at_time): Same.
20554         * graphite-poly.h (new_1st_loop): Same.
20555         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20556         (oppose_constraint): Same.
20557         (insert_constraint_into_matrix): Same.
20558         (ppl_set_inhomogeneous_gmp): Same.
20559         (ppl_set_coef_gmp): Same.
20560         (ppl_strip_loop): Same.
20561         (ppl_lexico_compare_linear_expressions): Same.
20562         (ppl_max_for_le_pointset): Same.
20563         (ppl_min_for_le_pointset): Same.
20564         (ppl_build_realtion): Same.
20565         * graphite-ppl.h (gmp_cst_to_tree): Same.
20566         (ppl_set_inhomogeneous): Same.
20567         (ppl_set_inhomogeneous_tree): Same.
20568         (ppl_set_coef): Same.
20569         (ppl_set_coef_tree): Same.
20570         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20571         (build_scop_scattering): Same.
20572         (add_value_to_dim): Same.
20573         (scan_tree_for_params_right_scev): Same.
20574         (scan_tree_for_params_int): Same.
20575         (scan_tree_for_params): Same.
20576         (find_params_in_bb): Same.
20577         (find_scop_parameters): Same.
20578         (add_upper_bounds_from_estimated_nit): Same.
20579         (build_loop_iteration_domains): Same.
20580         (create_linear_expr_from_tree): Same.
20581         (add_condition_to_domain): Same.
20582         (pdr_add_memory_accesses): Same.
20583
20584 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
20585             Jason Merrill  <jason@redhat.com>
20586
20587         * c-common.c (c_common_reswords): Add nullptr.
20588         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
20589         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20590         (gen_type_die_with_usage): Likewise.
20591         * dbxout.c (dbxout_type): Likewise.
20592         * sdbout.c (plain_type_1): Likewise.
20593
20594 2010-05-06  Jason Merrill  <jason@redhat.com>
20595
20596         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20597         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
20598         ret appropriately.
20599         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20600
20601         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20602         stripping WITH_SIZE_EXPR.
20603         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20604         change.
20605
20606 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20607
20608         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20609         list of obsolete configurations.
20610         Disabled check for obsolete configurations.
20611         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20612         Removed support for previous versions.
20613         * config/mips/iris.h: Removed.
20614         * config/mips/iris5.h: Removed.
20615         * config/mips/iris6.h: Merged old iris.h contents.
20616         (TARGET_IRIX): Removed.
20617         (DRIVER_SELF_SPECS): Removed mabi=32.
20618         (IDENT_ASM_OP): Removed undef.
20619         (STARTFILE_SPEC): Removed mabi=32.
20620         (ENDFILE_SPEC): Likewise.
20621         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20622         (MACHINE_TYPE): Update for IRIX 6.5.
20623         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20624         TARGET_IRIX by TARGET_IRIX6.
20625         (mips_file_start): Likewise.
20626         (mips_output_external): Remove IRIX 5/6 O32 support.
20627         (mips_output_function_prologue): Likewise.
20628         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20629         TARGET_IRIX6.
20630         (TARGET_CPU_CPP_BUILTINS): Likewise.
20631         (TARGET_IRIX): Removed.
20632         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20633         (MULTILIB_DIRNAMES): Removed 32.
20634         (MULTILIB_OSDIRNAMES): Removed ../lib.
20635         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20636         (Specific, mips-sgi-irix5): Document removal.
20637         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20638         Remove references to older IRIX 6 releases and the O32 ABI.
20639
20640 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
20641
20642         PR bootstrap/43994
20643         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20644         instead of DF_REF_REAL_REG.
20645
20646 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
20647
20648         PR target/43888
20649         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20650         handling to still return true for x64 targets.
20651
20652 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20653
20654         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20655
20656 2010-05-06  Jan Hubicka  <jh@suse.cz>
20657
20658         PR tree-optimization/43791
20659         * ipa-inline.c (update_caller_keys): Remove bogus
20660         disregard_inline_limits check.
20661
20662 2010-05-06  Michael Matz  <matz@suse.de>
20663
20664         PR tree-optimization/43984
20665         * tree-ssa-pre.c (inserted_phi_names): Remove.
20666         (inserted_exprs): Change to bitmap.
20667         (create_expression_by_pieces): Set bits, don't append to vector.
20668         (insert_into_preds_of_block): Don't handle inserted_phi_names.
20669         (eliminate): Don't look at inserted_phi_names, remove deleted
20670         insns from inserted_exprs.
20671         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20672         (init_pre, fini_pre): Allocate and free bitmaps.
20673         (execute_pre): Insert insns on edges before elimination.
20674
20675 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20676
20677         * tree.c (initializer_zerop): Handle STRING_CST.
20678
20679 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20680
20681         PR 40989
20682         * doc/invoke.texi (Wimplicit): Document as C only.
20683         * opts.c (common_handle_option): Add argument kind.
20684         (handle_option): Rename as read_cmdline_option. Factor out code to...
20685         (handle_option): ... here. New.
20686         (handle_options): Rename as read_cmdline_options.
20687         (decode_options): Update call.
20688         (set_option): Use option index instead of option pointer. Classify
20689         diagnostics correctly.
20690         (enable_warning_as_error): Call handle_option.
20691         * opts.h (set_option): Update declaration.
20692         (handle_option): Declare.
20693         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20694         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20695         * c-opts.c (set_Wimplicit): Delete.
20696         (c_family_lang_mask): New static constant.
20697         (c_common_handle_option): Add argument kind. Use handle_option
20698         instead of set_Wimplicit.
20699         (c_common_post_options): warn_implicit and warn_implicit_int
20700         are disabled by default.
20701         * c-common.c (warn_implicit): Do not define here.
20702         * c-common.h (warn_implicit): Do not declare here.
20703         (c_common_handle_option): Update declaration.
20704         * lto-opts.c (lto_reissue_options): Update call to set_option.
20705
20706 2010-05-06  Richard Guenther  <rguenther@suse.de>
20707
20708         PR tree-optimization/43571
20709         * domwalk.c (walk_dominator_tree): Walk the dominator
20710         sons in more optimal order.
20711
20712 2010-05-06  Richard Guenther  <rguenther@suse.de>
20713
20714         PR tree-optimization/43934
20715         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20716         (stmt_cost): Likewise.
20717         (extract_true_false_args_from_phi): New helper.
20718         (determine_max_movement): For PHI nodes verify we can hoist them
20719         and compute their cost.
20720         (determine_invariantness_stmt): Handle PHI nodes.
20721         (move_computations_stmt): Likewise.  Hoist PHI nodes in
20722         if-converted form using COND_EXPRs.
20723         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
20724         (tree_ssa_lim): Likewise.
20725         * tree-flow.h (tree_ssa_lim): Adjust prototype.
20726         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
20727
20728 2010-05-06  Richard Guenther  <rguenther@suse.de>
20729
20730         PR tree-optimization/43987
20731         * tree-ssa-structalias.c (could_have_pointers): For possibly
20732         address-taken variables force pointers to be recorded.
20733         (create_variable_info_for_1): Likewise.
20734         (push_fields_onto_fieldstack): Pass in wheter all fields
20735         must have pointers.
20736         (find_func_aliases): Query types instead of vars whether
20737         they contain pointers where appropriate.
20738
20739 2010-05-06  Jan Hubicka  <jh@suse.cz>
20740
20741         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
20742         (record_reference, mark_address, mark_load, mark_store): Record
20743         references.
20744         (record_references_in_initializer): Update call of record_references.
20745         (rebuild_cgraph_edges): Remove all references before rebuiding.
20746         * cgraph.c (cgraph_create_node): Clear ref list.
20747         (cgraph_remove_node): Remove references.
20748         (dump_cgraph_node): Dump references.
20749         (cgraph_clone_node): Clone references.
20750         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
20751         (struct cgraph_node, varpool_node): Add ref_lst.
20752         * ipa-ref.c: New file.
20753         * ipa-ref.h: New file.
20754         * ipa-ref-inline.h: New file.
20755         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
20756         (referenced_from_other_partition_p): New function.
20757         (lto_output_varpool_node): Take set arugment; call
20758         referenced_from_other_partition.
20759         (lto_output_ref): New.
20760         (add_references): New.
20761         (output_refs): New.
20762         (output_cgraph): Compute boundary based on references; output refs.
20763         (output_varpool): Accept cgraph_node_set argument.
20764         (input_ref): New.
20765         (input_refs): New.
20766         (input_cgraph): Call input_refs.
20767         * lto-section-in.c (lto_section_name): Add refs.
20768         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
20769         (ipa-ref.o): New file.
20770         * varpool.c (varpool_node): Clear ipa ref list.
20771         (varpool_remove_node): Remove references.
20772         (dump_varpool_node): Dump references.
20773         (varpool_assemble_decl): Only compile finalized ones.
20774         (varpool_extra_name_alias): Initialize ref list.
20775         * lto-streamer.c (lto-get_section_name): Add .refs section.
20776         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
20777         (referenced_from_other_partition_p): Declared.
20778
20779 2010-05-06  Ira Rosen  <irar@il.ibm.com>
20780
20781         PR tree-optimization/43901
20782         * tree-vect-stmts.c (vectorizable_call): Assert that vector
20783         type is not NULL if it's transformation phase, and return
20784         FALSE if it's analysis.
20785         (vectorizable_conversion, vectorizable_operation,
20786         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
20787
20788 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
20789
20790         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20791         Delete.
20792         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20793         New define.
20794         * config/mips/mips-protos.h
20795         (mips_small_register_classes_for_mode_p): Delete prototype.
20796
20797 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
20798
20799         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
20800         * config/arm/arm.c (multiple_operation_profitable_p,
20801         compute_offset_order): New static functions.
20802         (load_multiple_sequence, store_multiple_sequence): Use them.
20803         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
20804         memory offsets, not register numbers.
20805         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
20806
20807 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
20808
20809         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
20810         (get_pending_sizes, put_pending_size, put_pending_sizes):
20811         Update the uses of pending_sizes.
20812         * c-decl.c (store_parm_decls): Likewise.
20813         * c-tree.h (struct c_arg_info): Likewise.
20814         * tree.h: Update the prototype for get_pending_sizes and
20815         put_pending_sizes.
20816
20817 2010-05-05  Jason Merrill  <jason@redhat.com>
20818
20819         PR debug/43370
20820         * c-common.c (handle_aligned_attribute): Respect
20821         ATTR_FLAG_TYPE_IN_PLACE.
20822
20823         PR testsuite/43758
20824         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
20825         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20826         (TARGET_INITIALIZER): Use it.
20827         * c-common.c (attribute_takes_identifier_p): Call it.
20828         * c-common.h: Update prototype.
20829         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
20830         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20831
20832 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20833
20834         PR debug/43950
20835         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
20836         DW_ID_down_case for Fortran compilation units.
20837
20838 2010-05-05  Jan Hubicka  <jh@suse.cz>
20839
20840         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
20841         handle aliases.
20842
20843 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
20844
20845         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
20846         a variable-sized RESULT_DECL.
20847
20848 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
20849
20850         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
20851
20852 2010-05-05  Jason Merrill  <jason@redhat.com>
20853
20854         PR c++/43787
20855         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
20856         returns GS_OK.
20857         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
20858
20859 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
20860             Jakub Jelinek  <jakub@redhat.com>
20861
20862         PR debug/43478
20863         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
20864         (dead_debug_init, dead_debug_finish): New functions.
20865         (dead_debug_add, dead_debug_insert_before): Likewise.
20866         (df_note_bb_compute): Initialize a dead_debug object, add dead
20867         debug uses to it, insert debug bind insns before death insns,
20868         reset debug insns that refer to pending uses at the end.
20869         * rtl.h (make_debug_expr_from_rtl): New prototype.
20870         * varasm.c (make_debug_expr_from_rtl): New function.
20871
20872 2010-05-05  Jan Hubicka  <jh@suse.cz>
20873
20874         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
20875         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
20876         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
20877         lto_varpool_encoder_deref, lto_varpool_encoder_size,
20878         lto_varpool_encoder_encode_initializer_p,
20879         lto_set_varpool_encoder_encode_initializer): New functions.
20880         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
20881         call output_varpool.
20882         (input_varpool_node): Do not always set analyzed.
20883         (input_cgraph_1): Return vector of cgraph nodes.
20884         (input_varpool_1): Return vector of varpools.
20885         (input_cgraph): Free the vectors.
20886         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20887         output only initializers needed.
20888         (lto_output): Only call output_cgraph.
20889         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
20890         * lto-section-out.c (lto_new_out_decl_state): Initialize
20891         state->varpool_node_encoder.
20892         * lto-streamer.h (lto_varpool_encoder_d): New.
20893         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
20894         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
20895         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
20896         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
20897         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
20898         Declare.
20899         (output_varpool, input_varpool): Remove declarations.
20900
20901 2010-05-05  Jan Hubicka  <jh@suse.cz>
20902
20903         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
20904         with body can prevail.
20905
20906 2010-05-05  Jan Hubicka  <jh@suse.cz>
20907
20908         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
20909         size.
20910
20911 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20912
20913         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
20914
20915         * gengtype.h (erro_at_line): Constify pos argument.
20916
20917         * gengtype.c: Include hashtab.h.
20918         (enum gc_used): Document GC_MAYBE_POINTED_TO.
20919         (error_at_line): Constify pos argument.
20920         (do_typedef): Initialize p->opt field.
20921         (get_file_gtfilename): Fix comment typo.
20922         (struct walk_type_data): Constify line field.
20923         (get_output_file_for_structure): New function.
20924         (write_local_func_for_structure): Constify orig_s argument.
20925         Use get_output_file_for_structure.
20926         (write_func_for_structure): Use get_output_file_for_structure.
20927         (INDENT): New define.
20928         (dump_pair, dump_type, dump_type_list, dump_typekind)
20929         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
20930         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
20931         functions.
20932         (seen_types): New variable.
20933         (main): New variable do_dump.  Process "-d" command line option.
20934         Call dump_everything if dump requested.
20935
20936 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20937
20938         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
20939         in a temporary instead of invoking the macro multiple times.
20940         (track_expr_p): Likewise.
20941
20942 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
20943
20944         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
20945         per new semantics.
20946         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
20947         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
20948         conditions for printing notes.
20949         * common.opt (-Wcoverage-mismatch): Allow negative, default to
20950         true, update documentation.
20951         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
20952
20953 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
20954
20955         PR c/43981
20956         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
20957         on dimen.
20958
20959 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20960
20961         PR target/43799
20962         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
20963         (*sse_prologue_save_insn1): Likewise.
20964         (SSE prologue save splitter): Likewise.
20965
20966 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
20967
20968         * tree.c (free_lang_data_in_one_sizepos): New inline function.
20969         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
20970         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
20971         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
20972         all decls.  Call it on DECL_FIELD_OFFSET of fields.
20973         (find_decls_types_r): Follow DECL_VALUE_EXPR.
20974         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
20975
20976 2010-05-04  Martin Jambor  <mjambor@suse.cz>
20977
20978         * tree-sra.c (build_access_from_expr_1): The first parameter type
20979         changed to simple tree.
20980         (build_access_from_expr): Likewise, gsi parameter was eliminated.
20981         (scan_assign_result): Renamed to assignment_mod_result, enum elements
20982         renamed as well.
20983         (build_accesses_from_assign): Removed all parameters except for a
20984         simple gimple statement.  Now returns a simple bool.
20985         (scan_function): All non-analysis parts moved to separate functions
20986         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
20987         parameters and updated both callers.
20988         (sra_modify_expr): Removed parameter data.
20989         (sra_modify_function_body): New function.
20990         (perform_intra_sra): Call sra_modify_function_body to modify the
20991         function body.
20992         (replace_removed_params_ssa_names): Parameter data changed into
20993         adjustments vector.
20994         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
20995         changed the parameter dont_convert to convert with the opposite
20996         meaning.
20997         (sra_ipa_modify_assign): Parameter data changed into adjustments
20998         vector, return value changed to bool.
20999         (ipa_sra_modify_function_body): New function.
21000         (sra_ipa_reset_debug_stmts): Updated a comment.
21001         (modify_function): Use ipa_sra_modify_function_body to modify function
21002         body.
21003
21004 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21005
21006         PR middle-end/43671
21007         * alias.c (true_dependence): Handle the same VALUE in x and mem.
21008         (canon_true_dependence): Likewise.
21009         (write_dependence_p): Likewise.
21010
21011 2010-05-04  Jan Hubicka  <jh@suse.cz>
21012
21013         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21014         * cgraphbuild.c: Include ipa-utils.h
21015         (record_reference_ctx): New struct.
21016         (record_reference): Simplify to work on initializers; not statements.
21017         (mark_address, mark_load, mark_store): New.
21018         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21019         walk PHI nodes too.
21020         (record_references_in_initializer): Update use of record_reference.
21021         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21022         walk PHI nodes too.
21023
21024 2010-05-04  Jan Hubicka  <jh@suse.cz>
21025
21026         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21027         node will be removed anyway.
21028         (lto_varpool_replace_node): Allow also unanalyzed nodes;
21029         relink aliases of node into prevailing node.
21030         * varpool.c (varpool_remove_node): Remove aliases properly;
21031         when removing node, remove all its aliases too; remove DECL_INITIAL
21032         of removed node; ggc_free the varpool node.
21033
21034 2010-05-04  Richard Guenther  <rguenther@suse.de>
21035
21036         PR tree-optimization/43879
21037         * tree-ssa-structalias.c (alias_get_name): Use
21038         DECL_ASSEMBLER_NAME if available.
21039         (create_function_info_for): Return the varinfo node.
21040         (ipa_pta_execute): Associate same-body aliases and extra names
21041         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
21042
21043 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21044
21045         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21046
21047 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
21048
21049         PR bootstrap/43964
21050         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21051         only if HONOR_REG_ALLOC_ORDER is not defined.
21052
21053 2010-05-04  Richard Guenther  <rguenther@suse.de>
21054
21055         PR tree-optimization/43949
21056         * tree-vrp.c (extract_range_from_binary_expr): Only handle
21057         TRUNC_MOD_EXPR.
21058
21059 2010-04-26  Jason Merrill  <jason@redhat.com>
21060
21061         * c.opt (-fstrict-enums): New.
21062         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21063
21064 2010-05-03  David Ung  <davidu@mips.com>
21065             James E. Wilson  <wilson@codesourcery.com>
21066
21067         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21068         emit the trap instruction before the divide for TUNE_74K.
21069
21070 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
21071
21072         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21073         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21074         based on the above, for new target hook.
21075
21076         * hooks.c (hook_bool_mode_true): New generic hook.
21077         * hooks.h (hook_bool_mode_true): Add prototype.
21078
21079         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21080         target hook.
21081         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21082         target hook, set to hook_bool_mode_false.
21083         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21084         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21085         with targetm.small_register_classes_for_mode_p.
21086         (find_reusable_reload): Likewise.
21087         (combine_reloads): Likewise.
21088         * reload1.c (reload_as_needed): Likewise.
21089         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21090         * ifcvt.c (noce_process_if_block, check_cond_move_block,
21091         dead_or_predicable): Likewise.
21092         * regmove.c (optimize_reg_copy_1): Likewise.
21093         * calls.c (prepare_call_address): Likewise.
21094         (precompute_register_parameters): Likewise.
21095
21096         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21097         hook definition.
21098         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21099         implementation of the hook that considers all register classes
21100         small except for SH64.
21101         (sh_override_options): Use the new hook.
21102         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21103         Add prototype.
21104
21105         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21106         hook definition.
21107         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21108         implementation of the hook that considers all register classes
21109         small for THUMB1.
21110         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21111         Add prototype.
21112
21113         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21114         hook definition.
21115         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21116         implementation of the hook that considers all register classes
21117         small for MIPS16.
21118         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21119         Add prototype.
21120
21121         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21122         hook definition.
21123         * config/m32c/m32c.h: Likewise.
21124         * config/pdp11/pdp11.h: Likewise.
21125         * config/avr/avr.h: Likewise.
21126         * config/xtensa/xtensa.h: Likewise.
21127         * config/m68hc11/m68hc11.h: Likewise.
21128         * config/mn10300/mn10300.h: Likewise.
21129         * config/mcore/mcore.h: Likewise.
21130         * config/h8300/h8300.h: Likewise.
21131         * config/bfin/bfin.h: Likewise.
21132
21133         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21134         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21135
21136 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
21137
21138         * double-int.h (tree_to_double_int): Remove macro.
21139         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21140         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21141         (tree_to_double_int): New function.
21142         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21143         Move ...
21144         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21145
21146 2010-05-03  Richard Guenther  <rguenther@suse.de>
21147
21148         PR tree-optimization/43971
21149         * tree-ssa-structalias.c (get_constraint_for_1): Fix
21150         constraints in the !flag_delete_null_pointer_checks case.
21151
21152 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
21153
21154         PR debug/43972
21155         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21156         result mode matches original rtl mode.
21157
21158 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
21159
21160         PR target/43888
21161         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21162
21163 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21164
21165         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21166         when processing flag options.
21167
21168 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21169
21170         * gcov-iov.c (main): Change format string placeholder
21171         from %#08x to 0x%08x.
21172         * genchecksum.c (dosum): Change format string placeholder
21173         from %#02x to 0x%02x.
21174
21175 2010-05-02  Richard Guenther  <rguenther@suse.de>
21176
21177         PR tree-optimization/43879
21178         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21179
21180 2010-05-02  Bruno Haible  <bruno@clisp.org>
21181
21182         * doc/extend.texi (Function Attributes): Fix a typo.
21183
21184 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21185
21186         Revert:
21187         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21188         placeholder from 0x%x to %#x.
21189         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21190         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21191         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21192         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21193         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21194         * config/i386/i386.c (ix86_target_string): Ditto.
21195         * config/i386/i386.c (output_pic_addr_const): Ditto.
21196         (print_operand): Ditto.
21197
21198 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21199
21200         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21201         placeholder from 0x%x to %#x.
21202         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21203         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21204         (ASM_OUTPUT_DEBUG_DATA): Ditto.
21205         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21206         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21207         * optc-gen.awk: Ditto.
21208         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21209         (HOST_WIDE_INT_PRINT_HEX): Ditto.
21210         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21211         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21212
21213 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21214
21215         * target.h (struct calls): Add function_value_regno_p field.
21216         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21217         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21218         * targhooks.c (default_function_value_regno_p): New function.
21219         * targhooks.h (default_function_value_regno_p): Declare function.
21220         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21221         * builtins.c. (apply_result_size): (Ditto.).
21222         * combine.c. (likely_spilled_retval_p): (Ditto.).
21223         * mode-switching.c. Include 'target.h'.
21224         (create_pre_exit): Use function_value_regno_p hook.
21225         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21226         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21227         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21228
21229         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21230         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21231         (ix86_function_value_regno_p): Declare as static, change argument
21232         type to const unsigned int.
21233         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21234
21235 2010-05-01  Richard Guenther  <rguenther@suse.de>
21236
21237         PR tree-optimization/43949
21238         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21239         types.
21240         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21241
21242 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21243
21244         * rtl.h (CONST_DOUBLE_P): Define.
21245         (rtx_to_double_int): Declare.
21246         * emit-rtl.c (rtx_to_double_int): New function.
21247         * dwarf2out.c (insert_double): New function.
21248         (loc_descriptor, add_const_value_attribute): Clean up, use
21249         rtx_to_double_int and insert_double functions.
21250
21251 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
21252
21253         * doc/extend.texi (Inline): Add missing return keyword to examples.
21254         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21255         "command-line".
21256
21257 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21258
21259         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21260         the variable part of the offset as well.  Use highest_pow2_factor for
21261         all alignment checks.
21262
21263 2010-04-30  Richard Guenther  <rguenther@suse.de>
21264
21265         PR tree-optimization/43879
21266         * tree-ssa-structalias.c (type_could_have_pointers): Functions
21267         can have pointers.
21268
21269 2010-04-30  Jan Hubicka  <jh@suse.cz>
21270
21271         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21272         varpool.
21273         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21274
21275 2010-04-30  Jan Hubicka  <jh@suse.cz>
21276
21277         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21278         New.
21279         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21280         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21281         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21282         cgraph_node_set_needs_ltrans_p): Remove.
21283
21284 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21285
21286         * sdbout.c: Include vec.h, do not include varray.h.
21287         (deferred_global_decls, sdbout_global_decl,
21288         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21289         * toplev.c: Do not include varray.h.
21290         (dump_memory_report): Do not dump VARRAY statistics.
21291         * gengtype.c (open_base_file): Ignore varray.h.
21292         * Makefile.in: Update for abovementioned changes.
21293         Remove all traces of varray.c and varray.h.
21294         * varray.c: Remove file.
21295         * varray.h: Remove file.
21296
21297 2010-04-30  Jan Hubicka  <jh@suse.cz>
21298
21299         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21300         references.
21301
21302 2010-04-30  Jan Hubicka  <jh@suse.cz>
21303
21304         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21305         needed.
21306
21307 2010-04-30  Richard Guenther  <rguenther@suse.de>
21308
21309         * tree-ssa-structalias.c (get_constraint_for_1): Generate
21310         constraints for CONSTRUCTOR.
21311
21312 2010-04-30  Richard Guenther  <rguenther@suse.de>
21313
21314         PR lto/43946
21315         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21316         first after all lowering passes.
21317
21318 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21319
21320         * toplev.c: Include varray.h for statistics dumping.
21321         * tree.h: Do not declare varray_head_tag.
21322         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21323         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21324         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21325         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21326         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21327         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21328         c-common.c, c-common.h, reg-stack.c, basic-block.h,
21329         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21330         include varray.h.
21331         * Makefile.in: Update for abovementioned changes.
21332
21333 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
21334
21335         PR debug/43942
21336         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21337
21338 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
21339
21340         * config/picochip/picochip.c (picochip_legitimize_address): Define.
21341         Use this function to do machine-specific conversion.
21342         (picochip_legitimize_reload_address): Likewise.
21343         (picochip_legitimate_address_p): Check valid base register only if
21344         strict.
21345         (picochip_check_conditional_copy): Check for modw only if opnd is
21346         register.
21347         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21348         to call the function in c.
21349         * config/picochip/picochip-protos.h
21350         (picochip_legitimize_reload_address): Define.
21351         * config/picochip/picochip.md (supported_compare1): Define.
21352
21353 2010-04-30  Jan Hubicka  <jh@suse.cz>
21354
21355         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21356         (cgraph_global_info): Remove inlined.
21357         (LTO_cgraph_tag_names): Remove.
21358         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21359         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21360         simplify cgraph tags and document.
21361         (lto_output_node): Use only LTO_cgraph_unavail_node and
21362         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21363         for_functions_valid, global info, process and output flags.
21364         (input_overwrite_node): Initialize estimated stack size and
21365         estimated growth.  Do not read flags we no longer store.
21366         (input_node): Likewise do not read info no longer stored.
21367         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21368         flag.
21369
21370 2010-04-30  Richard Guenther  <rguenther@suse.de>
21371
21372         PR tree-optimization/43879
21373         * tree-ssa-structalias.c (get_constraint_for_1): Properly
21374         handle non-zero initializers.
21375
21376 2010-04-30  Richard Guenther  <rguenther@suse.de>
21377
21378         * builtins.c (fold_builtin_1): Delete free (0).
21379
21380 2010-04-29  Jan Hubicka  <jh@suse.cz>
21381
21382         * gengtype.c (open_base_files): Add lto-streamer.h
21383         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21384         (pass_ipa_cp): GGC collect.
21385         * toplev. (compile_file): Do not output symbols.
21386         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21387         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21388         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21389         * lto-section-in.c: Include ggc.h
21390         (lto_new_in_decl_state): Alloc in GGC.
21391         (lto_delete_in_decl_state): Likewise.
21392         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21393         Collect.
21394
21395 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21396
21397         PR target/42895
21398         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21399         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21400         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21401         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21402         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21403         account only if HONOR_REG_ALLOC_ORDER is not defined.
21404         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21405         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21406
21407 2010-04-29  Jon Grant  <04@jguk.org>
21408
21409         * collect2.c (vflag): Change type from int to bool.
21410         (debug): Likewise.
21411         (helpflag): New global bool.
21412         (main): Set vflag and debug with boolean, not integer truth values.
21413         Accept new "--help" option and output usage text if found.
21414         * collect2.h (vflag): Update prototype.
21415         (debug): Likewise.
21416
21417 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21418
21419         PR bootstrap/43936
21420         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21421
21422 2010-04-29  Richard Guenther  <rguenther@suse.de>
21423
21424         PR bootstrap/43935
21425         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21426         with ATTRIBUTE_UNUSED.
21427
21428 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21429
21430         PR target/43921
21431         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21432         INSN_P with NONDEBUG_INSN_P.
21433         (distance_non_agu_define): Likewise.
21434         (distance_agu_use): Likewise.
21435
21436 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21437
21438         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21439         PR bootstrap/43858
21440         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21441         test_set.
21442
21443 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21444
21445         * plugin.h (invoke_plugin_callbacks): New inline function.
21446         * plugin.c (flag_plugin_added): New global flag.
21447         (add_new_plugin): Initialize above flag.
21448         (invoke_plugin_callbacks): Rename to ...
21449         (invoke_plugin_callbacks_full): ... this.
21450
21451 2010-04-28  Jan Hubicka  <jh@suse.cz>
21452
21453         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21454         (lto_varpool_replace_node): New.
21455         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21456         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21457         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21458         * cgraph.h (varpool_node_ptr): New type.
21459         (varpool_node_ptr): New vector.
21460         (varpool_node_set_def): New structure.
21461         (varpool_node_set): New type.
21462         (varpool_node_set): New vector.
21463         (varpool_node_set_element_def): New structure.
21464         (varpool_node_set_element, const_varpool_node_set_element): New types.
21465         (varpool_node_set_iterator): New type.
21466         (varpool_node): Add prev pointers, add used_from_other_partition,
21467         in_other_partition.
21468         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21469         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21470         varpool_get_node, varpool_remove_node): Declare.
21471         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21472         varpool_node_set_size): New inlines.
21473         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21474         * tree-pass.h (varpool_node_set_def): Forward declare.
21475         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21476         (ipa_write_optimization_summaries): Update prototype.
21477         * ipa-cp.c (ipcp_write_summary): Update.
21478         * ipa-reference.c (ipa_reference_write_summary): Update.
21479         * lto-cgraph.c (lto_output_varpool_node): New static function.
21480         (output_varpool): New function.
21481         (input_varpool_node): New static function.
21482         (input_varpool_1): New function.
21483         (input_cgraph): Input varpool.
21484         * ipa-pure-const.c (pure_const_write_summary): Update.
21485         * lto-streamer-out.c (lto_output): Update, output varpool too.
21486         (write_global_stream): Kill WPA hack.
21487         (produce_asm_for_decls): Update.
21488         (output_alias_pair_p): Handle variables.
21489         (output_unreferenced_globals): Output only needed partition of varpool.
21490         * ipa-inline.c (inline_write_summary): Update.
21491         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21492         cgraph.
21493         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21494         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21495         varpool_node_set_new, varpool_node_set_add,
21496         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21497         debug_varpool_node_set): New functions.
21498         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21499         (execute_one_pass): Process new decls too.
21500         (ipa_write_summaries_2): Pass around vsets.
21501         (ipa_write_summaries_1): Likewise.
21502         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21503         to add.
21504         (ipa_write_optimization_summaries_1): Pass around vsets.
21505         (ipa_write_optimization_summaries): Likewise.
21506         * varpool.c (varpool_get_node): New.
21507         (varpool_node): Update doubly linked lists.
21508         (varpool_remove_node): New.
21509         (dump_varpool_node): More dumping.
21510         (varpool_enqueue_needed_node): Update doubly linked lists.
21511         (decide_is_variable_needed): Kill ltrans hack.
21512         (varpool_finalize_decl): Kill lto hack.
21513         (varpool_assemble_decl): Skip decls in other partitions.
21514         (varpool_assemble_pending_decls): Update doubly linkes lists.
21515         (varpool_empty_needed_queue): Likewise.
21516         (varpool_extra_name_alias): Likewise.
21517         * lto-streamer.c (lto_get_section_name): Add vars section.
21518         * lto-streamer.h (lto_section_type): Update.
21519         (output_varpool, input_varpool): Declare.
21520
21521 2010-04-28  Mike Stump  <mikestump@comcast.net>
21522
21523         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21524
21525 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21526
21527         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21528         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21529         (lto_input_ts_type_tree_pointers): Likewise.
21530         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21531         (lto_output_ts_type_tree_pointers): Likewise.
21532
21533 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21534
21535         Uniquization of constants at the Tree level
21536         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21537         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21538         bit to the end.
21539         (tree_output_constant_def): Declare.
21540         * gimplify.c (gimplify_init_constructor): When using block copy, first
21541         uniquize the constant constructor on the RHS.
21542         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21543         DECL_IN_CONSTANT_POOL flag.
21544         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21545         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21546         constant pool.
21547         (assemble_variable): Deal with symbols belonging to the tree constant
21548         pool.
21549         (get_constant_section): Add ALIGN parameter and simplify.
21550         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21551         (assemble_constant_contents): Use the expression of the VAR_DECL.
21552         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21553         (tree_output_constant_def): New global function.
21554         (mark_constant): Use the expression of the VAR_DECL.
21555         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21556         its expression.
21557         (output_object_block): Likewise and assemble the expression.
21558
21559 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21560
21561         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21562         hash_tree, eq_tree): New tree hash table.
21563         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21564         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21565         lto_orig_address_remove): Reimplement.
21566
21567 2010-04-28  Xinliang David Li  <davidxl@google.com>
21568
21569         PR c/42643
21570         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21571         (compute_uninit_opnds_pos): New function.
21572         (is_non_loop_exit_postdominating): New function.
21573         (compute_control_dep_chain): New function.
21574         (find_pdom): New function.
21575         (convert_control_dep_chain_into_preds): New function.
21576         (find_predicates): New function.
21577         (find_control_equiv_block): New function.
21578         (collect_phi_def_edges): New function.
21579         (find_def_preds): New function.
21580         (find_dom): New function.
21581         (dump_predicates): New function.
21582         (get_cmp_code): New function.
21583         (is_value_included_in): New function.
21584         (find_matching_predicate_in_rest_chains): New function.
21585         (use_pred_not_overlap_with_undef_path_pred): New function.
21586         (is_use_properly_guarded): New function.
21587         (normalize_cond_1): New function.
21588         (is_and_or_or): New function.
21589         (normalize_cond): New function.
21590         (is_gcond_subset_of): New function.
21591         (is_subset_of_any): New function.
21592         (is_or_set_subset_of): New function.
21593         (is_and_set_subset_of): New function.
21594         (is_norm_cond_subset_of): New function.
21595         (is_pred_expr_subset_of): New function.
21596         (is_pred_chain_subset_of): New function.
21597         (is_included_in): New function.
21598         (is_superset_of): New function.
21599         (find_uninit_use): New function.
21600         (warn_uninitialized_phi): New function.
21601         (compute_possibly_undefined_names): New function.
21602         (ssa_undefined_value_p): New function.
21603         (execute_late_warn_uninitialized): New function.
21604         * tree-ssa.c (ssa_undefined_value_p): Removed.
21605         (warn_uninit): Changed to extern.
21606         (warn_uninitialized_phi): Removed.
21607         (warn_uninitialized_vars): Changed to extern.
21608         (execute_late_warn_uninitialized): Removed
21609         * tree-flow.h: Add new prototypes.
21610         * timevar.def: Add new time variable.
21611         * Makefile.in: Add new build file.
21612
21613 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
21614
21615         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21616         type if available.
21617
21618 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21619
21620         PR target/22224
21621         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21622
21623 2010-04-28  Martin Jambor  <mjambor@suse.cz>
21624
21625         * cgraph.h (struct cgraph_node): New field indirect_calls.
21626         (struct cgraph_indirect_call_info): New type.
21627         (struct cgraph_edge): Removed field indirect_call. New fields
21628         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21629         (cgraph_create_indirect_edge): Declare.
21630         (cgraph_make_edge_direct): Likewise.
21631         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21632         * ipa-prop.h (struct ipa_param_call_note): Removed.
21633         (struct ipa_node_params): Removed field param_calls.
21634         (ipa_create_all_structures_for_iinln): Declare.
21635         * cgraph.c: Described indirect edges and uids in initial comment.
21636         (cgraph_add_edge_to_call_site_hash): New function.
21637         (cgraph_edge): Search also among the indirect edges, use
21638         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21639         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21640         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21641         site hash.
21642         (initialize_inline_failed): Assign a reason to indirect edges.
21643         (cgraph_create_edge_1): New function.
21644         (cgraph_create_edge): Moved some functionality to
21645         cgraph_create_edge_1.
21646         (cgraph_create_indirect_edge): New function.
21647         (cgraph_edge_remove_callee): Add an assert checking for
21648         non-indirectness.
21649         (cgraph_edge_remove_caller): Special-case indirect edges.
21650         (cgraph_remove_edge): Likewise.
21651         (cgraph_set_edge_callee): New function.
21652         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21653         (cgraph_make_edge_direct): New function.
21654         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21655         the declaration of the call statement matches.
21656         (cgraph_node_remove_callees): Special-case indirect edges.
21657         (cgraph_clone_edge): Likewise.
21658         (cgraph_clone_node): Clone also the indirect edges.
21659         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21660         indirect_call, dump count of indirect_calls edges.
21661         * ipa-prop.c (iinlining_processed_edges): New variable.
21662         (ipa_note_param_call): Create indirect edges instead of
21663         creating notes.  New parameter node.
21664         (ipa_analyze_call_uses): New parameter node, pass it on to
21665         ipa_note_param_call.
21666         (ipa_analyze_stmt_uses): Likewise.
21667         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21668         (print_edge_addition_message): Work on edges rather than on notes.
21669         (update_call_notes_after_inlining): Likewise, renamed to
21670         update_indirect_edges_after_inlining.
21671         (ipa_create_all_structures_for_iinln): New function.
21672         (ipa_free_node_params_substructures): Do not free notes.
21673         (ipa_edge_duplication_hook): Propagate bits within
21674         iinlining_processed_edges bitmap.
21675         (ipa_node_duplication_hook): Do not duplicate notes.
21676         (free_all_ipa_structures_after_ipa_cp): Renamed to
21677         ipa_free_all_structures_after_ipa_cp.
21678         (free_all_ipa_structures_after_iinln): Renamed to
21679         ipa_free_all_structures_after_iinln.
21680         (ipa_write_param_call_note): Removed.
21681         (ipa_read_param_call_note): Removed.
21682         (ipa_write_indirect_edge_info): New function.
21683         (ipa_read_indirect_edge_info): Likewise.
21684         (ipa_write_node_info): Do not stream notes, do stream information
21685         in indirect edges.
21686         (ipa_read_node_info): Likewise.
21687         (lto_ipa_fixup_call_notes): Removed.
21688         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21689         * ipa-inline.c (pass_ipa_inline): Likewise.
21690         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21691         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21692         * tree-inline.c (copy_bb): Removed an unnecessary double check for
21693         is_gimple_call.
21694         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21695         edges.
21696         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21697         (output_cgraph): Stream also indirect edges.
21698         (lto_output_edge): Added capability to stream indirect edges.
21699         (input_edge): Likewise.
21700         (input_cgraph_1): Likewise.
21701         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21702         of indirect edges.
21703
21704 2010-04-28  Richard Guenther  <rguenther@suse.de>
21705
21706         PR tree-optimization/43879
21707         PR tree-optimization/43909
21708         * tree-ssa-structalias.c (struct variable_info): Add
21709         only_restrict_pointers flag.
21710         (new_var_info): Initialize it.  Increment stats.total_vars here.
21711         (create_function_info_for): Do not increment stats.total_vars here.
21712         (get_function_part_constraint): Fix build with C++.
21713         (insert_into_field_list): Remove.
21714         (push_fields_onto_fieldstack): Properly merge fields.
21715         (create_variable_info_for): Split and simplify.
21716         (create_variable_info_for_1): New piece.
21717         (intra_create_variable_infos): Properly make restrict constraints
21718         from parameters.
21719
21720 2010-04-28  Richard Guenther  <rguenther@suse.de>
21721
21722         PR c++/43880
21723         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
21724
21725 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21726             Jan Hubicka  <hubicka@ucw.cz>
21727
21728         * doc/invoke.texi (-Wsuggest-attribute=const,
21729         -Wsuggest-attribute=pure): Document.
21730         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
21731         (function_always_visible_to_compiler_p,
21732         suggest_attribute, warn_function_pure, warn_function_const):
21733         New functions.
21734         (check_call): Improve debug info.
21735         (analyze_function): Do not check availability.
21736         (add_new_function): Check availability.
21737         (propagate): Output warnings.
21738         (skip_function_for_local_pure_const): New function.
21739         (local_pure_const): Use it; output warnings.
21740         * common.opt (Wsuggest-attribute=const,
21741         Wsuggest-attribute=pure): New.
21742
21743 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21744
21745         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
21746         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
21747         or DW_CFA_def_cfa_offset{,_sf}.
21748
21749 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21750
21751         * tree.h: Fix truncated long macros.
21752
21753 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
21754
21755         * collect2.c (TARGET_64BIT): Redefine to target's default.
21756         * tlink.c: Likewise.
21757         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
21758         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
21759         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
21760         for underscoring __USER_LABEL_PREFIX__.
21761         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
21762         (SUB_LINK_ENTRY32): New.
21763         (SUB_LINK_ENTRY64): New.
21764         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
21765         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
21766         (SUB_LINK_ENTRY64): New.
21767         (SUB_LINK_ENTRY): New.
21768         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
21769         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
21770         x64 target is choosen.
21771         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
21772         * configure: Regenerated.
21773         * configure.ac (leading-mingw64-underscores): Option added.
21774
21775 2010-04-27  Jan Hubicka  <jh@suse.cz>
21776
21777         * doc/invoke.texi (-fipa-profile): Document.
21778         * opts.c (decode_options): Enable ipa-profile at -O1.
21779         * timevar.def (TV_IPA_PROFILE): Define.
21780         * common.opt (fipa-profile): Add.
21781         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
21782         flag for clones.
21783         (cgraph_propagate_frequency): Handle only local ones.
21784         * tree-pass.h (pass_ipa_profile): Declare.
21785         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
21786         (pass_ipa_profile): Use TV_IPA_PROFILE.
21787         * ipa.c (ipa_profile): New function.
21788         (gate_ipa_profile): Likewise.
21789         (pass_ipa_profile): New global variable.
21790         * passes.c (pass_ipa_profile): New.
21791
21792 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
21793
21794         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
21795
21796 2010-04-27  Martin Jambor  <mjambor@suse.cz>
21797
21798         PR middle-end/43812
21799         * ipa.c (dissolve_same_comdat_group_list): New function.
21800         (function_and_variable_visibility): Call
21801         dissolve_same_comdat_group_list when comdat group contains external or
21802         newly local nodes.
21803         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
21804         lists are circular and that they contain only DECL_ONE_ONLY nodes.
21805
21806 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21807
21808         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
21809         (const_hash_1) <VECTOR_CST>: New case.
21810         (compare_constant) <VECTOR_CST>: Likewise.
21811         <ADDR_EXPR>: Deal with LABEL_REFs.
21812         (copy_constant) <VECTOR_CST>: New case.
21813
21814 2010-04-27  Jan Hubicka  <jh@suse.cz>
21815
21816         * cgraph.c (cgraph_propagate_frequency): New function.
21817         * cgraph.h (cgraph_propagate_frequency): Declare.
21818         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
21819         cgraph_propagate_frequency.
21820
21821 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21822
21823         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
21824
21825 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
21826
21827         PR target/40657
21828         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
21829         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
21830         here to determine which regs to push and how much stack to reserve.
21831
21832 2010-04-27  Jie Zhang  <jie@codesourcery.com>
21833
21834         * doc/gimple.texi (gimple_statement_with_ops): Remove
21835         addresses_taken field.
21836         (gimple_statement_with_memory_ops): Likewise.
21837
21838 2010-04-27  Jan Hubicka  <jh@suse.cz>
21839
21840         * tree-inline.c (eni_inlining_weights): Remove.
21841         (estimate_num_insns): Special case more builtins.
21842
21843 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
21844
21845         PR c/32207
21846         * c-typeck.c (build_binary_op): Move forward check for comparison
21847         pointer with null pointer constant and adjust the diagnostic message.
21848
21849 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
21850
21851         PR lto/42776
21852         * configure.ac (gcc_cv_as_section_has_align): Set if installed
21853         binutils supports extended .section directive needed by LTO, or
21854         warn if older binutils found.
21855         (LTO_BINARY_READER): New AC_SUBST'd variable.
21856         (LTO_USE_LIBELF): Likewise.
21857         * config.gcc (lto_binary_reader): New target-specific configure
21858         variable.
21859         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
21860         (LTO_USE_LIBELF): Likewise.
21861         * configure: Regenerate.
21862
21863         * collect2.c (is_elf): Rename from this ...
21864         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
21865          object files in addition to ELF-formatted ones.
21866         (scan_prog_file): Caller updated.  Also allow for LTO info marker
21867         symbol to be prefixed or not by an extra underscore.
21868
21869         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
21870         * config/i386/winnt.c: Also #include lto-streamer.h
21871         (i386_pe_asm_named_section): Specify 1-byte section alignment for
21872         LTO named sections.
21873         (i386_pe_asm_output_aligned_decl_common): Add comment.
21874         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
21875
21876 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
21877
21878         PR target/43889
21879         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
21880         Add missing earlyclobber for second alternative.
21881
21882 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
21883
21884         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
21885         bits for artificial defs at the top of the block.
21886         * fwprop.c (single_def_use_enter_block): Don't call it.
21887
21888 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
21889
21890         PR 43715
21891         * configure.ac: Use "$gcc_cv_nm -g" on darwin
21892         instead of "$gcc_cv_objdump -T".
21893         Use "-undefined dynamic_lookup" on darwin.
21894         * configure: Regenerate.
21895
21896 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
21897
21898         PR c/43893
21899         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
21900
21901 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
21902
21903         * c-parser.c (struct c_token): Move location field up.
21904         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
21905         (struct c_declspecs): Convert typespec_word, storage_class, and
21906         default_int_p into bitfields.
21907         (struct c_declarator): Move loc field up.
21908
21909 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
21910
21911         * cfgloop.h (struct loop): Move can_be_parallel field up.
21912         * ipa-prop.h (struct ip_node_params): Move bitfields up.
21913         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
21914         down.
21915         (struct iv_cand): Convert pos field into a bitfield.
21916         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
21917         field up.
21918         (struct _stmt_vec_info): Shuffle fields for better packing.
21919
21920 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
21921
21922         * varasm.c (IN_NAMED_SECTION): Remove guard.
21923         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
21924         (IN_NAMED_SECTION_P): ...this.
21925         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
21926         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21927
21928 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
21929
21930         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
21931         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
21932         of shadowing it.  Fix comments.
21933
21934 2010-04-26  Jan Hubicka  <jh@suse.cz>
21935
21936         * cgraph.c (cgraph_create_node): Set node frequency to normal.
21937         (cgraph_clone_node): Copy function frequency.
21938         * cgraph.h (node_frequency): New enum
21939         (struct cgraph_node): Add.
21940         * final.c (rest_of_clean_state): Update.
21941         * lto-cgraph.c (lto_output_node): Output node frequency.
21942         (input_overwrite_node): Input node frequency.
21943         * tre-ssa-loop-ivopts (computation_cost): Update.
21944         * lto-streamer-out.c (output_function): Do not output function
21945         frequency.
21946         * predict.c (maybe_hot_frequency_p): Update and handle functions
21947         executed once.
21948         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
21949         attribute lookup.
21950         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
21951         (compute_function_frequency): Set noreturn functions to be executed
21952         once.
21953         (choose_function_section): Update.
21954         * lto-streamer-in.c (input_function): Do not input function frequency.
21955         * function.c (allocate_struct_function): Do not initialize function
21956         frequency.
21957         * function.h (function_frequency): Remove.
21958         (struct function): Remove function frequency.
21959         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
21960         (try_update): Update.
21961         * tree-inline.c (initialize_cfun): Do not update function frequency.
21962         * passes.c (pass_init_dump_file): Update.
21963         * i386.c (ix86_compute_frame_layout): Update.
21964         (ix86_pad_returns): Update.
21965
21966 2010-04-26  Jie Zhang  <jie@codesourcery.com>
21967
21968         PR tree-optimization/43833
21969         * tree-vrp.c (range_int_cst_p): New.
21970         (range_int_cst_singleton_p): New.
21971         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
21972         when both operands are constants.  Use range_int_cst_p in
21973         BIT_IOR_EXPR case.
21974
21975 2010-04-26  Jan Hubicka  <jh@suse.cz>
21976
21977         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
21978
21979 2010-04-26  Richard Guenther  <rguenther@suse.de>
21980
21981         PR lto/43080
21982         * gimple.c (gimple_decl_printable_name): Deal gracefully
21983         with a NULL DECL_NAME.
21984
21985 2010-04-26  Richard Guenther  <rguenther@suse.de>
21986
21987         PR lto/42425
21988         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
21989         if emitting debug information and it is either a function
21990         or a namespace decl.
21991
21992 2010-04-26  Ira Rosen  <irar@il.ibm.com>
21993
21994         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
21995         determine if the statement is vectorizable, and a macro to access it.
21996         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21997         Skip statements that can't be vectorized. If the analysis fails,
21998         mark the statement as unvectorizable if vectorizing basic block.
21999         (vect_compute_data_refs_alignment): Likewise.
22000         (vect_verify_datarefs_alignment): Skip statements marked as
22001         unvectorizable. Add print.
22002         (vect_analyze_group_access): Skip statements that can't be
22003         vectorized. If the analysis fails, mark the statement as
22004         unvectorizable if vectorizing basic block.
22005         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22006         * tree-vect-stmts.c (vectorizable_store): Fix the number of
22007         generated stmts for SLP.
22008         (new_stmt_vec_info): Initialize the new field.
22009         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22010         statements marked as unvectorizable.
22011
22012 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
22013
22014         * c-common.c (flag_isoc1x): New.
22015         (flag_isoc99): Update comment.
22016         * c-common.h (flag_isoc1x): New.
22017         (flag_isoc99): Update comment.
22018         * c-cppbuiltin.c (builtin_define_float_constants): Also define
22019         __<type>_DECIMAL_DIG__.
22020         * c-opts.c (set_std_c1x): New.
22021         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22022         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22023         * c.opt (-std=c1x, -std=gnu1x): New options.
22024         * doc/cpp.texi: Mention -std=c1x.
22025         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22026         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22027         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22028         * doc/standards.texi: Mention C1X.
22029         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22030         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22031         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22032         Define for C1X.
22033
22034 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
22035
22036         * config/i386/gmon-sol2.c (_mcleanup): Change format string
22037         placeholder from 0x%x to %#x.
22038         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22039         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22040         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22041         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22042         * config/i386/i386.c (ix86_target_string): Ditto.
22043         (output_pic_addr_const): Ditto.
22044         (print_operand): Ditto.
22045
22046 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
22047
22048         * combine.c (find_split_point): Add third argument.  Use it
22049         to find nested multiply-accumulate instructions.  Adjust calls.
22050         (try_combine): Adjust call to find_split_point.
22051
22052 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
22053
22054         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22055
22056 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
22057
22058         PR tree-optimization/41442
22059         * fold-const.c (merge_truthop_with_opposite_arm): New function.
22060         (fold_binary_loc): Call it.
22061
22062 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22063
22064         * toplev.c (general_init): Set default for fdiagnostics-show-option.
22065         * opts.c (common_handle_option): Allow disabling it.
22066         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22067
22068 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22069
22070         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22071         between modes if both types are integral.
22072
22073 2010-04-23  Richard Guenther  <rguenther@suse.de>
22074
22075         PR tree-optimization/43572
22076         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22077
22078 2010-04-23  Richard Guenther  <rguenther@suse.de>
22079
22080         PR lto/43455
22081         * tree-inline.c (tree_can_inline_p): Also check compatibility
22082         of return types.
22083
22084 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22085
22086         PR tree-optimization/43846
22087         * tree-sra.c (struct access): New flag grp_assignment_read.
22088         (build_accesses_from_assign): Set grp_assignment_read.
22089         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22090         (enum mark_read_status): New type.
22091         (analyze_access_subtree): Propagate grp_assignment_read, create
22092         accesses also if both direct_read and root->grp_assignment_read.
22093
22094 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22095
22096         PR middle-end/43835
22097         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22098         function does not have type attributes.
22099
22100 2010-04-23  Richard Guenther  <rguenther@suse.de>
22101
22102         PR lto/42653
22103         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22104         of FUNCTION_DECLs.
22105
22106 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22107
22108         * sese.h (create_if_region_on_edge): Remove.
22109
22110         * sese.c (create_if_region_on_edge): Make static.
22111
22112         * tree-inline.c: Do not include ggc.h.
22113
22114         * expr.c: Do not include ggc.h.
22115
22116         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22117         dependencies.
22118
22119 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
22120
22121         PR target/43744
22122         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22123         in the middle of insns for casesi_worker_2.
22124
22125 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
22126
22127         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22128
22129 2010-04-22  Ira Rosen  <irar@il.ibm.com>
22130
22131         PR tree-optimization/43842
22132         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22133         loop unrolling in update of exit phis. Fix comment.
22134         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22135         least two reduction statements in the loop before starting SLP
22136         analysis.
22137
22138 2010-04-22  Nick Clifton  <nickc@redhat.com>
22139
22140         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22141
22142 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
22143
22144         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22145         to simplify a + ~a.
22146
22147 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22148
22149         * tree-parloops.c (loop_parallel_p): New argument
22150         parloop_obstack.  Pass it down.
22151         (parallelize_loops): New variable parloop_obstack.  Initialize it,
22152         pass it down, free it.
22153
22154         * tree-loop-linear.c (linear_transform_loops): Pass down
22155         lambda_obstack.
22156
22157         * tree-data-ref.h (lambda_compute_access_matrices): New argument
22158         of type struct obstack *.
22159
22160         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22161         scratch_obstack.  Initialize it, pass down, free it.
22162
22163         * lambda.h (lambda_loop_new): Remove.
22164         (lambda_matrix_new, lambda_matrix_inverse)
22165         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22166         argument of type struct obstack *.
22167
22168         * lambda-trans.c (lambda_trans_matrix_new): New argument
22169         lambda_obstack.  Pass it down, use obstack allocation for ret.
22170         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
22171         it down.
22172
22173         * lambda-mat.c (lambda_matrix_get_column)
22174         (lambda_matrix_project_to_null): Remove.
22175         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
22176         allocation for mat.
22177         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22178         lambda_obstack.
22179
22180         * lambda-code.c (lambda_loop_new): New function.
22181         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22182         (lambda_compute_auxillary_space, lambda_compute_target_space)
22183         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22184         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22185         (build_access_matrix): New argument lambda_obstack.  Use obstack
22186         allocation for am.
22187         (lambda_compute_step_signs, lambda_compute_access_matrices): New
22188         argument lambda_obstack.  Pass it down.
22189
22190 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22191
22192         * optabs.h (expand_widening_mult): Declare.
22193
22194 2010-04-22  Richard Guenther  <rguenther@suse.de>
22195
22196         PR tree-optimization/43845
22197         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22198         lookup the CALL_EXPR function and arguments.
22199
22200 2010-04-22  Nick Clifton  <nickc@redhat.com>
22201
22202         * config/stormy16/stormy16.c
22203         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22204         * config/stormy16/stormy16.h: Tidy up formatting.
22205         (DONT_USE_BUILTIN_SETJMP): Remove definition.
22206         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22207         (ineqbranchsi): Delete pattern.
22208         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22209         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22210         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22211         stormy16-lib2-ucmpsi2.c.
22212
22213 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22214
22215         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22216         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
22217         extra set merge_set_noclobber, and use it to relax the final test
22218         slightly.
22219         * df.h (df_simulate_find_noclobber_defs): Declare.
22220         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22221         conditional defs.
22222         (df_simulate_find_noclobber_defs): New function.
22223
22224 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
22225
22226         * config/i386/i386.md: Use {} around multi-line preparation statements.
22227
22228 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22229
22230         * c-tree.h (push_init_level, pop_init_level, set_init_index)
22231         (process_init_element): New argument of type struct obstack *.
22232
22233         * c-typeck.c (push_init_level, pop_init_level, set_designator)
22234         (set_init_index, set_init_label, set_nonincremental_init)
22235         (set_nonincremental_init_from_string, find_init_member)
22236         (output_init_element, output_pending_init_elements)
22237         (process_init_element): New argument braced_init_obstack.  Pass it
22238         down.
22239         (push_range_stack, add_pending_init): New argument
22240         braced_init_obstack.  Use obstack allocation.
22241
22242         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22243         braced_init_obstack.  Pass it down.
22244         (c_parser_braced_init): New variables ret, braced_init_obstack.
22245         Initialize obstack, pass it down and finally free it.
22246
22247 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22248
22249         PR middle-end/29274
22250         * tree-pass.h (pass_optimize_widening_mul): Declare.
22251         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22252         gate_optimize_widening_mul): New static functions.
22253         (pass_optimize_widening_mul): New.
22254         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22255         <case MULT_EXPR>: Remove support for widening multiplies.
22256         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22257         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22258         simplify_gen_unary rather than directly building extensions.
22259         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22260         WIDEN_MULT_EXPR.
22261         * expmed.c (expand_widening_mult): New function.
22262         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22263
22264 2010-04-21  Jan Hubicka  <jh@suse.cz>
22265
22266         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22267         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22268         * lto-wpa-fixup.c: Remove.
22269         * Makefile.in (lto-wpa-fixup.o): Remove.
22270         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22271         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22272         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22273
22274 2010-04-21  Jan Hubicka  <jh@suse.cz>
22275
22276         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22277         add write_optimization_summary, read_optimization_summary.
22278         (ipa_write_summaries_of_cgraph_node_set): Remove.
22279         (ipa_write_optimization_summaries): Declare.
22280         (ipa_read_optimization_summaries): Declare.
22281         * ipa-cp.c (pass_ipa_cp): Update.
22282         * ipa-reference.c (pass_ipa_reference): Update.
22283         * ipa-pure-const.c (pass_ipa_pure_const): Update.
22284         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22285         Update.
22286         * ipa-inline.c (pass_ipa_inline): Update.
22287         * ipa.c (pass_ipa_whole_program): Update.
22288         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22289         * passes.c (ipa_write_summaries_1): Do not test wpa.
22290         (ipa_write_optimization_summaries_1): New.
22291         (ipa_write_optimization_summaries): New.
22292         (ipa_read_summaries): Do not test ltrans.
22293         (ipa_read_optimization_summaries_1): New.
22294         (ipa_read_optimization_summaries): New.
22295
22296 2010-04-21  Jan Hubicka  <jh@suse.cz>
22297
22298         * lto-cgraph.c (lto_output_node): Do not output comdat groups
22299         for boundary nodes.
22300         (output_cgraph): Do not arrange comdat groups for boundary nodes.
22301
22302 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22303
22304         PR debug/40040
22305         * dwarf2out.c (add_name_and_src_coords_attributes): Add
22306         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22307
22308 2010-04-21  Jan Hubicka  <jh@suse.cz>
22309
22310         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22311
22312 2010-04-21  Jan Hubicka  <jh@suse.cz>
22313
22314         * varpool.c (decide_is_variable_needed): Variable is always needed
22315         during ltrans.
22316
22317 2010-04-21  Jan Hubicka  <jh@suse.cz>
22318
22319         * opts.c (decode_options): Enable pure-const pass for whopr.
22320
22321 2010-04-21  Jan Hubicka  <jh@suse.cz>
22322
22323         * cgraph.c (dump_cgraph_node): Dump also assembler name.
22324         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22325         at WPA dumping.
22326         (cgraph_decide_inlining): Do not expect callee to be removed in all
22327         cases.
22328
22329 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
22330
22331         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22332
22333 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22334
22335         * config/i386/i386.md (x86_shrd): Add athlon_decode and
22336         amdfam10_decode attributes.
22337
22338 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22339
22340         PR middle-end/43570
22341         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22342         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22343         (lower_copyprivate_clauses): Use private var in outer
22344         context instead of original var.  Make sure the types
22345         are correct for VLAs.
22346
22347 2010-04-21  Richard Guenther  <rguenther@suse.de>
22348
22349         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22350         to non-pointer objects.
22351
22352 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22353
22354         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
22355         last chain entry if it starts with the still current label.
22356         (add_location_or_const_value_attribute): Check that
22357         loc_list->first->next is NULL instead of comparing ->first with ->last.
22358         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22359         to add_var_loc_to_decl.
22360
22361         * dwarf2out.c (output_call_frame_info): For dw_cie_version
22362         >= 4 add also address size and segment size fields into CIE header.
22363
22364         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22365         long as address size is the same as sizeof (void *) and
22366         segment size is 0.
22367         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
22368         address size or segment size is unexpected, return DW_EH_PE_omit.
22369         (classify_object_over_fdes): If get_cie_encoding returned
22370         DW_EH_PE_omit, return -1.
22371         (init_object): If classify_object_over_fdes returned -1,
22372         pretend there were no FDEs at all.
22373
22374 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22375
22376         * config/i386/i386.md (bswap<mode>2): Macroize expander from
22377         bswap{si,di}2 using SWI48 mode iterator.
22378         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22379         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22380         set modrm attribute of bswap insn to 0 and remove length attribute.
22381         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22382         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22383         set mode attribute to <MODE> and remove length attribute.
22384
22385 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22386
22387         PR rtl-optimization/43520
22388         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22389         zero available registers.
22390
22391 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22392
22393         * builtins.c (fold_builtin_cproj): Fold more cases.
22394
22395 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22396
22397         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22398         (fold_builtin_1): Fold builtin cproj.
22399         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22400         Use ATTR_CONST_NOTHROW_LIST.
22401
22402 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22403
22404         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22405         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22406         ffsi2_no_cmove for !TARGET_CMOVE.
22407         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22408         (ffssi2): Remove expander.
22409         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22410         mode iterator.
22411         (ctz<mode>2): Ditto from ctz{si,di}2.
22412         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22413         mode iterator.
22414         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22415         mode iterator.
22416
22417 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22418
22419         * dwarf2out.c (AT_linkage_name): Define.
22420         (clone_as_declaration): Handle DW_AT_linkage_name.
22421         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22422         of DW_AT_MIPS_linkage_name.
22423         (move_linkage_attr): Likewise.
22424         (dwarf2out_finish): Likewise.
22425
22426 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22427
22428         PR middle-end/41952
22429         * fold-const.c (fold_comparison): New folding rule.
22430
22431 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22432
22433         * double-int.h (double_int_setbit): Declare.
22434         * double-int.c (double_int_setbit): New function.
22435         * rtl.h (immed_double_int_const): Declare.
22436         * emit-rtl.c (immed_double_int_const): New function.
22437         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22438         and immed_double_int_const functions.
22439         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22440         expand_copysign_bit): (Ditto.).
22441         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22442         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22443         * dojump.c (prefer_and_bit_test): (Ditto.).
22444         * expr.c (convert_modes, reduce_to_bit_field_precision,
22445         const_vector_from_tree): (Ditto.).
22446         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22447
22448 2010-04-20  Jan Hubicka  <jh@suse.cz>
22449
22450         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22451         (dump_cgraph_node): Dump new flags.
22452         * cgraph.h (struct cgraph_node): Add flags
22453         reachable_from_other_partition and in_other_partition.
22454         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22455         other partition can not be removed.
22456         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22457         the other partition must be output; silence sanity checking on
22458         leaking functions bodies from other paritition.
22459         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22460         (lto_output_node): Output new flags; do not sanity check that inline
22461         clones are output; drop lto_forced_extern_inline_p code; do not mock
22462         visibility flags at partition boundaries.
22463         (add_node_to): New function.
22464         (output_cgraph): Use it to sort functions so masters appear before
22465         clones.
22466         (input_overwrite_node): Input new flags.
22467         * passes.c (ipa_write_summaries): Do not call
22468         lto_new_extern_inline_states.
22469         * lto-section-out.c (forced_extern_inline,
22470         lto_new_extern_inline_states lto_delete_extern_inline_states,
22471         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22472         * lto-streamer.h (lto_new_extern_inline_states,
22473         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22474         lto_forced_extern_inline_p): Kill.
22475
22476 2010-04-20  Richard Guenther  <rguenther@suse.de>
22477
22478         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22479         from vars that can have pointers.
22480         (process_constraint): Dump useless constraints.
22481
22482 2010-04-20  Richard Guenther  <rguenther@suse.de>
22483
22484         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22485         (dump_sa_points_to_info): Remove asserts.
22486         (init_base_vars): nothing_id isn't an escape point nor does it
22487         have pointers.
22488
22489 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22490
22491         * tree.h (TYPE_REF_IS_RVALUE): Define.
22492         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22493         should_move_die_to_comdat, prune_unused_types_walk): Handle
22494         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22495         (modified_type_die, gen_reference_type_die): Emit
22496         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22497         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22498
22499 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22500
22501         PR target/43635
22502         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22503         calls for -fpic -m31 if they have been sibcall optimized.
22504
22505 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22506
22507         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22508         ar.lc fixed and call-used.
22509
22510         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22511
22512 2010-04-19  Jan Hubicka  <jh@suse.cz>
22513
22514         * opts.c (decode_options): Disable whpr incompatible passes.
22515         * lto/lto.c (lto_1_to_1_map): Skip clones.
22516         (read_cgraph_and_symbols): Do not mark everything as needed.
22517         (do_whole_program_analysis): Do map only after optimizing;
22518         set proper cgraph_state; use passmanager.
22519
22520 2010-04-19  DJ Delorie  <dj@redhat.com>
22521
22522         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22523         POINTER_PLUS_EXPR and fix them.
22524
22525 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22526
22527         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22528         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22529         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22530         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22531         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22532         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22533         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22534         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22535         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22536         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22537         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22538
22539 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22540
22541         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22542         (check_cond_move_block): Likewise.
22543         (cond_move_process_if_block): Likewise.
22544         (noce_find_if_block): Improve formatting.
22545         (find_if_header): Pass 0 to memset and tweak conditions.
22546         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22547
22548 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22549
22550         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22551         for -gdwarf-4.
22552
22553         PR middle-end/43337
22554         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22555         with non-local decl doesn't need chain.
22556
22557 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22558
22559         * ira-color.c (allocno_reload_assign): Avoid accumulating
22560         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22561
22562 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22563
22564         * gimple.h (create_tmp_reg): Declare.
22565         * gimplify.c (create_tmp_reg): New function.
22566         (gimplify_return_expr): Use create_tmp_reg.
22567         (gimplify_omp_atomic): Likewise.
22568         (gimple_regimplify_operands): Likewise.
22569         * tree-dfa.c (make_rename_temp): Likewise.
22570         * tree-predcom.c (predcom_tmp_var): Likewise.
22571         (reassociate_to_the_same_stmt): Likewise.
22572         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22573         (get_replaced_param_substitute): Likewise.
22574         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22575         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22576         * tree-ssa-pre.c (get_representative_for): Likewise.
22577         (create_expression_by_pieces): Likewise.
22578         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22579         (create_tailcall_accumulator): Likewise.
22580
22581 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22582
22583         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22584         new_stmt.
22585         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22586
22587 2010-04-19  Richard Guenther  <rguenther@suse.de>
22588
22589         PR tree-optimization/43796
22590         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22591         from SCEV in the lattice.
22592         (vrp_visit_phi_node): Dump change.
22593
22594 2010-04-19  Richard Guenther  <rguenther@suse.de>
22595
22596         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22597         * configure: Re-generated.
22598
22599 2010-04-19  Richard Guenther  <rguenther@suse.de>
22600
22601         PR tree-optimization/43783
22602         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22603         constant ARRAY_REF operands two and three if possible.
22604
22605 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
22606
22607         PR target/43766
22608         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22609
22610 2010-04-19  Jie Zhang  <jie@codesourcery.com>
22611
22612         PR target/43662
22613         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22614
22615 2010-04-19  Ira Rosen  <irar@il.ibm.com>
22616
22617         PR tree-optimization/37027
22618         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22619         and macro to access it.
22620         (vectorizable_reduction): Add argument.
22621         (vect_get_slp_defs): Likewise.
22622         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22623         statements for possible use in SLP.
22624         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22625         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22626         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22627         add new argument.
22628         (vectorizable_reduction): Likewise.
22629         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22630         vect_get_slp_defs.
22631         (vectorizable_type_demotion, vectorizable_type_promotion,
22632         vectorizable_store): Likewise.
22633         (vect_analyze_stmt): Update call to vectorizable_reduction.
22634         (vect_transform_stmt): Likewise.
22635         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22636         (vect_build_slp_tree): Fix indentation. Check that there are no loads
22637         from different interleaving chains in same node.
22638         (vect_slp_rearrange_stmts): New function.
22639         (vect_supported_load_permutation_p): Allow load permutations for
22640         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22641         inside SLP nodes if necessary.
22642         (vect_analyze_slp_instance): Handle reductions.
22643         (vect_analyze_slp): Try to build SLP instances originating from groups
22644         of reductions.
22645         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22646         (vect_get_constant_vectors): Create initial vectors for reductions
22647         according to reduction code. Add new argument.
22648         (vect_get_slp_defs): Add new argument, pass it to
22649         vect_get_constant_vectors.
22650         (vect_schedule_slp_instance): Remove SLP tree root statements.
22651
22652 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22653
22654         * tree.h (ENUM_IS_SCOPED): Define.
22655         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22656         for ENUM_IS_SCOPED enums.
22657
22658 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
22659
22660         * fold-const.c (fold_comparison): Use ssizetype.
22661         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22662         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22663         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22664         * tree-object-size.c (compute_object_sizes): Use size_type_node.
22665
22666         * tree.h (initialize_sizetypes): Remove parameter.
22667         (build_common_tree_nodes): Remove second parameter.
22668         * stor-layout.c (initialize_sizetypes): Remove parameter.
22669         Always create an unsigned type.
22670         (set_sizetype): Assert that the passed type is unsigned and simplify.
22671         * tree.c (build_common_tree_nodes): Remove second parameter.
22672         Adjust call to initialize_sizetypes.
22673         * c-decl.c (c_init_decl_processing): Remove second argument in call to
22674         build_common_tree_nodes.
22675
22676 2010-04-18  Matthias Klose  <doko@ubuntu.com>
22677
22678         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22679
22680 2010-04-18  Ira Rosen  <irar@il.ibm.com>
22681
22682         PR tree-optimization/43771
22683         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22684         load permutation doesn't have gaps.
22685
22686 2010-04-18  Jan Hubicka  <jh@suse.cz>
22687
22688         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22689         (sse_prologue_save_insn expander): Use new pattern.
22690         (sse_prologue_save_insn1): New pattern and splitter.
22691         (sse_prologue_save_insn): Update to deal also with 64bit aligned
22692         blocks.
22693         * i386.c (setup_incoming_varargs_64): Do not compute jump
22694         destination here.
22695         (ix86_gimplify_va_arg): Update alignment needed.
22696         (ix86_local_alignment): Do not align all local arrays to 128bit.
22697
22698 2010-04-17  Jan Hubicka  <jh@suse.cz>
22699
22700         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22701
22702 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22703
22704         * arm.md (negdi2): Remove redundant code to force values into a
22705         register.
22706
22707 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22708
22709         * arm/bpabi.S: Add EABI alignment attributes to objects.
22710         * arm/bpabi-v6m.S: Likewise.
22711         * arm/crti.asm: Likewise.
22712         * arm/crtn.asm: Likewise.
22713         * arm/lib1funcs.asm: Likewise.
22714         * arm/libunwind.S: Likewise.
22715
22716 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22717
22718         * arm-protos.h (tune_params): New structure.
22719         * arm.c (current_tune): New variable.
22720         (arm_constant_limit): Delete.
22721         (struct processors): Add pointer to the tune parameters.
22722         (arm_slowmul_tune): New tuning option.
22723         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
22724         (all_cores): Adjust to pick up the tuning model.
22725         (arm_constant_limit): New function.
22726         (arm_override_options): Select the appropriate tuning model.  Delete
22727         initialization of arm_const_limit.
22728         (arm_split_constant): Use the new constant-limit model.
22729         (arm_rtx_costs): Pick up the current tuning model.
22730         * arm.md (is_strongarm, is_xscale): Delete.
22731         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
22732         for Xscale variant architectures.
22733         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
22734
22735 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22736
22737         * config/arm/arm.c (arm_gen_constant): Remove unused variable
22738         can_shift.
22739         (arm_rtx_costs_1): Remove unused variable extra_cost.
22740         (arm_unwind_emit_set): Use variable offset.
22741         (thumb1_output_casesi): Remove unused variable flags.
22742
22743 2010-04-16  Jeff Law  <law@redhat.com>
22744
22745         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
22746         needing assignment rather than doing a two-phase assignment.  Remove
22747         unused variable 'm'.
22748
22749 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22750
22751         PR bootstrap/43767
22752         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
22753
22754 2010-04-16  Doug Kwan  <dougkwan@google.com>
22755
22756         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
22757         (next_operand_entry_id): New static variable.
22758         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
22759         (add_to_ops_vec): Assigned unique ID to operand entry.
22760         (struct oecount_s): New field ID.
22761         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
22762         (undistribute_ops_list): Assign unique IDs to oecounts.
22763         (init_reassoc): reset next_operand_entry_id.
22764
22765 2010-04-16  Doug Kwan  <dougkwan@google.com>
22766
22767         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
22768         missing left parenthesis.
22769
22770 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
22771
22772         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
22773         *btdi_rex64 using SWI48 mode iterator.
22774         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
22775         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
22776         *jcc_btdi_mask_rex64.
22777
22778 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
22779
22780         * double-int.h (tree_to_double_int): Convert to macro.
22781         * double-int.c (tree_to_double_int): Remove.
22782
22783 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22784
22785         PR debug/43762
22786         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
22787         with want_address 2 and in case a single element list might be
22788         possible, call it again with want_address 0.
22789
22790 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22791
22792         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
22793         case 'W' print operands for HI mode.
22794         * config/h8300/h8300.h (Y0, Y2) : New constraints.
22795         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
22796         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
22797         * config/h8300/predicate.md (bit_register_indirect_operand): New.
22798
22799         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
22800
22801         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
22802         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
22803         #xx:3 and #xx:4 mode.
22804
22805         * config/h8300/h8300.md (inverted load with HImode dest): Add
22806         support for H8300SX.
22807
22808         * config/h8300/predicate.md (bit_operand): Allow immediate values that
22809         satisfy 'U' constraint.
22810
22811 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22812
22813         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
22814         * configure: Regenerate.
22815         * config.in: Regenerate.
22816         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
22817         works.
22818
22819 2010-04-16  Richard Guenther  <rguenther@suse.de>
22820
22821         * tree.h (struct tree_decl_minimal): Move pt_uid ...
22822         (struct tree_decl_common): ... here.
22823         (DECL_PT_UID): Adjust.
22824         (SET_DECL_PT_UID): Likewise.
22825         (DECL_PT_UID_SET_P): Likewise.
22826
22827 2010-04-16  Richard Guenther  <rguenther@suse.de>
22828
22829         PR tree-optimization/43572
22830         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
22831         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
22832         * tree-flow.h (is_call_clobbered): Remove.
22833         * tree-flow-inline.h (is_call_clobbered): Likewise.
22834         * tree-dfa.c (dump_variable): Do not dump call clobber state.
22835         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
22836         (execute_return_slot_opt): Adjust.
22837         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
22838         check for call clobbered vars here.
22839         (find_tail_calls): Move tailcall verification to the
22840         proper place.
22841
22842 2010-04-16  Diego Novillo  <dnovillo@google.com>
22843
22844         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
22845
22846 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22847
22848         PR target/40603
22849         * config/arm/arm.md (cbranchqi4): New pattern.
22850         * config/arm/predicates.md (const0_operand,
22851         cbranchqi4_comparison_operator): New predicates.
22852
22853 2010-04-16  Richard Guenther  <rguenther@suse.de>
22854
22855         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
22856         (dump_gimple_stmt): Likewise.
22857
22858 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22859
22860         * recog.h (struct recog_data): New field is_operator.
22861         (struct insn_operand_data): New field is_operator.
22862         * recog.c (extract_insn): Set recog_data.is_operator.
22863         * genoutput.c (output_operand_data): Emit code to set the
22864         is_operator field.
22865         * reload.c (find_reloads): Use it rather than testing for an
22866         empty constraint string.
22867
22868         PR target/41514
22869         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
22870         If the previous insn is a cbranchsi4_insn with the same arguments,
22871         omit the compare instruction.
22872
22873         * config/arm/arm.md (addsi3_cbranch): If destination is a high
22874         register, inputs must be low registers and we need a low register
22875         scratch.  Handle alternative 2 like alternative 3.
22876
22877 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22878
22879         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
22880         don't call get_addr on both.  If one expression is a VALUE and
22881         the other a REG, check VALUE's locs if the REG isn't among them.
22882
22883 2010-04-16  Christian Bruel  <christian.bruel@st.com>
22884
22885         * config/sh/sh.h (sh_frame_pointer_required): New function.
22886         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
22887         (flag_omit_frame_pointer) Set.
22888         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
22889         (rounded_frame_size): Adjust size with outgoing_args_size.
22890         (sh_set_return_address): Must return from stack pointer.
22891         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
22892         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
22893         (ACCUMULATE_OUTGOING_ARGS): Define.
22894         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
22895         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
22896
22897 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
22898
22899         PR target/43471
22900         * config/sh/sh.c (sh_legitimize_reload_address): Use
22901         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
22902         Remove a unneeded check for offset_base.
22903
22904 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
22905
22906         * configure: Regenerated.
22907
22908 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22909
22910         * config/s390/s390.c (s390_call_save_register_used): Switch back
22911         to HARD_REGNO_NREGS.
22912
22913 2010-04-15  Richard Guenther  <rguenther@suse.de>
22914
22915         * alias.c (alias_set_subset_of): Handle alias-set zero
22916         child properly.
22917
22918 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
22919             Julian Brown  <julian@codesourcery.com>
22920
22921         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
22922         alternatives according to use of high and low regs.
22923         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
22924         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
22925         optimizing for size on Thumb-2.
22926
22927 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
22928
22929         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
22930
22931 2010-04-15  Richard Guenther  <rguenther@suse.de>
22932
22933         * tree-ssa-structalias.c (struct variable_info): Add
22934         is_fn_info flag.
22935         (new_var_info): Initialize it.
22936         (dump_constraints): Support printing last added constraints.
22937         (debug_constraints): Adjust.
22938         (dump_constraint_graph): Likewise.
22939         (make_heapvar_for): Check for NULL cfun.
22940         (get_function_part_constraint): New function.
22941         (get_fi_for_callee): Likewise.
22942         (find_func_aliases): Properly implement IPA PTA constraints.
22943         (process_ipa_clobber): New function.
22944         (find_func_clobbers): Likewise.
22945         (insert_into_field_list_sorted): Remove.
22946         (create_function_info_for): Properly allocate vars for IPA mode.
22947         Do not use insert_into_field_list_sorted.
22948         (create_variable_info_for): Properly generate constraints for
22949         global vars in IPA mode.
22950         (dump_solution_for_var): Always dump the solution.
22951         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
22952         (find_what_var_points_to): Adjust.
22953         (pt_solution_set): Change.
22954         (pt_solution_ior_into): New function.
22955         (pt_solution_empty_p): Export.
22956         (pt_solution_includes_global): Adjust.
22957         (pt_solution_includes_1): Likewise.
22958         (pt_solutions_intersect_1): Likewise.
22959         (dump_sa_points_to_info): Check some invariants.
22960         (solve_constraints): Move constraint dumping ...
22961         (compute_points_to_sets): ... here.
22962         (ipa_pta_execute): ... and here.
22963         (compute_may_aliases): Do not re-compute points-to info
22964         locally if IPA info is available.
22965         (ipa_escaped_pt): New global var.
22966         (ipa_pta_execute): Properly implement IPA PTA.
22967         * tree-into-ssa.c (dump_decl_set): Support dumping
22968         decls not in referenced-vars.
22969         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
22970         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
22971         (dump_points_to_solution): Likewise.
22972         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
22973         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
22974         (remap_gimple_stmt): Reset call clobber/use information if necessary.
22975         (copy_decl_to_var): Copy DECL_PT_UID.
22976         (copy_result_decl_to_var): Likewise.
22977         * tree.c (make_node_stat): Initialize DECL_PT_UID.
22978         (copy_node_stat): Copy it.
22979         * tree.h (DECL_PT_UID): New macro.
22980         (SET_DECL_PT_UID): Likewise.
22981         (DECL_PT_UID_SET_P): Likewise.
22982         (struct tree_decl_minimal): Add pt_uid member.
22983         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
22984         (pt_solution_empty_p): Declare.
22985         (pt_solution_set): Adjust.
22986         (ipa_escaped_pt): Declare.
22987         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
22988         * gimple-pretty-print.c (pp_points_to_solution): New function.
22989         (dump_gimple_call): Dump call clobber/use information.
22990         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
22991         * tree-pass.h (TDF_ALIAS): New dump option.
22992         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
22993         * doc/invoke.texi (-fipa-pta): Update documentation.
22994
22995 2010-04-15  Richard Guenther  <rguenther@suse.de>
22996
22997         * Makefile.in (OBJS-common): Add gimple-fold.o.
22998         (gimple-fold.o): New rule.
22999         * tree.h (maybe_fold_offset_to_reference,
23000         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23001         prototypes ...
23002         * gimple.h: ... here.
23003         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23004         may_propagate_address_into_dereference): Move prototypes ...
23005         * gimple.h: ... here.
23006         * tree-ssa-ccp.c (get_symbol_constant_value,
23007         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23008         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23009         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23010         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23011         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23012         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23013         gimplify_and_update_call_from_tree): Move ...
23014         * gimple-fold.c: ... here.  New file.
23015         (ccp_fold_builtin): Rename to ...
23016         (gimple_fold_builtin): ... this.
23017         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23018
23019 2010-04-15  Richard Guenther  <rguenther@suse.de>
23020
23021         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23022         fit_double_type, force_fit_type_double, add_double_with_sign,
23023         neg_double, mul_double_with_sign, lshift_double, rshift_double,
23024         lrotate_double, rrotate_double, div_and_round_double): Move ...
23025         * double-int.c: ... here.
23026         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23027         add_double, neg_double, mul_double_with_sign, mul_double,
23028         lshift_double, rshift_double, lrotate_double, rrotate_double,
23029         div_and_round_double): Move prototypes ...
23030         * double-int.h: ... here.
23031
23032 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
23033
23034         PR target/43742
23035         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
23036         matching constraints to ensure inputs match the output.
23037
23038 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23039
23040         PR target/43742
23041         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23042         in an input-only operand.
23043
23044 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
23045
23046         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23047         (double_int_not, double_int_lshift, double_int_rshift): Declare.
23048         (double_int_negative_p): Convert to static inline function.
23049         * double-int.c (double_int_lshift, double_int_lshift): New functions.
23050         (double_int_negative_p): Remove.
23051         * tree.h (lshift_double, rshift_double):
23052         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23053         * fold-const.c (fold_convert_const_int_from_real,
23054         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23055         (lshift_double): Change type of arith argument to bool.
23056         (rshift_double): Change type of arith argument to bool. Correct
23057         comment.
23058         * expmed.c (mask_rtx, lshift_value): (Ditto.).
23059
23060 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
23061
23062         PR target/21803
23063         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23064         at the start and end of the then/else blocks, and omit them from the
23065         conversion.
23066         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
23067         argument; all callers changed.  Pass zero to old_insns_match_p instead.
23068         (flow_find_head_matching_sequence): New function.
23069         (old_insns_match_p): Check REG_EH_REGION notes for calls.
23070         * basic-block.h (flow_find_cross_jump,
23071         flow_find_head_matching_sequence): Declare functions.
23072
23073 2010-04-14  Jason Merrill  <jason@redhat.com>
23074
23075         PR c++/36625
23076         * c-common.c (attribute_takes_identifier_p): New fn.
23077         * c-common.h: Declare it.
23078
23079 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23080
23081         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23082         splitter condition.
23083         (*udivmod<mode>4): Ditto.
23084
23085 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23086
23087         * config/i386/i386.md (maxmin_int): Rename code attribute from
23088         maxminiprefix and update all users.
23089         (maxmin_float): Ditto from maxminfprefix.
23090         (logic): Ditto from logicprefix.
23091         (absneg_mnemonic): Ditto from absnegprefix.
23092         * config/i386/mmx.md: Update all users of maxminiprefix,
23093         maxminfprefix and logicprefix for rename.
23094         * config/i386/sse.md: Ditto.
23095         * config/i386/sync.md (sync_<code><mode>): Update for
23096         logicprefix rename.
23097
23098 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23099
23100         PR 42966
23101         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23102         warnings converted to errors.
23103
23104 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23105
23106         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23107         used insn_type variable.
23108         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23109         to avoid set-but-not-used warning.
23110
23111 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23112
23113         * df-core.c (df_ref_debug): Change format string placeholder
23114         from 0x%x to %#x.
23115         * dwarf2asm.c (dw2_asm_output_data_raw,
23116         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23117         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23118         * dwarf2out.c (output_cfi, output_cfi_directive,
23119         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23120         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23121         Ditto.
23122         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23123         * print-rtl.c (print_rtx): Ditto.
23124
23125 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23126
23127         PR middle-end/42694
23128         * builtins.c (expand_builtin_pow_root): New function to expand pow
23129         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23130         series of sqrt and cbrt calls under -ffast-math.
23131         (expand_builtin_pow): Call it.
23132
23133 2010-04-14  Michael Matz  <matz@suse.de>
23134
23135         PR tree-optimization/42963
23136         * tree-cfg.c (touched_switch_bbs): New static variable.
23137         (group_case_labels_stmt): New function broken out from ...
23138         (group_case_labels): ... here, use the above.
23139         (start_recording_case_labels): Allocate touched_switch_bbs.
23140         (end_recording_case_labels): Deallocate it, call
23141         group_case_labels_stmt.
23142         (gimple_redirect_edge_and_branch): Remember index of affected BB.
23143
23144 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23145
23146         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23147         from insn template.
23148
23149 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23150
23151         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23152
23153 2010-04-13  Jan Hubicka  <jh@suse.cz>
23154
23155         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23156         of optimized out static functions.
23157         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23158         cost computation.  Also sanity check for overflows.
23159         (update_caller_keys): Update cgraph_edge_badness call; properly
23160         update fibheap and sanity check that it is up to date.
23161         (add_new_edges_to_heap): Update cgraph_edge_badness.
23162         (cgraph_decide_inlining_of_small_function): Likewise;
23163         add sanity checking that badness in heap is up to date;
23164         improve dumping of reason; Update badness of calls to the
23165         offline copy of function currently inlined; dump badness
23166         of functions not inlined because of unit growth limits.
23167
23168 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23169
23170         PR middle-end/32628
23171         * c-common.c (pointer_int_sum): Disregard overflow that occured only
23172         because of sign-extension change when converting to sizetype here...
23173         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23174
23175         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23176         the folding to constants.  Remove redundant final conversion.
23177         (fold_binary) <associate>: Do not associate if the re-association of
23178         constants alone overflows.
23179         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23180         to the end of the list.
23181         (multiple_of_p) <COND_EXPR>: New case.
23182
23183 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23184
23185         * opt-functions.awk (opt_sanitized_name): New.
23186         (opt_enum): New.
23187         * optc-gen.awk: Use it
23188         * opth-gen.awk: Use it.
23189
23190 2010-04-13  Martin Jambor  <mjambor@suse.cz>
23191
23192         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23193         (sra_modify_assign): Delete stmts loading dead data even if racc has no
23194         children.  Call replace_uses_with_default_def_ssa_name to handle
23195         SSA_NAES on lhs.
23196
23197 2010-04-13  Michael Matz  <matz@suse.de>
23198
23199         PR middle-end/43730
23200         * builtins.c (expand_builtin_interclass_mathfn): Also create
23201         a register if the predicate doesn't match.
23202
23203 2010-04-13  Diego Novillo  <dnovillo@google.com>
23204
23205         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23206         * c-pch.c: Include timevar.h.
23207         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23208         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23209         * ggc-common.c: Include timevar.h.
23210         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23211         * timevar.def (TV_PCH_SAVE): Define.
23212         (TV_PCH_CPP_SAVE): Define.
23213         (TV_PCH_PTR_REALLOC): Define.
23214         (TV_PCH_PTR_SORT): Define.
23215         (TV_PCH_RESTORE): Define.
23216         (TV_PCH_CPP_RESTORE): Define.
23217
23218 2010-04-13  Michael Matz  <matz@suse.de>
23219
23220         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23221         into MINUS_EXPRs.
23222         (can_reassociate_p): New function.
23223         (break_up_subtract_bb, reassociate_bb): Use it.
23224
23225 2010-04-13  Richard Guenther  <rguenther@suse.de>
23226
23227         PR bootstrap/43737
23228         * builtins.c (c_readstr): Fix assert.
23229
23230 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
23231
23232         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23233         when generating cltd insn.
23234
23235         (*ashl<mode>3_1): Remove special handling for register operand 2.
23236         (*ashlsi3_1_zext): Ditto.
23237         (*ashlhi3_1): Ditto.
23238         (*ashlhi3_1_lea): Ditto.
23239         (*ashlqi3_1): Ditto.
23240         (*ashlqi3_1_lea): Ditto.
23241         (*<shiftrt_insn><mode>3_1): Ditto.
23242         (*<shiftrt_insn>si3_1_zext): Ditto.
23243         (*<shiftrt_insn>qi3_1_slp): Ditto.
23244         (*<rotate_insn><mode>3_1): Ditto.
23245         (*<rotate_insn>si3_1_zext): Ditto.
23246         (*<rotate_insn>qi3_1_slp): Ditto.
23247
23248 2010-04-13  Richard Guenther  <rguenther@suse.de>
23249
23250         * tree-ssa-structalias.c (callused_id): Remove.
23251         (call_stmt_vars): New.
23252         (get_call_vi): Likewise.
23253         (lookup_call_use_vi): Likewise.
23254         (lookup_call_clobber_vi): Likewise.
23255         (get_call_use_vi): Likewise.
23256         (get_call_clobber_vi): Likewise.
23257         (make_transitive_closure_constraints): Likewise.
23258         (handle_const_call): Adjust to do per-call call-used handling.
23259         (handle_pure_call): Likewise.
23260         (find_what_var_points_to): Remove general callused handling.
23261         (init_base_vars): Likewise.
23262         (init_alias_vars): Initialize call_stmt_vars.
23263         (compute_points_to_sets): Process call-used and call-clobbered
23264         vars for call statements.
23265         (delete_points_to_sets): Free call_stmt_vars.
23266
23267 2010-04-13  Richard Guenther  <rguenther@suse.de>
23268
23269         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23270         Only add RW dependence for dependence distance zero.
23271         Adjust maximal vectorization factor according to dependences.
23272         Move alignment handling ...
23273         (vect_find_same_alignment_drs): ... here.  New function.
23274         (vect_analyze_data_ref_dependences): Adjust.
23275         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23276         (vect_analyze_data_refs): Adjust minimal vectorization factor
23277         according to data references.
23278         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23279         dependences before determining the vectorization factor.
23280         Analyze alignment after determining the vectorization factor.
23281         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23282         dependences before alignment.
23283         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23284         Adjust prototype.
23285         (vect_analyze_data_refs): Likewise.
23286         (MAX_VECTORIZATION_FACTOR): New define.
23287
23288 2010-04-13  Duncan Sands  <baldrick@free.fr>
23289
23290         * except.h (lang_eh_type_covers): Remove.
23291         * except.c (lang_eh_type_covers): Likewise.
23292
23293 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23294             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23295
23296         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23297         * config/s390/s390.c: Replace UNTIS_PER_WORD with
23298         UNITS_PER_LONG where it is ABI relevant.
23299         (s390_return_addr_rtx): Likewise.
23300         (s390_back_chain_rtx): Likewise.
23301         (s390_frame_area): Likewise.
23302         (s390_frame_info): Likewise.
23303         (s390_initial_elimination_offset): Likewise.
23304         (save_gprs): Likewise.
23305         (s390_emit_prologue): Likewise.
23306         (s390_emit_epilogue): Likewise.
23307         (s390_function_arg_advance): Likewise.
23308         (s390_function_arg): Likewise.
23309         (s390_va_start): Likewise.
23310         (s390_gimplify_va_arg): Likewise.
23311         (s390_function_profiler): Likewise.
23312         (s390_optimize_prologue): Likewise.
23313         (s390_rtx_costs): Likewise.
23314         (s390_secondary_reload): Likewise.
23315         (s390_promote_function_mode): Likewise.
23316         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23317         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23318         registers available.
23319         (s390_unwind_word_mode): New function.
23320         (s390_function_value): Split 64 bit values into register pair if
23321         used as return value.
23322         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23323         function call parameters.  Handle parallels.
23324         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23325         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23326         (DWARF_CIE_DATA_ALIGNMENT): New macro.
23327         (s390_expand_setmem): Remove unused variable src_addr.
23328         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23329         deal with 64 bit registers.
23330         * config/s390/s390.h: Define __zarch__ predefined macro.
23331         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23332         (UNITS_PER_LONG): New macro.
23333         * libjava/include/s390-signal.h: Define extended ucontext
23334         structure containing the upper halfs of the 64 bit registers.
23335
23336 2010-04-13  Simon Baldwin  <simonb@google.com>
23337
23338         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23339
23340 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23341
23342         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23343         rvalue on the RHS if the LHS is of a non-renamable type.
23344         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23345
23346 2010-04-13  Matthias Klose  <doko@ubuntu.com>
23347
23348         * gcc.c (cc1_options): Handle -iplugindir before processing
23349         the cc1 spec. Only add -iplugindir once.
23350         (cpp_unique_options): Add -iplugindir option if -fplugin* options
23351         found.
23352         * common.opt (iplugindir): Remove `Separate' property, initialize.
23353         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23354         option.
23355         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23356         (distclean): Remove plugin dir.
23357         * doc/invoke.texi: Document -iplugindir.
23358
23359 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
23360
23361         * doc/plugins.texi (Loading Plugins): Document short
23362         -fplugin=foo option.
23363         (Plugin API): Mention default_plugin_dir_name function.
23364
23365         * gcc.c (find_file_spec_function): Add new declaration.
23366         (static_spec_func): Use it for "find-file".
23367         (find_file_spec_function): Add new function.
23368         (cc1_options): Add -iplugindir option if -fplugin* options found.
23369
23370         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23371
23372         * plugin.c (add_new_plugin): Updated comment, and handle short
23373         plugin name.
23374         (default_plugin_dir_name): Added new function.
23375
23376         * common.opt (iplugindir): New option to set the plugin directory.
23377
23378 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23379
23380         * config/i386/i386.md (any_rotate): New code iterator.
23381         (rotate_insn): New code attribute.
23382         (rotate): Ditto.
23383         (SWIM124): New mode iterator.
23384         (<rotate_insn>ti3): New expander.
23385         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23386         any_rotate code iterator.
23387         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23388         using any_rotate code iterator and SWIM124 mode iterator.
23389         (ix86_rotlti3): New insn_and_split pattern.
23390         (ix86_rotrti3): Ditto.
23391         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23392         ix86_rotl{di,ti}3 patterns.
23393         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23394         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23395         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23396         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23397         code iterator and SWI mode iterator.
23398         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23399         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23400         code iterator.
23401         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23402         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23403         (bswap rotatert splitter): Add splitter.
23404         (bswap splitter): Macroize splitter using any_rotate code iterator.
23405         Add insn predicate to split only for TARGET_USE_XCHGB or when
23406         optimizing function for size.
23407
23408 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23409
23410         * config/pa/pa.c (emit_move_sequence): Remove use of
23411         deleted variable flag_argument_noalias.
23412
23413 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23414
23415         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23416         configurations.
23417         Add to unsupported targets list.
23418         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23419         sparc*-sun-solaris2.[567]* from target lists.
23420         * configure: Regenerate.
23421         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23422         removal.
23423         Remove Solaris 7 patch references.
23424         (Specific, sparc-sun-solaris2.7): Removed.
23425         (sparc-sun-solaris2*): Update Solaris 7 example.
23426         (sparc64-*-solaris2*): Likewise.
23427
23428 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23429
23430         * config.build (alpha*-dec-osf4*): Remove.
23431         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23432         of obsolete configurations.
23433         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23434         support.
23435         * config/alpha/t-osf4: Renamed to ...
23436         * config/alpha/t-osf5: ... this.
23437         * config/alpha/osf.h: Renamed to ...
23438         * config/alpha/osf5.h: ... this.
23439         Merged old osf5.h contents.
23440         Update comments.
23441         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23442         (EXTRA_SPECS): Removed.
23443         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23444         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23445         Document that.
23446
23447 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23448
23449         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23450
23451 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23452
23453         PR/43702
23454         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23455         __thiscall convention.
23456
23457 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23458
23459         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23460         orig_base.
23461         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23462
23463 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23464
23465         * function.c (assign_parms_initialize_all): Add unused attribute
23466         to fntype.
23467
23468 2010-04-12  Richard Guenther  <rguenther@suse.de>
23469
23470         * gsstruct.def (GSS_CALL): New.
23471         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23472         * gimple.h: Include tree-ssa-alias.h.
23473         (struct gimple_statement_call): New.
23474         (union gimple_statement_struct_d): Add gimple_call member.
23475         (gimple_call_reset_alias_info): Declare.
23476         (gimple_call_use_set): New function.
23477         (gimple_call_clobber_set): Likewise.
23478         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23479         * gimple.c (gimple_call_reset_alias_info): New function.
23480         (gimple_build_call_1): Call it.
23481         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23482         * tree-inline.c (remap_gimple_stmt): Likewise.
23483         (expand_call_inline): Remove callused handling.
23484         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23485         * tree-dfa.c (dump_variable): Likewise.
23486         * tree-parloops.c (parallelize_loops): Likewise.
23487         * tree-ssa.c (init_tree_ssa): Likewise.
23488         (delete_tree_ssa): Likewise.
23489         * tree-flow-inline.h (is_call_used): Remove.
23490         * tree-flow.h (struct gimple_df): Remove callused member.
23491         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23492         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23493         (ref_maybe_used_by_call_p_1): Simplify.
23494         (call_may_clobber_ref_p_1): Likewise.
23495         * tree-ssa-structalias.c (compute_points_to_sets): Set
23496         the call stmt used and clobbered sets.
23497         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23498         (find_tail_calls): Verify the tail call.
23499
23500 2010-04-12  Richard Guenther  <rguenther@suse.de>
23501
23502         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23503         single-iteration always-inline inlining.
23504         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23505         (cgraph_decide_inlining): Do not handle always-inline specially.
23506         (try_inline): Remove always-inline cycle detection special case.
23507         Do not recurse on always-inlines.
23508         (cgraph_early_inlining): Do not iterate if not optimizing.
23509         (cgraph_gate_early_inlining): remove.
23510         (pass_early_inline): Run unconditionally.
23511         (gate_cgraph_decide_inlining): New function.
23512         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23513         not inlining or optimizing.
23514         (cgraph_decide_inlining_of_small_functions): Also consider
23515         always-inline functions.
23516         (cgraph_default_inline_p): Return true for nodes which should
23517         disregard inline limits.
23518         (estimate_function_body_sizes): Assume zero size and time for
23519         nodes which are marked as disregarding inline limits.
23520         (cgraph_decide_recursive_inlining): Do not perform recursive
23521         inlining on always-inline nodes.
23522
23523 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23524
23525         PR bootstrap/43699
23526         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23527         for exprs satisfying handled_component_p.
23528
23529 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23530
23531         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23532         non-constant aggregate elements.
23533
23534         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23535         is a real initialization.
23536
23537 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23538
23539         PR c/36774
23540         * c-decl.c (start_function): Move forward check for nested function.
23541
23542 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23543
23544         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23545         * config/sh/sh.c: Include reload.h.
23546         (sh_legitimize_reload_address): New.
23547         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23548         sh_legitimize_reload_address.
23549
23550 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23551
23552         * config/sh/sh.md (*movqi_pop): New insn pattern.
23553         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23554
23555 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23556
23557         * config/i386/i386.md (any_shiftrt): New code iterator.
23558         (shiftrt_insn): New code attribute.
23559         (shiftrt): Ditto.
23560         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23561         using any_shiftrt code iterator.
23562         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23563         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23564         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23565         pattern from corresponding peephole2 patterns.
23566         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23567         using any_shiftrt code iterator.
23568         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23569         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23570         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23571         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23572         *{ashr,lshr}<mode>3_cmp_zext.
23573         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23574
23575 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23576
23577         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23578         scratch register.
23579         (*lshr<mode>3_cconly): Ditto.
23580
23581 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23582
23583         * config/i386/i386.md (lshr<mode>3): Macroize expander from
23584         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23585         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23586         pattern from *lshr{di,ti}3_1 and corresponding splitters using
23587         DWI mode iterator.
23588         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23589         from corresponding peephole2 patterns.
23590         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23591         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23592         and *lshrdi3_1_rex64 using SWI mode iterator.
23593         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23594         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23595         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23596         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23597         and *lshrdi3_cmp_rex64 using SWI mode iterator.
23598         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23599         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23600         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23601         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23602         SWI mode iterator.
23603
23604 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
23605
23606         * config/i386/i386.md (ashr<mode>3): Macroize expander from
23607         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23608         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23609         pattern from *ashr{di,ti}3_1 and corresponding splitters using
23610         DWI mode iterator.
23611         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23612         from corresponding peephole2 patterns.
23613         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23614         (ashrsi3_cvt): Rename from ashrsi3_31.
23615         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23616         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23617         and x86_64_shift_adj_3 using SWI48 mode iterator.
23618         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23619         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23620         and *ashrdi3_1_rex64 using SWI mode iterator.
23621         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23622         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23623         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23624         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23625         and *ashrdi3_cmp_rex64 using SWI mode iterator.
23626         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23627         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23628         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23629         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23630         SWI mode iterator.
23631         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23632         * config/i386/i386.c (ix86_split_ashr): Update for renamed
23633         x86_shift<mode>_adj_3 expanders.
23634
23635 2010-04-10  Wei Guozhi  <carrot@google.com>
23636
23637         PR target/42601
23638         * config/arm/arm.c (arm_pic_static_addr): New function.
23639         (legitimize_pic_address): Call arm_pic_static_addr when it detects
23640         a static symbol.
23641         (arm_output_addr_const_extra): Output expression for new pattern.
23642         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23643
23644 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
23645
23646         * ira-costs.c (record_reg_classes): Ignore alternatives that are
23647         not enabled.
23648
23649         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23650         * web.c: Include "insn-config.h" and "recog.h".
23651         (union_match_dups): New function.
23652         (web_main): Call it.
23653         (union_defs): Don't try to recognize match_dups.
23654
23655         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23656         if doing so would replace the entire pattern.
23657
23658 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23659
23660         PR target/43707
23661         PR target/43709
23662         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23663         and splitter pattern.  Change splitter operand 1 predicate to
23664         nonmemory_operand.
23665
23666 2010-04-09  Martin Jambor  <mjambor@suse.cz>
23667
23668         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23669         lattices are addresses of CONST_DECLs with the same initial value.
23670         (ipcp_print_all_lattices): Print values of CONST_DECLs.
23671         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23672
23673 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
23674             Bernd Schmidt  <bernds@codesourcery.com>
23675
23676         * loop-invariant.c (replace_uses): New static function.
23677         (move_invariant_reg): Use it to ensure we can replace the uses.
23678
23679 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
23680
23681         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23682         function template.
23683         (picochip_override_options): Enable section anchors only above -O1.
23684         (picochip_reorg): Fixed a couple of build warnings.
23685
23686 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23687
23688         * configure.ac (plugin -rdynamic test): Log result.
23689         * configure: Regenerate.
23690         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23691         (RDYNAMIC_SPEC): Define.
23692         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23693
23694 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23695
23696         * configure.ac: Determine Sun ld version numbers.
23697         (comdat_group): Restrict GNU ld version checks to gld.
23698         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23699         (enable_comdat): Support --enable-comdat.
23700         * configure: Regenerate.
23701         * doc/install.texi (Configuration): Document --enable-comdat.
23702
23703 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23704
23705         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
23706         * config/sol2-gld.h: ... here.
23707         * config.gcc (sparc*-*-solaris2*): Reflect this.
23708         (i[34567]86-*-solaris2*): Use it.
23709
23710 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
23711
23712         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23713         setup_clocks_p.
23714         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23715
23716 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23717
23718         PR 42965
23719         * diagnostic.c (diagnostic_initialize): Initialize
23720         some_warnings_are_errors.
23721         (diagnostic_finish): New.
23722         (diagnostic_action_after_output): Call it before exiting.
23723         (diagnostic_report_diagnostic): Do not print message here. Set
23724         some_warnings_are_errors.
23725         * diagnostic.h (diagnostic_context): Delete
23726         issue_warnings_are_errors_message. Add some_warnings_are_errors.
23727         (diagnostic_finish): Declare.
23728         * toplev.c (toplev_main): Call it before exit.
23729
23730 2010-04-09  Jason Merrill  <jason@redhat.com>
23731
23732         PR c++/42623
23733         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
23734         for incomplete type.
23735
23736         PR c++/41788
23737         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
23738         based on a warning flag.
23739
23740 2010-04-09  Richard Guenther  <rguenther@suse.de>
23741
23742         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
23743
23744 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
23745
23746         PR bootstrap/43684
23747         * varasm.c (default_assemble_visibility): Wrap vars that are
23748         set, but unused, by targets without GAS.
23749         * config/rs6000/rs6000.c (paired_emit_vector_compare):
23750         Remove set, but unused, vars.
23751         (rs6000_legitimize_tls_address): Likewise.
23752         (altivec_expand_dst_builtin): Likewise.
23753         * config/darwin.c (machopic_classify_symbol): Likewise.
23754         (machopic_indirection_name): Likewise.
23755
23756 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23757
23758         * config/i386/i386.md (DWI): New mode iterator.
23759         (S): New mode attribute.
23760         (shift_operand): Ditto.
23761         (shift_immediate_operand): Ditto.
23762         (ashl_input_operand): Ditto.
23763         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
23764         using SDWIM mode iterator.
23765         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23766         pattern from *ashl{di,ti}3_1 and corresponding splitters using
23767         DWI mode iterator.
23768         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
23769         from corresponding peephole2 patterns.
23770         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
23771         and x86_64_shift_adj_1 using SWI48 mode iterator.
23772         (x86_shift<mode>_adj_2): Ditto.
23773         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
23774         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
23775         using SWI48 mode iterator.
23776         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
23777         *ashldi3_cmp_rex64 using SWI mode iterator.
23778         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
23779         *ashldi3_cconly_rex64 using SWI mode iterator.
23780         * config/i386/i386.c (ix86_split_ashl): Update for renamed
23781         x86_shift<mode>_adj_{1,2}.
23782         (ix86_split_ashr): Ditto.
23783         (ix86_split_lshr): Ditto.
23784
23785 2010-04-09  Richard Guenther  <rguenther@suse.de>
23786
23787         * target.h (builtin_conversion): Pass in input and output types.
23788         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
23789         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
23790         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
23791         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
23792
23793         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
23794         Handle AVX modes.
23795         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
23796
23797 2010-04-09  Richard Guenther  <rguenther@suse.de>
23798
23799         PR target/43152
23800         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
23801
23802 2010-04-09  Richard Guenther  <rguenther@suse.de>
23803
23804         * tree-vectorizer.h (struct _stmt_vec_info): Document
23805         that vectype is the type of the LHS.
23806         (supportable_widening_operation, supportable_narrowing_operation):
23807         Get both input and output vector types as arguments.
23808         (vect_is_simple_use_1): Declare.
23809         (get_same_sized_vectype): Likewise.
23810         * tree-vect-loop.c (vect_determine_vectorization_factor):
23811         Set STMT_VINFO_VECTYPE to the vector type of the def.
23812         (vectorizable_reduction): Adjust.
23813         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
23814         Adjust.  Specify the output vector type.
23815         (vect_pattern_recog_1): Adjust.
23816         * tree-vect-stmts.c (get_same_sized_vectype): New function.
23817         (vectorizable_call): Adjust.
23818         (vectorizable_conversion): Likewise.
23819         (vectorizable_operation): Likewise.
23820         (vectorizable_type_demotion): Likewise.
23821         (vectorizable_type_promotion): Likewise.
23822         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
23823         the def.
23824         (vect_is_simple_use_1): New function.
23825         (supportable_widening_operation): Get both input and output
23826         vector types.
23827         (supportable_narrowing_operation): Likewise.
23828         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
23829
23830 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
23831
23832         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
23833         __thiscall and _thiscall as predefined macros.
23834         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
23835         thiscall attribute handling.
23836         (ix86_comp_type_attributes): Likewise.
23837         (ix86_function_regparm): Likewise.
23838         (ix86_return_pops_args): Likewise.
23839         (init_cumulative_args): Likewise.
23840         (find_drap_reg): Likewise.
23841         (ix86_static_chain): Likewise.
23842         (x86_this_parameter): Likewise.
23843         (x86_output_mi_thunk): Likewise.
23844         (ix86_attribute_table): Add description for thiscall attribute.
23845         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
23846         * doc/extend.texi: Add documentation for thiscall.
23847
23848 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23849
23850         PR c++/28584
23851         * c.opt (Wint-to-pointer-cast): Available in C++.
23852         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
23853
23854 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
23855
23856         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
23857         * calls.c (expand_call): Pass the function type to aggregate_value_p.
23858         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
23859         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
23860         function type instead.  Reorder and simplify checks.
23861
23862         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
23863
23864 2010-04-08  Jing Yu  <jingyu@google.com>
23865             Zdenek Dvorak  <ook@ucw.cz>
23866
23867         PR tree-optimization/42720
23868         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
23869         loop unswitch conditions here from ...
23870         (tree_unswitch_single_loop): ... here.
23871
23872 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
23873
23874         * tree-if-conv.c: Fix comments and simplify logic.
23875
23876 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
23877
23878         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
23879         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
23880         (main_tree_if_conversion): Update call to tree_if_conversion.
23881
23882 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23883
23884         PR 42485
23885         * doc/invoke.texi (-b,-V): Delete.
23886         * doc/tm.texi: Do not mention -b.
23887         * gcc.c (display_help): Delete -b and -V.
23888         (process_command): Delete -b and -V.
23889         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
23890
23891 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
23892             Wolfgang Gellerich  <gellerich@de.ibm.com>
23893
23894         Implement target hook for loop unrolling
23895         * target.h (loop_unroll_adjust): Add a new target hook function.
23896         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
23897         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
23898         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
23899         (s390_loop_unroll_adjust): Implement the new target hook for s390.
23900         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
23901         target hook.
23902         (decide_unroll_stupid): Likewise.
23903
23904 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23905
23906         PR target/43643
23907         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
23908
23909 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23910
23911         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
23912         (Specific, *-*-solaris2*): Likewise.
23913         Don't prefer Sun as over GNU as.
23914
23915 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
23916
23917         * config/s390/s390.c (override_options): Adjust the z10 defaults
23918         for max-unroll-times, max-completely-peeled-insns
23919         and max-completely-peel-times.
23920
23921 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23922
23923         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
23924         instructions for z10.
23925         (s390_expand_setmem): Likewise.
23926         (s390_expand_cmpmem): Likewise.
23927
23928 2010-04-08  Richard Guenther  <rguenther@suse.de>
23929
23930         PR tree-optimization/43679
23931         * tree-ssa-pre.c (eliminate): Only propagate copies.
23932
23933 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
23934
23935         PR bootstrap/43681
23936         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
23937         set but not used variable warning.
23938
23939 2010-04-08  Wei Guozhi  <carrot@google.com>
23940
23941         PR target/41653
23942         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
23943         (arm_size_rtx_costs): Call the new function when optimized for size.
23944
23945 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
23946
23947         PR debug/43670
23948         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
23949         op0 is not a MEM, just return NULL instead of assertion
23950         failure.
23951         (discover_nonconstant_array_refs): Don't walk debug stmts.
23952
23953 2010-04-08  Doug Kwan  <dougkwan@google.com>
23954
23955         * configure.ac: Recognize gold and do not use its version number
23956         to test ld features.
23957         * configure: Regenerate.
23958
23959 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
23960
23961         PR middle-end/40815
23962         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
23963         (negate_value): Move code to push elements to broken_up_substracts ...
23964         (eliminate_plus_minus_pair): ... here.  Push operands that have no
23965         negative pair to plus_negates.
23966         (repropagate_negates, init_reassoc, fini_reassoc): Update.
23967
23968 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23969
23970         * doc/install.texi (Configuration): Move description of
23971         --enable-lto, --with-libelf*, --enable-gold from Java section to
23972         general section.
23973
23974         * doc/generic.texi (Working with declarations)
23975         (Function Properties, C and C++ Trees): Fix typos.
23976         * doc/sourcebuild.texi (Top Level): Likewise.
23977
23978 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
23979
23980         PR c/18624
23981         * tree.h (DECL_READ_P): Define.
23982         (struct tree_decl_common): Add decl_read_flag.
23983         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
23984         a set but not used warning.
23985         (merge_decls): Merge DECL_READ_P flag.
23986         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
23987         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
23988         * c-common.c (handle_used_attribute, handle_unused_attribute):
23989         Likewise.
23990         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
23991         New prototypes.
23992         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
23993         New functions.
23994         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
23995         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
23996         c_parser_binary_expression, c_parser_cast_expression,
23997         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
23998         Call default_function_array_read_conversion instead of
23999         default_function_array_conversion where needed.
24000         (c_parser_unary_expression, c_parser_conditional_expression,
24001         c_parser_postfix_expression_after_primary, c_parser_initelt):
24002         Likewise.  Call mark_exp_read where needed.
24003         (c_parser_statement_after_labels, c_parser_asm_operands,
24004         c_parser_typeof_specifier, c_parser_sizeof_expression,
24005         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24006         where needed.
24007         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24008         New.
24009         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24010         (warn_unused_but_set_parameter): Default to warn_unused
24011         && extra_warnings.
24012         * doc/invoke.texi: Document -Wunused-but-set-variable and
24013         -Wunused-but-set-parameter.
24014
24015         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24016         used count variable.
24017         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24018         when operandN variables aren't used in the body of the expander
24019         or splitter.
24020         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24021         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24022         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24023         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24024         FOR_EACH_IMM_USE_ON_STMT): Likewise.
24025         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24026         * tree.c (PROCESS_ARG): Likewise.
24027
24028 2010-04-07  Simon Baldwin  <simonb@google.com>
24029
24030         * diagnostic.h (diagnostic_override_option_index): New macro to
24031         set a diagnostic's option_index.
24032         * c-tree.h (c_cpp_error): Add warning reason argument.
24033         * opts.c (_warning_as_error_callback): New.
24034         (register_warning_as_error_callback): Store callback for
24035         warnings enabled via enable_warning_as_error.
24036         (enable_warning_as_error): Call callback, minor code tidy.
24037         * opts.h (register_warning_as_error_callback): Declare.
24038         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24039         response to -Werror=.
24040         (c_common_init_options): Register warning_as_error_callback in opts.c.
24041         * common.opt: Add -Wno-cpp option.
24042         * c-common.c (struct reason_option_codes_t): Map cpp warning
24043         reason codes to gcc option indexes.
24044         * (c_option_controlling_cpp_error): New function, lookup the gcc
24045         option index for a cpp warning reason code.
24046         * (c_cpp_error): Add warning reason argument, call
24047         c_option_controlling_cpp_error for diagnostic_override_option_index.
24048         * doc/invoke.texi: Document -Wno-cpp.
24049
24050 2010-04-07  Richard Guenther  <rguenther@suse.de>
24051
24052         * ipa-reference.c (mark_load): Use get_base_address.
24053         (mark_store): Likewise.
24054
24055         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24056         inserting GIMPLE_NOPs into the IL.
24057         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24058         Explicitly strip handled components and indirect references.
24059
24060         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24061         folding address expressions.
24062         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24063         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24064         operand_equal_p to compare decls.
24065         (ptr_deref_may_alias_decl_p): Likewise.
24066         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24067         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24068         Handle reversed comparison ops.
24069         * tree-sra.c (asm_visit_addr): Use get_base_address.
24070         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24071         * ipa-reference.c (mark_address): Use get_base_address.
24072
24073 2010-04-07  Richard Guenther  <rguenther@suse.de>
24074
24075         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24076         Propagate constants everywhere.
24077
24078 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24079
24080         PR debug/43516
24081         * tree.c (MAX_INT_CACHED_PREC): Define.
24082         (nonstandard_integer_type_cache): New array.
24083         (build_nonstandard_integer_type): Cache results for precision
24084         <= MAX_INT_CACHED_PREC.
24085
24086 2010-04-07  Richard Guenther  <rguenther@suse.de>
24087
24088         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24089         -fargument-noalias-global, -fargument-noalias-anything): Remove.
24090         * common.opt: Likewise.
24091         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24092         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24093         (nonoverlapping_memrefs_p): Likewise.
24094         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24095         * opts.c (common_handle_option): Handle OPT_fargument_alias,
24096         OPT_fargument_noalias, OPT_fargument_noalias_anything and
24097         OPT_fargument_noalias_global for backward compatibility.
24098
24099 2010-04-07  Richard Guenther  <rguenther@suse.de>
24100
24101         PR tree-optimization/43270
24102         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24103         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24104         * tree-ssa-pre.c (phi_translate_1): Adjust.
24105         (fully_constant_expression): Split out vn_reference handling to ...
24106         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24107         Fold reads from constant strings.
24108         (vn_reference_lookup): Handle fully constant references.
24109         (vn_reference_lookup_pieces): Likewise.
24110         * Makefile.in (expmed.o-warn): Add -Wno-error.
24111
24112 2010-04-07  Martin Jambor  <mjambor@suse.cz>
24113
24114         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24115
24116 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
24117
24118         PR driver/41594
24119         * gcc.c: Add -static-libstdc++ to list of recognized options.
24120
24121 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24122
24123         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24124
24125 2010-04-07  Richard Guenther  <rguenther@suse.de>
24126
24127         PR middle-end/42617
24128         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24129         bases build simple mem attributes to retain points-to information.
24130
24131 2010-04-07  Richard Guenther  <rguenther@suse.de>
24132
24133         PR middle-end/42617
24134         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24135         preserve points-to related information.
24136
24137 2010-04-07  Richard Guenther  <rguenther@suse.de>
24138
24139         PR middle-end/42617
24140         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24141         discard plain indirect references.
24142         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24143         * tree.c (tree_nop_conversion): Likewise.
24144
24145 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
24146
24147         PR debug/43628
24148         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24149
24150 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
24151
24152         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24153         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24154
24155 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24156
24157         * tree-if-conv.c: Fix indentation and comments.
24158
24159 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24160
24161         * tree-if-conv.c: Sort static functions in topological order.
24162
24163 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24164
24165         * tree-if-conv.c: Fix indentation and comments.
24166
24167 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24168
24169         PR middle-end/43519
24170         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24171         lang_hooks.types.type_for_size instead of
24172         build_nonstandard_integer_type.
24173         When converting an unsigned type to signed, double its precision.
24174         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24175         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24176         (graphite_create_new_loop_guard): When ub + 1 wraps around,
24177         use lb <= ub.
24178
24179 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24180
24181         PR middle-end/43519
24182         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24183         POINTER_PLUS_EXPR for pointer types.
24184
24185 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24186
24187         PR middle-end/43519
24188         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24189         * graphite-clast-to-gimple.c: Include langhooks.h.
24190         (max_signed_precision_type): New.
24191         (max_precision_type): Takes two types as arguments.
24192         (precision_for_value): New.
24193         (precision_for_interval): New.
24194         (gcc_type_for_interval): New.
24195         (gcc_type_for_value): New.
24196         (gcc_type_for_clast_term): New.
24197         (gcc_type_for_clast_red): New.
24198         (gcc_type_for_clast_bin): New.
24199         (gcc_type_for_clast_expr): Split up into several functions.
24200         (gcc_type_for_clast_eq): Rewritten.
24201         (compute_bounds_for_level): New.
24202         (compute_type_for_level_1): New.
24203         (compute_type_for_level): New.
24204         (gcc_type_for_cloog_iv): Removed.
24205         (gcc_type_for_iv_of_clast_loop): Rewritten.
24206         (graphite_create_new_loop): Compute the lower and upper bound types
24207         with gcc_type_for_clast_expr.
24208         (graphite_create_new_loop_guard): Same.
24209         (find_cloog_iv_in_expr): Removed.
24210         (compute_cloog_iv_types_1): Removed.
24211         (compute_cloog_iv_types): Removed.
24212         (gloog): Do not call compute_cloog_iv_types.
24213         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24214         GBB_CLOOG_IV_TYPES.
24215         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24216         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24217         (GBB_CLOOG_IV_TYPES): Removed.
24218
24219 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24220
24221         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24222         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24223         (detect_commutative_reduction): Same.
24224
24225 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24226
24227         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24228         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
24229         argument.
24230         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24231         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24232         (rewrite_commutative_reductions_out_of_ssa): Same.
24233         * passes.c (execute_function_todo): Call verify_ssa for every pass
24234         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
24235         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24236         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24237         with an extra argument.
24238         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
24239         verify_ssa only when the extra argument is true.
24240         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24241         with an extra argument.
24242         (tree_transform_and_unroll_loop): Same.
24243
24244 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24245
24246         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24247         for all the passes of the LNO having LOOP_CLOSED_SSA.
24248         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24249         * tree-loop-distribution.c (pass_loop_distribution): Same.
24250         * tree-pass.h (TODO_verify_loops): Removed.
24251         * tree-ssa-loop.c (pass_tree_loop_init): Same.
24252         (pass_lim): Same.
24253         (pass_tree_unswitch): Same.
24254         (pass_predcom): Same.
24255         (pass_vectorize): Same.
24256         (pass_linear_transform): Same.
24257         (pass_graphite_transforms): Same.
24258         (pass_iv_canon): Same.
24259         (pass_complete_unroll): Same.
24260         (pass_complete_unrolli): Same.
24261         (pass_parallelize_loops): Same.
24262         (pass_loop_prefetch): Same.
24263         (pass_iv_optimize): Same.
24264
24265 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
24266
24267         PR middle-end/32824
24268         * passes.c (init_optimization_passes): Move pass_lim before
24269         pass_copy_prop and pass_dce_loop.
24270
24271 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24272
24273         PR target/43667
24274         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24275         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24276         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24277         MULTI_* defines for 4 argument vpermil2p* builtins.
24278
24279 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24280
24281         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24282         * config/i386/i386.c (x86_maybe_negate_const_int): New.
24283         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24284         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24285         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24286         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24287         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24288         Use x86_maybe_negate_const_int to output insn mnemonic.
24289         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
24290         check from instruction predicate.  Update comments.
24291         * config/i386/sync.md (sync_add<mode>): Use
24292         x86_maybe_negate_const_int to output insn mnemonic.
24293
24294 2010-04-06  Jan Hubicka  <jh@suse.cz>
24295
24296         PR tree-optimization/42906
24297         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24298         IGNORE_SELF argument.  Set visited_control_parents for fully
24299         processed BBs.
24300         (find_obviously_necessary_stmts): Update call of
24301         mark_control_dependent_edges_necessary.
24302         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
24303
24304 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24305
24306         * config/i386/i386.md: Remove comment about 'e' and 'E'
24307         operand modifier.
24308
24309 2010-04-06  Richard Guenther  <rguenther@suse.de>
24310
24311         PR tree-optimization/43627
24312         * tree-vrp.c (extract_range_from_unary_expr): Widenings
24313         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24314         not varying.
24315
24316 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24317
24318         * BASE-VER: Change to 4.6.0.
24319
24320         PR target/43638
24321         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24322         handling.
24323
24324 2010-04-06  Richard Guenther  <rguenther@suse.de>
24325
24326         PR middle-end/43661
24327         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24328
24329 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24330
24331         * doc/invoke.texi (Optimize Options): Document that LTO
24332         won't remove object access purely due to incompatible
24333         declarations.
24334
24335 2010-04-04  Matthias Klose  <doko@ubuntu.com>
24336
24337         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24338         Initialize variable.
24339
24340 2010-04-03  Richard Guenther  <rguenther@suse.de>
24341
24342         PR middle-end/42509
24343         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24344         require a non-NULL MEM_OFFSET.
24345
24346 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
24347
24348         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24349         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24350         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24351         config/alpha/predicates.md, config/arm/arm.md,
24352         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24353         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24354         config/darwin9.h, config/darwin.c, config/darwin.h,
24355         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24356         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24357         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24358         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24359         config/mips/mips.md, config/mn10300/mn10300.c,
24360         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24361         config/rs6000/aix.h, config/rs6000/dfp.md,
24362         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24363         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24364         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24365         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24366         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24367         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24368         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24369         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24370         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24371         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24372         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24373         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24374         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24375         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24376         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24377         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24378         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24379         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24380         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24381         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24382         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24383         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24384         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24385         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24386         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24387         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24388         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24389         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24390         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24391         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24392         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24393         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24394         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24395         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24396         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24397         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24398
24399 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24400
24401         PR other/43620
24402         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24403         * aclocal.m4: Regenerate.
24404
24405 2010-04-02  Richard Guenther  <rguenther@suse.de>
24406
24407         PR tree-optimization/43629
24408         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24409         if we have seen a constant value.
24410
24411 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24412
24413         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24414
24415 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24416
24417         PR target/43469
24418         * arm.c (legitimize_tls_address): Adjust call to
24419         gen_tls_load_dot_plus_four.
24420         (arm_note_pic_base): New function.
24421         (arm_cannot_copy_insn_p): Use it.
24422         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24423         constraint.
24424
24425 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24426
24427         PR bootstrap/43531
24428
24429         Revert:
24430         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24431
24432         * Makefile.in ($(out_object_file)): Depend on
24433         gt-$(basename $(notdir $(out_file))).h.
24434
24435 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24436
24437         * config.gcc (lm32-*-rtems*): Add t-lm32.
24438
24439 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24440
24441         * config.gcc: Add lm32-*-rtems*.
24442         * config/lm32/rtems.h: New file.
24443
24444 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24445
24446         PR target/42609
24447         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24448
24449 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24450
24451         * dwarf2out.c (output_compilation_unit_header): For
24452         -gdwarf-4 use version 4 instead of version 3.
24453         (output_line_info): For version 4 and above emit additional
24454         maximum ops per insn header field.
24455         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24456
24457         * dwarf2out.c (is_c_family, is_java): Remove.
24458         (lower_bound_default): New function.
24459         (add_bound_info, gen_descr_array_type_die): Use it.
24460
24461 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24462
24463         PR debug/43325
24464         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24465         re-declaration when it happens in a function.
24466
24467 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24468
24469         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24470         (cgraph_remove_function_insertion_hook): Same.
24471         (cgraph_call_function_insertion_hooks): Same.
24472
24473 2010-04-01  Richard Guenther  <rguenther@suse.de>
24474
24475         PR middle-end/43614
24476         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24477         and TREE_THIS_VOLATILE.
24478         (copy_ref_info): Likewise.
24479         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24480         * tree.c (build6_stat): Ignore side-effects of all but arg5
24481         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24482         TARGET_MEM_REF.
24483
24484 2010-04-01  Richard Guenther  <rguenther@suse.de>
24485
24486         PR tree-optimization/43607
24487         * ipa-type-escape.c (check_call): Do not access non-existing
24488         arguments.
24489
24490 2010-04-01  Richard Guenther  <rguenther@suse.de>
24491
24492         PR middle-end/43602
24493         Revert
24494         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24495                     Jack Howarth  <howarth@bromo.med.uc.edu>
24496
24497         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24498         variables TLS.
24499
24500 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24501
24502         * doc/install.texi (Prerequisites): Document libelf usability on
24503         IRIX 5/6 and Solaris 2.
24504         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24505         Update GNU as, GNU ld requirements.
24506         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24507         Document Sun Studio compiler download.
24508         Update and simplify as, ld recommendations.
24509         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24510
24511 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24512
24513         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24514         with_tune_32 to pentium4.
24515
24516 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24517
24518         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24519
24520 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24521
24522         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24523         obsoletion, removal.
24524         Update IDO URL.
24525         Document GNU as requirement.
24526         Update configure requirements.
24527         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24528         Recomment IRIX 6.5.18+.
24529         Document IDF/IDL requirement.
24530         Document GNU as requirement.
24531         Document GNU ld bootstrap failure.
24532         Remove freeware.sgi.com reference.
24533
24534 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24535
24536         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24537         UNIX V4.0, V5.0 obsoletion, removal.
24538         Remove --with-gc=simple reference.
24539         Update VM requirements during bootstrap.
24540         Remove -oldas bootstrap description.
24541         Update binutils reference.
24542         Remove comparison failure note.
24543
24544 2010-03-31  Richard Guenther  <rguenther@suse.de>
24545             Zdenek Dvorak  <ook@ucw.cz>
24546             Sebastian Pop  <sebastian.pop@amd.com>
24547
24548         PR middle-end/43464
24549         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24550         with multiple arguments.
24551         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24552
24553 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24554
24555         * graphite-dependences.c (print_pddr): Call print_pdr with an
24556         extra argument.
24557         * graphite-poly.c (debug_pdr): Add an extra argument for the
24558         verbosity level.
24559         (print_pdr): Same.
24560         (print_pbb_domain): Same.
24561         (print_pbb): Same.
24562         (print_scop_context): Same.
24563         (print_scop): Same.
24564         (print_cloog): Same.
24565         (debug_pbb_domain): Same.
24566         (debug_pbb): Same.
24567         (print_pdrs): Same.
24568         (debug_pdrs): Same.
24569         (debug_scop_context): Same.
24570         (debug_scop): Same.
24571         (debug_cloog): Same.
24572         (print_scop_params): Same.
24573         (debug_scop_params): Same.
24574         (print_iteration_domain): Same.
24575         (print_iteration_domains): Same.
24576         (debug_iteration_domain): Same.
24577         (debug_iteration_domains): Same.
24578         (print_scattering_function): Same.
24579         (print_scattering_functions): Same.
24580         (debug_scattering_function): Same.
24581         (debug_scattering_functions): Same.
24582         * graphite-poly.h (debug_pdr): Update declaration.
24583         (print_pdr): Same.
24584         (print_pbb_domain): Same.
24585         (print_pbb): Same.
24586         (print_scop_context): Same.
24587         (print_scop): Same.
24588         (print_cloog): Same.
24589         (debug_pbb_domain): Same.
24590         (debug_pbb): Same.
24591         (print_pdrs): Same.
24592         (debug_pdrs): Same.
24593         (debug_scop_context): Same.
24594         (debug_scop): Same.
24595         (debug_cloog): Same.
24596         (print_scop_params): Same.
24597         (debug_scop_params): Same.
24598         (print_iteration_domain): Same.
24599         (print_iteration_domains): Same.
24600         (debug_iteration_domain): Same.
24601         (debug_iteration_domains): Same.
24602         (print_scattering_function): Same.
24603         (print_scattering_functions): Same.
24604         (debug_scattering_function): Same.
24605         (debug_scattering_functions): Same.
24606
24607 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24608
24609         * graphite-poly.c (print_scattering_function_1): New.
24610         (print_scattering_function): Call it.
24611         (print_scop_params): Remove spaces at the end of lines.
24612         (print_cloog): New.
24613         (debug_cloog): New.
24614         * graphite-poly.h (print_cloog): Declared.
24615         (debug_cloog): Declared.
24616
24617 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24618
24619         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24620         in loop->header.
24621         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24622         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24623         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24624         to switch between adding the IV bump in loop->latch or in loop->header.
24625
24626 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24627
24628         * graphite-poly.c (print_scattering_function): Pretty print following
24629         the scoplib format.
24630         (print_pdr): Same.
24631         (print_pbb_domain): Same.
24632         (dump_gbb_cases): Same.
24633         (dump_gbb_conditions): Same.
24634         (print_pdrs): Same.
24635         (print_pbb): Same.
24636         (print_scop_params): Same.
24637         (print_scop_context): Same.
24638         (print_scop): Same.
24639         (print_pbb_body): New.
24640         (lst_indent_to): New.
24641         (print_lst): Start new lines with a #.
24642         * graphite-poly.h (pbb_bb): New.
24643         (pbb_index): Use pbb_bb.
24644         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24645         disjuncts.
24646         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24647
24648 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24649
24650         * dwarf2out.c (size_of_die): For -gdwarf-4 use
24651         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24652         and 0 instead of 1 for dw_val_class_flag.
24653         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24654         dw_val_class_range_list, dw_val_class_loc_list,
24655         dw_val_class_lineptr and dw_val_class_macptr, use
24656         DW_FORM_flag_present for dw_val_class_flag and
24657         DW_FORM_exprloc for dw_val_class_loc.
24658         (output_die): For -gdwarf-4 print dw_val_class_loc
24659         size as uleb128 instead of 1 or 2 bytes and don't print
24660         anything for dw_val_class_flag.
24661
24662         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24663         instead of cselib_lookup following by tweaking locs->setting_insn.
24664
24665         PR bootstrap/43596
24666         * cselib.c (cselib_process_insn): Clear cselib_current_insn
24667         even before returning from label, setjmp call or volatile asm
24668         handling.
24669
24670 2010-03-31  Richard Guenther  <rguenther@suse.de>
24671
24672         PR middle-end/43600
24673         * cgraphunit.c (cgraph_output_in_order): Do not allocate
24674         temporary data on stack.
24675
24676 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24677
24678         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24679         (PUSHSECTION_ASM_OP): Remove.
24680         (POPSECTION_ASM_OP): Remove.
24681         (PUSHSECTION_FORMAT): Remove.
24682         * config/sol2.h (PUSHSECTION_FORMAT): Define.
24683         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24684         * config/sol2.c (solaris_output_init_fini): Use it.
24685
24686 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24687
24688         PR 43574
24689         * opt-functions.awk (var_type_struct): Use signed char type
24690         for simple variables.
24691
24692 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24693
24694         * config/sol2.c: Include output.h.
24695         (solaris_assemble_visibility): New function.
24696         * config/t-sol2 (sol2.o): Add output.h dependency.
24697         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24698         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24699         Redefine.
24700
24701 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24702
24703         PR target/43580
24704         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24705         V2SImode or XFmode on PRE_DEC.
24706
24707         PR debug/43557
24708         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24709         BLKmode.
24710
24711 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24712
24713         PR 43562
24714         * reload.h (caller_save_initialized_p): Declare.
24715         * toplev.c (backend_init_target): Don't call
24716         init_caller_save but set caller_save_initialized_p to false.
24717         * caller-save.c (caller_save_initialized_p): Define.
24718         (init_caller_save): Check caller_save_initialized_p.
24719         * ira.c (ira): Call init_caller_save if flag_caller_saves.
24720
24721 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24722
24723         PR target/39048
24724         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
24725         and soft-fp/t-softfp to tmake_file.
24726         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
24727         (LIBGCC2_TF_CEXT): Define.
24728         (TF_SIZE): Define.
24729
24730 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
24731
24732         PR debug/42977
24733         * cselib.c (n_useless_values): Document handling of debug locs.
24734         (n_useless_debug_values, n_debug_values): New variables.
24735         (new_elt_loc_list): Don't add to debug values, keep count.
24736         (promote_debug_loc): New.
24737         (cselib_reset_table): Zero new variables.
24738         (entry_and_rtx_equal_p): Promote debug locs.
24739         (discard_useless_locs): Increment n_useless_debug_values for
24740         debug values.
24741         (remove_useless_values): Adjust n_useless_values and n_debug_values
24742         with n_useless_debug_values.
24743         (add_mem_for_addr): Promote debug locs.
24744         (cselib_lookup_mem): Likewise.
24745         (cselib_lookup_addr): Renamed to...
24746         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
24747         (cselib_log_lookup): ... this.  Turn into...
24748         (cselib_lookup_addr): ... new wrapper.
24749         (cselib_lookup_from_insn): New.
24750         (cselib_invalidate_regno): Increment n_useless_debug_values for
24751         debug values.
24752         (cselib_invalidate_mem): Likewise.
24753         (cselib_process_insn): Take n_deleted and n_debug_values into
24754         account to guard remove_useless_value call.
24755         (cselib_finish): Zero n_useless_debug_values.
24756         * cselib.h (cselib_lookup_from_insn): Declare.
24757         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
24758         (sched_analyze_2): Likewise.
24759
24760 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
24761
24762         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
24763         functions.
24764         (adjust_mems): Replace narrowing SUBREG of expression containing
24765         just PLUS, MINUS, MULT and ASHIFT of registers and constants
24766         with operations in the narrower mode.
24767
24768         PR debug/43593
24769         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
24770         regs_invalidated_by_call instead all call_used_reg_set registers.
24771
24772 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24773
24774         PR middle-end/43430
24775         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
24776         pointer comparisons with types_compatible_p.
24777         * tree-vect-stmts.c (vectorizable_call): Same.
24778         (vectorizable_condition): Same.
24779
24780 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24781
24782         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
24783         stack check if the mask would be zero.
24784
24785 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24786             Jack Howarth  <howarth@bromo.med.uc.edu>
24787
24788         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24789         variables TLS.
24790
24791 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
24792
24793         PR other/25232
24794         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
24795         and __unordtf2.
24796         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
24797         Include ___unordxf2 and ___unordtf2.
24798         * config/i386/libgcc-glibc.ver: Do not define inheritance from
24799         GCC_4.4.0 here.
24800
24801 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
24802
24803         * config/lm32/t-lm32: New file.
24804         * config.gcc: Use the above file when targetting lm32.
24805
24806 2010-03-28  Duncan Sands  <baldrick@free.fr>
24807
24808         * Makefile.in (PLUGIN_HEADERS): Add except.h.
24809
24810 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24811
24812         PR middle-end/43431
24813         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
24814         Improve vectorization cost model diagnostic.
24815
24816 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24817
24818         PR middle-end/43436
24819         * tree-vect-data-refs.c (vect_analyze_data_refs): When
24820         compute_data_dependences_for_loop returns false, early exit
24821         and output an extra diagnostic for the failed data reference
24822         analysis.
24823
24824 2010-03-29  Richard Guenther  <rguenther@suse.de>
24825
24826         PR tree-optimization/43560
24827         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
24828         (can_sm_ref_p): Treat stores to readonly locations as trapping.
24829
24830 2010-03-29  Jie Zhang  <jie@codesourcery.com>
24831
24832         PR 43564
24833         * toplev.c (process_options): Set optimization_default_node
24834         and optimization_current_node.
24835         * opts.c (decode_options): Don't set optimization_default_node
24836         and optimization_current_node.
24837
24838 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
24839
24840         * config/rtems.h: Abandon -qrtems_debug.
24841
24842 2010-03-28  Jan Hubicka  <jh@suse.cz>
24843
24844         PR tree-optimization/43505
24845         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
24846         map should not be copied.
24847
24848 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24849
24850         PR middle-end/41674
24851         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
24852         cdtors, set DECL_PRESERVE_P.
24853         * ipa.c (cgraph_externally_visible_p): Return true if declaration
24854         should be preseved.
24855
24856 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
24857
24858         PR tree-optimization/43528
24859         * stor-layout.c (place_field): Check that constant fits into
24860         unsigned HWI when skipping calculation of MS bitfield layout.
24861
24862 2010-03-27  Jan Hubicka  <jh@suse.cz>
24863
24864         PR middle-end/43391
24865         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
24866         notice_global_symbol work.
24867
24868 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
24869
24870         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
24871         instead of dwarf2out_decl.
24872         (struct var_loc_node): Remove section_label field.
24873         (dwarf2out_function_decl): New function.
24874         (dwarf2out_var_location): Don't set section_label field.
24875         (dwarf2out_begin_function): Don't empty decl_loc_table here.
24876
24877 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
24878
24879         PR tree-optimization/43544
24880         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24881         First argument for builtin vectorized function hook is now a
24882         tree to be able to distinguish between machine specific and
24883         standard builtins.
24884         * targhooks.c (default_builtin_vectorized_function): Ditto.
24885         * targhooks.h (default_builtin_vectorized_function): Ditto.
24886         * target.h (struct gcc_target): Ditto.
24887         * tree-vect-stmts.c (vectorizable_function): Ditto.
24888         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
24889         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
24890         Ditto.
24891
24892 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
24893
24894         PR c/43381
24895         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
24896         nested binding iff it is a FUNCTION_DECL.
24897         (store_parm_decls_newstyle): Pass nested=true to bind for
24898         FUNCTION_DECLs amongst parameters.
24899
24900 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
24901
24902         * var-tracking.c (vt_expand_loc_callback): Don't run
24903         cselib_expand_value_rtx_cb in dummy mode if
24904         cselib_dummy_expand_value_rtx_cb returned false.
24905
24906         * var-tracking.c (emit_note_insn_var_location): For one part
24907         notes with offset 0, don't add EXPR_LIST around the location.
24908         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
24909         add_location_or_const_value_attribute): Adjust for that change.
24910
24911         PR debug/43540
24912         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
24913         into first operand and location into second.
24914         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
24915         dw_cfi_oprnd_loc for DW_CFA_expression.
24916         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
24917         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
24918         assume first argument is regnum and second argument is location.
24919
24920 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
24921
24922         PR target/42113
24923         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
24924         of scratch register to DImode.  Split to DImode comparison operator.
24925         Use SImode subreg of scratch register in the multiplication.
24926         (*cmp_sadd_sidi): Ditto.
24927         (*cmp_ssub_si): Ditto.
24928         (*cmp_ssub_sidi): Ditto.
24929
24930 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
24931
24932         PR target/43524
24933         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
24934         Remove invalid assert and wrong comment.
24935
24936 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
24937
24938         PR debug/43516
24939         * flags.h (final_insns_dump_p): New extern.
24940         * final.c (final_insns_dump_p): New variable.
24941         (rest_of_clean_state): Set it before -fdump-final-insns=
24942         dumping, clear afterwards.
24943         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
24944         MEM_ALIAS_SET on MEMs.
24945
24946 2010-03-26  David S. Miller  <davem@davemloft.net>
24947
24948         * configure.ac: Fix sparc GOTDATA_OP bug check.
24949         * configure: Rebuild.
24950
24951 2010-03-26  Alan Modra  <amodra@gmail.com>
24952
24953         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
24954
24955 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24956
24957         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
24958         TLS_SECTION_ASM_FLAG.
24959
24960 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
24961
24962         PR bootstrap/43511
24963         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
24964         Clear first_function_block_is_cold.
24965
24966         PR c/43385
24967         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
24968         argument if the argument is truth_value_p.
24969
24970 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24971
24972         * config/rs6000/constraints.md: Update copyright year for my changes.
24973
24974         PR target/43484
24975         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
24976         used in reg+reg addressing, swap registers.
24977
24978 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
24979
24980         PR debug/43293
24981         * target.h (struct gcc_target): Add code_end hook.
24982         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
24983         if not yet defined.
24984         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
24985         * toplev.c (compile_file): Call targetm.asm_out.code_end
24986         hook before unwind info/debug info output.
24987         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
24988         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
24989         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24990         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
24991         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24992         * config/i386/i386.c (ix86_file_end): Renamed to...
24993         (ix86_code_end): ... this.  Make static.  Don't call
24994         file_end_indicate_exec_stack.  Emit unwind info using
24995         final_start_function/final_end_function.
24996         (darwin_x86_file_end): Remove.
24997         (TARGET_ASM_CODE_END): Define.
24998         * config/i386/i386.h (TARGET_ASM_FILE_END,
24999         NEED_INDICATE_EXEC_STACK): Don't define.
25000         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25001         (TARGET_ASM_FILE_END): Define to darwin_file_end.
25002         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25003         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25004
25005         PR target/43498
25006         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25007         at the beginning and final_end_function at the end.
25008         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25009
25010 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25011
25012         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25013         and Sun as TLS syntax.
25014         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25015         * configure: Regenerate.
25016         * config.in: Regenerate.
25017         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25018         (default_elf_asm_named_section): Use it.
25019         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25020         (i386_output_dwarf_dtprel): Likewise.
25021         (output_addr_const_extra): Likewise.
25022         (output_pic_addr_const): Lowercase @GOTTPOFF.
25023         (output_addr_const_extra): Likewise.
25024         (output_pic_addr_const): Lowercase @GOTNTPOFF.
25025         (output_addr_const_extra): Likewise.
25026         (output_pic_addr_const): Lowercase @INDNTPOFF.
25027         (output_addr_const_extra): Likewise.
25028         (output_pic_addr_const): Lowercase @NTPOFF.
25029         (output_addr_const_extra): Likewise.
25030         (output_pic_addr_const): Lowercase @TPOFF.
25031         (output_addr_const_extra): Likewise.
25032         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25033         (*tls_global_dynamic_64): Likewise.
25034         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25035         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25036
25037         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25038         (ASM_OUTPUT_TLS_COMMON): Use it.
25039         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25040
25041         PR target/38118
25042         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25043         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25044         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25045         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25046         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25047         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25048
25049 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25050
25051         * config/i386/i386.c (override_options): Don't accept
25052         -mtls-dialect=sun any longer.
25053         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25054         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25055         (*tls_local_dynamic_base_32_sun): Likewise.
25056         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25057
25058 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25059
25060         PR debug/43508
25061         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25062         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25063
25064         PR debug/43479
25065         * ira.c (adjust_cleared_regs): New function.
25066         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25067
25068         PR debug/19192
25069         PR debug/43479
25070         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25071         from gimple_block.
25072         * expr.c (expand_expr_real): Restore previous
25073         curr_insn_source_location and curr_insn_block after
25074         expand_expr_real_1 call.
25075         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25076         instead of expand_expr_real_1.
25077
25078 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
25079
25080         PR rtl-optimization/43413
25081         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25082         hard regs too.
25083
25084 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
25085
25086         PR target/43348
25087         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25088         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25089
25090 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25091
25092         * config/i386/i386.c (ix86_target_string): Add -mfma.
25093         Fix a typo in comment.
25094
25095 2010-03-22  Mike Stump  <mikestump@comcast.net>
25096
25097         PR target/23071
25098         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25099         Don't overly align based upon packed packed fields.
25100
25101 2010-03-22  Jason Merrill  <jason@redhat.com>
25102
25103         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25104         Use () rather than [], and move before the element type.
25105
25106 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25107
25108         * doc/configfiles.texi (Configuration Files): Removed
25109         fixinc/Makefile*, intl/Makefile.*.
25110         * doc/makefile.texi: Fixed markup. Abstract from version
25111         control system used.
25112         (Makefile): Removed obsolete java/parse.y example.
25113         * doc/sourcebuild.texi: Likewise.
25114         (Top Level): Added config, gnattools, libdecnumber, libgcc,
25115         libgomp, libssp.  Removed fastjar.
25116         (Miscellaneous Docs): Clarify location.
25117         Added COPYING3, COPYING3.LIB.
25118         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25119
25120 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25121
25122         PR target/38085
25123         * config/i386/i386.c (x86_function_profiler)
25124         [!NO_PROFILE_COUNTERS]: Fix typo.
25125         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25126         instead of callq.
25127
25128 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
25129             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25130
25131         * doc/sourcebuild.texi (Test Directives): Split into six
25132         subsections, with most of the current text in new subsections
25133         Directives, Selectors, and Final Actions.
25134         (Directives): Split list of test directives into multiple
25135         subsubsections.
25136         (Selectors): Describe use and syntax of selectors.
25137         (Effective-Target Keywords): Describe all existing keywords.
25138         (Add Options): Describe features for dg-add-options.
25139         (Require Support): Describe variants of dg-require-support.
25140         (Final Actions): Describe commands to use in dg-final.
25141
25142 2010-03-22  Michael Matz  <matz@suse.de>
25143
25144         PR middle-end/43475
25145         * recog.c (validate_replace_rtx_group): Replace also in
25146         REG_EQUAL and REG_EQUIV notes.
25147
25148 2010-03-22  Richard Guenther  <rguenther@suse.de>
25149
25150         PR tree-optimization/43390
25151         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25152         sure vector extracts are type correct.
25153
25154 2010-03-22  Richard Guenther  <rguenther@suse.de>
25155
25156         PR middle-end/40106
25157         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25158         x * sqrt (x) even when optimizing for size if the target
25159         has native support for sqrt.
25160
25161 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
25162
25163         * varasm.c (make_decl_rtl_for_debug): Also clear
25164         flag_mudflap for the duration of make_decl_rtl call.
25165
25166         PR debug/43443
25167         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25168         locs from preserved VALUEs.
25169
25170 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25171
25172         PR middle-end/42718
25173         * pa.md (movmemsi): Set align to one if zero.
25174         (movmemdi): Likewise.
25175
25176 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
25177
25178         PR target/42321
25179         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25180         with their corresponding prologue pushes.
25181
25182 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
25183
25184         PR target/43156
25185         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25186         at the begining or end.
25187         (spu_expand_epilogue): Likewise.
25188
25189 2010-03-20  Richard Guenther  <rguenther@suse.de>
25190
25191         PR rtl-optimization/43438
25192         * combine.c (make_extraction): Properly zero-/sign-extend an
25193         extraction of the low part of a CONST_INT.  Also handle
25194         CONST_DOUBLE.
25195
25196 2010-03-19  Mike Stump  <mikestump@comcast.net>
25197
25198         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25199         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25200         (override_options): Use SUBTARGET32_DEFAULT_CPU.
25201
25202 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25203
25204         PR c/43211
25205         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25206         an error.
25207
25208 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
25209
25210         PR rtl-optimization/42258
25211         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25212         use that may match DEF.
25213
25214         PR target/40697
25215         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25216         the cost of loading the constant rather than assuming
25217         COSTS_N_INSNS (1).
25218         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25219         outer code is AND, do the same tests as the andsi3 expander and
25220         return COSTS_N_INSNS (1) if and is cheap.
25221
25222         * optabs.c (avoid_expensive_constant): Fix formatting.
25223
25224 2010-03-19  Michael Matz  <matz@suse.de>
25225
25226         PR c++/43116
25227         * attribs.c (decl_attributes): When rebuilding a function pointer
25228         type use the same qualifiers as the original pointer type.
25229
25230 2010-03-19  Martin Jambor  <mjambor@suse.cz>
25231
25232         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25233         and is_gimple_ip_invariant_address.
25234
25235 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25236
25237         Revert
25238         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25239
25240         * config/arm/arm.c (arm_override_options): Turn off
25241         flag_dwarf2_cfi_asm for AAPCS variants.
25242
25243 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25244
25245         PR target/43399
25246         * config/arm/arm.c (emit_multi_reg_push): Update comments.
25247         Use PRE_MODIFY instead of PRE_DEC.
25248         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25249         (vfp_emit_fstmd): Likewise.
25250
25251 2010-03-19  Michael Matz  <matz@suse.de>
25252
25253         PR target/43305
25254         * builtins.c (expand_builtin_interclass_mathfn,
25255         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25256         if that fails.
25257
25258 2010-03-19  Richard Guenther  <rguenther@suse.de>
25259
25260         PR tree-optimization/43415
25261         * tree-ssa-pre.c (phi_translate): Split out worker to ...
25262         (phi_translate_1): ... this.
25263         (phi_translate): Move all caching here.  Cache all NARY
25264         and REFERENCE translations.
25265
25266 2010-03-19  David S. Miller  <davem@davemloft.net>
25267
25268         With help from Eric Botcazou.
25269         * config/sparc/sparc.c: Include dwarf2out.h.
25270         (emit_pic_helper): Delete.
25271         (pic_helper_symbol_name): Delete.
25272         (pic_helper_emitted_p): Delete.
25273         (pic_helper_needed): New.
25274         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25275         (get_pc_thunk_name): New.
25276         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
25277         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25278         Set pic_helper_needed to true.  Don't call emit_pic_helper.
25279         (sparc_expand_prologue): Update load_pic_register call.
25280         (sparc_output_mi_thunk): Likewise.
25281         (sparc_file_end): Emit a hidden comdat symbol for the PIC
25282         thunk if possible.  Output CFI information as needed.
25283
25284 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25285             Jack Howarth  <howarth@bromo.med.uc.edu>
25286
25287         PR target/36399
25288         * config/i386/i386.h: Fix ABI on darwin x86-32.
25289
25290 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
25291
25292         * tree.h: Declare make_decl_rtl_for_debug.
25293         * varasm.c (make_decl_rtl_for_debug): New.
25294         * dwarf2out.c (rtl_for_decl_location): Call it.
25295         * cfgexpand.c (expand_debug_expr): Call it.
25296
25297 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25298
25299         PR bootstrap/43399
25300         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25301         mem_mode.
25302
25303         PR bootstrap/43403
25304         * var-tracking.c (vt_init_cfa_base): Do nothing if
25305         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25306
25307 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
25308
25309         PR debug/42873
25310         * var-tracking.c (canonicalize_vars_star): New.
25311         (dataflow_post_merge_adjust): Use it.
25312
25313 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25314
25315         PR debug/43058
25316         * var-tracking.c (non_suitable_const): New function.
25317         (add_uses): For DEBUG_INSNs with constants, don't record any
25318         value, instead just the constant value itself.
25319         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25320         is not VAR_LOC_UNKNOWN_P, set var to the constant.
25321         (emit_notes_in_bb): Likewise.
25322         (emit_note_insn_var_location): For onepart variables if
25323         cur_loc is a VOIDmode constant, use DECL_MODE.
25324
25325 2010-03-18  Martin Jambor  <mjambor@suse.cz>
25326
25327         PR middle-end/42450
25328         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25329         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25330         all non-clones.  Moved call redirection...
25331         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25332         (cgraph_materialize_all_clones): Dispose of all
25333         combined_args_to_skip bitmaps.
25334         (verify_cgraph_node): Do not check for edges pointing to wrong
25335         nodes in inline clones.
25336         * tree-inline.c (copy_bb): Call
25337         cgraph_redirect_edge_call_stmt_to_callee.
25338         * ipa.c (cgraph_remove_unreachable_nodes): Call
25339         cgraph_node_remove_callees even when there are used clones.
25340
25341 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25342
25343         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25344
25345 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25346
25347         PR target/43383
25348         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25349         for 32bit.
25350
25351 2010-03-18  Michael Matz  <matz@suse.de>
25352
25353         PR middle-end/43419
25354         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25355         into sqrt(x) if we need to preserve signed zeros.
25356
25357 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
25358             Eric Botcazou  <ebotcazou@adacore.com>
25359
25360         PR rtl-optimization/43360
25361         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25362         note if we don't know its invariant status.
25363
25364 2010-03-18  Michael Matz  <matz@suse.de>
25365
25366         PR tree-optimization/43402
25367         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25368         PHI chains of ssa names registered for update.
25369
25370 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
25371
25372         PR target/42427
25373         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25374         non-offsettable and pre_modify update addressing.
25375         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25376         and "2" alternatives "#".
25377         (*movdd_softfloat32): Make all alternatives "#";
25378         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25379         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25380         (*movdf_softfloat32): Make all alternatives "#";
25381         (movdi): Use the new DIFD mode iterator to create a common splitter
25382         for movdi, movdf and movdd patterns.
25383
25384 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25385
25386         * common.opt (dumpdir): Remove redundant tab.
25387
25388 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25389
25390         PR tree-optimization/43347
25391         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25392         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25393
25394 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25395
25396         PR rtl-optimization/42216
25397         * regrename.c (create_new_chain): New function, broken out from...
25398         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25399         appending a use to an empty chain.
25400         (build_def_use): Remove previous changes that convert OP_INOUT to
25401         OP_OUT operands; instead detect the case where an OP_INOUT operand
25402         uses a previously untracked register and create an empty chain for it.
25403
25404 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25405
25406         * doc/extend.texi (Function Attributes): Rewrite unfinished
25407         sentence in ms_abi documentation.
25408
25409 2010-03-17  Alan Modra  <amodra@gmail.com>
25410
25411         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25412         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25413         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25414         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25415
25416 2010-03-16  Richard Henderson  <rth@redhat.com>
25417
25418         PR middle-end/43365
25419         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25420         (lower_try_finally): Save and restore eh_seq around the expansion
25421         of the try-finally.
25422
25423 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25424
25425         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25426         statements before splitting block.
25427
25428 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25429
25430         * doc/sourcebuild.texi (Testsuites): Fix markup.
25431         Use pathnames relative to gcc/testsuite.
25432         (Test Directives): Move description of how timeout is determined.
25433         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25434         (C Tests): Correct gcc.misc-tests directory.
25435         Framework tests now live in gcc.test-framework.
25436
25437 2010-03-16  Richard Guenther  <rguenther@suse.de>
25438
25439         PR middle-end/43379
25440         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25441         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25442
25443 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25444             Alexandre Oliva  <aoliva@redhat.com>
25445
25446         PR tree-optimization/42917
25447         * lambda-code.c (remove_iv): Skip debug statements.
25448         (lambda_loopnest_to_gcc_loopnest): Likewise.
25449         (not_interesting_stmt): Debug statements are not interesting.
25450
25451 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25452
25453         PR debug/43051
25454         PR debug/43092
25455         * cselib.c (cselib_preserve_constants,
25456         cfa_base_preserved_val): New static variables.
25457         (preserve_only_constants): New function.
25458         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25459         clear its REG_VALUES.  If cselib_preserve_constants, don't
25460         empty the whole hash table, but preserve there VALUEs with constants,
25461         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25462         (cselib_preserve_cfa_base_value): New function.
25463         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25464         (cselib_init): Change argument to int bitfield.  Set
25465         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25466         is in it.
25467         (cselib_finish): Clear cselib_preserve_constants and
25468         cfa_base_preserved_val.
25469         * cselib.h (enum cselib_record_what): New enum.
25470         (cselib_init): Change argument to int.
25471         (cselib_preserve_cfa_base_value): New prototype.
25472         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25473         * dse.c (dse_step1): Likewise.
25474         * cfgcleanup.c (thread_jump): Likewise.
25475         * sched-deps.c (sched_analyze): Likewise.
25476         * gcse.c (local_cprop_pass): Likewise.
25477         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25478         If FN is non-NULL, call the callback always and whenever it returns
25479         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25480         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25481         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25482         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25483         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25484         * var-tracking.c: Include recog.h.
25485         (bb_stack_adjust_offset): Remove.
25486         (vt_stack_adjustments): Don't call it, instead just gather the
25487         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25488         (adjust_stack_reference): Remove.
25489         (compute_cfa_pointer): New function.
25490         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25491         (struct adjust_mem_data): New type.
25492         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25493         functions.
25494         (get_address_mode): New function.
25495         (replace_expr_with_values): Use it.
25496         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25497         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25498         (adjust_sets): Remove.
25499         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25500         Use get_address_mode.
25501         (get_adjusted_src): Remove.
25502         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25503         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25504         (add_with_sets): Don't call adjust_sets.
25505         (fp_setter, vt_init_cfa_base): New functions.
25506         (vt_initialize): Change return type to bool.  Move most of pool etc.
25507         initialization to the beginning of the function from end.  Pass
25508         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25509         If !frame_pointer_needed, call vt_stack_adjustment before mos
25510         vector is filled, call vt_init_cfa_base if argp/framep has been
25511         eliminated to sp.  If frame_pointer_needed and argp/framep has
25512         been eliminated to hard frame pointer, set
25513         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25514         encountering fp setter in the prologue.  For MO_ADJUST, call
25515         log_op_type before pusing the op into mos vector, not afterwards.
25516         Call adjust_insn before cselib_process_insn/add_with_sets,
25517         call cancel_changes (0) afterwards.
25518         (variable_tracking_main_1): Adjust for vt_initialize calling
25519         vt_stack_adjustments and returning whether it succeeded or not.
25520
25521 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25522
25523         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25524         debug statements.
25525
25526 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25527
25528         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25529         has been set.
25530         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25531         drap_reg has not been set.
25532
25533 2010-03-15  Michael Matz  <matz@suse.de>
25534
25535         PR middle-end/43300
25536         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25537         use it to expand block copies.
25538         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25539         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25540         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25541
25542 2010-03-15  Richard Guenther  <rguenther@suse.de>
25543
25544         PR tree-optimization/43367
25545         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25546         elimination check.
25547
25548 2010-03-15  Richard Guenther  <rguenther@suse.de>
25549
25550         PR tree-optimization/43317
25551         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25552
25553 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25554
25555         PR tree-optimization/43141
25556         * tree-sra.c (create_abstract_origin): New function.
25557         (modify_function): Call create_abstract_origin.
25558
25559 2010-03-15  Chris Demetriou  <cgd@google.com>
25560
25561         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25562         wasn't copied.
25563
25564 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25565
25566         PR middle-end/43354
25567         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25568         call insert_out_of_ssa_copy for default definitions.
25569
25570 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25571
25572         * graphite-clast-to-gimple.c (my_long_long): Defined.
25573         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25574         * graphite-sese-to-poly.c (my_long_long): Defined.
25575         (scop_ivs_can_be_represented): Use it.
25576
25577 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25578
25579         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25580         graphite-max-bbs-per-function, and loop-block-tile-size.
25581         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25582         with "maximum".
25583         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25584
25585 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25586
25587         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25588         forward declaration.
25589         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25590         (add_upper_bounds_from_estimated_nit): New.
25591         (build_loop_iteration_domains): Use it.
25592
25593 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25594
25595         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25596
25597 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25598
25599         PR middle-end/43306
25600         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25601         should be an INTEGER_CST.  Also handle CASE_CONVERT.
25602
25603 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25604
25605         * graphite.c (graphite_initialize): To bound the number of bbs per
25606         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25607         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25608         * doc/invoke.texi: Document it.
25609
25610 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25611
25612         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25613         * graphite-sese-to-poly.h (build_poly_scop): Same.
25614
25615 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25616
25617         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25618         the number of parameters in the scop.  Use as an upper bound
25619         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25620         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25621         * doc/invoke.texi: Document it.
25622
25623 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
25624
25625         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25626         * doc/c-tree.texi: Remove.
25627         * doc/generic.texi: Merge c-tree.texi here.
25628         * doc/gccint.texi (Trees): Remove menu entry.
25629         (c-tree.texi): Remove @include.
25630         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25631         * doc/languages.texi (Reading RTL): Ditto.
25632
25633 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
25634
25635         PR target/42869
25636         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25637
25638 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25639
25640         PR middle-end/42431
25641         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25642         code added to work around reload clobbering CONST insns.
25643
25644 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
25645
25646         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25647         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25648         (cselib_preserve_only_values): Remove retain argument, don't
25649         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25650         * cselib.h (cselib_preserve_only_values): Remove retain argument.
25651         * var-tracking.c (micro_operation): Move insn field before union.
25652         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25653         (struct variable_tracking_info_def): Remove n_mos field, change
25654         mos into a vector of micro_operations.
25655         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25656         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25657         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25658         changing into a vector.
25659         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
25660         come before all other uops generated by add_stores.
25661         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25662         argument removal.
25663         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
25664         a vector.  Run just one pass over the bbs instead of separate counting
25665         and computation phase.
25666         (vt_finalize): Free VTI (bb)->mos vector instead of array.
25667
25668         PR debug/43329
25669         * tree-inline.c (remap_decls): Put old_var rather than origin_var
25670         into *nonlocalized_list vector.
25671         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25672         even if origin is non-NULL.
25673         (gen_variable_die): Likewise.
25674         (process_scope_var): Don't change origin.
25675         (gen_decl_die): Likewise.
25676         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25677         before adding new edges instead of after it, fix moving over
25678         debug stmts.
25679
25680 2010-03-11  David S. Miller  <davem@davemloft.net>
25681
25682         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25683         of four.
25684         * configure: Rebuild.
25685
25686 2010-03-11  Martin Jambor  <mjambor@suse.cz>
25687
25688         PR tree-optimization/43257
25689         * tree.c (assign_assembler_name_if_neeeded): New function.
25690         (free_lang_data_in_cgraph): Assembler name assignment moved to the
25691         above new function.
25692         * tree.h (assign_assembler_name_if_neeeded): Declare.
25693         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25694         the function if needed.
25695
25696 2010-03-11  Chris Demetriou  <cgd@google.com>
25697
25698         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25699         include/stdint-gcc.h, and include/stdint.h world-readable.
25700
25701 2010-03-11  Richard Guenther  <rguenther@suse.de>
25702
25703         PR tree-optimization/43255
25704         * tree-vrp.c (process_assert_insertions_for): Do not insert
25705         asserts for trivial conditions.
25706
25707 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25708
25709         PR tree-optimization/43280
25710         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25711         generation.  Move calculation of size out of the if branch.
25712         (find_bswap): Modify compare number generation.
25713
25714 2010-03-11  Richard Guenther  <rguenther@suse.de>
25715
25716         PR lto/43200
25717         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25718         (input_gimple_stmt): Fixup handled component types during
25719         operand read.  Also fix up decls in ADDR_EXPRs.
25720
25721 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
25722
25723         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
25724         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
25725
25726 2010-03-10  Jan Hubicka  <jh@suse.cz>
25727
25728         PR c/43288
25729         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
25730         * varasm.c (get_variable_section): Don't do that here...
25731         (make_decl_rtl): ... and here.
25732         (do_assemble_alias): Produce decl RTL.
25733         (assemble_alias): Likewise.
25734
25735 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25736
25737         PR debug/43290
25738         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
25739         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
25740         of fde->vdrap_reg.
25741         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
25742         (based_loc_descr): Only express drap or vdrap regno based expressions
25743         using DW_OP_fbreg when not optimizing.
25744         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
25745         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
25746         REG_CFA_SET_VDRAP note.
25747
25748 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
25749
25750         PR tree-optimization/43236
25751         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
25752         error in calculation of base address in reverse iteration case.
25753         (generate_builtin): Take number of latch executions if the statement
25754         is in the latch.
25755
25756 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
25757
25758         PR middle-end/42859
25759         * tree-eh.c: Include pointer-set.h.
25760         (lower_eh_dispatch): Filter out duplicate case labels and
25761         remove the unneeded edge when the label is unused.  Return
25762         true when some edges are removed.
25763         (execute_lower_eh_dispatch): When any lowering resulted in
25764         removing an edge, also delete unreachable blocks.
25765
25766 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25767
25768         PR bootstrap/43287
25769         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25770         UNSPEC_MACHOPIC_OFFSET.
25771
25772 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
25773
25774         PR target/43294
25775         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
25776         (m68k_delegitimize_address): New function.
25777
25778 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
25779
25780         PR debug/43299
25781         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
25782
25783         PR debug/43299
25784         * var-tracking.c (adjust_sets): New function.
25785         (count_with_sets, add_with_sets): Use it.
25786         (get_adjusted_src): New inline function.
25787         (add_stores): Use it.
25788
25789         PR debug/43304
25790         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
25791         call cselib_dummy_expand_value_rtx_cb instead of
25792         cselib_expand_value_rtx_cb.
25793
25794         PR debug/43293
25795         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
25796         * config/i386/i386.c: Include debug.h and dwarf2out.h.
25797         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
25798         and .cfi_endproc around the pic thunks.
25799         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
25800         all queued unwind info register saves are saved before the call.
25801         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
25802         considered as sp-=4 for unwind info and the pop as sp+=4 which
25803         also clobbers dest, but doesn't actually restore it.
25804
25805         PR debug/43290
25806         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
25807         RTX_FRAME_RELATED_P.
25808
25809 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25810
25811         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
25812         whitespaces in output template.
25813
25814 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25815
25816         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
25817         out array boundary.
25818
25819 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25820
25821         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
25822         builtins.exp in a separate job.
25823
25824 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25825
25826         * graphite-sese-to-poly.c (add_param_constraints): Use
25827         lower_bound_in_type and upper_bound_in_type.
25828
25829 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25830
25831         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
25832         instead of unsigned_type_node.
25833
25834 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25835             Reza Yazdani  <reza.yazdani@amd.com>
25836
25837         PR middle-end/43065
25838         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
25839         on pointer type parameters.
25840
25841 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25842
25843         PR middle-end/42644
25844         PR middle-end/42130
25845         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
25846         handle conversions from pointer to integers.
25847         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
25848         induction variable, to be able to work with code generated by CLooG.
25849         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
25850         (build_poly_scop): Bail out if we cannot codegen a loop.
25851
25852 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25853
25854         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
25855         code generation with gloog_error.
25856
25857 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25858
25859         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
25860         Call fold_convert on all the returned values.
25861         (expand_scalar_variables_expr): Pass to
25862         expand_scalar_variables_ssa_name the type of the resulting expression.
25863
25864 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25865
25866         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
25867         ppl_min_for_le_pointset.
25868         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
25869         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
25870
25871 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25872
25873         * graphite-dependences.c (map_into_dep_poly): Removed.
25874         (dependence_polyhedron_1): Use combine_context_id_scat.
25875
25876 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25877
25878         * graphite-poly.h (struct poly_scattering): Add layout documentation.
25879         (struct poly_bb): Same.
25880         (combine_context_id_scat): New.
25881
25882 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25883
25884         PR middle-end/42326
25885         * sese.c (name_defined_in_loop_p): Return false for default
25886         definitions.
25887
25888 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25889
25890         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
25891         and clean up the logic.
25892
25893 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25894
25895         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
25896         early return.
25897
25898 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25899
25900         * var-tracking.c (remove_cselib_value_chains): Define only for
25901         ENABLE_CHECKING.
25902         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
25903         delete_slot_part, emit_notes_for_differences_1): Don't call
25904         remove_cselib_value_chains here.
25905         (set_slot_part, emit_notes_for_differences_2): Don't call
25906         add_cselib_value_chains here.
25907         (preserved_values): New vector.
25908         (preserve_value): New function.
25909         (add_uses, add_stores, vt_add_function_parameters): Use it
25910         instead of cselib_preserve_value.
25911         (changed_values_stack): New vector.
25912         (check_changed_vars_0): New function.
25913         (check_changed_vars_1, check_changed_vars_2): Use it.
25914         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
25915         changed_values_stack VALUEs.
25916         (vt_emit_notes): For all preserved_values call
25917         add_cselib_value_chains.  If ENABLE_CHECKING call
25918         remove_cselib_value_chains before verifying value_chains is empty.
25919         Initialize and free changed_values_stack.
25920         (vt_initialize): Initialize preserved_values.
25921         (vt_finalize): Free preserved_values.
25922
25923 2010-03-08  Richard Guenther  <rguenther@suse.de>
25924
25925         PR tree-optimization/43269
25926         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
25927         region detection.
25928
25929 2010-03-08  Martin Jambor  <mjambor@suse.cz>
25930
25931         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
25932         (ipa_is_param_called): Removed.
25933         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
25934         (ipa_print_node_params): Do not print the called flag.
25935         (ipa_write_node_info): Do not stream the called flag.
25936         (ipa_read_node_info): Likewise.
25937
25938 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
25939
25940         PR debug/43176
25941         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
25942         * cselib.c (struct expand_value_data): Add dummy field.
25943         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
25944         dummy to false.
25945         (cselib_dummy_expand_value_rtx_cb): New function.
25946         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
25947         any rtl.
25948         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
25949         * var-tracking.c: Include pointer-set.h.
25950         (variable): Change n_var_parts to char from int.  Add
25951         cur_loc_changed and in_changed_variables fields.
25952         (variable_canonicalize): Remove.
25953         (shared_var_p): New inline function.
25954         (unshare_variable): Maintain cur_loc_changed and
25955         in_changed_variables fields.  If var was in changed_variables,
25956         replace it there with new_var.  Just copy cur_loc instead of
25957         resetting it to something else.
25958         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
25959         (dataflow_set_union): Don't call variable_canonicalize.
25960         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
25961         of their DEBUG_EXPR_TREE_DECLs.
25962         (canonicalize_loc_order_check): Verify that cur_loc is NULL
25963         and in_changed_variables and cur_loc_changed is false.
25964         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
25965         and cur_loc_changed.  Don't update cur_loc here.
25966         (variable_merge_over_src): Don't call variable_canonicalize.
25967         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
25968         removing loc that is equal to cur_loc, clear cur_loc,
25969         set cur_loc_changed and ensure variable_was_changed is called.
25970         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
25971         compare pointers in cur_loc check, if it is equal to loc,
25972         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
25973         (variable_different_p): Remove compare_current_location argument,
25974         don't compare cur_loc.
25975         (dataflow_set_different_1): Adjust variable_different_p caller.
25976         (variable_was_changed): If dv had some var in changed_variables
25977         already, reset in_changed_variables flag for it and propagate
25978         cur_loc_changed over to the new variable.  On empty var
25979         always set cur_loc_changed.  Set in_changed_variables on whatever
25980         var is added to changed_variables.
25981         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
25982         Use shared_var_p.  When removing loc that is equal to cur_loc,
25983         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
25984         end, don't set it to something else, just call variable_was_changed.
25985         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
25986         loc being removed, clear cur_loc and set cur_loc_changed.
25987         Set cur_loc_changed if all locations have been removed.
25988         (struct expand_loc_callback_data): New type.
25989         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
25990         allocated.  Always create SUBREGs if simplify_subreg failed.
25991         Prefer to use cur_loc, when that fails and still in
25992         changed_variables (and seen first time) recompute it.  Set
25993         cur_loc_changed of variables which had to change cur_loc and
25994         compute elcd->cur_loc_changed if any of the subexpressions used
25995         had to change cur_loc.
25996         (vt_expand_loc): Adjust to pass arguments in
25997         expand_loc_callback_data structure.
25998         (vt_expand_loc_dummy): New function.
25999         (emitted_notes): New variable.
26000         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26001         that weren't used for any other decl in current
26002         emit_notes_for_changes call call vt_expand_loc_dummy to update
26003         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
26004         first loc_chain location if NULL before.  Always use just
26005         cur_loc instead of first loc_chain location.  When cur_loc_changed
26006         is false, when not --enable-checking=rtl just don't emit any note.
26007         When rtl checking, compute the note and assert it is the same
26008         as previous note.  Clear cur_loc_changed and in_changed_variables
26009         at the end before removing from changed_variables.
26010         (check_changed_vars_3): New function.
26011         (emit_notes_for_changes): Traverse changed_vars to call
26012         check_changed_vars_3 on each changed var.
26013         (emit_notes_for_differences_1): Clear cur_loc_changed and
26014         in_changed_variables.  Recompute cur_loc of new_var.
26015         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26016         (vt_emit_notes): Initialize and destroy emitted_notes.
26017
26018 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
26019
26020         PR rtl-optimization/42220
26021         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26022         Use verify_reg_tracked to determine if we should use OP_OUT rather
26023         than OP_INOUT.
26024         (build_def_use): If we see an in-out operand for a register that we
26025         know nothing about, treat is an output if possible, fail the block if
26026         not.
26027
26028 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26029
26030         PR debug/42897
26031         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26032         permanently.
26033
26034 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26035
26036         PR debug/42897
26037         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26038         uses of relevant DEFs that are dead outside the loop too.
26039
26040 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26041
26042         * var-tracking.c (dataflow_set_merge): Swap src and src2.
26043         Reverted:
26044         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26045         PR debug/41371
26046         * var-tracking.c (values_to_unmark): New variable.
26047         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26048         values_to_unmark vector.  Moved body to...
26049         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26050         instead queue it into values_to_unmark vector.
26051         (vt_find_locations): Free values_to_unmark vector.
26052
26053 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26054
26055         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26056         (site.exp): Export them when plugins are enabled.
26057
26058 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
26059
26060         PR middle-end/42326
26061         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26062         that contain scevs.
26063         (chrec_fold_multiply): Same.
26064
26065 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
26066
26067         PR c/43248
26068         * c-decl.c (build_compound_literal): Return early if init is
26069         an error_mark_node.
26070
26071 2010-03-04  Martin Jambor  <mjambor@suse.cz>
26072
26073         PR tree-optimization/43164
26074         PR tree-optimization/43191
26075         * tree-sra.c (type_consists_of_records_p): Reject records with
26076         zero-size bit-fields at the end.
26077
26078 2010-03-04  Mike Stump  <mikestump@comcast.net>
26079
26080         * Makefile.in (TAGS): Remove *.y.
26081
26082 2010-03-04  Richard Guenther  <rguenther@suse.de>
26083
26084         PR tree-optimization/40761
26085         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26086         in reverse order.
26087         (my_rev_post_order_compute): New function.
26088         (init_pre): Call it.
26089
26090 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26091
26092         PR middle-end/43209
26093         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26094         decrease the cost of an IV candidate when the cost is infinite.
26095
26096 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26097
26098         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26099         Use '3DNow!' for the extension of that name, ensure normal space
26100         after the string.
26101         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26102
26103 2010-03-03  Jeff Law  <law@redhat.com>
26104
26105         * PR middle-end/32693
26106         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26107         than gen_rtx_SUBREG.
26108         (extract_bit_field_1): Likewise.
26109
26110 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
26111
26112         * doc/sourcebuild.texi (Test directives): Document that arguments
26113         include-opts and exclude-opts are now optional for dg-skip-if,
26114         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26115
26116 2010-03-03  Jason Merrill  <jason@redhat.com>
26117
26118         PR c++/12909
26119         * cgraph.h (varpool_node): Add extra_name field.
26120         * varpool.c (varpool_extra_name_alias): New.
26121         (varpool_assemble_decl): Emit extra name aliases.
26122         (varpool_mark_needed_node): Look past an extra name alias.
26123         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26124         * lto-streamer-in.c (lto_input_tree): Read it.
26125         * lto-streamer-out.c (output_unreferenced_globals): Write it.
26126
26127 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26128
26129         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26130         (sparc*-*-solaris2*): ...this.
26131
26132 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
26133
26134         PR debug/43229
26135         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26136         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
26137         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26138         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26139
26140         PR debug/43237
26141         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26142         fallthrough to default handling, just with want_address 0 instead of 2.
26143         For single element lists, add_AT_loc directly, otherwise create an
26144         artificial variable DIE and stick location list to it.
26145
26146         PR debug/43177
26147         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26148         (VAL_EXPR_HAS_REVERSE): Define.
26149         (reverse_op): New function.
26150         (add_stores): For reversible operations add an extra MO_VAL_USE.
26151
26152 2010-03-02  Jason Merrill  <jason@redhat.com>
26153
26154         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26155
26156 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
26157
26158         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26159         (sparc64-*-linux*): Likewise.
26160         (sparc64-*-solaris2*): Include assembler files before linker ones.
26161         (sparc-*-solaris2*): Simplify and reorder to match previous case.
26162         * config/sparc/gas.h: Delete.
26163         * config/sparc/sol2-64.h: Add copyright notice.
26164         * config/sparc/sol2-gas-bi.h: Likewise.
26165         * config/sparc/sol2-gld.h: Likewise.
26166         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26167         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26168         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26169         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26170         (sparc_elf_asm_named_section): Rename into...
26171         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
26172
26173 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
26174
26175         * config/alpha/alpha.c (override_options): Fix -mtune error message.
26176
26177 2010-03-02  Jeff Law  <law@redhat.com>
26178
26179         PR middle-end/42431
26180         * reload1.c (rtx_p, substitute_stack): Declare.
26181         (substitute): Record addresses of changed rtxs.
26182         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26183         Restore the original rtx when complete.
26184         (reload): Free subsitute_stack when complete.
26185
26186 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
26187
26188         * doc/gccint.texi (menu): Add Testsuites as a chapter.
26189         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26190         new chapter.
26191         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26192         LTO Testing, gcov Testing, profopt Testing, compat Testing,
26193         Torture Tests): Change from subsection to section.
26194
26195 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
26196             Steven Bosscher  <steven@gcc.gnu.org>
26197
26198         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26199         instead of bb.
26200
26201 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
26202
26203         PR middle-end/42640
26204         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26205         the assignment from the new induction variable to the assignment
26206         of the value from the original loop PHI function.
26207
26208 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
26209             Daniel Jacobowitz  <dan@codesourcery.com>
26210
26211         * doc/sourcebuild.texi (Test directives): Clarify options to
26212         dg-skip-if.
26213
26214 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26215
26216         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26217         Disable cfi directives unless GCC and gas agree on using read-only
26218         .eh_frame sections for 64-bit.
26219         * configure: Regenerate.
26220
26221 2010-03-01  Richard Guenther  <rguenther@suse.de>
26222
26223         PR tree-optimization/43220
26224         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26225         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26226
26227 2010-03-01  Richard Guenther  <rguenther@suse.de>
26228             Martin Jambor  <mjambor@suse.cz>
26229
26230         PR middle-end/41250
26231         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26232         gimplified parameters.
26233
26234 2010-03-01  Christian Bruel  <christian.bruel@st.com>
26235
26236         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26237
26238 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
26239
26240         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26241
26242 2010-03-01  Richard Guenther  <rguenther@suse.de>
26243
26244         PR middle-end/43213
26245         * expr.c (expand_assignment): Use the alias-oracle to tell
26246         if the rhs aliases the result decl.
26247
26248 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26249
26250         PR pch/14940
26251         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26252         to sol_gt_pch_get_address.
26253         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26254         64-bit, SPARC and x86.
26255         (sol_gt_pch_get_address): New function.
26256
26257 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
26258
26259         * toplev.h (inform_n, error_n): Declare.
26260         * diagnostic.c (inform_n, error_n): New function.
26261
26262 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
26263
26264         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26265         has no rtl yet when processing local_decls, queue it and recheck
26266         if deferred stack allocation hasn't assigned it rtl.
26267
26268 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
26269
26270         * config/sh/sh.c (unspec_bbr_uid): New.
26271         (gen_block_redirect): Use it instead of INSN_UID.
26272         (gen_far_branch): Likewise.
26273
26274 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26275
26276         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26277         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26278
26279 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26280
26281         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26282         (Warning Options): -Wno-conversion-null is valid for
26283         Objective-C++ as well.
26284         * doc/tm.texi (Named Address Spaces): Likewise.
26285         * doc/plugins.texi (Plugins): Replace TABs with spaces.
26286         * doc/tree-ssa.texi (Tree SSA): Likewise.
26287
26288 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26289
26290         PR bootstrap/43202
26291         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26292         by default.  Don't set the default arch for
26293         i[34567]86-*-darwin*|x86_64-*-darwin*.
26294
26295 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26296
26297         PR bootstrap/43202
26298         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26299         default.  Set the default 32bit/64bit archs with $with_arch
26300         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26301
26302 2010-02-27  Richard Guenther  <rguenther@suse.de>
26303
26304         PR tree-optimization/43186
26305         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26306         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26307         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26308         unroller iterations.
26309
26310 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26311
26312         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26313         required and i[34567]86-*-* targets don't support 64bit ISA.
26314
26315 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
26316
26317         PR ada/43096
26318         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26319         the same alias set.
26320
26321 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26322
26323         * config.gcc: Set the default arch at least to Prescott for
26324         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26325         if SSE math is enabled.
26326
26327 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26328
26329         * diagnostic.c (diagnostic_initialize): Update.
26330         (diagnostic_report_diagnostic): Test inhibit_notes_p for
26331         informative notes.
26332         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26333         (diagnostic_inhibit_notes): New.
26334         * toplev.c (process_options): inhibit notes with -fcompare-debug.
26335
26336 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26337
26338         PR c/20631
26339         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26340         * doc/standards.texi: Likewise.
26341         * doc/extend.texi: Likewise.
26342         * doc/trouble.texi: Likewise.
26343         * doc/cppopts.texi: Likewise.
26344         * doc/install.texi: Likewise.
26345         * c.opt (std=c90,std=gnu90): New options.
26346         * c-opts.c (c_common_handle_option): Handle them.
26347
26348 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26349
26350         PR c/24577
26351         * c-decl.c (undeclared_variable): Use an informative note.
26352
26353 2010-02-26  Richard Guenther  <rguenther@suse.de>
26354
26355         PR tree-optimization/43186
26356         * gimple.h (gimple_fold): Remove.
26357         * gimple.c (gimple_fold): Remove.  Inline into single user ...
26358         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26359         Try harder for conditions.
26360
26361 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26362
26363         PR debug/43190
26364         * function.c (used_types_insert): Don't skip through named pointer
26365         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
26366         and it is different from the main variant's type.
26367
26368 2010-02-26  Nick Clifton  <nickc@redhat.com>
26369
26370         * config/rx/rx.md (sminsi3): Remove bogus alternative.
26371
26372 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26373
26374         * config.gcc: Support --with-fpmath=sse for x86.
26375
26376         * config/i386/ssemath.h: New.
26377
26378         * doc/install.texi (--with-fpmath=sse): Documented.
26379
26380 2010-02-26  Richard Guenther  <rguenther@suse.de>
26381
26382         PR tree-optimization/43188
26383         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26384         vector types of over-aligned element type.
26385
26386 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26387
26388         PR target/43175
26389         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26390         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26391
26392 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26393
26394         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26395
26396 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26397
26398         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26399         * var-tracking.c: Include diagnostic.h.
26400         (debug_dv): New function.
26401         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26402
26403         PR debug/43160
26404         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26405         (add_value_chain, add_value_chains, remove_value_chain,
26406         remove_value_chains): Handle DEBUG_EXPRs.
26407         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26408
26409         PR debug/43161
26410         * regcprop.c (struct queued_debug_insn_change): New type.
26411         (struct value_data_entry): Add debug_insn_changes field.
26412         (struct value_data): Add n_debug_insn_changes field.
26413         (debug_insn_changes_pool): New variable.
26414         (free_debug_insn_changes, apply_debug_insn_changes,
26415         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26416         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26417         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26418         fields.
26419         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26420         changes for them.
26421         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26422         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26423         changes, call cprop_find_used_regs via note_stores.
26424         (copyprop_hardreg_forward): When copying vd from predecessor
26425         which has any queued DEBUG_INSN changes, make sure the pointers are
26426         cleared.  At the end call df_analyze and then if there are any
26427         DEBUG_INSN changes queued at the end of some basic block for still
26428         live registers, apply them.
26429         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26430
26431 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26432
26433         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26434         (arm*-*-*): Ditto.
26435
26436 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26437
26438         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26439         targets.  Set the default with_cpu/with_arch from arch/cpu.
26440         Allow x86-64 and native for with_cpu/with_arch.
26441
26442 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26443
26444         * ebitmap.c: Change calls to verify_popcount with calls to
26445         sbitmap_verify_popcount.
26446         (ebitmap_clear_bit): Fixed map->cacheindex test and
26447         map>cache update when bit clearing results in an empty
26448         element.
26449
26450 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26451
26452         PR target/43154
26453         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26454         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26455         and support both V2DF and V2DI modes.
26456         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26457         support both V2DF and V2DI modes.
26458         (general): Delete trailing whitespace from a few patterns.
26459
26460         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26461         V2DF/V2DI interleave high/low builtins.
26462
26463         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26464         new VSX builtins.
26465
26466         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26467         interleave high/low functions.
26468
26469 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26470
26471         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26472         #pragma extern_prefix.
26473
26474 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26475
26476         PR debug/43166
26477         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26478         BLKmode, assert op0 is a MEM and just adjust its mode.
26479
26480         PR debug/43165
26481         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26482         if bitpos isn't multiple of mode's bitsize.
26483
26484 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26485
26486         * c.opt (-ftemplate-depth=): New.
26487         (-ftemplate-depth-): Deprecate.
26488         * optc-gen.awk: Handle -ftemplate-depth=.
26489         * opth-gen.awk: Likewise.
26490         * c-opts.c (c_common_handle_option): Likewise.
26491         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26492
26493 2010-02-24  Jason Merrill  <jason@redhat.com>
26494
26495         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26496
26497 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26498
26499         * cfg.c (alloc_aux_for_block): Remove inline.
26500         (alloc_aux_for_edge): Likewise.
26501
26502 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26503
26504         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26505
26506 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26507
26508         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26509         * config/i386/sol2-gas.h: New file.
26510         * config.gcc (i[34567]86-*-solaris2*): Use it.
26511
26512 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26513
26514         PR c/43128
26515         * c-typeck.c (ep_convert_and_check): New.
26516         (build_conditional_expr): Use it.
26517         (build_binary_op): Likewise.
26518
26519 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26520
26521         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26522
26523         PR debug/43150
26524         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26525         bounds even for -O+.
26526         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26527         expr needs to have DECL_NAME set.
26528
26529 2010-02-24  Nick Clifton  <nickc@redhat.com>
26530
26531         * config/mep/mep.c: Include gimple.h.
26532         (mep_function_uses_sp): Delete unused function.
26533         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26534         parameters.  Use unsigned integers to count args.  Return a
26535         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26536
26537 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26538
26539         PR target/43107
26540         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26541         greater or equal to nelt instead of 2 * nelt.
26542         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26543         with nelt - 1.
26544
26545 2010-02-23  Jason Merrill  <jason@redhat.com>
26546
26547         PR debug/42800
26548         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26549         in cfun->local_decls even if they have register types.
26550
26551         PR c++/42837
26552         * stor-layout.c (place_field): Don't warn about unnecessary
26553         DECL_PACKED if the type is packed.
26554
26555 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26556
26557         PR target/43139
26558         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26559         GOTOFF relocs, even when the base reg isn't pic pointer.
26560
26561 2010-02-23  Michael Matz  <matz@suse.de>
26562
26563         PR debug/43077
26564         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26565         (expand_gimple_basic_block): Generate and use debug temps if there
26566         are debug uses left after the last real use of TERed ssa names.
26567         Unlink debug immediate uses when they are expanded.
26568
26569 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26570
26571         PR 43123
26572         * config/i386/i386.c (override_options): Reorganise to provide
26573         better error messages.
26574
26575 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26576
26577         PR middle-end/43083
26578         * graphite-scop-detection.c (create_single_exit_edge): Move
26579         the call to find_single_exit_edge to....
26580         (create_sese_edges): ...here.  Don't handle multiple edges
26581         exiting the function.
26582         (build_graphite_scops): Don't handle multiple edges
26583         exiting the function.
26584
26585 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26586
26587         PR middle-end/43097
26588         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26589         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26590
26591 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26592
26593         PR middle-end/43026
26594         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26595
26596 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26597
26598         PR c++/43126
26599         * c-typeck.c (convert_arguments): Print declaration location.
26600         * c-common.c (validate_nargs): Rename as
26601         builtin_function_validate_nargs.
26602         (check_builtin_function_arguments): Update.
26603
26604 2010-02-22  Richard Guenther  <rguenther@suse.de>
26605
26606         PR lto/43045
26607         * tree-inline.c (declare_return_variable): Use the type of
26608         the call stmt lhs if available.
26609
26610 2010-02-22  Duncan Sands  <baldrick@free.fr>
26611
26612         * passes.c (register_pass): Always consider all pass lists when
26613         ref_pass_instance_number is zero.
26614
26615 2010-02-22  Richard Guenther  <rguenther@suse.de>
26616
26617         PR tree-optimization/42749
26618         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26619         parameter.  Do arithmetic in the original type.
26620         (update_accumulator_with_ops): Likewise.
26621         (adjust_accumulator_values): Adjust.
26622
26623 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26624
26625         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26626         (QI to BLKmode splitter): New splitter.
26627
26628 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
26629
26630         * config/i386/i386.c (initial_ix86_tune_features): Turn on
26631         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26632
26633 2010-02-22  Richard Guenther  <rguenther@suse.de>
26634
26635         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26636
26637 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
26638
26639         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26640         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26641         ($(T)crti.o, $(T)crtn.o): Remove rules.
26642
26643 2010-02-21  Tobias Burnus  <burnus@net-b.de>
26644
26645         PR fortran/35259
26646         * doc/invoke.texi (-fassociative-math): Document that this
26647         option is automatically enabled for Fortran.
26648
26649 2010-02-20  David S. Miller  <davem@davemloft.net>
26650
26651         * configure.ac: Test if linker and assembler properly support
26652         GOTDATA_OP relocations.
26653         * configure: Rebuild.
26654         * config.in: Likewise.
26655         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26656         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26657         (movsi_high_pic): Likewise.
26658         (movdi_lo_sum_pic): Likewise.
26659         (movdi_high_pic): Likewise.
26660         (movsi_pic_gotdata_op): New pattern.
26661         (movdi_pic_gotdata_op): Likewise.
26662         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26663         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26664
26665 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
26666
26667         PR target/43067
26668         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26669         attribute to ssemul.
26670         (xop_mulv2div2di3_high): Ditto.
26671
26672 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26673
26674         PR c++/35669
26675         * c.opt (Wconversion-null): New option.
26676         * doc/invoke.texi (Wconversion-null): Document.
26677
26678 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26679
26680         * common.opt (Wlarger-than-): Add Undocumented.
26681
26682 2010-02-19  Mike Stump  <mikestump@comcast.net>
26683
26684         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26685
26686 2010-02-19  Jason Merrill  <jason@redhat.com>
26687
26688         PR target/40332
26689         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26690         * configure: Likewise.
26691
26692 2010-02-20  Alan Modra  <amodra@gmail.com>
26693
26694         PR middle-end/42344
26695         * cgraph.h (cgraph_make_decl_local): Declare.
26696         * cgraph.c (cgraph_make_decl_local): New function.
26697         (cgraph_make_node_local): Use it.
26698         * cgraphunit.c (cgraph_function_versioning): Likewise.
26699         * ipa.c (function_and_variable_visibility): Likewise.
26700
26701 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26702
26703         PR bootstrap/43121
26704         * except.c (sjlj_emit_function_enter): Don't call
26705         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26706         directly.
26707         * rtl.h (add_reg_br_prob_note): Remove prototype.
26708
26709 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26710
26711         PR 41779
26712         * c-common.c (conversion_warning): Remove widening conversions
26713         before checking the conversion of integers to reals.
26714
26715 2010-02-19  Mike Stump  <mikestump@comcast.net>
26716
26717         PR middle-end/43125
26718         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26719
26720         PR objc/43061
26721         * cgraphunit.c (process_function_and_variable_attributes): Check
26722         DECL_PRESERVE_P instead of looking up attribute "used".
26723         * ipa-pure-const.c (check_decl): Likewise.
26724         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
26725         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
26726         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
26727         instead of attribute "used".
26728         * config/sol2-c.c (solaris_pragma_init): Likewise.
26729         (solaris_pragma_fini): Likewise.
26730
26731 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26732
26733         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
26734         Use XCNEW instead of xcalloc.
26735         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
26736         XNEW instead of xmalloc.
26737         (get_fields): Use XNEWVEC instead of xmalloc.
26738
26739         PR debug/43084
26740         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
26741         populate vars array.
26742         (create_new_general_access): For debug stmts just reset value.
26743         (get_stmt_accesses): For accesses within debug stmts just record them
26744         using add_access_to_acc_sites instead of preventing the peeling or
26745         counting them as accesses.
26746
26747         PR middle-end/42233
26748         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
26749
26750 2010-02-19  Richard Guenther  <rguenther@suse.de>
26751
26752         PR tree-optimization/42916
26753         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
26754         instructions.
26755
26756 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26757
26758         * configure.ac: Replace all uses of changequote in macro arguments
26759         with proper quoting.
26760
26761 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26762
26763         PR middle-end/42233
26764         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
26765
26766 2010-02-19  Richard Guenther  <rguenther@suse.de>
26767
26768         PR tree-optimization/42944
26769         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
26770         test for aliasing with errno.
26771
26772 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26773
26774         PR middle-end/42233
26775         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
26776         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
26777         * dojump.c: Include output.h.
26778         (inv): New inline function.
26779         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
26780         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
26781         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
26782         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
26783         argument, pass it down to other calls.
26784         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
26785         add REG_BR_PROB note to the conditional jump.
26786         * cfgexpand.c (add_reg_br_prob_note): Removed.
26787         (expand_gimple_cond): Don't call it, add the probability
26788         as last argument to jumpif_1/jumpifnot_1.
26789         * Makefile.in (dojump.o): Depend on output.h.
26790         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
26791         callers.
26792         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
26793         * stmt.c (do_jump_if_equal): Likewise.
26794         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
26795         * loop-unswitch.c (compare_and_jump_seq): Likewise.
26796         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
26797         Likewise.
26798         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
26799         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
26800         jumpifnot_1 callers.
26801         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
26802         callers.
26803         (store_expr): Adjust jumpifnot caller.
26804         (store_constructor): Adjust jumpif caller.
26805
26806         PR middle-end/42233
26807         * gimplify.c (gimple_boolify): For __builtin_expect call
26808         gimple_boolify also on its first argument.
26809
26810 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
26811
26812         * configure.ac (gnu-unique-object): Wrap regexps using [] in
26813         changequote block.
26814         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
26815         * configure: Regenerated.
26816
26817 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26818
26819         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
26820         lang_hooks.types_compatible_p instead of comptypes.
26821
26822 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26823
26824         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
26825         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
26826         if __prefer_thumb__ is defined.
26827
26828 2010-02-18  Martin Jambor  <mjambor@suse.cz>
26829
26830         PR tree-optimization/43066
26831         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
26832         array with zero-sized element type.
26833
26834 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
26835
26836         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
26837         rtx, allocate struct var_loc_node here and return it to the
26838         caller, and only if it is actually needed.
26839         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
26840         move it earlier and return immediately if it returns NULL.
26841
26842 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
26843
26844         * config/sparc/gas.h: New file.  Restore
26845         TARGET_ASM_NAMED_SECTION to its ELF default.
26846         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
26847         check !HAVE_GNU_AS.
26848         * config/sparc/sparc.c (sparc_elf_asm_named_section):
26849         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
26850         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
26851         after sparc/sysv4.h.
26852
26853 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
26854
26855         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
26856
26857 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
26858
26859         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
26860         patterns from predicated pattern.
26861
26862 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
26863
26864         PR target/43103
26865         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
26866         for insn mnemonic suffix.
26867
26868 2010-02-17  Richard Guenther  <rguenther@suse.de>
26869
26870         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
26871         to loop PHI nodes.
26872
26873 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
26874
26875         PR debug/42918
26876         * caller-save.c (save_call_clobbered_regs): If BB ends with
26877         a DEBUG_INSN, move any notes in between last real insn and the last
26878         DEBUG_INSN after the last DEBUG_INSN.
26879
26880 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
26881
26882         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
26883         Fix return type.  Fix argument type.  Explain meaning of return value.
26884
26885 2010-02-16  Richard Guenther  <rguenther@suse.de>
26886
26887         PR tree-optimization/41043
26888         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
26889         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
26890         statements ...
26891         (vrp_visit_phi_node): ... but only for loop PHI nodes.
26892
26893 2010-02-16  Ira Rosen  <irar@il.ibm.com>
26894
26895         PR tree-optimization/43074
26896         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
26897         * tree-vect-loop.c (vect_analyze_loop_operations): Add
26898         vectorizable cycles in hybrid SLP check.
26899         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
26900
26901 2010-02-16  Richard Guenther  <rguenther@suse.de>
26902
26903         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
26904         (true_dependence): If memrefs_conflict_p computes must-alias
26905         trust it.  Move TBAA check after offset-based disambiguation.
26906         (canon_true_dependence): Likewise.
26907
26908 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
26909
26910         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
26911         * doc/invoke.texi: Document it.
26912         * var-tracking.c: Include toplev.h and params.h.
26913         (vt_find_locations): Return bool indicating success.  Compute
26914         hash sizes unconditionally.  Check new parameter, report.
26915         (variable_tracking_main_1): Check vt_find_locations results and
26916         retry.  Renamed from...
26917         (variable_tracking_main): ... this.  New wrapper to preserve
26918         flag_var_tracking_assignments.
26919         * Makefile.in (var-tracking.o): Adjust dependencies.
26920
26921 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
26922             Jakub Jelinek  <jakub@redhat.com>
26923
26924         PR target/42854
26925         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
26926         if weak_import attribute is present.
26927         * config/darwin.c (machopic_select_section): Likewise.
26928
26929 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
26930
26931         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
26932         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
26933         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
26934         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
26935
26936         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
26937         types.
26938
26939         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26940         Fix argument types.
26941
26942         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
26943         Rewrite text to refer to the names.
26944
26945 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
26946
26947         * config/i386/i386-builtin-types.def
26948         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
26949         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
26950         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
26951         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
26952         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
26953         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
26954         IX86_BUILTIN_VPERMIL2PS256.
26955         (MULTI_ARG_4_DF2_DI_I): Defined.
26956         (MULTI_ARG_4_DF2_DI_I1): Defined.
26957         (MULTI_ARG_4_SF2_SI_I): Defined.
26958         (MULTI_ARG_4_SF2_SI_I1): Defined.
26959         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
26960         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
26961         __builtin_ia32_vpermil2ps256.
26962         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26963         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26964         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
26965         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26966         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26967         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
26968         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
26969         CODE_FOR_xop_vpermil2v8sf3.
26970         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
26971         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
26972         * config/i386/xopintrin.h (_mm_permute2_pd): New.
26973         (_mm256_permute2_pd): New.
26974         (_mm_permute2_ps): New.
26975         (_mm256_permute2_ps): New.
26976
26977 2010-02-15  Nick Clifton  <nickc@redhat.com>
26978
26979         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
26980         boolean parameters.  Use emit_jump_insn when emitting a pop
26981         instruction containing a return insn.
26982         (push): Use 'true' rather than '1' as second parameter to F.
26983         (h8300_expand_prologue): Likewise.
26984         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
26985         (h8300_expand_epilogue): Likewise.
26986
26987 2010-02-15  Richard Guenther  <rguenther@suse.de>
26988
26989         PR middle-end/43068
26990         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
26991         if that is zero.
26992
26993 2010-02-15  Nick Clifton  <nickc@redhat.com>
26994
26995         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
26996         delta.
26997
26998 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
26999
27000         * intl.c (fake_ngettext): New function.
27001         * intl.h (fake_ngettext): Declare.
27002         (ngettext): Define macro.
27003         * collect2.c (notice_translated): New function.
27004         (main): Use notice_translated and ngettext.
27005         * collect2.h (notice_translated): Declare.
27006
27007 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
27008
27009         * reorg.c (delete_computation): Comment fixes.
27010         * caller-save.c (setup_save_areas): Idem.
27011         * sel-sched-dump.c (dump_lv_set): Idem.
27012         * rtl.def: Idem.
27013
27014 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27015
27016         * config/s390/s390.c (s390_sched_init): New function.
27017         (TARGET_SCHED_INIT): Target hook defined.
27018
27019 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
27020             Jack Howarth  <howarth@bromo.med.uc.edu>
27021             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27022
27023         PR target/42982
27024         Partial revert of unintended change in fix for PR41605.
27025         * config/darwin.h: Fix typo.
27026         * config/darwin9.h: Same.
27027
27028 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27029
27030         * c-pch.c (pch_init): Clear v.
27031
27032 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27033
27034         PR middle-end/42930
27035         * graphite-scop-detection.c (graphite_can_represent_scev): Call
27036         graphite_can_represent_init for MULT_EXPR.
27037
27038 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27039
27040         PR middle-end/42914
27041         PR middle-end/42530
27042         * graphite-sese-to-poly.c (remove_phi): New.
27043         (translate_scalar_reduction_to_array): Call remove_phi.
27044
27045 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27046
27047         PR middle-end/42771
27048         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27049         * graphite-clast-to-gimple.h (gloog): Update declaration.
27050         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27051         * graphite-poly.h (struct poly_bb): Add missing comments.
27052         (struct scop): Add poly_scop_p field.
27053         (POLY_SCOP_P): New.
27054         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27055         * graphite.c (graphite_transform_loops): Build the polyhedral
27056         representation for each scop before code generation.
27057         * sese.c (rename_variables_in_operand): Removed.
27058         (rename_variables_in_expr): Return the renamed expression.
27059         (rename_sese_parameters): New.
27060         * sese.h (rename_sese_parameters): Declared.
27061
27062 2010-02-11  Richard Guenther  <rguenther@suse.de>
27063
27064         PR tree-optimization/42998
27065         * tree-ssa-pre.c (create_expression_by_pieces): Treat
27066         POINTER_PLUS_EXPR properly.
27067
27068 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27069             Changpeng Fang  <changpeng.fang@amd.com>
27070
27071         PR middle-end/40886
27072         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27073         the cost of an IV candidate when the IV is used in a test against zero.
27074
27075         * gcc.dg/tree-ssa/ivopts-3.c: New.
27076
27077 2010-02-11  Richard Guenther  <rguenther@suse.de>
27078
27079         PR lto/41664
27080         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27081         pointer-vs-decl case by swapping refs.  Handle some cases
27082         of pointer-vs-decl disambiguations more conservatively.
27083         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27084         to false after expanding.
27085
27086 2010-02-11  Richard Guenther  <rguenther@suse.de>
27087
27088         PR driver/43021
27089         * gcc.c (process_command): Handle LTO file@offset case more
27090         appropriately.
27091
27092 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27093
27094         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27095         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
27096         of DEBUG_INSNs.
27097         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27098
27099         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27100         if MEM's mode size isn't DWARF2_ADDR_SIZE.
27101         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27102         Optimize eq/ne comparisons when both arguments are known to be
27103         zero-extended.
27104         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27105         Don't mask operands unnecessarily if they are known to be already
27106         zero-extended.
27107
27108 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
27109
27110         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27111         instead of loop.
27112
27113 2010-02-10  Richard Guenther  <rguenther@suse.de>
27114
27115         PR tree-optimization/43017
27116         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27117         for wrapping signed arithmetic.
27118
27119 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27120
27121         PR debug/43010
27122         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27123         if no debug info should be emitted for it.
27124
27125 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27126
27127         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27128         note when flag_exceptions is set.
27129
27130 2010-02-10  Duncan Sands  <baldrick@free.fr>
27131
27132         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27133
27134 2010-02-10  Richard Guenther  <rguenther@suse.de>
27135
27136         PR c/43007
27137         * tree.c (get_unwidened): Handle constants.
27138         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27139
27140 2010-02-10  Martin Jambor  <mjambor@suse.cz>
27141
27142         PR lto/42985
27143         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27144         check for variable argument counts independently.
27145
27146 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27147
27148         PR target/42841
27149         * config/sh/sh.c (find_barrier): Increase length for non delayed
27150         conditional branches.
27151
27152 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27153
27154         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27155
27156 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27157
27158         * builtins.c (set_builtin_user_assembler_name): Also handle
27159         ffs if int is smaller than word.
27160
27161 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
27162
27163         PR middle-end/42973
27164         * ira-conflicts.c (get_dup): Remove.
27165         (process_reg_shuffles): Add new parameter.  Use it as an
27166         additional guard for copy generation.
27167         (add_insn_allocno_copies): Rewrite.
27168
27169 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
27170
27171         * common.opt (fsched2-use-traces): Preserved for backward
27172         compatibility.
27173         * doc/invoke.texi: Remove the documentation about option
27174         -fsched2-use-traces.
27175         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27176         flag_sched2_use_traces.
27177         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27178         the backward compatibility flag section.
27179
27180 2010-02-09  Richard Guenther  <rguenther@suse.de>
27181
27182         PR tree-optimization/43008
27183         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27184         make HEAP variables initialized from global memory if they
27185         are not known builtin functions.
27186         (find_func_aliases): Adjust.
27187
27188 2010-02-09  Richard Guenther  <rguenther@suse.de>
27189
27190         PR tree-optimization/43000
27191         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27192         arithmetic manually.
27193
27194 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
27195
27196         PR tree-optimization/42931
27197         * tree-loop-linear.c (try_interchange_loops): Don't call
27198         double_int_mul if estimated_loop_iterations failed.
27199
27200 2010-02-08  Martin Jambor  <mjambor@suse.cz>
27201
27202         PR middle-end/42898
27203         * tree-sra.c (build_accesses_from_assign): Do not mark in
27204         should_scalarize_away_bitmap if stmt has volatile ops.
27205         (sra_modify_assign): Do not process assigns piecemeal if if stmt
27206         has volatile ops.
27207
27208 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
27209
27210         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27211
27212 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
27213
27214         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27215         before the pattern.
27216
27217 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
27218
27219         PR middle-end/42946
27220         * df-core.c (df_finish_pass): Change type of saved_flags to int.
27221
27222 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27223
27224         PR middle-end/42988
27225         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27226         to unknown_dependence.
27227         (graphite_legal_transform_dr): Handle the unknown_dependence.
27228         (graphite_carried_dependence_level_k): Same.
27229
27230 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27231
27232         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27233
27234 2010-02-07  Richard Guenther  <rguenther@suse.de>
27235
27236         PR middle-end/42991
27237         * expr.c (get_inner_reference): Always initialize *pbitsize.
27238
27239 2010-02-07  Richard Guenther  <rguenther@suse.de>
27240
27241         PR middle-end/42956
27242         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27243         new ARRAY_REFs on variable size element or minimal index arrays.
27244         Complete.
27245         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27246         gimple_fold_indirect_ref.
27247
27248 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
27249
27250         PR target/42957
27251         * arm.c (arm_override_options): Just return if the user has specified
27252         an invalid fpu name.
27253
27254 2010-02-03  Jason Merrill  <jason@redhat.com>
27255
27256         PR c++/42870
27257         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27258         i386_pe_maybe_record_exported_symbol.
27259
27260 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
27261
27262         PR target/42924
27263         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27264         (pa_delegitimize_address): New function.
27265
27266 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
27267
27268         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27269         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27270
27271 2010-02-05  Richard Guenther  <rguenther@suse.de>
27272
27273         PR lto/42762
27274         * lto-streamer-in.c (get_resolution): Deal with references
27275         to undefined functions.
27276
27277 2010-02-05  Richard Guenther  <rguenther@suse.de>
27278
27279         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27280         (fold_const_aggregate_ref): Likewise.
27281         (ccp_fold_stmt): Substitute loads.
27282         (maybe_fold_reference): Verify types before substituting.
27283         Unshare properly.
27284         (fold_gimple_assign): Unshare properly.
27285         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27286
27287 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
27288
27289         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27290         for rs6000_gen_cell_microcode.
27291
27292 2010-02-04  Richard Guenther  <rguenther@suse.de>
27293
27294         PR rtl-optimization/42952
27295         * dse.c (const_or_frame_p): Remove MEM handling.
27296
27297 2010-02-04  Nick Clifton  <nickc@redhat.com>
27298
27299         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27300         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27301         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27302         (mn10300_asm_output_mi_thunk): New function.
27303         (mn10300_can_output_mu_thunk): New function.
27304         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27305         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
27306         (FUNCTION_ARG): Delete incorrect comment.
27307
27308 2010-02-03  Jason Merrill  <jason@redhat.com>
27309
27310         PR c++/40138
27311         * fold-const.c (operand_equal_p): Handle erroneous types.
27312
27313 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27314
27315         * config/h8300/h8300.md (can_delay): Fix attibute condition.
27316
27317 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
27318
27319         PR rtl-optimization/42941
27320         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27321         of xmalloc.
27322
27323 2010-02-03  Jason Merrill  <jason@redhat.com>
27324
27325         PR c++/35652
27326         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27327
27328 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
27329
27330         PR debug/42896
27331         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
27332         (cselib_reset_table): Renamed from...
27333         (cselib_reset_table_with_next_value): ... this.
27334         (cselib_get_next_uid): Renamed from...
27335         (cselib_get_next_unknown_value): ... this.
27336         * cselib.c (next_uid): Renamed from...
27337         (next_unknown_value): ... this.
27338         (cselib_clear_table): Adjust.
27339         (cselib_reset_table): Adjust.  Renamed from...
27340         (cselib_reset_table_with_next_value): ... this.
27341         (cselib_get_next_uid): Adjust.  Renamed from...
27342         (cselib_get_next_unknown_value): ... this.
27343         (get_value_hash): Use hash.
27344         (cselib_hash_rtx): Likewise.
27345         (new_cselib_val): Adjust.  Set and dump uid.
27346         (cselib_lookup_mem): Pass next_uid as hash.
27347         (cselib_subst_to_values): Likewise.
27348         (cselib_log_lookup): Dump uid.
27349         (cselib_lookup): Pass next_uid as hash.  Adjust.
27350         (cselib_process_insn): Adjust.
27351         (cselib_init): Initialize next_uid.
27352         (cselib_finish): Adjust.
27353         (dump_cselib_table): Likewise.
27354         * dse.c (canon_address): Dump value uid.
27355         * print-rtl.c (print_rtx): Print value uid.
27356         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27357         (dvuid): New type.
27358         (dv_uid): New function, sort of renamed from...
27359         (dv_htab_hash): ... this, reimplemented in terms of it and...
27360         (dv_uid2hash): ... this.  New.
27361         (variable_htab_eq): Drop excess assertions.
27362         (tie_break_pointers): Removed.
27363         (canon_value_cmp): Compare uids.
27364         (variable_post_merge_New_vals): Print uids.
27365         (vt_add_function_parameters): Adjust.
27366         (vt_initialize): Reset table.  Adjust.
27367
27368 2010-02-03  Richard Guenther  <rguenther@suse.de>
27369
27370         PR tree-optimization/42944
27371         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27372         (call_may_clobber_ref_p_1): Likewise.  Properly handle
27373         malloc and calloc clobbering errno.
27374
27375 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
27376
27377         * doc/invoke.texi: Fix name of sched1 dump.
27378
27379         * opts.c (decode_options): Set flag_tree_switch_conversion
27380         only conditionally on optimize >= 2.
27381
27382         * gcse.c: Assorted comment fixes in pass description.
27383
27384 2010-02-03  Anthony Green  <green@moxielogic.com>
27385
27386         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27387         nop padding in order to maintain alignment of storage location of
27388         target function address.
27389         (moxie_trampoline_init): Store target function address at newly
27390         aligned location.
27391         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27392         to 32.
27393         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27394
27395 2010-02-03  Richard Guenther  <rguenther@suse.de>
27396
27397         PR middle-end/42927
27398         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27399
27400 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27401
27402         * config.gcc: Reenable check for obsolete targets.
27403         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27404         mips-sgi-irix6.[0-4]*.
27405
27406 2010-02-02  Nick Clifton  <nickc@redhat.com>
27407
27408         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27409         constant size of 4 as being the same as 0.
27410         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27411         can take values in the range 0..4.
27412
27413 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27414
27415         PR java/41991
27416         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27417         as _darwin10_Unwind_FindEnclosingFunction().
27418         * libgcc-libsystem.ver: New.
27419
27420 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27421
27422         PR target/41399
27423         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27424         implicitly set registers.
27425
27426 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27427
27428         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27429         (arm_override_options): Allow automatic selection of the thread
27430         pointer register if thumb2.
27431         (legitimize_pic_address): Improve code sequences for Thumb2.
27432         (arm_call_tls_get_addr): Likewise.
27433         (legitimize_tls_address): Likewise.
27434         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27435         (pic_load_addr_32bit): ... this.  New named pattern.
27436         * thumb2.md (pic_load_addr_thumb2): Delete.
27437         (pic_load_dot_plus_four): Delete.
27438         (tls_load_dot_plus_four): New named pattern.
27439
27440 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27441
27442         PR libgomp/29986
27443         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27444         Document fix for TLS bug.
27445
27446 2010-01-31  Richard Guenther  <rguenther@suse.de>
27447
27448         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27449         conservatively correct.
27450
27451 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27452
27453         PR target/42850
27454         Revert:
27455         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27456
27457         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27458
27459 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27460
27461         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27462
27463 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27464
27465         * config.gcc: Adjust order of makefile fragments for mingw targets.
27466
27467 2010-01-31  Richard Guenther  <rguenther@suse.de>
27468
27469         PR middle-end/42898
27470         * gimplify.c (gimplify_init_constructor): For volatile LHS
27471         initialize a temporary.
27472
27473 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27474
27475         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27476         --with-headers
27477         * configure: Regenerate.
27478
27479 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27480
27481         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27482         the same alias set and their sizes different constantness.
27483         (aliasing_component_refs_p): Revert 2009-10-24 change.
27484
27485 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27486
27487         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27488         unused.
27489
27490 2010-01-29  Richard Guenther  <rguenther@suse.de>
27491
27492         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27493         Assert we successfully updated the call.
27494
27495 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27496
27497         PR rtl-optimization/42889
27498         * df.h (df_set_bb_dirty_nonlr): New prototype.
27499         * df-core.c (df_set_bb_dirty_nonlr): New function.
27500         * df-scan.c (df_insn_rescan): Call it instead of
27501         df_set_bb_dirty for DEBUG_INSNs.
27502
27503 2010-01-29  Richard Guenther  <rguenther@suse.de>
27504
27505         PR middle-end/37448
27506         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27507         quadratic behavior in most cases.
27508
27509 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27510
27511         PR target/42891
27512         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27513         in the call to gen_x86_movsicc_0_m1.
27514
27515 2010-01-28  Richard Guenther  <rguenther@suse.de>
27516
27517         PR tree-optimization/42871
27518         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27519
27520 2010-01-28  Richard Guenther  <rguenther@suse.de>
27521
27522         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27523         into call arguments.
27524
27525 2010-01-28  Richard Guenther  <rguenther@suse.de>
27526
27527         PR middle-end/42883
27528         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27529         the forwarder if the destination is an EH landing pad.
27530
27531 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27532
27533         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27534         block list passed to gimple_duplicate_sese_tail.
27535         (parallelize_loops): Avoid parallelization when the function
27536         has_nonlocal_label.
27537         Avoid parallelization when the preheader is IRREDUCIBLE.
27538         Try to optimize when estimated_loop_iterations_int is unresolved.
27539         Add the loop's location to the dump file.
27540         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27541         (gimple_duplicate_sese_tail): Remove the check for the latch.
27542         Redirect nexits to the exit block.
27543         Remove handling of the incoming edges to the latch.
27544         Redirect the backedge from the copied latch to the exit bb.
27545
27546 2010-01-28  Michael Matz  <matz@suse.de>
27547
27548         PR target/42881
27549         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27550         Wrap force_reg into a sequence, emit it before user.
27551
27552 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27553
27554         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27555         (arm_rev): New.
27556         (arm_legacy_rev): Likewise.
27557         (thumb_legacy_rev): Likewise.
27558
27559 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27560
27561         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27562         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
27563         on MEM's address failed, try avoid_constant_pool_reference and
27564         recurse if it returned something different.
27565         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27566         address, try avoid_constant_pool_reference and recurse if it
27567         returned something different.
27568         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27569         address and avoid_constant_pool_reference returned something
27570         different, don't set have_address.
27571
27572 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
27573
27574         PR debug/42861
27575         * var-tracking.c (val_store): Add modified argument, obey it.
27576         Adjust callers.
27577         (count_uses): Move down logging of main.
27578         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27579         don't need resolution.
27580         (emit_notes_in_bb): Likewise.
27581
27582 2010-01-27  Richard Guenther  <rguenther@suse.de>
27583
27584         PR middle-end/42878
27585         * tree-inline.c (remap_decl): Delay remapping of SSA name
27586         default definitions until we need them.
27587
27588 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27589
27590         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27591         (rs6000_delegitimize_address): New function.
27592
27593         * config/s390/s390.c (s390_delegitimize_address): Call
27594         delegitimize_mem_from_attrs.
27595
27596         PR middle-end/42874
27597         * tree-inline.c (cannot_copy_type_1): Removed.
27598         (copy_forbidden): Don't forbid copying of functions containing
27599         records/unions with variable length fields.
27600
27601 2010-01-27  Christian Bruel  <christian.bruel@st.com>
27602
27603         Revert:
27604         PR target/42841
27605         * config/sh/sh.c (find_barrier): Increase length for non delayed
27606         conditional branches.
27607
27608 2010-01-27  Matthias Klose  <doko@ubuntu.com>
27609
27610         * configure.ac (gnu-unique-object): Fix ldd version check.
27611         * configure: Regenerate.
27612
27613 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27614
27615         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27616         HAVE_GNU_AS value.
27617         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27618         Test for HAVE_GNU_AS value.
27619
27620 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27621
27622         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27623         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27624         INT64_TYPE): Define.
27625         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27626         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27627         INT_LEAST64_TYPE): Define.
27628         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27629         UINT_LEAST64_TYPE): Define.
27630         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27631         INT_FAST64_TYPE): Define.
27632         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27633         UINT_FAST64_TYPE): Define.
27634         (INTMAX_TYPE, UINTMAX_TYPE): Define.
27635         (INTPTR_TYPE, UINTPTR_TYPE): Define.
27636         (SIG_ATOMIC_TYPE): Define.
27637
27638 2010-01-26  Richard Guenther  <rguenther@suse.de>
27639
27640         * df-scan.c (df_scan_set_bb_info): Remove assert.
27641         (df_insn_rescan_debug_internal): Merge asserts.
27642         (df_install_ref): Likewise.
27643         (df_mark_reg): Use bitmap_set_range.
27644         (df_hard_reg_used_p): Remove assert.
27645         (df_hard_reg_used_count): Likewise.
27646
27647 2010-01-26  Richard Guenther  <rguenther@suse.de>
27648
27649         PR rtl-optimization/42685
27650         * web.c (web_main): Ignore DEBUG_INSNs.
27651
27652 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
27653
27654         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27655
27656         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27657         Fix types of fndecl and arglist parameters.
27658
27659 2010-01-26  Richard Guenther  <rguenther@suse.de>
27660
27661         PR middle-end/42806
27662         * tree-eh.c (unsplit_eh): Skip debug insns.
27663
27664 2010-01-26  Richard Guenther  <rguenther@suse.de>
27665
27666         PR tree-optimization/42250
27667         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27668
27669 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
27670
27671         PR fortran/42866
27672         * omp-low.c (expand_omp_sections): Only use single_pred if
27673         l2_bb is single_pred_p.
27674
27675 2010-01-25  Christian Bruel  <christian.bruel@st.com>
27676
27677         PR target/42841
27678         * config/sh/sh.c (find_barrier): Increase length for non delayed
27679         conditional branches.
27680         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27681
27682 2010-01-24  David S. Miller  <davem@davemloft.net>
27683
27684         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27685         define if not using GAS.
27686         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27687         Likewise.  Delete SECTION_MERGE code, which is only applicable
27688         when using GAS.
27689
27690 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
27691
27692         PR c++/42748
27693         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27694         mangling of va_list in system headers.
27695
27696 2010-01-23  Toon Moene  <toon@moene.org>
27697
27698         * tree-predcom.c (combine_chains): Return NULL, not false.
27699
27700 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
27701
27702         * tree-loop-distribution.c (distribute_loop): Fix declaration and
27703         initialization of variable res to agree with return type.
27704
27705 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
27706
27707         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27708         * tree-sra.c: Add include of expr.h.
27709
27710 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
27711
27712         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27713         insert the debug stmt on the single non-EH edge from the stmt.
27714
27715 2010-01-22  Richard Henderson  <rth@redhat.com>
27716
27717         PR tree-opt/42833
27718         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27719         the RHS until after generate_subtree_copies has insertted its
27720         code before the current statement.
27721
27722 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
27723
27724         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
27725
27726         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
27727
27728 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27729
27730         PR tree-optimization/42585
27731         * tree-sra.c (struct access): New field grp_total_scalarization.
27732         (dump_access): Dump the new field.
27733         (should_scalarize_away_bitmap): New variable.
27734         (cannot_scalarize_away_bitmap): Likewise.
27735         (sra_initialize): Allocate new bitmaps.
27736         (sra_deinitialize): Free new bitmaps.
27737         (create_access_1): New function.
27738         (create_access): Parts moved to create_access_1.
27739         (type_consists_of_records_p): New function.
27740         (completely_scalarize_record): Likewise.
27741         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
27742         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
27743         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
27744         access.
27745         (analyze_all_variable_accesses): Completely scalarize small eligible
27746         records.
27747
27748 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27749
27750         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
27751
27752 2010-01-21  Andrew Haley  <aph@redhat.com>
27753
27754         * gcc.c (process_command): Move lang_specific_driver before
27755         setting cc_libexec_prefix.
27756
27757 2010-01-21  Richard Guenther  <rguenther@suse.de>
27758
27759         PR middle-end/19988
27760         * fold-const.c (negate_expr_p): Pretend only negative
27761         real constants are easily negatable.
27762
27763 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
27764             Jason Merrill  <jason@redhat.com>
27765
27766         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
27767         (TYPE_TRANSPARENT_AGGR): this, for union and record.
27768         * calls.c (initialize argument_information): Handle it.
27769         * c-common.c (handle_transparent_union_attribute): Use new name.
27770         * c-decl.c (finish_struct): Ditto.
27771         * c-typeck.c (type_lists_compatible_p): Ditto.
27772         (convert_for_assignment): Use new name and also handle record.
27773         * function.c (aggregate_value_p): Handle it.
27774         (pass_by_reference): Ditto.
27775         (assign_parm_data_types): Ditto.
27776         * print-tree.c (print_node): Ditto.
27777         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
27778         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
27779         * tree.c (first_field): New fn.
27780
27781 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27782
27783         PR target/42818
27784         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
27785         even when linking statically, for now.
27786
27787 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27788
27789         PR debug/42715
27790         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
27791         without a cselib val.
27792         (count_uses): Accept MO_VAL_SET with no val on stores.
27793         (add_stores): Likewise.
27794
27795 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27796
27797         * var-tracking.c (check_value_val): Add a compile time assertion.
27798         (dv_is_decl_p): Simplify.
27799         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
27800         gcc_assert if ENABLE_CHECKING.
27801
27802 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27803
27804         PR debug/42782
27805         * var-tracking.c: Include tree-flow.h.
27806         (mem_dies_at_call): New.
27807         (dataflow_set_preserve_mem_locs): Use it.
27808         (dataflow_set_remove_mem_locs): Likewise.
27809         (dump_var): Renamed from dump_variable.  Adjust all callers.
27810         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
27811         * Makefile.in (var-tracking.o): Adjust deps.
27812
27813 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
27814
27815         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
27816
27817 2010-01-20  Richard Guenther  <rguenther@suse.de>
27818
27819         PR tree-optimization/42717
27820         * tree-ssa-dce.c (get_live_post_dom): Remove.
27821         (forward_edge_to_pdom): Take an arbitrary edge to copy
27822         degenerate PHI args from.
27823         (remove_dead_stmt): Use the first post-dominator even if it
27824         does not contain live statements as redirection destination.
27825
27826 2010-01-20  Richard Guenther  <rguenther@suse.de>
27827
27828         * tree-inline.c (estimate_num_insns): Handle EH builtins.
27829
27830 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27831
27832         * sel-sched.c (create_speculation_check): Remove set but not used
27833         variable twin.
27834         (try_transformation_cache): Remove set but not used variable ds.
27835         (calculate_privileged_insns): Remove set but not used variables
27836         cur_insn and min_spec_insn.
27837         (find_best_expr): Remove set but not used variable avail_n.
27838         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
27839         variable e.
27840         * cgraphunit.c (assemble_thunk): Remove set but not used variable
27841         false_label.
27842         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
27843         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
27844         new_scop_exit_edge.
27845
27846 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
27847
27848         PR bootstrap/42786
27849         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
27850         cpu types.  Add support for *-sse3 cpu types.
27851         (x86_64-*-*): Ditto.
27852
27853 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27854
27855         PR middle-end/42803
27856         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
27857         argument, call initializer_constant_valid_p_1 instead of
27858         initializer_constant_valid_p, pass CACHE to it, return NULL
27859         immediately if first call returns NULL.
27860         (initializer_constant_valid_p_1): New function.
27861         (initializer_constant_valid_p): Use it.
27862
27863 2010-01-20  Thomas Quinot  <quinot@adacore.com>
27864
27865         * tree.def (PLACEHOLDER_EXPR): Fix comment.
27866
27867 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27868
27869         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
27870         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
27871         (loc_list_from_tree): Don't handle unsigned division.  Handle
27872         signed modulo using DW_OP_{over,over,div,mul,minus}.
27873         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
27874         modulo instead of signed.
27875
27876 2010-01-20  DJ Delorie  <dj@redhat.com>
27877
27878         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
27879         (Fpa): Pass it
27880         (h8300_emit_stack_adjustment): Propogate it.
27881         (push): Pass it.
27882         (h8300_expand_prologue): Likewise.
27883         (h8300_expand_epilogue): Likewise.
27884
27885 2010-01-19  Michael Matz  <matz@suse.de>
27886
27887         PR tree-optimization/41783
27888         * tree-data-ref.c (toplevel): Include flags.h.
27889         (dump_data_dependence_relation):  Also dump the inputs if the
27890         result will be unknown.
27891         (split_constant_offset_1): Look through some conversions.
27892         * tree-predcom.c (determine_roots_comp): Restart a new chain if
27893         the offset from last element is too large.
27894         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
27895         (reassociate_to_the_same_stmt): Handle vector registers.
27896         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
27897         (e.g. conversions).
27898         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
27899         wide_prolog_niters argument, emit widening instructions.
27900         (vect_do_peeling_for_alignment): Adjust caller, use widened
27901         variant of the iteration cound.
27902         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
27903
27904 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27905
27906         PR target/38697
27907         * config/arm/neon-testgen.m (emit_automatics): New parameter
27908         features. Adjust for Fixed_return_reg feature.
27909         (test_intrinsic): Call emit_automatics with new feature.
27910         * config/arm/neon.ml: Update copyright years.
27911         (features): New Fixed_return_reg feature.
27912         (ops): Update feature for Vget_low.
27913
27914 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
27915
27916         PR tree-optimization/42719
27917         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
27918         stmt uses.
27919
27920         PR debug/42728
27921         * fwprop.c (all_uses_available_at): Return false if def_set dest
27922         is a REG that is used in def_insn.
27923
27924 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
27925
27926         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
27927
27928         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
27929         Add argument names.
27930
27931         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
27932
27933         * target.h (struct gcc_target) <secondary_reload>: Change type
27934         of last argument to secondary_reload_info *.
27935
27936 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
27937
27938         PR target/42774
27939         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
27940         memory references with unaligned offsets.  Remove CQImode handling.
27941         (unaligned_memory_operand): Return 1 for memory references with
27942         unaligned offsets.  Remove CQImode handling.
27943
27944 2010-01-18  Richard Guenther  <rguenther@suse.de>
27945
27946         PR middle-end/39954
27947         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
27948         builtin calls.
27949
27950 2010-01-18  Richard Guenther  <rguenther@suse.de>
27951
27952         PR tree-optimization/42781
27953         * tree-ssa-structalias.c (find_what_var_points_to): Skip
27954         restrict processing only if the original variable was artificial.
27955
27956 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
27957
27958         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
27959         find number of popped argument bytes.
27960
27961         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
27962         Fix the text that describes the return value for invalid insns.
27963
27964         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
27965
27966         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
27967         Clarify what 'cost of the -dependence' is.  Fix quoting.
27968
27969         * toplev.c (default_get_pch_validity): Rename argument to "sz".
27970         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
27971
27972 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
27973
27974         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27975         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
27976
27977 2010-01-17  Richard Guenther  <rguenther@suse.de>
27978
27979         PR middle-end/42248
27980         * function.c (split_complex_args): Take a VEC to modify.
27981         (assign_parms_augmented_arg_list): Build a VEC instead of
27982         a chain of PARM_DECLs.
27983         (assign_parms_unsplit_complex): Take a VEC of arguments.
27984         Do not fixup unmodified parms.
27985         (assign_parms): Deal with the VEC.
27986         (gimplify_parameters): Likewise.
27987
27988 2010-01-17  Richard Guenther  <rguenther@suse.de>
27989
27990         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
27991         node existence check.
27992         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
27993         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
27994         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
27995         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
27996         (gimple_execute_on_growing_pred): Likewise.
27997
27998 2010-01-17  Richard Guenther  <rguenther@suse.de>
27999
28000         PR tree-optimization/42773
28001         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28002         (compute_antic_aux): Likewise.
28003         (compute_partial_antic_aux): Likewise.
28004
28005 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
28006
28007         PR debug/42767
28008         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28009         and US_TRUNCATE.
28010
28011 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
28012
28013         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28014         appearance.
28015
28016         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28017         Fix markup for strict argument.
28018
28019         (TARGET_SCHED_REORDER2): Fix argument types.
28020
28021         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28022         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28023
28024         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28025         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28026
28027         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28028         Add argument name.
28029
28030         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28031         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28032         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28033         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28034         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28035
28036         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28037
28038         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28039
28040         (TARGET_ASM_RELOC_RW_MASK): Add return type.
28041         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28042
28043         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28044
28045         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28046         Use prototype.
28047
28048         (TARGET_ASM_NAMED_SECTION): Fix argument list.
28049
28050         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28051         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28052
28053         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28054
28055         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28056
28057         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28058         referring to it.  Fix language.
28059
28060         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28061
28062         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28063
28064         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28065
28066         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28067
28068         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28069         '@var{stream}.  Remove stray 'and'.
28070
28071         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28072
28073         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28074
28075         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28076
28077         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28078         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28079
28080         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28081         Fix description of return value.
28082         Rename argument "sz" to "len."
28083
28084         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28085         Clarify meaning of 'true' return value.
28086
28087         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28088
28089         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28090         rep_mode versus mode_rep.
28091
28092         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28093
28094         (TARGET_BUILTIN_DECL): Fix name.
28095
28096         (TARGET_COMMUTATIVE_P): Fix type of first argument.
28097
28098         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28099
28100         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28101
28102         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28103
28104         (TARGET_RELAXED_ORDERING): Use @deftypevr.
28105
28106         (TARGET_GET_DRAP_RTX): Note that this is a hook.
28107         Clarify language.
28108
28109         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28110         Rename argument tm_fn to md_fn.
28111
28112         (TARGET_OPTION_PRINT): Fix argument list.
28113
28114 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
28115
28116         PR target/42664
28117         * config/i386/i386.c (ix86_fixup_binary_operands):
28118         Revert FMA4 fixup of operands.
28119
28120 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28121
28122         PR gcc/42525
28123         * Makefile.in (write_entries_to_file, install-plugin):
28124         Use \012 instead of \n with tr.
28125
28126 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
28127
28128         * configure.ac (HAVE_AS_REF): New C macro.
28129         * configure: Regenerate.
28130         * config.in: Likewise.
28131         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28132         if HAVE_AS_REF.
28133         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28134         if HAVE_AS_REF.
28135
28136 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
28137
28138         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28139
28140         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28141
28142         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28143
28144         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28145
28146         (TARGET_IN_SMALL_DATA_P): Fix argument type.
28147
28148         (TARGET_BINDS_LOCAL_P): Fix argument type.
28149
28150         (TARGET_ASM_FILE_END): Use prototype.
28151
28152         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28153
28154         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28155
28156         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28157
28158         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28159
28160         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28161         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28162
28163         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28164         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28165
28166         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28167         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28168         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28169         (TARGET_ADDR_SPACE_CONVERT): Likewise.
28170
28171         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28172
28173         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28174
28175         (TARGET_INIT_BUILTINS): Use prototype.
28176
28177         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28178         Put 'const char *' in braces.  Fix parameter types.
28179         (TARGET_INVALID_CONVERSION): Fix parameter types.
28180         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28181         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28182
28183         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28184         Fix argument type.
28185
28186         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28187
28188         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28189
28190 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
28191
28192         * doc/tm.texi (TARGET_HELP): Fix return type.
28193
28194         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28195         in braces.  Fix argument types.
28196
28197         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28198
28199         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28200
28201         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28202
28203         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28204         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28205
28206         (TARGET_MANGLE_TYPE): Fix argument types.
28207
28208         (TARGET_IRA_COVER_CLASSES): Use prototype.
28209
28210         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
28211
28212         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28213
28214         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28215
28216         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28217
28218         (TARGET_CALLEE_COPIES): Fix argument types.
28219
28220         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28221
28222         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28223
28224         (TARGET_FUNCTION_VALUE): Fix argument types.
28225
28226         (TARGET_RETURN_IN_MSB): Fix argument type.
28227
28228         (TARGET_RETURN_IN_MEMORY): Fix argument types.
28229
28230         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28231
28232         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28233
28234         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28235         agree with return type.
28236
28237         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28238
28239 2010-01-15  Jing Yu  <jingyu@google.com>
28240
28241         PR rtl-optimization/42691
28242         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28243         a pseudo to a constant and are merged, and adjust comments.
28244
28245 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28246
28247         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28248
28249 2010-01-15  Richard Guenther  <rguenther@suse.de>
28250
28251         PR middle-end/42739
28252         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28253         labels of computed or non-local gotos to the destination.
28254         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28255         landing pad label is the first label.
28256
28257 2010-01-15  Richard Guenther  <rguenther@suse.de>
28258
28259         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28260
28261 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28262
28263         PR target/42747
28264         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28265         to allow generation of the xssqrtdp instruction on power7.
28266         (sqrtdf2_fpr): Ditto.
28267
28268 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28269
28270         PR middle-end/42674
28271         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28272         functions with noreturn attribute.
28273
28274         PR c++/42608
28275         * varasm.c (declare_weak): Add weak attribute to decl if it
28276         doesn't have one already.
28277         (assemble_external): Only add decls to weak_decls if they also
28278         have weak attribute.
28279
28280 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
28281
28282         * var-tracking.c (var_reg_delete): Don't delete the association
28283         between REGs and values or one-part variables if the register
28284         isn't clobbered.
28285
28286 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28287
28288         PR debug/42657
28289         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28290         because its first operand is a non-localized variable.
28291
28292 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28293
28294         PR tree-optimization/42706
28295         * tree-sra.c (encountered_recursive_call): New variable.
28296         (encountered_unchangable_recursive_call): Likewise.
28297         (sra_initialize): Initialize both new variables.
28298         (callsite_has_enough_arguments_p): New function.
28299         (scan_function): Call decl and flags check only for IPA-SRA, check
28300         whether there is a recursive call and whether it has enough arguments.
28301         (all_callers_have_enough_arguments_p): New function.
28302         (convert_callers): Look for recursive calls only when
28303         encountered_recursive_call is set.
28304         (ipa_early_sra): Bail out either if
28305         !all_callers_have_enough_arguments_p or
28306         encountered_unchangable_recursive_call.
28307
28308 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28309
28310         * sel-sched.c: Add 2010 to copyright years.
28311         * sel-sched-ir.c: Likewise.
28312         * sel-sched-ir.h: Likewise.
28313
28314 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28315
28316         PR tree-optimization/42714
28317         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28318         constructors specially.
28319
28320 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28321
28322         * config/i386/drivers-i386.c (detect_caches_intel):
28323         Add l2sizekb parameter and fill in.
28324         (host_detect_local_cpu): Add l2sizekb, fill in.
28325         Add Atom small cache heuristic.
28326
28327 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28328
28329         * config/i386/drivers-i386.c (detect_caches_cpuid4):
28330         Add level3 parameter and fill in.
28331         (detect_caches_intel): Handle level3 cache.
28332
28333 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28334
28335         * config/i386/drivers-i386.c (host_detect_local_cpu):
28336         Fix core duo detection.
28337
28338 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28339
28340         * config/i386/drivers-i386.c (host_detect_local_cpu):
28341         Fix Atom detection.
28342
28343 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28344
28345         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28346         (rs6000_variable_issue_1): this.  Use...
28347         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
28348
28349 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28350
28351         * sel-sched-ir.c (sel_restore_other_notes): Rename to
28352         sel_restore_notes.  Update all callers.  Call reemit_notes
28353         for all insns.
28354
28355 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28356
28357         PR rtl-optimization/42246
28358         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28359         loops.
28360
28361 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28362
28363         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28364         all successors is the same as number of successors in current region.
28365
28366 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28367
28368         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28369         to rename is not separable.  Otherwise check that its LHS is not NULL.
28370
28371 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28372
28373         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
28374
28375 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28376
28377         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28378         available registers when failed to discover LHS register class.
28379         Fix indentation.  Update comment.
28380
28381 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28382             Alexander Monakov  <amonakov@ispras.ru>
28383
28384         PR rtl-optimization/42389
28385         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28386         to can_issue_more.
28387         (advance_state_on_fence): Likewise.
28388         (sel_target_adjust_priority): Print debug output only when
28389         sched_verbose >= 4, not 2.
28390         (get_expr_cost): Do not issue all unique insns on the next cycle.
28391         (fill_insns): Initialize can_issue_more from the value saved
28392         with the fence.
28393         * sel-sched-ir.c (flist_add): New parameter issue_more.
28394         Init FENCE_ISSUE_MORE with it.
28395         (merge_fences): Likewise.
28396         (init_fences): Update call to flist_add.
28397         (add_to_fences, add_clean_fence_to_fences)
28398         (add_dirty_fence_to_fences): Likewise.
28399         (move_fence_to_fences): Update call to merge_fences.
28400         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28401         sched groups.
28402         * sel-sched-ir.h (struct _fence): New field issue_more.
28403         (FENCE_ISSUE_MORE): New accessor macro.
28404
28405 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28406
28407         PR rtl-optimization/42388
28408         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28409         that have no predecessors nor successors.  Do not call move_bb_info
28410         for empty blocks outside of current region.
28411
28412 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28413
28414         PR rtl-optimization/42294
28415         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28416         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28417         originators' originators.
28418
28419 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28420
28421         PR rtl-optimization/39453
28422         PR rtl-optimization/42246
28423         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28424         for pipelining_p.
28425         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28426
28427 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28428             Alexander Monakov  <amonakov@ispras.ru>
28429
28430         PR middle-end/42245
28431         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28432         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28433         argument.  Update all callers.
28434         (tidy_control_flow): ... and here.  Recompute topological order
28435         of basic blocks in region if necessary.
28436         (sel_redirect_edge_and_branch): Change return type.  Return true
28437         if topological order might have been invalidated.
28438         (purge_empty_blocks): Export and move from...
28439         * sel-sched.c (purge_empty_blocks): ... here.
28440         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28441         (maybe_tidy_empty_bb): Delete prototype.
28442         (purge_empty_blocks): Declare.
28443
28444 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28445
28446         PR rtl-optimization/42249
28447         * sel-sched.c (try_replace_dest_reg): When chosen register
28448         and original register is the same, do not bail out early, but
28449         still check all original insns for validity of replacing destination
28450         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28451         in this case.
28452
28453 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28454
28455         PR c/42721
28456         Port from no-undefined-overflow branch:
28457         2009-03-09  Richard Guenther  <rguenther@suse.de>
28458
28459         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28460
28461 2010-01-14  Richard Guenther  <rguenther@suse.de>
28462
28463         PR lto/42665
28464         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28465
28466 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28467
28468         PR tree-optimization/42709
28469         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28470         as scalar type in creation of constant vector operand.
28471
28472 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28473
28474         PR testsuite/42414
28475         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28476         (check-parallel-%): Match `testsuite' directory component only
28477         at the end.
28478
28479 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28480
28481         PR translation/39521
28482         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28483         strings with _().
28484
28485 2010-01-13  Richard Guenther  <rguenther@suse.de>
28486
28487         PR tree-optimization/42730
28488         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28489         offset zero.
28490
28491 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28492
28493         PR target/pr42542
28494         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28495         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28496         them signed.
28497
28498 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28499
28500         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28501         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28502         ___umulsi3_highpart.
28503
28504         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28505         rather than schedule_insns if the pass is enabled.
28506
28507 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28508
28509         PR tree-optimization/42704
28510         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28511         SSA_NAMEs.
28512
28513 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28514
28515         PR tree-optimization/42703
28516         * tree-sra.c (analyze_access_subtree): Check that we can build a
28517         reference to the original data within the aggregate.
28518
28519 2010-01-13  Richard Guenther  <rguenther@suse.de>
28520
28521         PR tree-optimization/42705
28522         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28523
28524 2010-01-13  Richard Guenther  <rguenther@suse.de>
28525
28526         PR middle-end/42716
28527         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28528
28529 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28530
28531         PR debug/41371
28532         * var-tracking.c (values_to_unmark): New variable.
28533         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28534         values_to_unmark vector.  Moved body to...
28535         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28536         instead queue it into values_to_unmark vector.
28537         (vt_find_locations): Free values_to_unmark vector.
28538
28539 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28540
28541         * config/s390/s390.c (override_options): Set
28542         default of max-pending-list-length to 256
28543
28544 2010-01-13  Richard Guenther  <rguenther@suse.de>
28545
28546         PR lto/42678
28547         * tree-pass.h (PROP_gimple_lcx): New.
28548         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28549         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28550         before the final cleanup_eh.
28551         (dump_properties): Dump PROP_gimple_lcx.
28552         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28553         (tree_lower_complex_O0): Remove.
28554         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28555         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
28556         tree_lower_complex, schedule TODO_update_ssa.
28557         * lto-streamer-out.c (output_function): Stream the functions
28558         properties.
28559         * lto-streamer-in.c (input_function): Likewise.
28560         (lto_read_body): Do not override them here.
28561
28562 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
28563
28564         PR c/42708
28565         * c-typeck.c (build_c_cast): Fold value cast to union type before
28566         wrapping it in a CONSTRUCTOR.
28567
28568 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28569
28570         PR rtl-optimization/42699
28571         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28572         involved.
28573
28574 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28575
28576         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28577         SUBTARGET_WARN_UNUSED_SPEC): Move ...
28578         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28579         SUBTARGET_WARN_UNUSED_SPEC): ... here
28580         * config/mips/iris5.h (LIBGCC_SPEC): Define.
28581
28582 2010-01-12  Julian Brown  <julian@codesourcery.com>
28583
28584         * config/arm/neon-schedgen.ml (Utils): Don't try to
28585         open missing module.
28586         (find_with_result): New.
28587
28588 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28589
28590         PR debug/42662
28591         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28592         sharing when canonicalizing ({lt,ge}u (plus a b) b).
28593
28594         PR tree-optimization/42645
28595         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
28596         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28597         decl_map, set processing_debug_stmt to -1 and return name without
28598         any remapping.
28599
28600 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
28601
28602         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28603         binutils version, and reword target configuration description.
28604
28605 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28606
28607         * config/avr/avr.h (LINKER_NAME): Remove.
28608
28609 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
28610
28611         PR target/42416
28612         * config/rs6000/rs6000.c (rs6000_override_options): On targets
28613         that support VSX, warn for -mno-altivec if vsx is not disabled,
28614         and disable vsx.
28615
28616 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
28617             Shujing Zhao  <pearly.zhao@oracle.com>
28618
28619         PR translation/42469
28620         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28621         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28622         character between option name and help text.
28623         * c.opt (imultilib): Likewise.
28624
28625 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
28626
28627         * lto-streamer-out.c (output_unreferenced_globals): Output static
28628         variables.
28629
28630 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
28631
28632         PR rtl-optimization/42621
28633         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28634         optimizing for size.
28635         (duplicate_computed_gotos): Remove now-redundant check.
28636
28637 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
28638
28639         PR target/37454
28640         * configure.ac: Save and restore LDFLAGS and LIBS
28641         * configure: Regenerate.
28642
28643 2010-01-10  Richard Guenther  <rguenther@suse.de>
28644
28645         PR middle-end/42667
28646         * builtins.c (fold_builtin_strlen): Add type argument and
28647         convert the resulting length to it.
28648         (fold_builtin_1): Adjust.
28649
28650 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28651
28652         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28653         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28654         1 insn.
28655         (num_insns_constant_wide): Adjust for that change.
28656
28657 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28658
28659         PR debug/42631
28660         * web.c (union_defs): Add used argument, to combine uses of
28661         uninitialized regs.
28662         (entry_register): Adjust type and tests of used argument.
28663         (web_main): Widen used for new use.  Pass it to union_defs.
28664         * df.h (union_defs): Adjust prototype.
28665
28666 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28667
28668         PR debug/42630
28669         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28670         uses in new incoming argument.  Free body.
28671         (reset_debug_uses_in_loop): New.
28672         (analyze_insn_to_expand_var): Call the latter if the former found
28673         anything.  Fix whitespace.  Reject invalid dest overlaps before
28674         going through all insns in the loop.
28675
28676 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28677
28678         PR debug/42629
28679         * haifa-sched.c (dying_use_p): Debug insns don't count.
28680
28681 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28682
28683         PR middle-end/42363
28684         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28685         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28686         (verify_gimple_call): Reject LHS in noreturn calls.
28687
28688 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28689
28690         PR debug/42604
28691         PR debug/42395
28692         * tree-vect-loop-manip.c (adjust_info): New type.
28693         (adjust_vec): New pointer to vector.
28694         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28695         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28696         (slpeel_update_phis_for_duplicate_loop): Use them.
28697         (slpeel_update_phi_nodes_for_guard1): Likewise.
28698         (slpeel_update_phi_nodes_for_guard2): Likewise.
28699         (slpeel_tree_peel_loop_to_edge): Likewise.
28700         (vect_update_ivs_after_vectorizer): Likewise.
28701
28702 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28703
28704         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28705         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28706
28707 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28708
28709         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28710         bogus uninitialized warning.
28711
28712 2010-01-09  Richard Guenther  <rguenther@suse.de>
28713
28714         PR middle-end/42512
28715         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28716         the evolution is compatible with the initial condition.
28717
28718 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28719
28720         * gcc.c (process_command): Update copyright notice dates.
28721         * gcov.c (print_version): Likewise.
28722         * gcov-dump.c (print_version): Likewise.
28723         * mips-tfile.c (main): Likewise.
28724         * mips-tdump.c (main): Likewise.
28725
28726 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28727
28728         PR target/41885
28729         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
28730         (rotlhi3): Delete.
28731         (rotlhi3_8): Delete.
28732         (rotlsi3): Delete.
28733         (rotlsi3_8): Delete.
28734         (rotlsi3_16): Delete.
28735         (rotlsi3_24): Delete.
28736         (rotl<mode>3): New.
28737         (*rotw<mode>3): New.
28738         (*rotb<mode>3): New.
28739         * config/avr/avr.c (avr_rotate_bytes): New function.
28740         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
28741
28742 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
28743
28744         PR target/37454
28745         * configure.ac: Modify -rdynamic check.
28746         * configure: Regenerate.
28747
28748 2010-01-08  DJ Delorie  <dj@redhat.com>
28749
28750         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
28751         register popping order.
28752
28753 2010-01-08  Richard Guenther  <rguenther@suse.de>
28754
28755         PR lto/42528
28756         * c.opt (fsigned-char): Also let LTO handle this option.
28757         (funsigned-char): Likewise.
28758
28759 2010-01-07  Richard Guenther  <rguenther@suse.de>
28760
28761         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
28762         (gimple_op): Likewise.
28763         (gimple_op_ptr): Likewise.
28764         (gimple_assign_set_lhs): Remove gcc_assert.
28765         (gimple_assign_set_rhs1): Likewise.
28766         (gimple_assign_set_rhs2): Likewise.
28767         (gimple_call_set_lhs): Likewise.
28768         (gimple_call_set_fn): Likewise.
28769         (gimple_call_set_fndecl): Likewise.
28770         (gimple_call_fndecl): Likewise.
28771         (gimple_call_return_type): Likewise.
28772         (gimple_call_set_chain): Likewise.
28773         (gimple_call_num_args): Likewise.
28774         (gimple_call_set_arg): Likewise.
28775         (gimple_cond_set_code): Likewise.
28776         (gimple_cond_set_lhs): Likewise.
28777         (gimple_cond_set_rhs): Likewise.
28778         (gimple_cond_set_true_label): Likewise.
28779         (gimple_cond_set_false_label): Likewise.
28780         (gimple_label_set_label): Likewise.
28781         (gimple_goto_set_dest): Likewise.
28782         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
28783         (gimple_debug_bind_get_value): Likewise.
28784         (gimple_debug_bind_get_value_ptr): Likewise.
28785         (gimple_debug_bind_set_var): Likewise.
28786         (gimple_debug_bind_set_value): Likewise.
28787         (gimple_debug_bind_reset_value): Likewise.
28788         (gimple_debug_bind_has_value_p): Likewise.
28789         (gimple_return_retval_ptr): Remove gcc_assert.
28790         (gimple_return_retval): Likewise.
28791         (gimple_return_set_retval): Likewise.
28792         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
28793         (safe_referenced_var_iterator): Remove.
28794         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
28795         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
28796         (fill_referenced_var_vec): Remove.
28797         (first_readonly_imm_use): Remove redundant gcc_assert.
28798         (phi_arg_index_from_use): Combine gcc_asserts.
28799         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
28800         (first_imm_use_stmt): Remove redundant gcc_assert.
28801         * tree-cfg.c (verify_gimple_call): Verify function and chain
28802         operands.  Verify arguments.
28803         (verify_types_in_gimple_stmt): Verify condition code and labels.
28804
28805 2010-01-07  Richard Guenther  <rguenther@suse.de>
28806
28807         PR tree-optimization/42641
28808         * sese.c (rename_map_elt_info): Use the SSA name version, do
28809         not hash pointers.
28810
28811 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
28812
28813         PR tree-optimization/42625
28814         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
28815         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
28816
28817 2010-01-07  Duncan Sands  <baldrick@free.fr>
28818
28819         * Makefile.in (PLUGIN_HEADERS): Add version.h.
28820
28821 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
28822
28823         PR target/42511
28824         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
28825         note itself is not function_invariant_p.
28826
28827 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
28828
28829         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
28830         Do not add the DF_NOTE problem.
28831         * store-motion.c (execute_rtl_store_motion): Likewise.
28832
28833 2010-01-07  Martin Jambor  <mjambor@suse.cz>
28834
28835         PR tree-optimization/42157
28836         * tree-sra.c (compare_access_positions): Stabilize sort if both
28837         accesses have integer types, return zero immediately if they are the
28838         same.
28839
28840 2010-01-06  Richard Henderson  <rth@redhat.com>
28841
28842         PR middle-end/41883
28843         * haifa-sched.c (add_to_note_list): Merge into ...
28844         (concat_note_lists): ... here, and ...
28845         (unlink_other_notes, rm_other_notes): Merge into...
28846         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
28847         NOTE_INSN_EPILOGUE_BEG.
28848
28849 2010-01-06  Richard Guenther  <rguenther@suse.de>
28850
28851         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
28852         not inline regular functions into always-inline functions.
28853
28854 2010-01-06  Nick Clifton  <nickc@redhat.com>
28855
28856         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
28857         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
28858         used together.
28859         (OVERRIDE_OPTIONS): Delete.
28860         (OPTIMIZATION_OPTIONS): Define.
28861         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
28862         * config/rx/rx.c (rx_handle_option): Issue an error message if
28863         -mcpu=rx200 and -fpu are used together.
28864         (rx_set_optimization_options): New function.  Issue an error
28865         message if an optimization attribute attempts to reset the FPU/
28866         math optimization pairing.
28867         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
28868         * config/rx/rx.opt: Set the default to 32-bit doubles.
28869         * config/rx/t-rx: Add multilibs for -nofpu option.
28870         * doc/invoke.texi: Update documentation of RX options.
28871
28872 2010-01-06  Richard Guenther  <rguenther@suse.de>
28873
28874         * tree-ssa-pre.c (name_to_id): New global.
28875         (alloc_expression_id): Simplify SSA name handling.
28876         (lookup_expression_id): Likewise.
28877         (init_pre): Zero name_to_id.
28878         (fini_pre): Free it.
28879
28880 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
28881
28882         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
28883
28884 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
28885
28886         PR target/42542
28887         * config/i386/sse.md (smaxv2di3): New.
28888         (umaxv2di3): Likewise.
28889         (sminv2di3): Likewise.
28890         (uminv2di3): Likewise.
28891
28892 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28893
28894         PR target/42564
28895         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
28896         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
28897         (legitimize_tls_address): Likewise.
28898         (sparc_tls_referenced_p): Likewise.
28899         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
28900         and adjust calls to legitimize_pic_address.
28901         (legitimate_constant_p) Use sparc_tls_referenced_p.
28902         (legitimate_pic_operand_p): Likewise.
28903         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
28904         (sparc_tls_symbol_ref_1): Delete.
28905         (sparc_tls_referenced_p): Make static, recognize specific patterns.
28906         (legitimize_tls_address): Make static, handle CONST patterns.
28907         (legitimize_pic_address): Make static, remove unused parameter and
28908         adjust recursive calls.
28909         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
28910         and adjust call to legitimize_pic_address.
28911         (sparc_output_mi_thunk): Likewise.
28912
28913 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
28914             H.J. Lu  <hongjiu.lu@intel.com>
28915
28916         PR target/42542
28917         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
28918         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
28919         operands to make them signed.
28920
28921         Revert:
28922         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28923
28924         PR target/42542
28925         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28926         GTU to GT for V4SI and V2DI.
28927
28928         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28929         (umin<mode>3): Removed.
28930         (uminv8hi3): New.
28931         (uminv4si3): Likewise.
28932
28933 2010-01-05  Martin Jambor  <mjambor@suse.cz>
28934
28935         PR tree-optimization/42462
28936         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
28937         current_function_decl to helper functions and macros.
28938
28939 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28940
28941         PR bootstrap/41771
28942         * flags.h: Don't include real.h.
28943         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
28944         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
28945         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
28946         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
28947         * dominance.c: Update copyright.
28948         * gimple.c (walk_gimple_op): Remove inline.
28949         * tree-ssa-reassoc.c: Include real.h.
28950         * Makefile.in (FLAGS_H): Remove $(REAL_H).
28951         (tree-ssa-reassoc.o): Depend on $(REAL_H).
28952
28953 2010-01-05  Nick Clifton  <nickc@redhat.com>
28954
28955         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
28956         register to push into the stack frame when the accumulator has to
28957         be saved during interrupts.
28958
28959 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
28960
28961         * doc/invoke.texi: Remove the documentation about option
28962         -Wunreachable-code.
28963         * common.opt (Wunreachable-code):  Preserved for backward
28964         compatibility.
28965         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
28966         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
28967         the backward compatibility flag section.
28968
28969 2010-01-05  Richard Guenther  <rguenther@suse.de>
28970
28971         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
28972
28973 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
28974
28975         PR other/42611
28976         * cfgexpand.c (expand_one_var): Diagnose too large variables.
28977
28978         PR tree-optimization/42508
28979         * tree-sra.c (convert_callers): Check for recursive call
28980         by comparing cgraph nodes instead of decls.
28981         (modify_function): Call ipa_modify_formal_parameters also
28982         on all same_body aliases.
28983
28984         * cgraphunit.c (cgraph_materialize_all_clones): Compare
28985         cgraph nodes when checking for same_body aliases.
28986
28987 2010-01-05  Richard Guenther  <rguenther@suse.de>
28988
28989         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
28990         allocation and lookup.
28991         (get_or_alloc_expr_for_constant): Likewise.
28992         (phi_translate): Sink allocation.
28993
28994 2010-01-04  Richard Guenther  <rguenther@suse.de>
28995
28996         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
28997         a new entry only if needed.
28998         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
28999         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29000         hashtable lookup.
29001         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29002         the result array.
29003         (phi_translate): Handle CONSTANTs early.
29004
29005 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29006
29007         PR tree-optimization/42398
29008         * tree-sra.c (struct access): Removed flag grp_different_types.
29009         (dump_access): Do not dump the removed flag.
29010         (sort_and_splice_var_accesses): Do not set the removed flag.
29011         (sra_modify_expr): Check for type compatibility directly.
29012
29013 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29014
29015         PR tree-optimization/42366
29016         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29017         edges with variable number of parameters.
29018         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29019         flag instead of asserting it.
29020         (ipa_read_node_info): Read uses_analysis_done flag.
29021
29022 2010-01-04  Richard Guenther  <rguenther@suse.de>
29023
29024         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29025         iterative_hash_* as intended.
29026         (vn_reference_compute_hash): Likewise.  Simplify hashing
29027         SSA names.
29028         (vn_reference_lookup_2): Likewise.
29029         (vn_nary_op_compute_hash): Likewise.
29030         (vn_phi_compute_hash): Likewise.
29031         (expressions_equal_p): Remove strange code.
29032         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29033         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
29034         (bitmap_insert_into_set_1): Take value-id as parameter.
29035         (add_to_value): Pass it.
29036         (bitmap_insert_into_set): Likewise.
29037         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
29038
29039 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
29040
29041         PR driver/42442
29042         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29043         (do_self_spec): For switches with SWITCH_IGNORE set set also
29044         SWITCH_IGNORE_PERMANENTLY.
29045         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29046         of SWITCH_IGNORE.
29047
29048 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
29049
29050         * lto-streamer-out.c (output_unreferenced_globals): Output the full
29051         tree of an unreferenced global var.
29052
29053 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29054
29055         PR target/42542
29056         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29057         GTU to GT for V4SI and V2DI.
29058
29059         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29060         (umin<mode>3): Removed.
29061         (uminv8hi3): New.
29062         (uminv4si3): Likewise.
29063
29064 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29065
29066         PR lto/42581
29067         * collect2.c (main): Turn on trace in collect2 if -v is passed
29068         to gcc with LTO.
29069
29070 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
29071
29072         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
29073         description of expression operand.
29074
29075 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
29076
29077         * configure.ac: Add install-html to target_list for Make-hooks.
29078         * configure: Regenerate.
29079         * fortran/Make-lang.in (F95_HTMLFILES): New.
29080         (fortran.html): Use it.
29081         (fortran.install-html): New.
29082         * Makefile.in (install-html): Add lang.install-html.
29083         * java/Make-lang.in (JAVA_HTMLFILES): New.
29084         (java.html): Use it.
29085         (java.install-html): New.
29086         * objc/Make-lang.in (objc.install-html): New.
29087         * objcp/Make-lang.in (obj-c++.install-html): New.
29088         * cp/Make-lang.in (c++.install-html): New.
29089         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29090         * lto/Make-lang.in (lto.install-html): New.
29091
29092 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29093
29094         PR lto/42520
29095         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29096
29097 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29098
29099         PR rtl-optimization/41862
29100         * store-motion.c (store_killed_in_insn, compute_store_table,
29101         remove_reachable_equiv_notes, replace_store_insn,
29102         build_store_vectors): Ignore all DEBUG_INSNs.
29103
29104 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29105
29106         PR lto/41564
29107         * common.opt: Add dumpdir.
29108
29109         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29110         isn't specified.
29111         (option_map): Add --dumpdir.
29112
29113         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29114
29115         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29116
29117         * opts.c (decode_options): Try dump_dir_name first if
29118         dump_base_name isn't an absolute path.
29119         (common_handle_option): Handle OPT_dumpdir.
29120
29121         * toplev.c (dump_dir_name): New.
29122         (print_switch_values): Also ignore -dumpdir.
29123
29124         * toplev.h (dump_dir_name): New.
29125
29126 2010-01-03  Richard Guenther  <rguenther@suse.de>
29127
29128         PR tree-optimization/42589
29129         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29130         double-word expansion of bswap32.
29131
29132 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29133
29134         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29135         with BLOCK_FOR_INSN.
29136         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29137         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29138         noce_process_if_block): Likewise.
29139         * gcse.c (compute_local_properties, insert_expr_in_table,
29140         insert_set_in_table, canon_list_insert, find_avail_set,
29141         pre_insert_copy_insn): Likewise.
29142
29143         * basic-block.h (BLOCK_NUM): Move from here...
29144         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29145
29146 2010-01-03  Richard Guenther  <rguenther@suse.de>
29147
29148         PR tree-optimization/42438
29149         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29150         contains_may_not_return_call flag.
29151         (BB_MAY_NOTRETURN): New.
29152         (valid_in_sets): Trapping nary operations are not valid
29153         in blocks that may not return.
29154         (insert_into_preds_of_block): Remove check for trapping expressions.
29155         (compute_avail): Compute also BB_MAY_NOTRETURN.
29156
29157 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
29158
29159         * doc/invoke.texi: Add 2010 to copyright years.
29160
29161 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29162
29163         * config/sparc/sparc.c: Fix formatting nits.
29164
29165 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
29166             Alexander Monakov  <amonakov@ispras.ru>
29167
29168         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29169
29170 2010-01-02  Richard Guenther  <rguenther@suse.de>
29171
29172         PR middle-end/42577
29173         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29174         (simplify_switch_using_ranges): Mark to be removed edges
29175         as non-executable.
29176
29177 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29178
29179         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29180
29181         * collect2.c (scan_libraries): Add missing argument in call to
29182         scan_prog_file.
29183
29184 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
29185
29186         PR target/42448
29187         * config/alpha/predicates.md (aligned_memory_operand): Return false
29188         for CQImode.
29189         (unaligned_memory_operand): Return true for CQImode.
29190         * config/alpha/alpha.c (get_aligned_mem): Assert that location
29191         doesn not cross aligned SImode word boundary.
29192
29193 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
29194
29195         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29196         Remove.
29197         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29198         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29199
29200 2010-01-02  Richard Guenther  <rguenther@suse.de>
29201
29202         PR lto/41597
29203         * toplev.c (compile_file): Emit LTO marker properly.  Change
29204         it to __gnu_lto_v1.
29205         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29206
29207 2010-01-01  Richard Guenther  <rguenther@suse.de>
29208
29209         PR debug/42455
29210         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29211
29212 2010-01-01  Richard Guenther  <rguenther@suse.de>
29213
29214         PR c/42570
29215         * c-decl.c (grokdeclarator): For zero-size arrays force
29216         structural equality checks as layout_type does.
29217
29218 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29219
29220         * builtins.c: Update copyright to 2010.
29221
29222 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29223
29224         PR lto/42531
29225         * lto-streamer-out.c (produce_asm): Revert the last change.
29226         (copy_function): Likewise.
29227
29228         * lto-streamer.c (lto_get_section_name): Skip any leading
29229         asterisk in name.
29230
29231 2010-01-01  Richard Guenther  <rguenther@suse.de>
29232
29233         PR middle-end/42559
29234         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29235         for LABEL_DECLs.
29236
29237 \f
29238 Copyright (C) 2010 Free Software Foundation, Inc.
29239
29240 Copying and distribution of this file, with or without modification,
29241 are permitted in any medium without royalty provided the copyright
29242 notice and this notice are preserved.