OSDN Git Service

Tweak ABI & add moxie-uclinux target.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-07-31  Anthony Green  <green@moxielogic.com>
2
3         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
4         $r12 in prologue.
5         (moxie_expand_epilogue): Ditto for epilogue.
6         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
7         incoming arguments.
8         (moxie_function_arg): Ditto.
9         (moxie_pass_by_reference): Ditto.
10         (moxie_arg_partial_bytes): Ditto.
11         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
12         (FUNCTION_ARG_ADVANCE) Ditto.
13         (REG_PARM_STACK_SPACE) Ditto.
14         (FUNCTION_ARG_REGNO_P) Dito.
15
16         * config.gcc: Add moxie linux config support.
17         * gcc/config/moxie/uclinux.h: New file.
18
19 2009-07-31  DJ Delorie  <dj@redhat.com>
20
21         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
22         (UNSPECV_SP_SWITCH_E): New.
23         (sp_switch_1): Change to an unspec.
24         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
25         replace $r15.
26         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
27         reference the new stack's address
28
29 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
30
31         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
32         graphite-clast-to-gimple.o, graphite-dependences.o,
33         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
34         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
35         (graphite-blocking.o,
36         graphite-clast-to-gimple.o, graphite-dependences.o,
37         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
38         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
39         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
40         * cfgloop.h (struct loop): Add can_be_parallel field.
41         * common.opt (fgraphite-identity): Moved up.
42         (fgraphite-force-parallel): New flag.
43         * graphite.c: Rewrite.
44         * graphite.h: Rewrite.
45         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
46         after Graphite.
47         * toplev.c (graphite_out_file): New file descriptor.
48         (graphite_in_file): New.
49         (process_options): flag_graphite_force_parallel cannot be used without
50         Graphite.
51         * tree-ssa-loop.c: Include toplev.h.
52         (gate_graphite_transforms): Enable flag_graphite for
53         flag_graphite_force_parallel.
54
55 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
56
57         * ChangeLog.graphite: New.
58         * graphite-blocking.c: New.
59         * graphite-clast-to-gimple.c: New.
60         * graphite-clast-to-gimple.h: New.
61         * graphite-dependences.c: New.
62         * graphite-dependences.h: New.
63         * graphite-interchange.c: New.
64         * graphite-poly.c: New.
65         * graphite-poly.h: New.
66         * graphite-ppl.c: New.
67         * graphite-ppl.h: New.
68         * graphite-scop-detection.c: New.
69         * graphite-scop-detection.h: New.
70         * graphite-sese-to-poly.c: New.
71         * graphite-sese-to-poly.h: New.
72         * sese.c: New.
73         * sese.h: New.
74
75 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
76
77         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
78         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
79
80 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
81
82         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
83         (scev_is_linear_expression): Return false if the evolution is not
84         affine multivariate.
85
86 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
87
88         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
89         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
90
91 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
92
93         * tree-data-ref.c (debug_data_references): New.
94         (debug_data_reference): New.
95         * tree-data-ref.h (debug_data_references): Declared.
96         (debug_data_reference): Declared.
97
98 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
99
100         * tree-data-ref.c (stmt_simple_memref_p: Removed.
101         * tree-data-ref.h (scop_p): Removed.
102         (struct data_reference): Remove field scop.
103         (DR_SCOP): Removed.
104         (stmt_simple_memref_p): Removed.
105
106 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
107
108         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
109         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
110         basic block empty.
111
112 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
113
114         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
115
116 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
117
118         * doc/invoke.texi (-fgraphite-identity): Documented.
119
120 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
121
122         * tree-scalar-evolution.c: Fix comment.
123         (instantiate_scev_1): Return unknow from scev instantiation if the
124         result is not above instantiate_below.
125
126 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
127
128         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
129         static anymore.  Instantiate the symbols that may have been introduced
130         by chrec_apply.
131         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
132         Declared.
133
134 2009-07-30  DJ Delorie  <dj@redhat.com>
135
136         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
137         .vliw directive to VLIW sections.
138
139 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
140
141         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
142         New variables.
143         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
144         (AUTOHEADER): New variable.
145         ($(srcdir)/cstamp-h.in): Use it.
146
147 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
148             Pat Haugen  <pthaugen@us.ibm.com>
149             Revital Eres <ERES@il.ibm.com>
150
151         * config/rs6000/vector.md (VEC_F): Add VSX support.
152         (VEC_A): Ditto.
153         (VEC_N): Ditto.
154         (mov<mode>): Ditto.
155         (vector_load_<mode>): Ditto.
156         (vector_store_<mode>): Ditto.
157         (vector GPR move split): Ditto.
158         (vec_reload_and_plus_<mptrsize>): Ditto.
159         (vec_reload_and_reg_<mptrsize>): Ditto.
160         (add<mode>3): Ditto.
161         (sub<mode>3): Ditto.
162         (mul<mode>3): Ditto.
163         (neg<mode>2): Ditto.
164         (abs<mode>2): Ditto.
165         (smin<mode>3): Ditto.
166         (smax<mode>3): Ditto.
167         (vector_eq<mode>): Ditto.
168         (vector_gt<mode>): Ditto.
169         (vector_ge<mode>): Ditto.
170         (vector_gtu<mode>): Ditto.
171         (vector_select_<mode>_uns): Ditto.
172         (vector_eq_<mode>_p): Ditto.
173         (vector_gt_<mode>_p): Ditto.
174         (vector_ge_<mode>_p): Ditto.
175         (vector_gtu_<mode>_p): Ditto.
176         (cr6_test_for_zero): Ditto.
177         (cr6_test_for_zero_reverse): Ditto.
178         (cr6_test_for_lt): Ditto.
179         (cr6_test_for_lt_reverse): Ditto.
180         (xor<mode>3): Ditto.
181         (ior<mode>3): Ditto.
182         (and<mode>3): Ditto.
183         (one_cmpl<mode>2): Ditto.
184         (nor<mode>2): Ditto.
185         (andc<mode>2): Ditto.
186         (float<VEC_int<mode>2): Ditto.
187         (unsigned_float<VEC_int><mode>2): Ditto.
188         (fix_trunc<mode><VEC_int>2): Ditto.
189         (fixuns_trunc<mode><VEC_int>2): Ditto.
190         (vec_init<mode>):
191         (vec_set<mode>): Ditto.
192         (vec_extract<mode>): Ditto.
193         (vec_interleave_highv4sf): Ditto.
194         (vec_interleave_lowv4sf): Ditto.
195         (vec_realign_load_<mode>): Ditto.
196         (vec_shl_<mode>): Ditto.
197         (vec_shr_<mode>): Ditto.
198         (div<mode>3): New patterns for VSX.
199         (vec_interleave_highv2df): Ditto.
200         (vec_interleave_lowv2df): Ditto.
201         (vec_pack_trunc_v2df): Ditto.
202         (vec_pack_sfix_trunc_v2df): Ditto.
203         (vec_pack_ufix_trunc_v2df): Ditto.
204         (vec_unpacks_hi_v4sf): Ditto.
205         (vec_unpacks_lo_v4sf): Ditto.
206         (vec_unpacks_float_hi_v4si): Ditto.
207         (vec_unpacku_float_lo_v4si): Ditto.
208         (vec_unpacku_float_hi_v4si): Ditto.
209         (vec_unpacks_float_lo_v4si): Ditto.
210         (movmisalign<mode>): Ditto.
211         (vector_ceil<mode>2): New patterns for vectorizing math library.
212         (vector_floor<mode>2): Ditto.
213         (vector_btrunc<mode>2): Ditto.
214         (vector_copysign<mode>3): Ditto.
215
216         * config/rs6000/predicates.md (easy_vector_constant_msb): New
217         predicate for setting the high bit in each word, used for
218         copysign.
219
220         * config/rs6000/ppc-asm.h (f19): Whitespace.
221         (f32-f63): Define if VSX.
222         (v0-v31): Define if Altivec.
223         (vs0-vs63): Define if VSX.
224
225         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
226
227         * config/rs6000/power7.md: New file, provide tuning parameters for
228         -mcpu=power7.
229
230         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX
231         support.
232         (rs6000_cpu_cpp_builtins): Ditto.
233         (altivec_overloaded_builtins): Ditto.
234         (altivec_resolve_overloaded_builtin): Ditto.
235
236         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
237         debug switch to disable vectorizing simple math builtin
238         functions.
239
240         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
241         Vectorize simple math builtin functions.
242         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
243         hook to vectorize math builtins.
244         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
245         (rs6000_builtin_conversion): Add VSX/power7 support.
246         (rs6000_builtin_vec_perm): Ditto.
247         (vsplits_constant): Add support for loading up a vector constant
248         with just the high bit set in each part.
249         (rs6000_expand_vector_init): Add VSX/power7 support.
250         (rs6000_expand_vector_set): Ditto.
251         (rs6000_expand_vector_extract): Ditto.
252         (rs6000_emit_move): Ditto.
253         (bdesc_3arg): Ditto.
254         (bdesc_2arg): Ditto.
255         (bdesc_1arg): Ditto.
256         (rs6000_expand_ternop_builtin): Ditto.
257         (altivec_expand_builtin): Ditto.
258         (rs6000_expand_unop_builtin): Ditto.
259         (rs6000_init_builtins): Ditto.
260         (altivec_init_builtins): Ditto.
261         (builtin_function_type): Ditto.
262         (rs6000_common_init_builtins): Ditto.
263         (rs6000_handle_altivec_attribute); Ditto.
264         (rs6000_mangle_type): Ditto.
265         (rs6000_vector_mode_supported_p): Ditto.
266         (rs6000_mode_dependent_address): Altivec addresses with AND -16
267         are mode dependent.
268
269         * config/rs6000/vsx.md: New file for VSX support.
270
271         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
272         identifing values with just the most significant bit set.
273         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
274         vectorized builtins.
275
276         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
277         (UNSPEC_VRFIM): Delete.
278         (splitter for loading up vector with most significant bit): New
279         splitter for vectorizing copysign.
280         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
281         vectorizing simple math functions.
282         (altivec_vrfip): Add support for vectorizing simple math
283         functions.
284         (altivec_vrfim): Ditto.
285         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
286
287         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
288         (power7.md, vsx.md): Include for power7 support.
289         (copysigndf3): Use VSX instructions if -mvsx.
290         (negdf2_fpr): Ditto.
291         (absdf2_fpr): Ditto.
292         (nabsdf2_fpr): Ditto.
293         (adddf3_fpr): Ditto.
294         (subdf3_fpr): Ditto.
295         (muldf3_fpr): Ditto.
296         (divdf3_fpr): Ditto.
297         (fix_truncdfdi2_fpr): Ditto.
298         (cmpdf_internal1): Ditto.
299         (fred, fred_fpr): Convert into expander/insn to add VSX support.
300         (btruncdf2, btruncdf2_fpr): Ditto.
301         (ceildf2, ceildf2_fpr): Ditto.
302         (floordf2, floordf2_fpr): Ditto.
303         (floatdidf2, floatdidf2_fpr): Ditto.
304         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
305         (fmsubdf4_fpr): Ditto.
306         (fnmadddf4_fpr_1): Ditto.
307         (fnmadddf4_fpr_2): Ditto.
308         (fnmsubdf4_fpr_1): Ditto.
309         (fnmsubdf4_fpr_2): Ditto.
310         (fixuns_truncdfdi2): Add expander for VSX support.
311         (fix_truncdfdi2): Ditto.
312         (fix_truncdfsi2): Ditto.
313         (ftruncdf2): Ditto.
314         (btruncsf2): Whitespace.
315         (movdf_hardfloat32): Add support for VSX registers.
316         (movdf_softfloat32): Ditto.
317         (movdf_hardfloat64): Ditto.
318         (movdf_hardfloat64_mfpgpr): Ditto.
319         (movdf_softfloat64): Ditto.
320         (movti splitters): Add check for vector registers supporting
321         TImode in the future.
322         (bpermd): Add power7 bpermd instruction.
323
324         * config/rs6000/altivec.h (vec_div): Define if VSX.
325         (vec_mul): Ditto.
326         (vec_msub): Ditto.
327         (vec_nmadd): Ditto.
328         (vec_nearbyint): Ditto.
329         (vec_rint): Ditto.
330         (vec_sqrt): Ditto.
331         (all predicates): Use the generic builtin function, and not the
332         V4SF specific function so that the predicates will work with
333         VSX's V2DF.
334         (vec_all_*): Ditto.
335         (vec_any_*): Ditto.
336
337         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
338         Document new VSX functions and types.
339
340         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
341         switches.
342
343         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
344         "wa", and "j" constraints.  Modify "v" to talk about Altivec
345         instead of just vector.
346
347 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
348
349         PR debug/26475
350         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
351         location for phi arguments.
352         (rewrite_update_phi_arguments): Find locations for reaching defs.
353         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
354         Add location to add_phi_arg calls.
355         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
356         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
357         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
358         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
359         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
360         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
361         * tree-phinodes.c (make_phi_node): Initialize location.
362         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
363         (add_phi_arg): Add location parameter.
364         (remove_phi_arg_num): Move location when moving phi argument.
365         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set 
366         location.
367         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
368         slpeel_update_phi_nodes_for_guard1,
369         slpeel_update_phi_nodes_for_guard2,
370         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
371         vect_loop_versioning): Set locations.
372         * tree-parloops.c (create_phi_for_local_result,
373         transform_to_exit_first_loop, create_parallel_loop): Add locations.
374         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
375         * tree-vect-loop.c (get_initial_def_for_induction,
376         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
377         locations.
378         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
379         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
380         (gimple_phi_arg_set_location): New.  Set locus.
381         (gimple_phi_arg_has_location): New.  Check for locus.
382         (redirect_edge_var_map_location): New.  Return locus from var_map.
383         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
384         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
385         combining PHI arguments.
386         (cond_store_replacement): Set location.
387         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
388         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
389         scop_add_exit_phis_edge): Add locations.
390         * tree-cfgcleanup.c (remove_forwarder_block,
391         remove_forwarder_block_with_phi): Add locations.
392         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
393         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
394         locations.
395         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
396         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
397         flush_pending_stmts): Add source location.
398         * lambda-code.c (perfect_nestify): Maintain location stack with argument
399         stack to preserve locations.
400         * tree-vect-stmts.c (vectorizable_load): Add location.
401         * tree-inline.c (copy_phis_for_bb): Copy locus.
402         (setup_one_parameter): Add call locus to inlined parameter stmts.
403         (initialize_inlined_parameters): Pass in call location as parameter
404         assignment locus.
405         (tree_function_versioning): Pass location to setup_one_parameter.
406         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
407         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
408         copy and edge lists.
409         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
410         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a 
411         locus parameter and override the stmt default if provided.
412         (new_elim_graph, clear_elim_graph, delete_elim_graph,
413         elim_graph_add_edge, elim_graph_remove_succ_edge,
414         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
415         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
416         eliminate_phi):  Add locus info in elimination graph for each edge and
417         value copy.
418         (insert_backedge_copies): Copy locus if present.
419         * tree-flow.h (struct _edge_var_map): Add locus field.
420         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
421         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
422         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add 
423         locations.
424         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
425         
426 2009-07-30  Martin Jambor  <mjambor@suse.cz>
427
428         PR tree-optimization/40570
429         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
430         use inlining loops.
431
432 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
433
434         * ssa-loop-manip.c: Include langhooks.h.
435         (rewrite_phi_with_iv): New.
436         (rewrite_all_phi_nodes_with_iv): New.
437         (canonicalize_loop_ivs): Move here from tree-parloops.c.
438         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
439         * tree-parloops.c (loop_parallel_p): Move out all conditions
440         except dependency check.
441         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
442         (gen_parallel_loop): Call canonicalize_loop_ivs without
443         reduction_list argument.
444         (build_new_reduction): New.
445         (gather_scalar_reductions): New.
446         (try_get_loop_niter): New.
447         (try_create_reduction_list): New.
448         (parallleize_loops): Change the parallel conditions check.
449         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
450         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
451
452 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
453
454         * opt-functions.awk (opt_args): Allow argument to be enclosed in
455         curly braces.
456         * doc/options.texi (Option properties):  Mention new quoting syntax.
457
458 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
459
460         * config/alpha/alpha.c (alpha_start_function):
461         Handle VMS_DEBUG_MAIN_POINTER
462         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
463         * doc/invoke.texi: Document -mdebug-main switch.
464
465 2009-07-29  Richard Henderson  <rth@redhat.com>
466
467         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
468         (cgraph_create_edge_including_clones): Likewise.
469         * tree-inline.c (copy_bb): Operate on the correct edges
470         when updating the callgraph.
471
472 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
473
474         * config/alpha/vms-cc.c: Deleted.
475         * config/alpha/vms-ld.c: Deleted.
476         * config/alpha/t-vms64: Moved to config/vms
477         * config/alpha/vms-crt0-64.c: Moved to config/vms
478         * config/alpha/vms-crt0.c: Moved to config/vms
479         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
480         * config/alpha/vms-psxcrt0.c: Moved to config/vms
481         * config/alpha/xm-vms.h: Moved to config/vms
482         * config/alpha/x-vms: Moved to config/vms
483         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
484         config/vms/t-vms.
485         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
486         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
487         (version): Set.
488         * config/vms/t-vms64: Moved here from config/alpha
489         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
490         (argc,argv,envp): Enforce 32bit malloc'ing.
491         * config/vms/vms-psxcrt0-64.c: Likewise.
492         * config/vms/vms-crt0.c: Moved here from config/alpha.
493         * config/vms/vms-psxcrt0.c: Likewise.
494         * config/vms/vms-crtl-64.h: New file.
495         * config/vms/vms-crtl.h: New file.
496         * config/vms/vms.opt: New file.
497         * config/vms/xm-vms64.h: New file.
498         * config/vms/xm-vms.h: Moved here from config/alpha.
499         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
500         Set.
501         * config/vms/x-vms: Moved here from config/alpha.
502         (version, VMS_EXTRA_PARTS): Moved to t-vms.
503         (vms-ld.o, vms-cc.o): Removed.
504         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
505
506 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
507
508         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
509         correct stack (obvious VMS fix).
510
511 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
512
513         * dwarf2out.c (output_file_names): Output VMS style file name, size,
514         date, version info if VMS_DEBUGGING_INFO defined.
515         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
516         size, date calculating code moved here.
517
518 2009-07-29  Paul Brook  <paul@codesourcery.com>
519
520         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
521         do_push/do_pop.
522
523 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
524
525         PR target/40577
526         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
527         to DImode when generating insq_le insn.
528
529 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
530
531         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
532         New macro set for VMS_DEBUGGGING_INFO.
533         (AT_string_form): Use it.
534
535 2009-07-28  DJ Delorie  <dj@redhat.com>
536
537         * config/mep/mep.c (vtext_section): New.
538         (vftext_section): New.
539         (ftext_section): New.
540         (mep_select_section): Add support for functions.
541         (mep_unique_section): Likewise.
542         (mep_asm_init_sections): Likewise.
543         (mep_encode_section_info): Remove it from here.
544
545         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
546
547 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
548
549         * tree.h (TREE_DEPRECATED): Document it is used for types too.
550         (TYPE_VECTOR_OPAQUE): Use default_def_flag
551
552 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
553
554         * dwarf2out.c (output_file_names): Test new macro
555         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
556         (add_comp_dir_attribute): Likewise.
557
558 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
559
560         * config/i386/mingw-w64.h (LINK_SPEC): Add
561         separating space between commands.
562
563 2009-07-28  Jan Hubicka  <jh@suse.cz>
564
565         PR tree-optimization/40759
566         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
567         for renaming.
568
569 2009-07-27  DJ Delorie  <dj@redhat.com>
570
571         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
572         types are dword-aligned.
573         (mep_expand_va_start): Likewise.
574
575 2009-07-27  Olivier Hainque  <hainque@adacore.com>
576             Douglas B Rupp  <rupp@gnat.com>
577
578         * convert.c (convert_to_pointer): Don't assume the target
579         pointer type is POINTER_SIZE long. Fetch its precision instead.
580
581 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
582
583         * system.h (fopen): Undefine if macro.
584
585 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
586
587         * dwarf2out.c (output_cfi_p): Removed.
588         (output_cfis): New function.
589         (output_fde): New function, split from output_call_frame_info.
590         (output_call_frame_info): Use it.
591         (dwarf2out_switch_text_section): Use output_cfis.
592
593 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
594
595         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
596         TARGET_BI_ARCH is specified without enabling SJLJ.
597         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
598         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
599
600 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
601
602         * arm.md (negdi2): Use DImode if forcing a value into a register.
603
604 2009-07-26  Ira Rosen  <irar@il.ibm.com>
605
606         PR tree-optimization/40801
607         * tree-vect-stmts.c (vectorizable_call): Get previous copy
608         of vector operand from the previous copy of vector statement.
609         Pass the correct definition type value to
610         vect_get_vec_def_for_stmt_copy().
611
612 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
613
614         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
615         const char ** conversion.
616
617 2009-07-25 David Daney <ddaney@caviumnetworks.com>
618
619         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
620         fancy_abort() if !ENABLE_ASSERT_CHECKING.
621         (gcc_unreachable): Invoke __builtin_unreachable() if
622         !ENABLE_ASSERT_CHECKING.
623
624 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
625
626         PR rtl-optimization/40445
627         * emit-rtl.c (next_nonnote_insn_bb): New function.
628         * rtl.h (next_nonnote_insn_bb): Declare new function.
629         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
630         with no successors that is the successor of the ENTRY_BLOCK.
631         Continue from the top after removing an empty fallthrough block.
632         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
633         of next_nonnote_insn.
634
635 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
636
637         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
638         
639 2009-07-25  Martin Jambor  <mjambor@suse.cz>
640
641         * c-common.c (c_common_attribute_table): New element for noclone.
642         (handle_noclone_attribute): New function. Forward-declare.
643         * tree-inline.c (tree_versionable_function_p): Check for noclone
644         attribute.
645         * doc/extend.texi (Labels as Values): Document need for noclone.
646         (Function Attributes): Document noclone attribute.
647
648 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
649
650         PR rtl-optimization/34999
651         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
652         and dw_fde_switched_cold_to_hot fields.
653         (output_cfi_p): New function.
654         (output_call_frame_info): If fde->dw_fde_switched_sections,
655         output 2 FDEs instead of one with corrupted header.
656         (dwarf2out_do_cfi_startproc): New function.
657         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
658         and fde->dw_fde_switched_cold_to_hot.
659         (dwarf2out_switch_text_section): Compute
660         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
661         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
662         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
663         Otherwise, compute fde->dw_fde_switch_cfi.
664
665 2009-07-24  Cary Coutant  <ccoutant@google.com>
666
667         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
668
669 2009-07-24  Cary Coutant  <ccoutant@google.com>
670
671         * cfghooks.c (split_block): Copy discriminator to new block.
672         * tree-cfg.c (assign_discriminator): Check location of last
673         instruction in block as well as first.
674
675 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
676
677         * config/i386/linux.c: Use fputs or putc instead of fprintf
678         where appropriate.
679         * config/i386/gas.h: Ditto.
680         * config/i386/x86-64.h: Ditto.
681         * config/i386/att.h: Ditto.
682
683 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
684
685         * expmed.c (emit_store_flag): Use a recursive call to optimize the
686         xor case.
687
688 2009-07-24  Martin Jambor  <mjambor@suse.cz>
689
690         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
691         (ipa_push_func_to_list_1): Declare.
692         (ipa_push_func_to_list): New function.
693
694         * ipa-prop.c (ipa_push_func_to_list_1): New function.
695         (ipa_init_func_list): Call ipa_push_func_to_list_1.
696         (ipa_push_func_to_list): Removed.
697         (ipa_pop_func_from_list): Clear node_enqueued flag.
698
699 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
700         
701         * config/s390/s390.c (override_options): Default
702         max-unrolled-insns to 100 for z10 tuning.
703
704 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
705
706         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
707         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
708         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
709         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
710         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
711         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
712         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
713
714 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
715
716         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
717         use default set in mingw32.h header.
718         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
719         64-bit /mingw/include path.
720         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
721         path.
722
723 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
724
725         PR rtl-optimization/40209
726         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
727
728 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
729
730         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
731         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
732         with the rest of string where appropriate.  Use fputs or putc
733         instead of fprintf where appropriate.
734
735 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
736             Pat Haugen  <pthaugen@us.ibm.com>
737             Revital Eres <ERES@il.ibm.com>
738
739         * config/rs6000/vector.md: New file.  Move most of the vector
740         expander support here from altivec.md to allow for the VSX vector
741         unit in the future.  Add support for secondary_reload patterns.
742         Rewrite the patterns for vector comparison, and vector comparison
743         predicate instructions so that the RTL expresses the desired
744         behavior, instead of using unspec.
745
746         * config/rs6000/constraints.md ("f" constraint): Use
747         rs6000_constraints to hold the precalculated register class.
748         ("d" constraint): Ditto.
749         ("wd" constraint): New constraint for VSX.
750         ("wf" constraint): Ditto.
751         ("ws" constraint): Ditto.
752         ("wa" constraint): Ditto.
753         ("wZ" constraint): Ditto.
754         ("j" constraint): Ditto.
755
756         * config/rs6000/predicates.md (vsx_register_operand): New
757         predicate for VSX.
758         (vfloat_operand): New predicate for vector.md.
759         (vint_operand): Ditto.
760         (vlogical_operand): Ditto.
761         (easy_fp_constant): If VSX, 0.0 is an easy constant.
762         (easy_vector_constant): Add VSX support.
763         (altivec_indexed_or_indirect_operand): New predicate for
764         recognizing Altivec style memory references with AND -16.
765
766         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
767         for vector secondary reload support.
768         (rs6000_vector_reg_class): Delete, replacing it with
769         rs6000_constraints.
770         (rs6000_vsx_reg_class): Ditto.
771         (rs6000_constraints): New array to hold the register classes of
772         each of the register constraints that can vary at runtime.
773         (builtin_mode_to_type): New static array for builtin function type
774         creation.
775         (builtin_hash_table): New static hash table for builtin function
776         type creation.
777         (TARGET_SECONDARY_RELOAD): Define target hook.
778         (TARGET_IRA_COVER_CLASSES): Ditto.
779         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
780         registers are 128 bits if VSX memory reference instructions are used.
781         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
782         unit is being used.
783         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
784         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
785         Print several of the scheduling related parameters.
786         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
787         rs6000_constraints instead of rs6000_vector_reg_class.  Move
788         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
789         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
790         Altivec.  Add VSX support.  Setup for secondary reload support on
791         Altivec/VSX registers.
792         (rs6000_override_options): Make power7 set the scheduling groups
793         like the power5.  Add support for new debug switches to override
794         the scheduling defaults.  Temporarily disable -mcpu=power7 from
795         setting -mvsx.  Add support for debug switches -malways-hint,
796         -msched-groups, and -malign-branch-targets.
797         (rs6000_buitlin_conversion): Add support for returning unsigned
798         vector conversion functions to fix regressions due to stricter
799         type checking.
800         (rs6000_builtin_mul_widen_even): Ditto.
801         (rs6000_builtin_mul_widen_odd): Ditto.
802         (rs6000_builtin_vec_perm): Ditto.
803         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
804         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
805         to zero a register.
806         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
807         generated upstream.
808         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
809         VSX types for bit operations.  Changes to accomidate vector.md.
810         (bdesc_2arg): Ditto.
811         (bdesc_1arg): Ditto.
812         (struct builtin_description_predicates): Rewrite predicate
813         handling so that RTL describes the operation, instead of passing
814         the instruction to be used as a string argument.
815         (bdesc_altivec_preds): Ditto.
816         (altivec_expand_predicate_builtin): Ditto.
817         (altivec_expand_builtin): Ditto.
818         (rs6000_expand_ternop_builtin): Use a switch instead of an if
819         statement for vsldoi support.
820         (altivec_expand_ld_builtin): Change to use new names from vector.md.
821         (altivec_expand_st_builtin): Ditto.
822         (paired_expand_builtin): Whitespace changes.
823         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
824         builtin_mode_to_type table for secondary reload.  Call
825         builtin_function_type to build random builtin functions.
826         (altivec_init_builtins): Change to use builtin_function_type to
827         create builtin function types dynamically as we need them.
828         (builtin_hash_function): New support for hashing the tree types
829         for builtin function as we need it, rather than trying to build
830         all of the trees that we need.  Add initial preliminary VSX support.
831         (builtin_function_type): Ditto.
832         (builtin_function_eq): Ditto.
833         (builtin_hash_struct): Ditto.
834         (rs6000_init_builtins): Ditto.
835         (rs6000_common_init_builtins): Ditto.
836         (altivec_init_builtins): Ditto.
837         (rs6000_common_init_builtins): Ditto.
838         (enum reload_reg_type): New enum for simplifing reg classes.
839         (rs6000_reload_register_type): Simplify register classes into GPR,
840         Vector, and other registers.  Altivec and VSX addresses in reload.
841         (rs6000_secondary_reload_inner): Ditto.
842         (rs6000_ira_cover_classes): New target hook, that returns the
843         appropriate cover classes, based on -mvsx being used or not.
844         (rs6000_secondary_reload_class): Add VSX support.
845         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
846         (get_vsel_insn): Ditto.
847         (rs6000_emit_vector_compare): Rewrite vector conditional support
848         so that where we can, we use RTL operators, instead of blindly use
849         UNSPEC.
850         (rs6000_emit_vector_select): Ditto.
851         (rs6000_emit_vector_cond_expr): Ditto.
852         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
853         (create_TOC_reference): Add -mdebug=addr support.
854         (emit_frame_save): VSX loads/stores need register indexed addressing.
855
856         * config/rs6000/rs6000.md: Include vector.md.
857
858         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
859
860         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
861         support for V2DI, V2DF in logical, permute, select operations.
862
863         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
864         switch for vsx/power7.
865         (-mvsx-scalar-memory): Ditto.
866         (-mvsx-align-128): Ditto.
867         (-mallow-movmisalign): Ditto.
868         (-mallow-df-permute): Ditto.
869         (-msched-groups): Ditto.
870         (-malways-hint): Ditto.
871         (-malign-branch-targets): Ditto.
872         
873         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
874         hook instead.
875         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
876         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
877         (rs6000_vector_reg_class): Delete.
878         (rs6000_vsx_reg_class): Ditto.
879         (enum rs6000_reg_class_enum): New enum for the constraints that
880         vary based on target switches.
881         (rs6000_constraints): New array to hold the register class for all
882         of the register constraints that vary based on the switches used.
883         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
884         (enum rs6000_builtins): Add unsigned varients for the builtin
885         declarations returned by target hooks for expanding multiplies,
886         select, and permute operations.  Add VSX builtins.
887         (enum rs6000_builtin_type_index): Add entries for VSX.
888         (V2DI_type_node): Ditto.
889         (V2DF_type_node): Ditto.
890         (unsigned_V2DI_type_node): Ditto.
891         (bool_long_type_node): Ditto.
892         (intDI_type_internal_node): Ditto.
893         (uintDI_type_internal_node): Ditto.
894         (double_type_internal_node): Ditto.
895
896         * config/rs6000/altivec.md (whole file): Move all expanders to
897         vector.md from altivec.md.  Rename insn matching functions to be
898         altivec_foo.
899         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
900         (altivec_vcmp*): Ditto.
901         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
902         (VM): New iterator for moves that includes the VSX types.
903         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
904         (altivec_vperm_<mode>_uns): New, for unsigned types.
905         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
906         (altivec_eq<mode>): Ditto.
907         (altivec_gt<mode>): Ditto.
908         (altivec_gtu<mode>): Ditto.
909         (altivec_eqv4sf): Ditto.
910         (altivec_gev4sf): Ditto.
911         (altivec_gtv4sf): Ditto.
912         (altivec_vcmpbfp_p): Ditto.
913
914 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
915
916         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to 
917         unsigned HWI.
918
919 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
920
921         PR target/40832
922         * config/i386/i386.c (output_387_ffreep): Rewrite to use
923         ASM_SHORT instead of .word.
924         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
925         instead of .word in asm template.
926
927 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
928
929         PR target/37488
930         * ira-lives.c (bb_has_abnormal_call_pred): New function.
931         (process_bb_node_lives): Use it.
932
933         * ira.c (setup_cover_and_important_classes): Don't setup
934         ira_important_class_nums.  Add cover classes to the end of
935         important classes.
936         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
937         New.
938         (find_reg_class_closure): Use reorder_important_classes.
939
940         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
941
942         * config/i386/i386.c (i386_ira_cover_classes): New function.
943         (TARGET_IRA_COVER_CLASSES): Redefine.
944
945         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
946         importance of order of cover classes in the array.
947         
948 2009-07-22  Diego Novillo  <dnovillo@google.com>
949
950         * tree-pass.h (TDF_EH): Define.
951         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
952         contains TDF_EH, print the EH region number holding GS.
953         * tree-dump.c (dump_options): Add "eh".
954         * doc/invoke.texi: Document it.
955
956 2009-07-22  Doug Kwan  <dougkwan@google.com>
957
958         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
959
960 2009-07-22  Michael Matz  <matz@suse.de>
961
962         PR tree-optimization/35229
963         PR tree-optimization/39300
964
965         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
966         (inhibit_phi_insertion): New function.
967         (insert_into_preds_of_block): Call it for REFERENCEs.
968         (init_pre): Initialize and finalize scalar evolutions.
969         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
970
971 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
972
973         * config/i386/predicates.md (zero_extended_scalar_load_operand):
974         Use CONST_VECTOR_NUNITS to determine number of elements.
975
976 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
977
978         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
979         (U, W): Constraints are now deprecated and will be removed if we
980         run out of letters.     
981         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
982         the file.
983         ("prefetch"): Add the stcmh instruction for prefetching.
984         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
985         changes.
986         (s390_short_displacement): Return always true if compiling for
987         machines not providing the long displacement facility.
988         (s390_mem_constraint): Support the new constraint letter Z.
989         (s390_check_qrst_address): New function.
990
991 2009-07-21  DJ Delorie  <dj@redhat.com>
992
993         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
994         alone too.
995
996 2009-07-21  Jason Merrill  <jason@redhat.com>
997
998         * c-common.c (max_tinst_depth): Increase default to 1024.
999
1000 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1001
1002         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
1003         (vec_unpacku_float_lo_v4si): Ditto.
1004
1005 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1006
1007         PR target/40811
1008         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
1009         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
1010         (builtin_description): Add __builtin_ia32_cvtudq2ps.
1011         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
1012
1013 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
1014
1015         PR tree-optimization/40813
1016         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
1017         it.
1018
1019 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1020
1021         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
1022         with a NOP_EXPR if needed.
1023
1024 2009-07-21  Paul Brook <paul@codesourcery.com>
1025
1026         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
1027         Terminate debug dump with newline.
1028
1029 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1030
1031         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
1032         Cast "1" to unsigned HOST_WIDE_INT.
1033         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
1034         deposit length to the maximum length - lsb.  Extend length if
1035         HOST_BITS_PER_WIDE_INT is 32.
1036
1037 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
1038
1039         * cgraph.h (constant_pool_htab): New function.
1040         (constant_descriptor_tree): Move from varasm.c.
1041         * varasm.c (constant_pool_htab): New function.
1042         (constant_descriptor_tree): Move to cgraph.h.
1043
1044 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
1045
1046         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
1047
1048 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
1049
1050         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
1051         $(VARRAY_H).
1052
1053 2009-07-20  Xinliang David Li  <davidxl@google.com>
1054
1055         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
1056
1057 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1058
1059         * config/mips/mips.md (move_type): Add arith.
1060         (type): Handle arith.
1061         (zero_extendsidi2): Rename this into ...
1062         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
1063         (zero_extendsidi2): New expander.
1064         (*zero_extendsidi2_dext): New pattern.
1065
1066 2009-07-20  Nick Clifton  <nickc@redhat.com>
1067
1068         * config.gcc (mips64-*-*): Add definition of tm_defines in order
1069         to set MIPS_ABI_DEFAULT.
1070         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
1071
1072 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
1073
1074         * tree-object-size.c (addr_object_size): Handle unions with
1075         array in it as last field of structs in __bos (, 1) as __bos (, 0).
1076
1077         PR tree-optimization/40792
1078         * tree.c (build_function_type_skip_args): Remove bogus assert.
1079
1080 2009-07-20  Jan Hubicka  <jh@suse.cz>
1081             Martin Jambor  <mjambor@suse.cz>
1082
1083         * cgraph.h (combined_args_to_skip): New field.
1084         * cgraph.c (cgraph_create_virtual_clone): Properly handle
1085         combined_args_to_skip and args_to_skip.
1086         * tree-inline.c (update_clone_info): New function.
1087         (tree_function_versioning): Call update_clone_info.
1088         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
1089         functions.
1090         (cgraph_materialize_all_clones): More extensive dumping, working
1091         with combined_args_to_skip rather than args_to_skip.
1092
1093 2009-07-20  Ira Rosen  <irar@il.ibm.com>
1094
1095         * tree-vectorizer.h (vectorizable_condition): Add parameters.
1096         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
1097         (get_initial_def_for_reduction): Likewise.
1098         (vectorizable_reduction): Skip the check of first operand in case
1099         of COND_EXPR. Add check that it is outer loop vectorization if
1100         nested cycle was detected. Call vectorizable_condition() for 
1101         COND_EXPR. If reduction epilogue cannot be created do not fail for
1102         nested cycles (if it is not double reduction). Assert that there
1103         is only one type in the loop in case of COND_EXPR. Call
1104         vectorizable_condition() to vectorize COND_EXPR.
1105         * tree-vect-stmts.c (vectorizable_condition): Update comment.
1106         Add parameters. Allow nested cycles if called from 
1107         vectorizable_reduction(). Use reduction vector variable if provided.
1108         (vect_analyze_stmt): Call vectorizable_reduction() before
1109         vectorizable_condition().
1110         (vect_transform_stmt): Update call to vectorizable_condition().
1111
1112 2009-07-20  Christian Bruel  <christian.bruel@st.com>
1113         
1114         * config/sh/sh.opt (-mfmovd): Resurrect and document.
1115         * doc/invoke.texi (-mfmovd): Likewise.
1116         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
1117         
1118 2009-07-20  Jan Hubicka  <jh@suse.cz>
1119
1120         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
1121         when handling SSA name.
1122
1123 2009-07-19  Jan Hubicka  <jh@suse.cz>
1124
1125         PR tree-optimization/40676
1126         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
1127         virtual PHIs in empty BBs.
1128
1129 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1130
1131         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
1132         re-expanded the compound use gen_lowpart instead to convert to the
1133         desired mode.
1134
1135 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1136
1137         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
1138         OUTER_CONST arguments.
1139         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
1140         the new wider mode will be masked off.
1141         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
1142
1143 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1144
1145         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
1146         high-order bits are zero.
1147
1148 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1149
1150         * combine.c (simplify_shift_const_1): Split code to determine
1151         shift_mode into ...
1152         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
1153         new bits shifted in are identical to the old sign bit.
1154
1155 2009-07-18  Richard Guenther  <rguenther@suse.de>
1156
1157         PR c/40787
1158         * gimplify.c (gimplify_call_expr): Reject code using results from
1159         functions returning void.
1160
1161 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1162
1163         * doc/md.texi: Document the new PowerPC "es" constraint.
1164         Document that "m" can include automodified addresses on this target,
1165         and explain how %U must be used.  Extend the "Q" and "Z" documentation
1166         to suggest "es" as well as "m".
1167         * config/rs6000/constraints.md (es): New memory constraint.
1168         (Q, Z): Update strings to match new documentation.
1169
1170 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1171
1172         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
1173         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
1174         * config/rs6000/predicates.md (volatile_mem_operand): Use
1175         offsettable_nonstrict_memref_p.
1176         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
1177         (*floatunssidf2_internal): Likewise.
1178         (*fix_truncdfsi2_internal): Likewise.
1179         (*fix_trunctfsi2_internal): Likewise.
1180
1181 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
1182
1183         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
1184         atmega32u2 devices.
1185         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1186
1187 2009-07-17  Richard Guenther  <rguenther@suse.de>
1188
1189         PR c/40401
1190         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
1191         (pass_warn_unused_result): Likewise.
1192         (TODO_set_props): Remove.
1193         * omp-low.c (diagnose_omp_structured_block_errors): Change to
1194         run as a pass.
1195         (pass_diagnose_omp_blocks): Define.
1196         * c-decl.c (pop_file_scope): Do not finalize the CU here.
1197         (c_gimple_diagnostics_recursively): Remove.
1198         (finish_function): Do not call it.
1199         (c_write_global_declarations): Continue after errors.
1200         Finalize the CU here.
1201         * c-gimplify.c (c_genericize): Do not gimplify here.
1202         * c-common.c (c_warn_unused_result): Move ...
1203         * tree-cfg.c (do_warn_unused_result): ... here.
1204         (run_warn_unused_result): New function.
1205         (gate_warn_unused_result): New function.
1206         (pass_warn_unused_result): New pass.
1207         * c-common.h (c_warn_unused_result): Remove.
1208         * flags.h (flag_warn_unused_result): Declare.
1209         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
1210         * opts.c (flag_warn_unused_result): Initialize to false.
1211         * toplev.c (compile_file): Add comment.
1212         * omp-low.c (create_omp_child_function): Do not register
1213         the function with the frontend.
1214         (diagnose_omp_structured_block_errors): Prepare to be
1215         called as optimization pass.
1216         (gate_diagnose_omp_blocks): New function.
1217         (pass_diagnose_omp_blocks): New pass.
1218         * cgraph.h (cgraph_optimize): Remove.
1219         (cgraph_analyze_function): Likewise.
1220         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
1221         * cgraphunit.c (cgraph_lower_function): Lower nested functions
1222         before their parents here.
1223         (cgraph_finalize_function): Not here.
1224         (cgraph_analyze_function): Gimplify functions here.
1225         (cgraph_finalize_compilation_unit): Continue after errors.
1226         Optimize the callgraph from here.
1227         (cgraph_optimize): Make static.
1228         * langhooks.c (write_global_declarations): Finalize the CU.
1229         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
1230         (gimplify_function_tree): Assert we gimplify only once.
1231         Set PROP_gimple_any property.
1232         * tree-nested.c (gimplify_all_functions): New function.
1233         (lower_nested_functions): Gimplify all nested functions.
1234         * gimple.h (diagnose_omp_structured_block_errors): Remove.
1235         * passes.c (init_optimization_passes): Add pass_warn_unused_result
1236         and pass_diagnose_omp_blocks after gimplification.  Do not
1237         set TODO_set_props on all_lowering_passes.
1238         (execute_one_pass): Do not handle TODO_set_props.
1239         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
1240         (gimplify.o): Add tree-pass.h dependency.
1241         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
1242         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
1243         (unsave_r): Likewise.
1244         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
1245         temporary variable.
1246
1247 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
1248
1249         * doc/service.texi (Service): Restore previously removed link,
1250         which isn't broken after all.
1251
1252 2009-07-17  Richard Guenther  <rguenther@suse.de>
1253
1254         PR tree-optimization/40321
1255         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
1256         PHI nodes to the maximal set.
1257         (make_values_for_phi): Add PHI arguments to the maximal set.
1258         (execute_pre): Dump PHI_GEN and the maximal set.
1259
1260 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
1261
1262         PR c++/40780
1263         * gimplify.c (gimplify_conversion): Don't change non-conversions into
1264         VIEW_CONVERT_EXPR.
1265
1266 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1267
1268         * doc/extend.texi (Nested Functions): Replace broken link with
1269         textual reference.
1270         * doc/service.texi (Service): Remove broken link.
1271
1272 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1273
1274         PR bootstrap/40781
1275         * builtins.c (expand_builtin_memcmp): Use loc instead of
1276         EXPR_LOCATION (exp).
1277         (expand_builtin_strncmp): Likewise.
1278
1279 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
1280             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1281
1282         PR 40435 
1283         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
1284         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
1285         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
1286         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
1287         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
1288         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
1289         tree-inline.c, c-common.c, c-common.h, gimple.c,
1290         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
1291         convert.c: Add location argument to fold_{unary,binary,ternary},
1292         fold_build[123], build_call_expr, build_size_arg,
1293         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
1294         fold_build1_initializer, fold_build2_initializer,
1295         fold_build3_initializer, fold_build_call_array,
1296         fold_build_call_array_initializer, fold_single_bit_test,
1297         omit_one_operand, omit_two_operands, invert_truthvalue,
1298         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
1299         combine_comparisons, fold_builtin_*, fold_call_expr,
1300         build_range_check, maybe_fold_offset_to_address, round_up,
1301         round_down.
1302
1303 2009-07-16  Jason Merrill  <jason@redhat.com>
1304
1305         PR libstdc++/37907
1306         * c-common.c (c_common_reswords): Add __is_standard_layout
1307         and __is_trivial.
1308         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
1309         * doc/implement-cxx.texi: New.
1310         * doc/gcc.texi: Include it.
1311
1312 2009-07-16  DJ Delorie  <dj@redhat.com>
1313
1314         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
1315         compares that may be indirectly affected by previous instructions.
1316
1317 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1318
1319         * builtins.c (do_mpc_arg2): New.
1320         (fold_builtin_2): Fold builtin cpow.
1321         * real.h (HAVE_mpc_pow): New.
1322
1323 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
1324
1325         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
1326         comparison to skip unprofitable schedule
1327
1328 2009-07-16  Simon Baldwin  <simonb@google.com>
1329
1330         * gcc.c (option_map): New flag -no-canonical-prefixes.
1331         * (display_help): Print help text for new flag.
1332         * (process_command): Move options translation and language specifics
1333         and handle new flag early.  Use it to set a function pointer to a
1334         prefix builder.  Replace make_relative_prefix calls with calls to
1335         the function pointed to.  Ignore new flag in regular options handling.
1336         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
1337
1338 2009-07-15  DJ Delorie  <dj@redhat.com>
1339
1340         * config/mep/mep.md (sibcall_internal): Change register to avoid
1341         argument registers.
1342         (sibcall_value_internal): Likewise.
1343
1344 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1345
1346         PR rtl-optimization/40710
1347         * resource.c (mark_target_live_regs): Reset DF problem to LR.
1348
1349 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
1350
1351         * config/mips/mips.md (*extenddi_truncate<mode>,
1352         *extendsi_truncate<mode>): Change type attribute to move_type
1353         with shift_shift.  Split out code handling exts from here ...
1354         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
1355         pattern.
1356         (*extendhi_truncateqi): Change type attribute to move_type with
1357         shift_shift.  Split out code handling exts from here ...
1358         (*extendhi_truncateqi_exts): ... to this new pattern.
1359
1360 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
1361
1362         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
1363         instead of "and" with inverted sign bit mask value.  Use
1364         "nonimmediate_operand" for operand 1 and operand 2 predicate.
1365         Allocate registers only for operand 4 and operand 5.
1366
1367 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
1368
1369         PR middle-end/40747
1370         * fold-const.c (fold_cond_expr_with_comparison): When folding
1371         < and <= to MIN, make sure the MIN uses the same type as the
1372         comparison's operands.
1373
1374 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
1375
1376         * arm.md (ior_xor): New code iterator.
1377         (split for ior/xor with shift and zero-extend): New split pattern.
1378         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
1379
1380 2009-07-15  Richard Guenther  <rguenther@suse.de>
1381
1382         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
1383         offset member.
1384
1385 2009-07-15  Richard Guenther  <rguenther@suse.de>
1386
1387         PR middle-end/40753
1388         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
1389
1390 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1391
1392         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
1393         handle 2.6.30 kernel.
1394
1395 2009-07-15  DJ Delorie  <dj@redhat.com>
1396
1397         * config/mep/mep.md (sibcall_internal): Change register to allow
1398         for 24-bit addresses.
1399         (sibcall_value_internal): Likewise.
1400
1401 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1402         
1403         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
1404         that are enabled/disabled by the flags introduced by a previous patch.
1405         
1406 2009-07-14  DJ Delorie  <dj@redhat.com>
1407
1408         * config/mep/mep.md (sibcall_internal): Include non-toggling
1409         non-jmp case.
1410         (sibcall_value_internal): Likewise.
1411
1412 2009-07-14  Taras Glek  <tglek@mozilla.com>
1413             Rafael Espindola  <espindola@google.com>
1414
1415         * doc/sourcebuild.texi: Document install-plugin target.
1416         * configure.ac: Added install-plugin target to language makefiles.
1417         * configure: Regenerate.
1418         * Makefile.in: (install-plugin): Install more headers,
1419         depend on lang.install-plugin.
1420
1421 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1422
1423         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
1424         translation.
1425         
1426 2009-07-14  DJ Delorie  <dj@redhat.com>
1427
1428         * config/mep/mep.c (mep_vliw_jmp_match): New function.
1429         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
1430         * config/mep/mep.md (sibcall_internal): Change test from
1431         mep_vliw_mode_match to mep_vliw_jmp_match.
1432         (sibcall_value_internal): Likewise.
1433
1434 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
1435
1436         * config/i386/sse.md (copysign<mode>3): New expander.
1437         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
1438         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
1439         Use ix86_build_const_vector.
1440         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
1441         IX86_BUILTIN_CPYSGNPD.
1442         (builtin_description): Add __builtin_ia32_copysignps and
1443         __builtin_ia32_copysignpd.
1444         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
1445         and BUILT_IN_COPYSIGNF.
1446
1447 2009-07-13  Jason Merrill  <jason@redhat.com>
1448
1449         * builtins.c (can_trust_pointer_alignment): New fn.
1450         (get_pointer_alignment): Factor it out from here.
1451         * tree.h: Declare it.
1452
1453 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
1454
1455         * config/rs6000/predicates.md (offsettable_mem_operand): Test
1456         RTX_AUTOINC class.
1457
1458 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
1459
1460         PR debug/40705
1461         PR c++/403057
1462         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
1463
1464 2009-07-14  Richard Guenther  <rguenther@suse.de>
1465             Andrey Belevantsev <abel@ispras.ru>
1466
1467         PR middle-end/40745
1468         * cfgexpand.c (partition_stack_vars): Do not bother to update
1469         alias information when not optimizing.
1470
1471 2009-07-14  Richard Guenther  <rguenther@suse.de>
1472             Andrey Belevantsev <abel@ispras.ru>
1473
1474         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
1475         (pt_solution_set): Likewise.
1476         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
1477         * tree-ssa-structalias.c (pt_solution_set): New function.
1478         * final.c (rest_of_clean_state): Free SSA data structures.
1479         * print-rtl.c (print_decl_name): Remove.
1480         (print_mem_expr): Implement in terms of print_generic_expr.
1481         * alias.c (ao_ref_from_mem): New function.
1482         (rtx_refs_may_alias_p): Likewise.
1483         (true_dependence): Query alias-export info.
1484         (canon_true_dependence): Likewise.
1485         (write_dependence_p): Likewise.
1486         * tree-dfa.c (get_ref_base_and_extent): For void types leave
1487         size unknown.
1488         * emit-rtl.c (component_ref_for_mem_expr): Remove.
1489         (mem_expr_equal_p): Use operand_equal_p.
1490         (set_mem_attributes_minus_bitpos): Do not use
1491         component_ref_for_mem_expr.
1492         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
1493         (update_alias_info_with_stack_vars): Likewise.
1494         (partition_stack_vars): Call update_alias_info_with_stack_vars.
1495         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
1496         explicitly nor clear stmt operands.
1497         Free the decl-to-pointer map.
1498         * tree-optimize.c (execute_free_datastructures): Do not free
1499         SSA data structures here.
1500         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
1501         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
1502         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
1503         dependencies.
1504         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
1505
1506 2009-07-13  DJ Delorie  <dj@redhat.com>
1507
1508         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
1509         unrolling at the right iteration count.
1510
1511         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
1512         calculations.
1513
1514 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1515         
1516         * haifa-sched.c (rank_for_schedule): Introduced flags to
1517         enable/disable individual scheduling heuristics.
1518         * common.opt: Introduced flags to enable/disable individual
1519         heuristics in the scheduler.    
1520         * doc/invoke.texi: Introduced flags to enable/disable individual
1521         heuristics in the scheduler.
1522         
1523 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
1524
1525         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
1526         config/i386/mingw-tls.c.
1527         * config/i386/mingw-tls.c: Removed.
1528
1529 2009-07-13  Ira Rosen  <irar@il.ibm.com>
1530
1531         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
1532         checks access only relevant statements.
1533         (vectorizable_reduction): Likewise.
1534
1535 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
1536
1537         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
1538         just for 32-bit case.
1539
1540 2009-07-12  Jan Hubicka  <jh@suse.cz>
1541
1542         PR tree-optimization/40585
1543         * except.c (expand_resx_expr): When there already is resume
1544         instruction, produce linked list.
1545         (build_post_landing_pads): Assert that resume is empty.
1546         (connect_post_landing_pads): Handle resume lists.
1547         (dump_eh_tree): Dump resume list.
1548
1549 2009-07-12  Ira Rosen  <irar@il.ibm.com>
1550
1551         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
1552         with additional argument.
1553         * tree-vectorizer.h (enum vect_def_type): Add
1554         vect_double_reduction_def.
1555         (vect_is_simple_reduction): Add argument.
1556         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
1557         indentation.
1558         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
1559         vect_is_simple_reduction with additional argument.
1560         (vect_analyze_loop_operations): Handle exit phi nodes in case of
1561         double reduction.
1562         (reduction_code_for_scalar_code): Handle additional codes by
1563         returning ERROR_MARK for them. Fix comment and indentation.
1564         (vect_is_simple_reduction): Fix comment, add argument to specify
1565         double reduction. Detect double reduction.
1566         (get_initial_def_for_induction): Fix indentation.
1567         (get_initial_def_for_reduction): Fix comment and indentation.
1568         Handle double reduction. Create initial definitions that do not
1569         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
1570         (vect_create_epilog_for_reduction): Fix comment, add argument to
1571         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
1572         epilogue result extraction. Create double reduction phi node and
1573         replace relevant uses.
1574         (vectorizable_reduction): Call vect_is_simple_reduction with
1575         additional argument. Fix indentation. Update epilogue code treatment
1576         according to the changes in reduction_code_for_scalar_code. Check
1577         for double reduction. Call vect_create_epilog_for_reduction with
1578         additional argument.
1579         * tree-vect-stmts.c (process_use): Handle double reduction, update
1580         documentation.
1581         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
1582         (vect_get_vec_def_for_operand): Likewise.
1583
1584 2009-07-12  Danny Smith  <dansmister@gmail.com>
1585
1586         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
1587         dllexport if !TREE_PUBLIC.
1588         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
1589
1590 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
1591
1592         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
1593         (avr_extra_arch_macro) Remove declatation.
1594         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
1595         (avr_extra_arch_macro) Declare as static.
1596         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
1597
1598 2009-07-11  Jan Hubicka  <jh@suse.cz>
1599
1600         PR middle-end/48388
1601         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
1602
1603 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
1604
1605         PR debug/40713
1606         * dwarf2out.c (dw_fde_struct): Add in_std_section and
1607         cold_in_std_section bits.
1608         (dwarf2out_begin_prologue): Initialize them.
1609         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
1610         if already covered by text_section or cold_text_section range.
1611
1612         PR rtl-optimization/40667
1613         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
1614         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
1615         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
1616         * config/i386/i386.c (ix86_minimum_alignment): New function.
1617         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
1618         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
1619         * emit-rtl.c (gen_reg_rtx): Likewise.
1620         * function.c (assign_parms): Likewise.  If nominal_type needs
1621         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
1622         rather than passed_type's alignment.
1623
1624         PR target/40668
1625         * function.c (assign_parm_setup_stack): Adjust
1626         MEM_OFFSET (data->stack_parm) if promoted_mode is different
1627         from nominal_mode on big endian.
1628
1629 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
1630
1631         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
1632
1633 2009-07-10  DJ Delorie  <dj@redhat.com>
1634
1635         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
1636
1637 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
1638
1639         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
1640         attribute.
1641         (thumb2_cbnz): Likewise.
1642
1643 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
1644
1645         PR target/39079
1646         * config.gcc (supported_defaults): Add synci.
1647         (with_synci): Add validation.
1648         (all_defaults): Add synci.
1649         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
1650         ISA_HAS_SYNCI.
1651         (synci): Same.
1652         * config/mips/mips.opt (msynci): New option.
1653         * config/mips/mips.c (mips_override_options): Warn on use of
1654         -msynci for targets that do now support it.
1655         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
1656         msynci.
1657         * gcc/doc/invoke.texi (-msynci): Document the new option.
1658         * doc/install.texi (--with-synci): Document the new option.
1659
1660 2009-07-10  Richard Guenther  <rguenther@suse.de>
1661
1662         PR tree-optimization/40496
1663         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
1664         the PHI result with a compatible type.
1665
1666 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1667
1668         PR 25509
1669         PR 40614
1670         * c.opt (Wunused-result): New.
1671         * doc/invoke.texi: Document it.
1672         * c-common.c (c_warn_unused_result): Use it.
1673
1674 2009-07-09  DJ Delorie  <dj@redhat.com>
1675
1676         * targhooks.c (default_target_can_inline_p): Rename from
1677         default_target_option_can_inline_p.
1678         * targhooks.h (default_target_can_inline_p): Likewise.
1679         * target-def.h (TARGET_CAN_INLINE_P): Rename from
1680         TARGET_OPTION_CAN_INLINE_P.
1681         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
1682         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
1683         (mep_target_can_inline_p): Rename from
1684         mep_target_option_can_inline_p.
1685
1686         PR target/40626
1687         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
1688         registers used to pass vectors.
1689
1690         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
1691
1692 2009-07-09  Tom Tromey  <tromey@redhat.com>
1693
1694         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
1695         * config/mmix/mmix.c: Include dwarf2.h.
1696         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
1697         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
1698         * config/sh/sh.c: Include dwarf2.h.
1699         * config/i386/i386.c: Include dwarf2.h.
1700         * Makefile.in (DWARF2_H): Remove 'elf'.
1701         * except.c: Include dwarf2.h.
1702         * unwind-dw2.c: Include dwarf2.h.
1703         * dwarf2out.c: Include dwarf2.h.
1704         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
1705         * unwind-dw2-fde.c: Include dwarf2.h.
1706         * dwarf2asm.c: Include dwarf2.h.
1707
1708 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1709
1710         * haifa-sched.c (insn_finishes_cycle_p): New static function.
1711         (max_issue): Use it.
1712         * sched-int.h (struct sched_info: insn_finishes_block_p): New
1713         scheduler hook.
1714         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
1715         (region_sched_info): Update.
1716         * sched-ebb.c (ebb_sched_info): Update.
1717         * modulo-sched.c (sms_sched_info): Update.
1718         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
1719
1720 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1721
1722         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
1723
1724 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
1725
1726         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
1727
1728 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
1729
1730         PR middle-end/40692
1731         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
1732         arg1 with arg01 if arg1 is already INTEGER_CST.
1733
1734 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
1735
1736         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
1737         Transform (and (truncate)) into (truncate (and)).
1738
1739 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
1740
1741         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
1742         creating LHS paradoxical subregs.  Fix surrounding returns to
1743         use NULL_RTX rather than 0.
1744
1745 2009-07-08  DJ Delorie  <dj@redhat.com>
1746
1747         * config/mep/mep.c: (mep_option_can_inline_p): New.
1748         (TARGET_OPTION_CAN_INLINE_P): Define.
1749
1750 2009-07-08  Mark Wielaard  <mjw@redhat.com>
1751
1752         PR debug/40659
1753         * dwarf2out.c (add_data_member_location_attribute): When we have
1754         only a constant offset don't emit a new location description using
1755         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
1756         dwarf_version > 2.
1757
1758 2009-07-08  Richard Henderson  <rth@redhat.com>
1759
1760         PR target/38900
1761         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
1762         (enum reg_class): Add CLOBBERED_REGS.
1763         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
1764         * config/i386/i386.c (ix86_conditional_register_usage): Moved
1765         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
1766         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
1767         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
1768         force 64-bit sibcalls into R11.
1769         * config/i386/constraints.md (U): New constraint.
1770         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
1771         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
1772         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
1773
1774 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
1775
1776         * basic-block.h (dump_regset, debug_regset): Remove duplicate
1777         prototypes.
1778         * c-objc-common.h (c_initialize_diagnostics): Ditto.
1779         * ebitmap.h (dump_ebitmap): Ditto.
1780         * optabs.h (optab_libfunc): Ditto.
1781         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
1782         * tree-flow.h (vect_can_force_dr_alignment_p,
1783         get_vectype_for_scalar_type): Ditto.
1784         (vectorize_loops): Move prototype to ...
1785         * tree-vectorizer.h: ... here. Also, adjust comment.
1786         (vect_set_verbosity_level): Remove duplicate prototype.
1787         * tree-ssa-loop.c: Include tree-vectorizer.h.
1788         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
1789
1790 2009-07-08  Nick Clifton  <nickc@redhat.com>
1791
1792         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
1793         forward slash.
1794
1795 2009-07-08  DJ Delorie  <dj@redhat.com>
1796
1797         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
1798         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
1799         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
1800         written to.
1801         * config/mep/intrinsics.md: Regenerated.
1802         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
1803         registers when asm() or calls are detected.
1804
1805 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1806
1807         PR c++/31246
1808         * gimplify.c (gimplify_expr): Propagate no_warning flag when
1809         gimplifying.
1810         * gimple (gimple_build_call_from_tree): Likewise.
1811         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
1812         no_warning flag before warning.
1813
1814 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1815
1816         * tree.c (set_expr_locus): Remove.
1817         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
1818         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
1819         EXPR_LOCATION.
1820         * gimplify.c (internal_get_tmp_var): Likewise.
1821         (gimplify_call_expr): Likewise.
1822         (gimplify_one_sizepos): Likewise.
1823
1824 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
1825
1826         PR debug/40666
1827         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
1828         to variables for debugging purposes.
1829
1830 2009-06-23  Mark Loeser  <mark@halcy0n.com>
1831
1832         PR build/40010
1833         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
1834
1835 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1836
1837         * pretty-print.c (pp_base_format): Remove %J.
1838         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1839         gcc_cxxdiag_char_table): Likewise.
1840         (init_dynamic_diag_info): Likewise.
1841
1842 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1843
1844         * pretty-print.c (pp_base_format): Remove %H.
1845         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1846         gcc_cxxdiag_char_table): Likewise.
1847         (init_dynamic_diag_info): Likewise.
1848         * config/mep/mep.c (mep_select_section): Likewise.
1849
1850 2009-07-07  Duncan Sands  <baldrick@free.fr>
1851
1852         * final.c (pass_clean_state): Give the pass a name.
1853         * passes.c (pass_rest_of_compilation): Likewise.
1854         * tree-optimize.c (pass_all_optimizations): Likewise.
1855
1856 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1857
1858         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
1859         an extra 'decl' for error_at.
1860
1861 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
1862
1863         PR middle-end/40669
1864         * tree-tailcall.c (adjust_return_value_with_ops,
1865         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
1866         if it has complex or vector type.
1867
1868 2009-07-07  Olivier Hainque  <hainque@adacore.com>
1869
1870         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
1871         pthread symbols.
1872
1873 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
1874
1875         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
1876
1877 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1878
1879         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
1880         * c-decl.c: Likewise.
1881         * function.c: Likewise.
1882         * varasm.c: Likewise.
1883         * tree-ssa.c: Likewise.
1884         * c-common.c: Likewise.
1885         * tree-cfg.c: Likewise.
1886         * config/spu/spu.c: Likewise.
1887         * config/ia64/ia64.c: Likewise.
1888         * config/v850/v850.c: Likewise.
1889
1890 2009-07-06  DJ Delorie  <dj@redhat.com>
1891
1892         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
1893         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
1894         unspecified accesses to control registers.
1895         * config/mep/intrinsics.md: Regenerate.
1896         * config/mep/intrinsics.h: Regenerate.
1897         * config/mep/mep-intrin.h: Regenerate.
1898
1899 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1900
1901         * c-lex.c: Replace %H by an explicit location. Update all calls.
1902         * c-common.c: Likewise.
1903         * c-decl.c: Likewise.
1904         * c-typeck.c: Likewise.
1905         * fold-const.c: Likewise.
1906         * gimplify.c: Likewise.
1907         * stmt.c: Likewise.
1908         * tree-cfg.c: Likewise.
1909         * tree-ssa-loop-niter.c: Likewise.
1910         * tree-vrp.c: Likewise.
1911         * value-prof.c: Likewise.
1912
1913 2009-07-06  Diego Novillo  <dnovillo@google.com>
1914
1915         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
1916         if it has one.  Handle cases where VAR does not have an
1917         annotation or cfun is NULL.
1918
1919 2009-07-06  Diego Novillo  <dnovillo@google.com>
1920
1921         * tree.c: Include debug.h.
1922         (initialize_tree_contains_struct): New.
1923         (init_ttree): Call it.
1924         (tree_node_structure_for_code): Factor out of ...
1925         (tree_node_structure): ... here.
1926         * treestruct.def (TS_PHI_NODE): Remove.
1927         (TS_GIMPLE_STATEMENT): Remove.
1928
1929 2009-07-06  Diego Novillo  <dnovillo@google.com>
1930
1931         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
1932         (debug_tree_chain): Handle cycles.
1933
1934 2009-07-06  Nick Clifton  <nickc@redhat.com>
1935             DJ Delorie  <dj@redhat.com>
1936
1937         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
1938         __FMOVD_ENABLED__ is defined.
1939         * config/sh/sh.h
1940         (TARGET_FMOVD): Provide a default definition.
1941         (MASK_FMOVD): Likewise.
1942         (TARGET_CPU_CPP_BUILTINS): Define
1943         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
1944         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
1945         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
1946         (split for DF load from memory into register): Also handle
1947         MEMs which consist of REG+DISP addressing.
1948         (split for DF store from register to memory): Likewise.
1949         (movsf_ie): Always use single fp_mode.
1950         * config/sh/sh.c (sh_override_options): Do not automatically
1951         enable TARGET_MOVD for the SH2A when supporting doubles - leave
1952         that to the -mfmovd command line switch.
1953         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
1954         (fldi_ok): Always allow.
1955         * config/sh/sh.opt (mfmovd): Remove this switch.
1956         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
1957
1958 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
1959             Kaz Kojima  <kkojima@gcc.gnu.org>
1960
1961         PR rtl-optimization/30807
1962         * postreload.c (reload_combine): For every new use of REG_SUM,
1963         record the use of BASE.
1964
1965 2009-07-06  Jan Hubicka  <jh@suse.cz>
1966
1967         * params.def: Revert my accidental commit at 2009-06-30.
1968
1969 2009-07-04  Ian Lance Taylor  <iant@google.com>
1970
1971         PR target/40636
1972         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
1973         EXPORTED_CONST.
1974         (mingw_format_attribute_overrides): Likewise.
1975
1976 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
1977
1978         PR debug/40596
1979         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
1980         don't check cfa.reg.  Instead of cfa.indirect use
1981         fde && fde->drap_reg != INVALID_REGNUM test.
1982
1983 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
1984
1985         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
1986
1987 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
1988
1989         PR target/40587
1990         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
1991
1992 2009-07-03  Richard Guenther  <rguenther@suse.de>
1993
1994         PR tree-optimization/40640
1995         * tree-switch-conversion.c (build_arrays): Perform arithmetic
1996         in original type.
1997
1998 2009-07-03  Jan Hubicka  <jh@suse.cz>
1999
2000         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
2001         for size, reduce amount of inlining.
2002
2003 2009-07-03  Richard Guenther  <rguenther@suse.de>
2004
2005         PR middle-end/34163
2006         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
2007         if t +- x is known to not overflow and the conversion widens the
2008         operation.
2009         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
2010
2011 2009-07-03  Jan Hubicka  <jh@suse.cz>
2012
2013         * ipa-pure-const.c (analyze): Update loop optimizer init.
2014         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
2015         try_remove_empty_loop, remove_empty_loops): Remove.
2016         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
2017         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
2018         to mark regular loops as neccesary.
2019         (degenerate_phi_p): New function.
2020         (propagate_necessity, remove_dead_phis): Use it.
2021         (forward_edge_to_pdom): Likewise.
2022         (eliminate_unnecessary_stmts): Take care to remove uses of results of
2023         virtual PHI nodes that became unreachable.
2024         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
2025         * tree-flow.h (remove_empty_loops): Remove.
2026         * passes.c (init_optimization_passes): Remove.
2027
2028 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
2029
2030         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
2031         can_create_pseudo_p.
2032         (*fix_trunc<mode>_i387_1): Ditto.
2033         (*floathi<mode>2_1): Ditto.
2034         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
2035         (*fistdi2_1): Ditto.
2036         (*fist<mode>2_1): Ditto.
2037         (frndintxf2_floor): Ditto.
2038         (*fist<mode>2_floor_1): Ditto.
2039         (frndintxf2_ceil): Ditto.
2040         (*fist<mode>2_ceil_1): Ditto.
2041         (frndintxf2_trunc): Ditto.
2042         (frndintxf2_mask_pm): Ditto.
2043         (fxam<mode>2_i387_with_temp): Ditto.
2044         * config/i386/sse.md (mulv16qi3): Ditto.
2045         (*sse2_mulv4si3): Ditto.
2046         (mulv2di3): Ditto.
2047         (sse4_2_pcmpestr): Ditto.
2048         (sse4_2_pcmpistr): Ditto.
2049
2050 2009-07-03  Jan Hubicka  <jh@suse.cz>
2051
2052         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
2053         (mark_stmt_necessary): Set it.
2054         (mark_operand_necessary): Set it.
2055         (mark_control_dependent_edges_necessary): Set it.
2056         (mark_virtual_phi_result_for_renaming): New function.
2057         (get_live_post_dom): New function.
2058         (forward_edge_to_pdom): New function.
2059         (remove_dead_stmt): Fix handling of control dependences.
2060         (tree_dce_init): Init new bitmap.
2061         (tree_dce_done): Free it.
2062
2063 2009-07-02  Richard Guenther  <rguenther@suse.de>
2064
2065         PR bootstrap/40617
2066         * tree-ssa-structalias.c (new_var_info): Initialize
2067         is_restrict_var.
2068
2069 2009-07-02  Jan Hubicka  <jh@suse.cz>
2070
2071         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
2072         local.
2073
2074 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
2075
2076         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
2077         instead of recomputing it.  Adjust calls.
2078         (emit_store_flag): Adjust recursive calls.
2079
2080 2009-07-02  Richard Guenther  <rguenther@suse.de>
2081
2082         * tree-ssa-live.c (remove_unused_locals): Do not remove
2083         heap variables.
2084         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
2085         of DECL_EXTERNAL for HEAP variables.
2086         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
2087         HEAP variables.  Do not adjust RESTRICT vars.
2088         (find_what_var_points_to): Nobody cares if something
2089         points to READONLY.
2090
2091 2009-07-02  Ben Elliston  <bje@au.ibm.com>
2092
2093         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
2094         pc_low and pc_high declarations to the top of the function.
2095
2096 2009-07-01  DJ Delorie  <dj@redhat.com>
2097
2098         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
2099         registers as fixed.
2100         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
2101         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
2102         unspecified accesses to control registers.
2103         * config/mep/intrinsics.md: Regenerate.
2104         * config/mep/intrinsics.h: Regenerate.
2105         * config/mep/mep-intrin.h: Regenerate.
2106
2107 2009-07-01  Anthony Green  <green@moxielogic.com>
2108
2109         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2110         instruction when possible.
2111         (moxie_expand_prologue): Ditto.  Also, save an instruction and
2112         some complexity by popping off of $r12 instead of $sp.
2113         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
2114         operands.
2115
2116 2009-07-01  Richard Henderson  <rth@redhat.com>
2117
2118         PR bootstrap/40347
2119         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
2120         contained no insns, reposition note before last insn.
2121
2122 2009-07-01  Richard Henderson  <rth@redhat.com>
2123
2124         PR debug/40431
2125         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
2126         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
2127
2128 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2129
2130         PR bootstrap/40558
2131         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
2132         darwin9 for printing reg addresses with %y.
2133
2134 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2135
2136         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
2137         truncation from operands in binary operations.
2138
2139 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2140
2141         Revert:
2142         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
2143         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2144         subreg of op0 to the original op0.
2145
2146         * expmed.c (store_bit_field_1): Use a temporary as the destination
2147         instead of a paradoxical subreg when we need to truncate the result.
2148
2149 2009-07-01  DJ Delorie  <dj@redhat.com>
2150
2151         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
2152         names to VLIW variants.
2153         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
2154         * config/mep/intrinsics.md: Regenerate.
2155         * config/mep/intrinsics.h: Regenerate.
2156         * config/mep/mep-intrin.h: Regenerate.
2157
2158 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
2159
2160         PR debug/40462
2161         * jump.c (returnjump_p): Revert last patch.
2162         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
2163
2164 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2165
2166         PR target/40575
2167         * pa.md (casesi32p): Use jump table label to determine the offset
2168         of the jump table.
2169         (casesi64p): Likewise.
2170
2171         * pa.c (forward_branch_p): Return bool type.  Use instruction
2172         addresses when available.  Assert that INSN has a jump label.
2173         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
2174         have a jump label.
2175
2176 2009-07-01  Richard Guenther  <rguenther@suse.de>
2177
2178         PR tree-optimization/19831
2179         * tree-ssa-dce.c (propagate_necessity): Calls to functions
2180         that only act as barriers do not make any previous stores necessary.
2181         * tree-ssa-structalias.c (handle_lhs_call): Delay making
2182         HEAP variables global, do not add a constraint from nonlocal.
2183         (find_func_aliases): Handle escapes through return statements.
2184         (compute_points_to_sets): Make escaped HEAP variables global.
2185
2186 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2187
2188         PR bootstrap/40597
2189         * expmed.c (emit_store_flag): Perform a conversion if necessary,
2190         after reducing a DImode cstore to SImode.
2191
2192 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2193
2194         * expr.c (expand_expr_real_1): Reinstate fallthrough to
2195         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
2196
2197 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
2198
2199         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
2200         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
2201         to 0.
2202         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
2203         and umod_optab if TARGET_BSD_DIVMOD.
2204         * config/vax/lib1funcs.asm: New file.
2205         * config/vax/t-linux: New file.
2206         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
2207
2208 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
2209
2210         PR c++/40566
2211         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
2212         to type arguments that have void type.
2213
2214         PR debug/40573
2215         * dwarf2out.c (gen_formal_parameter_die): Call
2216         equate_decl_number_to_die if node is different from origin.
2217
2218 2009-06-30  Anthony Green  <green@moxielogic.com>
2219
2220         Clean up moxie port for --enable-build-with-cxx.
2221         * config/moxie/moxie.c (moxie_function_value): First two
2222         parameters are const_tree, not tree.
2223         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
2224         (REG_CLASS_NAMES): Ditto.
2225         (REGNO_REG_CLASS): Ditto.
2226         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
2227         (moxie_function_value): Fix constyness of arguments.
2228
2229 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2230
2231         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
2232         finalize_size_functions before further processing.
2233         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
2234         (variable_size): Call self_referential_size on size expressions
2235         that contain a PLACEHOLDER_EXPR.
2236         (size_functions): New static variable.
2237         (copy_self_referential_tree_r): New static function.
2238         (self_referential_size): Likewise.
2239         (finalize_size_functions): New global function.
2240         * tree.c: Include tree-inline.h.
2241         (push_without_duplicates): New static function.
2242         (find_placeholder_in_expr): New global function.
2243         (substitute_in_expr) <tcc_declaration>: Return the replacement object
2244         on equality.
2245         <tcc_expression>: Likewise.
2246         <tcc_vl_exp>: If the replacement object is a constant, try to inline
2247         the call in the expression.
2248         * tree.h (finalize_size_functions): Declare.
2249         (find_placeholder_in_expr): Likewise.
2250         (FIND_PLACEHOLDER_IN_EXPR): New macro.
2251         (substitute_placeholder_in_expr): Update comment.
2252         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
2253         is true.
2254         (copy_tree_body_r): Likewise.
2255         (copy_tree_body): New static function.
2256         (maybe_inline_call_in_expr): New global function.
2257         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
2258         (maybe_inline_call_in_expr): Declare.
2259         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
2260         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
2261         GIMPLE_H.
2262
2263 2009-06-30  Richard Guenther  <rguenther@suse.de>
2264
2265         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
2266         continue walking.
2267         (propagate_necessity): Do not mark reaching defs of stores
2268         as necessary.
2269
2270 2009-06-30  Jan Hubicka  <jh@suse.cz>
2271
2272         * cfgloopanal.c (check_irred): Move into ...
2273         (mark_irreducible_loops): ... here; return true if ireducible
2274         loops was found.
2275         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
2276         (analyze_function): Try to prove loop finiteness.
2277         * cfgloop.h (mark_irreducible_loops): Update prototype.
2278         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
2279
2280 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
2281
2282         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
2283
2284 2009-06-30  Ira Rosen  <irar@il.ibm.com>
2285
2286         PR tree-optimization/40542
2287         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
2288         types.
2289
2290 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2291
2292         PR tree-optimization/40582
2293         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
2294         than useless_type_conversion_p.
2295         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
2296         proper place.
2297
2298 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2299
2300         PR middle-end/40554
2301         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2302
2303 2009-06-30  Richard Guenther  <rguenther@suse.de>
2304
2305         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
2306         use ao_ref references.
2307         (walk_aliased_vdefs): Likewise.
2308         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
2309         * tree-ssa-dce.c (struct ref_data): Remove.
2310         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
2311         (mark_aliased_reaching_defs_necessary): Adjust.
2312         (mark_all_reaching_defs_necessary_1): Likewise.
2313
2314 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
2315
2316         PR boostrap/40597
2317         * expmed.c (emit_cstore): New name of emit_store_flag_1.
2318         (emit_store_flag_1): Extract from emit_store_flag, adjust
2319         calls to (what now is) emit_cstore.
2320         (emit_store_flag): Call emit_store_flag_1 and also use it
2321         for what used to be recursive calls.
2322
2323 2009-06-30  Wei Guozhi  <carrot@google.com>
2324
2325         PR/40416
2326         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
2327         if the target bb post dominates from bb.
2328         * config/i386/i386.c (memory_address_length): Check existence of base
2329         register before using it.
2330
2331 2009-06-30  Nick Clifton  <nickc@redhat.com>
2332             DJ Delorie  <dj@redhat.com>
2333
2334         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2335         __FMOVD_ENABLED__ is defined.
2336         * config/sh/sh.h
2337         (TARGET_FMOVD): Provide a default definition.
2338         (MASK_FMOVD): Likewise.
2339         (TARGET_CPU_CPP_BUILTINS): Define
2340         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2341         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2342         two fmov instructions depending upon whether TARGET_FMOVD is
2343         enabled.
2344         (split for DF load from memory into register): Also handle
2345         MEMs which consist of REG+DISP addressing.
2346         (split for DF store from register to memory): Likewise.
2347         * config/sh/sh.opt (mfmovd): Remove this switch.
2348         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2349         * config/sh/sh.c (sh_override_options): Do not automatically
2350         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2351         that to the -mfmovd command line switch.
2352
2353         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
2354         the SH4 and SH4A.
2355         (fldi_ok): Always allow.
2356         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
2357
2358 2009-06-29  DJ Delorie  <dj@redhat.com>
2359
2360         * doc/install.texi (mep-x-elf): Correct chip's full name.
2361
2362 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2363
2364         * doc/extend.texi: Fix typo.
2365
2366 2009-06-29  Tom Tromey  <tromey@redhat.com>
2367
2368         * dwarf2.h: Remove.
2369         * Makefile.in (DWARF2_H): New variable.
2370         (except.o): Use it.
2371         (dwarf2out.o): Likewise.
2372         (dwarf2asm.o): Likewise.
2373         * config/i386/t-i386: Use DWARF2_H.
2374         * except.c: Include elf/dwarf2.h.
2375         * unwind-dw2.c: Include elf/dwarf2.h.
2376         * dwarf2out.c: Include elf/dwarf2.h.
2377         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
2378         <dtprel>: New field.
2379         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
2380         (size_of_loc_descr): Likewise.
2381         (output_loc_operands_raw): Likewise.
2382         (output_loc_operands): Handle new dtprel field.
2383         (loc_checksum): Update.
2384         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
2385         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
2386         * unwind-dw2-fde.c: Include elf/dwarf2.h.
2387         * dwarf2asm.c: Include elf/dwarf2.h.
2388         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
2389         * config/mmix/mmix.c: Include elf/dwarf2.h.
2390         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
2391         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
2392         * config/sh/sh.c: Include elf/dwarf2.h.
2393         * config/i386/i386.c: Include elf/dwarf2.h.
2394
2395 2009-06-29  DJ Delorie  <dj@redhat.com>
2396
2397         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
2398
2399         * doc/extend.texi: Add MeP attributes and pragmas.
2400         * doc/invoke.text: Add MeP Options.
2401         * doc/contrib.texi: Add MeP contribution.
2402         * doc/md.texi: Add MeP constraints.
2403         * doc/install.texi: Add MeP target.
2404
2405 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
2406
2407         * target.h (struct gcc_target): Add frame_pointer_required field.
2408         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
2409         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
2410         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
2411         hook.
2412         * reload1.c (update_eliminables): (Ditto.).
2413         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
2414         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2415         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
2416
2417         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
2418
2419         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
2420         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2421         (arm_frame_pointer_required): New function.
2422
2423         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
2424         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2425         (avr_frame_pointer_required_p): Declare as static.
2426         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
2427
2428         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
2429         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2430         (bfin_frame_pointer_required): Make as static, change return type
2431         to bool.
2432         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
2433
2434         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
2435         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2436         (cris_frame_pointer_required): New function.
2437         
2438         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
2439
2440         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
2441         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2442         (fr30_frame_pointer_required): New function.
2443         
2444         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
2445         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2446         (frv_frame_pointer_required): Make as static, change return type
2447         to bool.
2448         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
2449
2450         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
2451         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2452         (ix86_frame_pointer_required): Make as static, change return type to
2453         bool.
2454         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
2455
2456         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
2457         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2458
2459         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
2460
2461         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
2462         
2463         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
2464
2465         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
2466         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2467         (mips_frame_pointer_required): Make as static.
2468         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
2469         
2470         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
2471         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2472         (mmix_frame_pointer_required): Mew function.
2473
2474         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
2475         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2476
2477         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
2478
2479         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
2480
2481         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
2482
2483         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
2484         (CAN_ELIMINATE): Redefine.
2485         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2486         (sparc_frame_pointer_required): New function.
2487         (sparc_can_eliminate): New function.
2488         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
2489
2490         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
2491         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2492
2493         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
2494         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2495         (xtensa_frame_pointer_required): Make as static, change return type
2496         to bool.
2497         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
2498         Remove.
2499
2500 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
2501
2502         * doc/plugins.texi: Document PLUGIN_START_UNIT.
2503         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
2504         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
2505         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
2506         (register_callback): Handle PLUGIN_START_UNIT.
2507         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
2508
2509 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2510
2511         * tree.c (process_call_operands): Propagate TREE_READONLY from the
2512         operands.
2513         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
2514         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
2515
2516 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
2517
2518         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
2519         move cost.
2520
2521 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
2522
2523         * doc/extend.texi (Additional Floating Types): __float128 is also
2524         supported on i386 targets.
2525
2526 2009-06-29  Richard Guenther  <rguenther@suse.de>
2527
2528         PR middle-end/14187
2529         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2530         flag.
2531         (pt_solutions_same_restrict_base): Declare.
2532         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
2533         flag.
2534         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
2535         (make_constraint_from, make_copy_constraint): Move earlier.
2536         (make_constraint_from_heapvar): New function.
2537         (make_constraint_from_restrict): Likewise.
2538         (handle_lhs_call): Use it.
2539         (find_func_aliases): Use it to track conversions to restrict
2540         qualified pointers.
2541         (struct fieldoff): Add only_restrict_pointers flag.
2542         (push_fields_onto_fieldstack): Initialize it.
2543         (create_variable_info_for): Track global restrict qualified pointers.
2544         (intra_create_variable_infos): Use make_constraint_from_heapvar.
2545         Track restrict qualified pointer arguments.
2546         (set_uids_in_ptset): Use varinfo is_global_var flag.
2547         (find_what_var_points_to): Set the vars_contains_restrict flag.
2548         Always create the points-to solution for sets including restrict tags.
2549         (pt_solutions_same_restrict_base): New function.
2550         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
2551         qualified pointers use pt_solutions_same_restrict_base as
2552         additional source for disambiguation.
2553
2554 2009-06-29  Richard Guenther  <rguenther@suse.de>
2555
2556         PR middle-end/38212
2557         * alias.c (find_base_decl): Remove.
2558         (get_deref_alias_set_1): Remove restrict handling.
2559         * c-common.c (c_apply_type_quals_to_decl): Do not set
2560         DECL_POINTER_ALIAS_SET.
2561         * gimplify.c (find_single_pointer_decl_1): Remove.
2562         (find_single_pointer_decl): Likewise.
2563         (internal_get_tmp_var): Remove restrict handling.
2564         (gimple_regimplify_operands): Likewise.
2565         * omp-low.c (expand_omp_atomic_pipeline): Do not set
2566         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
2567         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
2568         * tree.c (restrict_base_for_decl): Remove.
2569         (init_ttree): Do not allocate it.
2570         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
2571         LABEL_DECL_UID for label decls.
2572         (copy_node_stat): Do not copy restrict information.
2573         (decl_restrict_base_lookup): Remove.
2574         (decl_restrict_base_insert): Likewise.
2575         (print_restrict_base_statistics): Likewise.
2576         (dump_tree_statistics): Do not call print_restrict_base_statistics.
2577         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
2578         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
2579         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
2580         (LABEL_DECL_UID): Adjust.
2581         (DECL_BASED_ON_RESTRICT_P): Remove.
2582         (DECL_GET_RESTRICT_BASE): Likewise.
2583         (SET_DECL_RESTRICT_BASE): Likewise.
2584         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
2585
2586         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
2587         instead of DECL_POINTER_ALIAS_SET.
2588         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2589         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
2590         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
2591
2592 2009-06-29  Richard Guenther  <rguenther@suse.de>
2593
2594         PR tree-optimization/40579
2595         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
2596         the IL to simplify has constants that overflowed.
2597
2598 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
2599
2600         PR tree-optimization/40550
2601         * tree-vect-generic.c (expand_vector_operations_1): Compute in
2602         vector_compute_type only when the size of vector_compute_type is
2603         less than the size of type.
2604
2605 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2606
2607         * fold-const.c (contains_label_1): Fix comments.
2608         (contains_label_p): Do not walk trees multiple time.
2609
2610 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2611
2612         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
2613         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
2614         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
2615         ix86_fp_comparison_operator.
2616         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
2617         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
2618         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
2619         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
2620         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
2621         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
2622         (related splits): Change predicate to ix86_fp_comparison_operator.
2623         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
2624         instead of ix86_fp_comparison_codes.
2625         (ix86_trivial_fp_comparison_operator,
2626         ix86_fp_comparison_operator): New.
2627         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
2628         (ix86_expand_compare): Eliminate last two parameters.
2629         (ix86_fp_jump_nontrivial_p): Kill.
2630         * config/i386/i386.c (put_condition_code): Eliminate call to
2631         ix86_fp_comparison_codes and subsequent assertion.
2632         (ix86_fp_comparison_codes): Eliminate.
2633         (ix86_fp_swap_condition): New.
2634         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
2635         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
2636         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
2637         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
2638         and ix86_fp_swap_condition.
2639         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
2640         Use ix86_fp_comparison_strategy.
2641         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
2642         (ix86_fp_jump_nontrivial_p): Eliminate.
2643         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
2644         call to ix86_expand_compare.
2645         (ix86_split_fp_branch, ix86_expand_setcc,
2646         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
2647         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
2648
2649 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2650
2651         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
2652         related to jump_clobbers.
2653         * config/arm/arm.md (conds): Remove jump_clob case.
2654         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
2655         splits): Change comparison_operator to arm_comparison_operator.
2656         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
2657         Eliminate.
2658
2659 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2660
2661         * dojump.c (do_compare_rtx_and_jump): Try swapping the
2662         condition for floating point modes.
2663         * expmed.c (emit_store_flag_1): Move here a bigger part
2664         of emit_store_flag.
2665         (emit_store_flag): Try swapping the condition for floating point
2666         modes.
2667         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
2668
2669 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2670
2671         * expr.c (expand_expr_real_1): Just use do_store_flag.
2672         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
2673         emit_store_flag_force.
2674         * expmed.c (emit_store_flag_force): Copy here trick
2675         previously in expand_expr_real_1.  Try reversing the comparison.
2676         (emit_store_flag_1): Work if target is NULL.
2677         (emit_store_flag): Work if target is NULL, using the result mode
2678         from the comparison.  Use split_comparison, restructure final part
2679         to simplify conditionals.
2680
2681 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2682
2683         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
2684         * dojump.c (do_jump): Change handling of floating-point
2685         ops to use just do_compare_and_jump.
2686         (split_comparison): New.
2687         (do_compare_rtx_and_jump): Add here logic coming previously
2688         in do_jump, using split_comparison.
2689
2690 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
2691
2692         PR target/40489
2693         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
2694
2695 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2696
2697         * tree-ssa-alias.c: Fix unintentional commit.
2698
2699 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2700
2701         * passes.c (execute_one_pass): Fix unintentional commit.
2702
2703 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2704
2705         * df-problems.c (df_set_seen, df_unset_seen): Delete.
2706         (df_rd_local_compute, df_md_local_compute): Inline them.
2707
2708         (df_md_scratch): New.
2709         (df_md_alloc, df_md_free): Allocate/free it.
2710         (df_md_local_compute): Only include live registers in init.
2711         (df_md_transfer_function): Prune the in-set computed by
2712         the confluence function, and the gen-set too.
2713
2714 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2715
2716         PR rtl-optimization/26854
2717         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
2718         * df-problems.c (df_rd_add_problem): Fix comment.
2719         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
2720         df_md_simulate_artificial_defs_at_top,
2721         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
2722         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
2723         df_md_transfer_function, df_md_init, df_md_confluence_0,
2724         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
2725         problem_MD, df_md_add_problem): New.
2726         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
2727         df_md_get_bb_info): New.
2728         (DF_LAST_PROBLEM_PLUS1): Adjust.
2729
2730         * Makefile.in (fwprop.o): Include domwalk.h.
2731         * fwprop.c: Include domwalk.h.
2732         (reg_defs, reg_defs_stack): New.
2733         (bitmap_only_bit_between): Remove.
2734         (process_defs): New.
2735         (process_uses): Use reg_defs and local_md instead of
2736         bitmap_only_bit_between and local_rd.
2737         (single_def_use_enter_block): New, from build_single_def_use_links.
2738         (single_def_use_leave_block): New.
2739         (build_single_def_use_links): Remove code moved to
2740         single_def_use_enter_block, invoke domwalk.
2741         (use_killed_between): Adjust comment.
2742
2743 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2744
2745         * bitmap.h (bitmap_ior_and_into): New.
2746         * bitmap.c (bitmap_ior_and_into): New.
2747
2748 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2749
2750         * domwalk.h (struct dom_walk_data): Remove all callbacks except
2751         before_dom_children_before_stmts and after_dom_children_after_stmts.
2752         Rename the two remaining callbacks to just before_dom_children and 
2753         after_dom_children. Remove other GIMPLE statement walking bits.
2754         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
2755         * graphite.c: Do not include domwalk.h.
2756         * tree-into-ssa.c (interesting_blocks): New global.
2757         (struct mark_def_sites_global_data): Remove it and names_to_rename.
2758         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
2759         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
2760         now that they're not domwalk callbacks.
2761         (rewrite_initialize_block): Rename to...
2762         (rewrite_enter_block): ... this, place after called functions.  Test
2763         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
2764         (rewrite_finalize_block): Rename to...
2765         (rewrite_leave_block): ... this, place after called functions.
2766         (rewrite_update_init_block): Rename to...
2767         (rewrite_update_enter_block): ... this, place after called functions.
2768         Test interesting_blocks, call rewrite_update_stmt and 
2769         rewrite_update_phi_arguments.
2770         (rewrite_update_fini_block): Rename to...
2771         (rewrite_leave_block): ... this, place after called functions.
2772         (rewrite_blocks): Remove last argument, simplify initialization of
2773         walk_data.
2774         (mark_def_sites_initialize_block): Rename to...
2775         (mark_def_sites_block): ... this, call mark_def_sites.
2776         (mark_def_sites_blocks): Remove argument, simplify initialization of
2777         walk_data.
2778         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
2779         (update_ssa): Likewise.
2780         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
2781         callback.
2782         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
2783         (dom_opt_initialize_block): Rename to...
2784         (dom_opt_enter_block): ... this, place after called functions.  Walk
2785         statements here, inline propagate_to_outgoing_edges.
2786         (dom_opt_finalize_block): Rename to...
2787         (dom_opt_leave_block): ... this, place after called functions.
2788         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
2789         domwalk callback.
2790         (dse_enter_block, dse_record_phi): New.
2791         (dse_record_phis): Delete.
2792         (dse_finalize_block): Rename to...
2793         (dse_leave_block): ... this.
2794         (tree_ssa_dse): Simplify initialization of walk_data.
2795         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
2796         Adjust initialization of walk_data.
2797         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
2798         * tree-ssa-loop-phiopt.c (get_non_trapping):
2799         Adjust initialization of walk_data.
2800         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
2801         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
2802         it's not a domwalk callback.
2803         (uncprop_initialize_block): Rename to...
2804         (dse_enter_block): ... this, call uncprop_into_successor_phis.
2805         (dse_finalize_block): Rename to...
2806         (dse_leave_block): ... this.
2807         (tree_ssa_uncprop): Simplify initialization of walk_data.
2808         * Makefile.in: Adjust dependencies.
2809
2810 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
2811
2812         * arm.md (casesi): Fix test for Thumb1.
2813         (thumb1_casesi_internal_pic): Likewise.
2814         (thumb1_casesi_dispatch): Likewise.
2815
2816 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
2817
2818         * config/arm/arm-cores.def: Added core cortex-m0.
2819         * config/arm/arm-tune.md: Regenerated.
2820         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
2821
2822 2009-06-26  DJ Delorie  <dj@redhat.com>
2823
2824         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
2825
2826         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
2827         the scheduler doesn't tag jump insns.
2828
2829 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2830
2831         * c-decl.c (merge_decls): Re-indent.
2832
2833 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
2834
2835         PR c/39902
2836         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
2837         Special-case decimal float constants.
2838
2839 2009-06-26  Richard Henderson  <rth@redhat.com>
2840
2841         * function.h (struct function): Add cannot_be_copied_reason,
2842         and cannot_be_copied_set.
2843         * tree-inline.c (has_label_address_in_static_1): Rename from
2844         inline_forbidden_p_2; don't set inline_forbidden_reason here.
2845         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
2846         don't set inline_forbidden_reason.
2847         (copy_forbidden): New function, split out of inline_forbidden_p.
2848         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
2849         (inline_forbidden_p): Use copy_forbidden.
2850         (tree_versionable_function_p): Likewise.
2851         (inlinable_function_p): Merge into tree_inlinable_function_p.
2852         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
2853         * ipa-cp.c (ipcp_versionable_function_p): New function.
2854         (ipcp_cloning_candidate_p): Use it.
2855         (ipcp_node_modifiable_p): Likewise.
2856
2857 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
2858
2859         * builtins.c (expand_builtin_alloca): Handle builtin alloca
2860         that is marked not to be inlined. Remove flag_mudflap use.
2861         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
2862         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
2863
2864 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
2865
2866         PR bootstrap/40338
2867         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
2868         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
2869
2870 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
2871
2872         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
2873         shared libgcc.
2874         (__mingwthr_remove_key_dtor): Likewise.
2875
2876 2009-06-26  Richard Guenther  <rguenther@suse.de>
2877
2878         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
2879
2880 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2881
2882         PR middle-end/40525
2883         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
2884         try the non-cond_exec path also.
2885
2886 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2887
2888         PR target/40468
2889         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
2890         (output_cbranch): Use new functions.
2891         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
2892         Likewise.
2893
2894 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2895             Pat Haugen  <pthaugen@us.ibm.com>
2896             Revital Eres <ERES@il.ibm.com>
2897
2898         * config/rs6000/rs6000.c (print_operand): Correct lossage message
2899         for %c error.  Add %x support to print VSX registers as a unified
2900         register set, instead of separate float and altivec registers.
2901         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
2902         %y case, and add support for VSX pre-modify addresses.
2903         (output_toc): Add assert for CONST containing an integer constant
2904         in the PLUS case.
2905         (rs6000_adjust_cost): Add POWER7 support.
2906         (insn_must_be_first_in_group): Ditto.
2907         (insn_must_be_last_in_group): Ditto.
2908         (rs6000_emit_popcount): Ditto.
2909         (rs6000_vector_mode_supported_p): Ditto.
2910
2911         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
2912         Change some of the functions called by macros to being called
2913         through a pointer, so debug functions can be inserted if
2914         -mdebug=addr or -mdebug=cost. 
2915         (rs6000_preferred_reload_class_ptr): Ditto.
2916         (rs6000_secondary_reload_class_ptr): Ditto.
2917         (rs6000_secondary_memory_needed_ptr): Ditto.
2918         (rs6000_cannot_change_mode_class_ptr): Ditto.
2919         (rs6000_secondary_reload_inner): Ditto.
2920         (rs6000_legitimize_reload_address): Ditto.
2921         (rs6000_legitimize_reload_address_ptr): Ditto.
2922         (rs6000_mode_dependent_address): Ditto.
2923         (rs6000_mode_dependent_address_ptr): Ditto.
2924
2925         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
2926         function to return true if the mode allows reg + integer
2927         addresses.
2928         (virtual_stack_registers_memory_p): New function to return true if
2929         the address refers to a virtual stack register.
2930         (rs6000_legitimate_offset_address_p): Move code to say whether a
2931         mode supports reg+int addressing to reg_offset_addressing_ok_p and
2932         call it.
2933         (rs6000_legitimate_address_p): Add checks for modes that only can
2934         do reg+reg addressing.  Start adding VSX support.
2935         (rs6000_legitimize_reload_address): Ditto.
2936         (rs6000_legitimize_address): Ditto.
2937         (rs6000_debug_legitimate_address_p): New debug functions for
2938         -mdebug=addr and -mdebug=cost.
2939         (rs6000_debug_rtx_costs): Ditto.
2940         (rs6000_debug_address_costs): Ditto.
2941         (rs6000_debug_adjust_cost): Ditto.
2942         (rs6000_debug_legitimize_address): Ditto.
2943         (rs6000_legitimize_reload_address_ptr): Point to call normal
2944         function or debug function.  Make functions called via pointer
2945         static.
2946         (rs6000_mode_dependent_address_ptr): Ditto.
2947         (rs6000_secondary_reload_class_ptr): Ditto.
2948         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
2949         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
2950         into a friendlier error.
2951         (rs6000_init_builtins): Add initial VSX support.
2952         (rs6000_adjust_cost): Fix some spacing issues.
2953
2954         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
2955         (REG_CLASS_NAMES): Ditto.
2956         (REG_CLASS_CONTENTS): Ditto.
2957         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
2958         pointer, to add -mdebug=addr support.
2959         (CANNOT_CHANGE_MODE_CLASS): Ditto.
2960         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
2961         -mdebug=addr support.
2962         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
2963         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
2964         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
2965
2966         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
2967         16-bit values.
2968         (bswapsi*): Set attribute types for load/store.  Add combiner
2969         patterns to eliminate zero extend on 64-bit.
2970         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
2971         stdbrx if the hardware supports those instructions.
2972
2973 2009-06-25  Ian Lance Taylor  <iant@google.com>
2974
2975         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
2976         (Link Options): Document -static-libstdc++.
2977
2978 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2979
2980         PR target/38731
2981         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
2982         DATA_ALIGNMENT instead.
2983
2984 2009-06-25  Richard Guenther  <rguenther@suse.de>
2985
2986         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
2987         indirect references against the callused/escaped solutions.
2988         (call_may_clobber_ref_p_1): Likewise.
2989
2990 2009-06-25  Martin Jambor  <mjambor@suse.cz>
2991
2992         PR tree-optimization/40493
2993         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
2994         (enum unscalarized_data_handling): New type.
2995         (handle_unscalarized_data_in_subtree): Return what has been done.
2996         (load_assign_lhs_subreplacements): Handle left flushes differently.
2997         (sra_modify_assign): Use unscalarized_data_handling, simplified
2998         condition determining whether to remove the statement.
2999
3000 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3001
3002         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
3003         excerpt - @ should be doubled for texinfo.
3004
3005 2009-06-24  Ian Lance Taylor  <iant@google.com>
3006
3007         * config/arc/arc.c: Include "df.h".
3008         (arc_attribute_table): Make static.  Move higher in file.
3009         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
3010         (output_shift): Initialize n later to avoid warning.
3011         * config/arm/arm.c (arm_attribute_table): Make static.  Move
3012         higher in file.
3013         * config/avr/avr.c (avr_attribute_table): Make static.  Move
3014         higher in file.
3015         (reg_class_tab): Change array type from int to enum reg_class.
3016         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
3017         LABEL_REF.
3018         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
3019         (lshrhi3_out): Likewise.
3020         (class_likely_spilled_p): Change return type to bool.
3021         (avr_rtx_costs): Use local code variable with enum type.
3022         * config/avr/avr.md (movmemhi): Use add_reg_note.
3023         (andhi3, andsi3): Don't use AS2 with "and".
3024         (iorhi3, iorsi3): Don't use AS2 with "or".
3025         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
3026         * config/crx/crx.c: Include "df.h".
3027         (crx_attribute_table): Make static.
3028         * config/m32r/m32r.c: Include "df.h".
3029         (m32r_attribute_table): Make static.  Move higher in file.
3030         (pop): Use add_reg_note.
3031         (block_move_call): Change 0 to LCT_NORMAL in function call.
3032         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
3033         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
3034         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
3035         declare, not just when TREE_CODE is defined.
3036         * config/m68hc11/m68hc11.c: Include "expr.h".
3037         (m68hc11_attribute_table): Make static.  Move higher in file.
3038         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
3039         function call.
3040         (m68hc11_register_indirect_p): Likewise.
3041         (m68hc11_function_arg_padding): Change return type to enum
3042         direction.
3043         (emit_move_after_reload): Use add_reg_note.
3044         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
3045         (m68hc11_split_logical): Likewise.
3046         (m68hc11_rtx_costs): Add local code_and outer_code variables with
3047         enum type.
3048         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
3049         to VOIDmode in function call.
3050         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
3051         tree is defined.
3052         (m68hc11_split_logical): Update declaration.
3053         (m68hc11_function_arg_padding): Update declaration.
3054         * config/mcore/mcore.c (regno_reg_class): Change form array of int
3055         to array of enum reg_class.
3056         (mcore_attribute_table): Make static.  Move higher in file.
3057         (mcore_rtx_costs): Add cast to enum type.
3058         * config/mcore/mcore.h (regno_reg_class): Update declaration.
3059         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
3060         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
3061         in file.
3062         * config/sh/predicates.md (trapping_target_operand): Rename and to
3063         and_expr.
3064         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
3065         higher in file.
3066         * config/spu/spu.c (spu_attribute_table): Make static.  Move
3067         higher in file.
3068         * config/v850/v850.c (v850_attribute_table): Make static.  Move
3069         higher in file.
3070         (v850_rtx_costs): Use local code with enum type.
3071         (expand_epilogue): Add cast.
3072         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
3073
3074 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
3075
3076         PR target/40515
3077         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
3078         -m2a-single-only and -m2a-nofpu.
3079         * config/sh/sh.opt: Document m2a generates FPU code.  
3080
3081 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
3082
3083         * defaults.h (CAN_ELIMINATE): Provide default.
3084         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
3085         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
3086         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
3087         * config/spu/spu.h (CAN_ELIMINATE): Delete.
3088         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
3089         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
3090         * config/cris/cris.h (CAN_ELIMINATE): Delete.
3091         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
3092         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
3093         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
3094
3095 2009-06-24  DJ Delorie  <dj@redhat.com>
3096
3097         * mep-ext-cop.cpu: Fix copyright notice.
3098         * mep-default: Fix copyright notice.
3099         * mep-core: Fix copyright notice.
3100         * mep: Fix copyright notice.
3101         * mep-ivc2: Fix copyright notice.
3102         * mep-c5: Fix copyright notice.
3103
3104 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
3105
3106         * doc/contrib.texi (Contributors): 
3107
3108 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3109         
3110         PR middle-end/40501
3111         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
3112         src and dst operands if necessary.
3113
3114 2009-06-23  DJ Delorie  <dj@redhat.com>
3115
3116         Add MeP port.
3117         * config.gcc: Add mep support.
3118         * recog.c: Resurrect validate_replace_rtx_subexp().
3119         * recog.h: Likewise.
3120         * config/mep/: Add new port:
3121         * config/mep/constraints.md: New file.
3122         * config/mep/default.h: New file.
3123         * config/mep/intrinsics.h: New file.
3124         * config/mep/intrinsics.md: New file.
3125         * config/mep/ivc2-template.h: New file.
3126         * config/mep/mep-c5.cpu: New file.
3127         * config/mep/mep-core.cpu: New file.
3128         * config/mep/mep-default.cpu: New file.
3129         * config/mep/mep-ext-cop.cpu: New file.
3130         * config/mep/mep-intrin.h: New file.
3131         * config/mep/mep-ivc2.cpu: New file.
3132         * config/mep/mep-lib1.asm: New file.
3133         * config/mep/mep-lib2.c: New file.
3134         * config/mep/mep-pragma.c: New file.
3135         * config/mep/mep-protos.h: New file.
3136         * config/mep/mep-tramp.c: New file.
3137         * config/mep/mep.c: New file.
3138         * config/mep/mep.cpu: New file.
3139         * config/mep/mep.h: New file.
3140         * config/mep/mep.md: New file.
3141         * config/mep/mep.opt: New file.
3142         * config/mep/predicates.md: New file.
3143         * config/mep/t-mep: New file.
3144
3145 2009-06-23  Ian Lance Taylor  <iant@google.com>
3146
3147         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
3148         from loose_warn into c_loose_warn and from strict_warn into
3149         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
3150         --enable-build-with-cxx.  Set and substitute
3151         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
3152         * Makefile.in (CXXFLAGS): New variable.
3153         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
3154         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
3155         the default is the same as $(STRICT_WARN).
3156         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
3157         (CXX): New variable.
3158         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
3159         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
3160         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
3161         (HOST_LIBS): New variable.
3162         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
3163         (ALL_CXXFLAGS): New variable.
3164         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
3165         * doc/install.texi (Configuration): Document
3166         --enable-build-with-cxx, --with-stage1-ldflags,
3167         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
3168         * configure: Rebuild.
3169
3170 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3171
3172         * config/arm/arm.c (arm_override_options): Fix braces and formatting
3173         from previous commit.
3174
3175 2009-06-23  Ian Lance Taylor  <iant@google.com>
3176
3177         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
3178
3179 2009-06-23  Ian Lance Taylor  <iant@google.com>
3180
3181         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
3182         with ATTRIBUTE_UNUSED.
3183
3184 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3185             Pat Haugen  <pthaugen@us.ibm.com>
3186             Revital Eres  <eres@il.ibm.com>
3187
3188         * config.in (HAVE_AS_POPCNTD): Add default definition.
3189         (HAVE_AS_LWSYNC): Ditto.
3190
3191         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
3192         release number.
3193         (gcc_cv_as_powerpc_cmpb): Ditto.
3194         (gcc_cv_as_powerpc_dfp): Ditto.
3195         (gcc_cv_as_powerpc_vsx): Ditto.
3196         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
3197         supporting the popcntd/lwsync instructions.
3198         (gcc_cv_as_powerpc_lwsync): Ditto.
3199         * configure: Regenerate.
3200
3201         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
3202         -mcpu=native and -mcpu=power7.
3203         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3204
3205         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
3206         a variable instead of a mask to reduce the number of mask bits.
3207         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3208         (-mbit-word): Ditto.
3209         (-mregnames): Ditto.
3210         * config/rs6000/rs6000.opt (-mupdate): Ditto.
3211         (-mfused-madd): Ditto.
3212
3213         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
3214         2.06 instructions.
3215         (-mvsx): New switch for VSX instructions.
3216         (-misel): Move from a variable to a mask to allow it to be set by
3217         -mcpu=.
3218
3219         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
3220         function declaration to an array declaration.
3221         (rs6000_hard_regno_nregs): New external array declaration.
3222
3223         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
3224         files included by rs6000.md.
3225
3226         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3227         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
3228
3229         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
3230         a target mask.
3231         (rs6000_debug_reg): New -mdebug= variables.
3232         (rs6000_debug_addr): Ditto.
3233         (rs6000_debug_cost): Ditto.
3234         (rs6000_pmode): New variable to hold Pmode.
3235         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
3236         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
3237         calculated at compiler start.
3238         (rs6000_hard_regno_nregs): Change function to an array which holds
3239         HARD_REGNO_NREGS calculated at compiler start.
3240         (rs6000_explicit_options): Delete isel field.
3241         (rs6000_vector_unit): New array to hold which vector unit
3242         supports arithmetic options for a given type.
3243         (rs6000_vector_mem): New array to hold which vector unit supports
3244         memory reference operations for a given type.
3245         (rs6000_vector_align): New array to given the alignment of each
3246         vector type.
3247         (power7_cost): New basic costs for power7.
3248         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
3249         (rs6000_hard_regno_nregs_internal): New function, moved from
3250         HARD_REGNO_NREGS, to calculate the number of registers each hard
3251         register takes for each type.
3252         (rs6000_debug_reg_print): New function for -mdebug=reg support.
3253         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
3254         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
3255         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
3256         unit information here so it is calculated once at compiler startup
3257         time.
3258         (rs6000_override_options): Make -misel a target mask.  Add more
3259         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
3260         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
3261         -mdebug=cost.
3262         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
3263         (rs6000_handle_option): Move -misel from variable to target mask.
3264         (rs6000_builtin_mask_for_load): Add VSX support.
3265         (rs6000_conditional_register_usage): Ditto.
3266         (USE_ALTIVEC_FOR_ARG_P): Ditto.
3267         (function_arg_boundary): Ditto.
3268         (rs6000_expand_builtin): Ditto.
3269         (def_builtin): Make abort message a little friendlier.
3270         (rs6000_emit_int_cmove): Add support for 64-bit isel.
3271
3272         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
3273         assembler support the popcntd instruction instead of a vsx
3274         instruction to enable power7 support.
3275         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
3276         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
3277         option to the assembler if -mcpu=native.
3278         (ASM_CPU_NATIVE_SPEC): Ditto.
3279         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
3280         ISA 2.06 features.
3281         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
3282         the lwsync instruction.
3283         (enum processor_type): Add PROCESSOR_POWER7.
3284         (rs6000_debug_reg): New -mdebug= options.
3285         (rs6000_debug_addr): Ditto.
3286         (rs6000_debug_cost): Ditto.
3287         (rs6000_isel): Delete.
3288         (enum rs6000_vector): New enum to say what vector unit we have.
3289         (VECTOR_UNIT_*): New macros to say which vector unit has
3290         arithmetic operations for a given type.
3291         (VECTOR_MEM_*): New macros to say which vector unit has memory
3292         operations for a given type.
3293         (TARGET_LDBRX): Whether the machine supports the ldbrx
3294         instruction.
3295         (TARGET_ISEL): Delete, -misel moved to be a mask.
3296         (TARGET_ISEL64): New macro for 64-bit isel support.
3297         (UNITS_PER_VSX_WORD): New macro.
3298         (POINTER_SIZE): Move to be an external variable, rather than
3299         calculating whether we are generating 32 ot 64-bit code.
3300         (Pmode): Ditto.
3301         (STACK_BOUNDARY): Add VSX support.
3302         (LOCAL_ALIGNMENT): Ditto.
3303         (SLOW_UNALIGNED_ACCESS): Ditto.
3304         (VSX_REGNO_P): New macro for VSX support.
3305         (VFLOAT_REGNO_P): Ditto.
3306         (VINT_REGNO_P): Ditto.
3307         (VLOGICAL_REGNO_P): Ditto.
3308         (VSX_VECTOR_MODE): Ditto.
3309         (VSX_SCALAR_MODE): Ditto.
3310         (VSX_MODE): Ditto.
3311         (VSX_MOVE_MODE): Ditto.
3312         (VSX_REG_CLASS_P): Ditto.
3313         (HARD_REGNO_NREGS): Instead of calling a function, use an array
3314         lookup.
3315         (UNITS_PER_SIMD_WORD): Add VSX support.
3316         (MODES_TIEABLE_P): Ditto.
3317         (STARTING_FRAME_OFFSET): Ditto.
3318         (STACK_DYNAMIC_OFFSET): Ditto.
3319         (EPILOGUE_USES): Ditto.
3320         (REGNO_REG_CLASS): Move to array lookup.
3321         (CLASS_MAX_NREGS): Ditto.
3322         (rs6000_vector_reg_class): Add declaration.
3323         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
3324         overlap with the floating point and Altivec registers.
3325
3326         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
3327
3328         * config/rs6000/driver-rs6000.c (asm_names): New static array to
3329         give the appropriate asm switches if -mcpu=native.
3330         (host_detect_local_cpu): Add support for "asm".
3331         (host_detect_local_cpu): Follow GNU code guidelines for name.
3332
3333         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
3334         -mbit-word to a variable instead of being a target mask.
3335
3336         * config/rs6000/sync.md (lwsync): If the assembler supports it,
3337         emit the lwsync instruction instead of emitting the instruction as
3338         an integer constant.
3339
3340         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
3341         fixuns_trundfsi2, move expander into rs6000.md.
3342
3343         * config/rs6000/rs6000.md (cpu): Add power7.
3344         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
3345         (logical predicate patterns): Change the single instruction
3346         primitives that set CR0 to be fast_compare instead of compare.
3347         (norsi*): Ditto.
3348         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
3349         (popcntddi2): Ditto.
3350         (popcount<mode>): Ditto.
3351         (floating multiply/add insns): Name the floating point
3352         multiply/add insns.
3353         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
3354         (isel_unsigned_<mode>): Ditto.
3355         (fixuns_trundfsi2): Move expander here from spe.md.
3356         (smindi3): Define if we have -misel on 64-bit systems.
3357         (smaxdi3): Ditto.
3358         (umindi3): Ditto.
3359         (umaxdi3): Ditto.
3360
3361 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
3362
3363         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
3364         extra_objs.
3365         * config/avr/avr.c (avr_current_device): New variable.
3366         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
3367         (avr_arch, mcu_type_s): Move to avr.h.
3368         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
3369         default_data_section_start fields.
3370         (avr_arch): Moved from avr.c.
3371         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
3372         library_name fields.
3373         (avr_current_device, avr_mcu_types, avr_arch_types,
3374         avr_device_to_arch, avr_device_to_data_start,
3375         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
3376         (EXTRA_SPEC_FUNCTIONS): Define.
3377         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
3378         options mapping. Use device_to_arch and device_to_data_start insted.
3379         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
3380         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
3381         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
3382         * config/avr/driver-avr.c: New file.
3383         * config/avr/avr-devices.c: New file.
3384
3385 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
3386
3387         * var-tracking.c (unshare_variable): Force initialized to
3388         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
3389         (set_variable_part): Likewise.
3390         (struct variable_union_info): Remove pos_src field.
3391         (vui_vec, vui_allocated): New variables.
3392         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
3393         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
3394         == 1 use a simpler sorting algorithm.  Compute pos field right
3395         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
3396         Avoid quadratic comparison if !flag_var_tracking_uninit.
3397         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
3398         unshare_variable unconditionally.   
3399         (dataflow_set_different_2): Removed.
3400         (dataflow_set_different): Don't traverse second hash table.
3401         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
3402         unconditionally to var_reg_set or var_mem_set.
3403         (emit_notes_in_bb): Likewise.
3404         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
3405         unshare_variable.
3406         (emit_note_insn_var_location): Don't set initialized to
3407         VAR_INIT_STATUS_INITIALIZED early.
3408         (vt_finalize): Free vui_vec if needed, clear vui_vec and
3409         vui_allocated.
3410         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
3411
3412         * tree-object-size.c (addr_object_size): Instead of checking
3413         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
3414         are no FIELD_DECLs following it.
3415
3416 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
3417
3418         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
3419         order to match bswaps with signed source operands.
3420
3421 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3422
3423         * sdbout.c (sdbout_one_type): Fix braces in switch.
3424
3425 2009-06-23  Richard Guenther  <rguenther@suse.de>
3426
3427         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
3428         member.
3429         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
3430         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
3431         var_callused, callused_tree, var_storedanything, storedanything_tree,
3432         var_integer, integer_tree): Remove global variables.
3433         (new_var_info): Do not pass new id, append the new var to the
3434         global variable vector.
3435         (do_ds_constraint): Use is_global_var member of the variable-info.
3436         (new_scalar_tmp_constraint_exp): Adjust.
3437         (create_function_info_for): Likewise.
3438         (create_variable_info_for): Likewise.
3439         (find_what_var_points_to): Remove dead code.
3440         (init_base_vars): Simplify.
3441         (compute_points_to_sets): Adjust.
3442
3443 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3444
3445         * combine.c (try_combine): Dump information about the insns we're
3446         combining.
3447
3448 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3449
3450         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
3451         check when calling force_to_mode on TRUNCATE's operand.
3452
3453 2009-06-22  Ian Lance Taylor  <iant@google.com>
3454
3455         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
3456
3457 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3458
3459         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
3460
3461 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3462
3463         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
3464         override library linkage flags such as -static-libgcc or
3465         -shared-libgcc.
3466
3467 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3468
3469         * config/m68k/m68k-devices.def: Add line for MCF5221x.
3470
3471 2009-06-22  Ian Lance Taylor  <iant@google.com>
3472
3473         * config/linux.opt: Put mglibc ahead of muclibc.
3474
3475         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
3476         for duplicate decls.
3477
3478 2009-06-22  Matthias Klose  <doko@ubuntu.com>
3479
3480         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
3481
3482 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3483
3484         PR objc/28050
3485         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
3486         instead of NULL if a parser error occurs.
3487
3488 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3489
3490         * dwarf2out.c (dwarf2_debug_hooks): Initialize
3491         non-DWARF2_DEBUGGING_INFO version.
3492
3493 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
3494
3495         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
3496         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
3497
3498         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
3499         (LIBGCC2_TF_CEXT): Define.
3500         (TF_SIZE): Define.
3501
3502 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3503
3504         PR target/40463
3505         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
3506
3507 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3508
3509         * config/arm/arm.c (arm_override_options): Disable
3510         -mcaller-super-interworking and -mcallee-super-interworking.
3511         * doc/invoke.texi (ARM Options): Document this.
3512
3513 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3514
3515         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
3516         * config/arm/constraints.md (j): New constraint for movw operands.
3517         (N): Remove thumb2 meaning.
3518         * config/arm/arm.md (*arm_movw): Delete.
3519         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
3520         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
3521         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
3522
3523 2009-06-22  Martin Jambor  <mjambor@suse.cz>
3524
3525         PR tree-optimization/40492
3526         * tree-sra.c (sra_modify_assign): Pass zero offsets to
3527         build_ref_for_offset.
3528
3529 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
3530
3531         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
3532         JUMP_TABLE_DATA_P predicates where applicable.
3533         * auto-inc-dec.c: Ditto.
3534         * builtins.c: Ditto.
3535         * caller-save.c: Ditto.
3536         * calls.c: Ditto.
3537         * cfgcleanup.c: Ditto.
3538         * cfglayout.c: Ditto.
3539         * cfgrtl.c: Ditto.
3540         * combine.c: Ditto.
3541         * combine-stack-adj.c: Ditto.
3542         * cse.c: Ditto.
3543         * cselib.c: Ditto.
3544         * dbxout.c: Ditto.
3545         * df-scan.c: Ditto.
3546         * dse.c: Ditto.
3547         * dwarf2asm.c: Ditto.
3548         * dwarf2out.c: Ditto.
3549         * emit-rtl.c: Ditto.
3550         * except.c: Ditto.
3551         * explow.c: Ditto.
3552         * expmed.c: Ditto.
3553         * expr.c: Ditto.
3554         * final.c: Ditto.
3555         * function.c: Ditto.
3556         * fwprop.c: Ditto.
3557         * gcse.c: Ditto.
3558         * genpreds.c: Ditto.
3559         * genrecog.c: Ditto.
3560         * ifcvt.c: Ditto.
3561         * ira-costs.c: Ditto.
3562         * ira-lives.c: Ditto.
3563         * jump.c: Ditto.
3564         * loop-iv.c: Ditto.
3565         * lower-subreg.c: Ditto.
3566         * modulo-sched.c: Ditto.
3567         * optabs.c: Ditto.
3568         * postreload.c: Ditto.
3569         * print-rtl.c: Ditto.
3570         * recog.c: Ditto.
3571         * reginfo.c: Ditto.
3572         * regmove.c: Ditto.
3573         * reload1.c: Ditto.
3574         * reload.c: Ditto.
3575         * reorg.c: Ditto.
3576         * rtlanal.c: Ditto.
3577         * rtl.c: Ditto.
3578         * sched-vis.c: Ditto.
3579         * sdbout.c: Ditto.
3580         * sel-sched-ir.c: Ditto.
3581         * simplify-rtx.c: Ditto.
3582         * targhooks.c: Ditto.
3583         * var-tracking.c: Ditto.
3584         * vmsdbgout.c: Ditto.
3585
3586 2009-06-22  Matthias Klose  <doko@ubuntu.com>
3587
3588         * Makefile.in (install-plugin): Always use DESTDIR.
3589
3590 2009-06-22  Olivier Hainque  <hainque@adacore.com>
3591         
3592         * config/pa/pa.c (output_call): Don't optimize post call jumps
3593         into return address adjustments if the call may throw.
3594
3595 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
3596
3597         * arm.c (thumb1_output_casesi): New function.
3598         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
3599         optimizing for size or PIC.
3600         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
3601         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
3602         (casesi): Handle Thumb-1 when optimizing for size or PIC.
3603         (thumb1_casesi_internal_pic): New expand rule.
3604         (thumb1_casesi_dispatch): New pattern.
3605         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
3606         thumb-1 mode.
3607         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
3608         in the text seciton when PIC or optimizing for size.
3609         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3610         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
3611         preservation properties of code.
3612         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
3613         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
3614         (__gnu_thumb1_case_si): New function.
3615         * t-arm (LIB1ASMSRC): Define here.
3616         (LIB1ASMFUNCS): Add some common functions.
3617         * t-arm-elf (LIB1ASMSRC): Delete.
3618         (LIB1ASMFUNCS): Append to existing set.
3619         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3620         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3621         * t-symbian (LIB1ASMFUNCS): Likewise.
3622         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3623         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3624
3625 2009-06-21  Richard Guenther  <rguenther@suse.de>
3626
3627         PR tree-optimization/38729
3628         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
3629         to loops with a single exit if -fno-expensive-optimizations.
3630
3631 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
3632
3633         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
3634         (dataflow_set): Change vars type from htab_t to shared_hash.
3635         (shared_hash_pool, empty_shared_hash): New variables.
3636         (vars_clear): Removed.
3637         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
3638         shared_hash_find_slot_unshare, shared_hash_find_slot,
3639         shared_hash_find_slot_noinsert, shared_hash_find): New
3640         static inlines.
3641         (shared_hash_unshare, shared_hash_destroy): New functions.
3642         (unshare_variable): Unshare set->vars if shared, use
3643         shared_hash_htab.
3644         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
3645         (get_init_value, find_src_set_src, dump_dataflow_set,
3646         clobber_variable_part, emit_notes_for_differences): Use
3647         shared_hash_htab.
3648         (dataflow_set_init): Remove second argument, set vars to
3649         empty_shared_hash instead of creating a new htab.
3650         (dataflow_set_clear): Call shared_hash_destroy and set vars
3651         to empty_shared_hash instead of calling vars_clear.
3652         (dataflow_set_copy): Don't call vars_copy, instead just share
3653         the src htab with dst.
3654         (variable_union): Use shared_hash_*, use initially NO_INSERT
3655         lookup if set->vars is shared.  Don't keep slot cleared before
3656         calling unshare_variable.  Unshare set->vars if needed.
3657         Even ->refcount == 1 vars must be unshared if set->vars is shared
3658         and var needs to be modified.
3659         (variable_canonicalize): New function.
3660         (dataflow_set_union): If dst->vars is empty, just share src->vars
3661         with dst->vars and traverse with variable_canonicalize to canonicalize
3662         and unshare what is needed.
3663         (dataflow_set_different): If old_set and new_set use the same shared
3664         htab, they aren't different.  If number of htab elements is different,
3665         htabs are different.  Use shared_hash_*.
3666         (dataflow_set_destroy): Call shared_hash_destroy instead of
3667         htab_delete.
3668         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
3669         second argument to dataflow_set_init.
3670         (vt_initialize): Likewise.  Initialize shared_hash_pool and
3671         empty_shared_hash, move bb in/out initialization afterwards.
3672         Use variable_htab_free instead of NULL as changed_variables del hook.
3673         (variable_was_changed): Change type of second argument to pointer to
3674         dataflow_set.  When inserting var into changed_variables, bump
3675         refcount.  Unshare set->vars if set is shared htab and slot needs to
3676         be cleared.
3677         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
3678         lookup if set->vars is shared.  Unshare set->vars if needed.
3679         Even ->refcount == 1 vars must be unshared if set->vars is shared
3680         and var needs to be modified.  Adjust variable_was_changed caller.
3681         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
3682         vars must be unshared if set->vars is shared and var needs to be
3683         modified.  Adjust variable_was_changed caller.
3684         (emit_note_insn_var_location): Don't pool_free var.
3685         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
3686         instead of 1.
3687         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
3688         free_alloc_pool on shared_hash_pool.
3689
3690 2009-06-20  Anthony Green  <green@moxielogic.com>
3691
3692         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
3693         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
3694
3695 2009-06-20  Richard Guenther  <rguenther@suse.de>
3696
3697         * tree-ssa-structalias.c (find_func_aliases): For memset use
3698         a constraint from NULL if we memset to zero.
3699         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
3700         we explicitly handle that do not read from memory.
3701         (call_may_clobber_ref_p_1): Properly handle builtins that may
3702         set errno.
3703
3704 2009-06-20  Richard Guenther  <rguenther@suse.de>
3705
3706         PR tree-optimization/40495
3707         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
3708         (new_scalar_tmp_constraint_exp): New function.
3709         (process_constraint): Do not create temporary decls.
3710         (process_all_all_constraints): Likewise.
3711         (handle_const_call): Likewise.
3712         (create_function_info_for): Do not set decl.
3713
3714 2009-06-19  Ian Lance Taylor  <iant@google.com>
3715
3716         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
3717         (rs6000_attribute_table): Make static; move before use.
3718
3719 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3720
3721         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
3722         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
3723         Propagate the TREE_READONLY flag without overwriting it.
3724         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
3725         Propagate the TREE_READONLY flag onto the result.
3726         (process_call_operands): Move around.  Use correct constant value.
3727
3728 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3729
3730         PR target/40482
3731         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
3732         * config/arm/arm.md: Likewise.
3733
3734 2009-06-19  Ian Lance Taylor  <iant@google.com>
3735
3736         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
3737         to GIMPLE_ERROR_MARK.
3738
3739         * c-typeck.c (build_conditional_expr): Add op1_original_type and
3740         op2_original_type parameters.  Warn about using different enum types.
3741         * c-parser.c (c_parser_conditional_expression): Pass original
3742         types to build_conditional_expr.
3743         * c-tree.h (build_conditional_expr): Update declaration.
3744
3745 2009-06-19  Ian Lance Taylor  <iant@google.com>
3746
3747         * config/i386/i386.c (ix86_function_specific_save): Test that
3748         fields match values, rather than testing the values are in a
3749         certain range.
3750
3751 2009-06-19  Richard Guenther  <rguenther@suse.de>
3752
3753         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3754         ADDR_EXPR pointers.
3755         (ptr_derefs_may_alias_p): Likewise.
3756         (ptr_deref_may_alias_ref_p_1): New function.
3757         (ptr_deref_may_alias_ref_p): Likewise.
3758         (ref_maybe_used_by_call_p_1): Handle builtins that are not
3759         covered by looking at the ESCAPED solution.
3760         (call_may_clobber_ref_p_1): Likewise.
3761         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
3762         Handle NULL_TREE offset.  Do not produce redundant constraints.
3763         (process_all_all_constraints): New helper function.
3764         (do_structure_copy): Use it.
3765         (handle_lhs_call): Likewise.
3766         (find_func_aliases): Handle some builtins with pointer arguments
3767         and/or return values explicitly.
3768
3769 2009-06-19  Ian Lance Taylor  <iant@google.com>
3770
3771         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
3772
3773 2009-06-19  Ian Lance Taylor  <iant@google.com>
3774
3775         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
3776
3777 2009-06-19  Ian Lance Taylor  <iant@google.com>
3778
3779         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
3780         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
3781         version.
3782
3783         * c-decl.c (finish_decl): If -Wc++-compat, warn about
3784         uninitialized const.
3785
3786 2009-06-19  Ian Lance Taylor  <iant@google.com>
3787
3788         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
3789         all uses.
3790
3791         * c-decl.c (in_struct, struct_types): Remove.
3792         (struct c_binding): Add in_struct field.
3793         (c_binding_ptr): Define type, along with VEC.
3794         (struct c_struct_parse_info): Define.
3795         (struct_parse_info): New static variable.
3796         (bind): Initialize in_struct field.
3797         (start_struct): Remove enclosing_in_struct and
3798         enclosing_struct_types parameters.  Add
3799         enclosing_struct_parse_info parameter.  Change all callers.  Set
3800         struct_parse_info rather than in_struct and struct_types.
3801         (grokfield): If -Wc++-compat and there is a symbol binding for the
3802         field name, set the in_struct flag and push it on the
3803         struct_parse_info->fields vector.
3804         (warn_cxx_compat_finish_struct): New static function.
3805         (finish_struct): Remove enclosing_in_struct and
3806         enclosing_struct_types parameters.  Add
3807         enclosing_struct_parse_info parameter.  Change all callers.  Don't
3808         set C_TYPE_DEFINED_IN_STRUCT here.  Call
3809         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
3810         parameter.  Only push on struct_types if warn_cxx_compat.
3811         (finish_enum): Only push on struct_types if warn_cxx_compat.
3812         (declspecs_add_type): Add loc parameter.  Change all callers.
3813         Change all error calls to error_at.  Pass loc, not input_location,
3814         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
3815         defined in a struct.  If -Wc++-compat and parsing a struct, record
3816         that a typedef name was used.
3817         * c-parser.c (c_parser_declspecs): Get location to pass to
3818         declspecs_add_type.
3819         (c_parser_struct_or_union_specifier): Update calls to start_struct
3820         and finish_struct.
3821         * c-tree.h (struct c_struct_parse_info): Declare.
3822         (finish_struct, start_struct): Update declarations.
3823         (declspecs_add_type): Update declaration.
3824
3825 2009-06-19  Ian Lance Taylor  <iant@google.com>
3826
3827         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
3828         variable with an anonymous type.
3829
3830 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
3831
3832         * see.c: Remove for real.
3833
3834 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
3835
3836         * optabs.h (enum optab_index): Add new OTI_significand.
3837         (significand_optab): Define corresponding macro.
3838         * optabs.c (init_optabs): Initialize significand_optab.
3839         * genopinit.c (optabs): Implement significand_optab using
3840         significand?f2 patterns.
3841         * builtins.c (expand_builtin_mathfn): Handle
3842         BUILT_IN_SIGNIFICAND{,F,L}.
3843         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
3844         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3845
3846         * config/i386/i386.md (significandxf2, significand<mode>2): New
3847         expanders to implement significandf, significand and significandl
3848         built-ins as inline x87 intrinsics.
3849
3850 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
3851
3852         * config/avr/avr.c (avr_override_options): Remove setting value of
3853         PARAM_INLINE_CALL_COST.
3854
3855 2009-06-18  Richard Henderson  <rth@redhat.com>
3856
3857         PR 40488
3858         * tree-pass.h (TDF_ASMNAME): New.
3859         * tree-dump.c (dump_options): Add asmname.
3860         * doc/invoke.texi: Document it.
3861
3862         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
3863         (dump_decl_name): ...here.
3864         (dump_function_name): New flags arg; mind TDF_ASMNAME.
3865         (dump_generic_node): Update dump_function_name calls.
3866         (print_call_name): New flags arg; update all dump calls.
3867         * diagnostic.h (print_call_name): Update.
3868         * gimple-pretty-print.c (dump_gimple_call): Update.
3869
3870 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3871
3872         PR target/40470
3873         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
3874
3875 2009-06-18  Diego Novillo  <dnovillo@google.com>
3876
3877         * doc/plugins.texi: Document plugin_is_GPL_compatible.
3878         * plugin.c (str_license): Declare.
3879         (try_init_one_plugin): Assert that the symbol
3880         'plugin_is_GPL_compatible' exists.
3881
3882 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
3883
3884         * see.c: Remove.
3885         * Makefile.in (OBJS-common): Remove see.o.
3886         (see.o): Remove.
3887         * common.opt (fsee): Mark as preserved for backward compatibility.
3888         * opts.c (common_handle_option): Add OPT_fsee to the backward 
3889         compatibility section.
3890         * passes.c (init_optimization_passes, pass_see): Remove pass.
3891         * timevar.def (TV_SEE): Remove.
3892         * tree-pass.h (pass_see): Remove declaration.
3893         * doc/invoke.texi (-fsee): Remove documentation.
3894         
3895 2009-06-18  Martin Jambor  <mjambor@suse.cz>
3896
3897         * tree-sra.c: Include statistics.h
3898         (sra_stats): New variable.
3899         (sra_initialize): Clear sra_stats.
3900         (create_access_replacement): Increment sra_stats.replacements.
3901         (get_access_replacement): Do not return twice.
3902         (analyze_all_variable_accesses): Increment statistics counter by the
3903         number of scalarized aggregates.
3904         (generate_subtree_copies): Increment sra_stats.subtree_copies.
3905         (sra_modify_expr): Increment sra_stats.exprs.
3906         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
3907         (sra_modify_assign): Increment sra_stats.exprs,
3908         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
3909         (perform_intra_sra): Update statistics counters.
3910         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
3911
3912 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
3913
3914         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
3915         (arm_scalar_mode_supported_p): New function.
3916
3917 2009-06-18  Paul Brook  <paul@codesourcery.com>
3918             Sandra Loosemore  <sandra@codesourcery.com>
3919
3920         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
3921         (__extendhfsf2, __truncsfhf2): Define.
3922         * config/arm/fp16.c: New file.
3923         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
3924         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
3925
3926 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
3927
3928         * doc/extend.texi (Half-Precision): New section.
3929         * doc/invoke.texi (Option Summary): List -mfp16-format.
3930         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
3931         * config/arm/arm.opt (mfp16-format=): New.
3932         * config/arm/arm.c: Include intl.h.
3933         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
3934         (TARGET_INVALID_RETURN_TYPE): Redefine.
3935         (TARGET_PROMOTED_TYPE): Redefine.
3936         (TARGET_CONVERT_TO_TYPE): Redefine.
3937         (arm_fp16_format): Define.
3938         (all_fpus): Add entry for neon-fp16.
3939         (fp_model_for_fpu): Likewise.
3940         (struct fp16_format): Declare.
3941         (all_fp16_formats): Define.
3942         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
3943         functions.
3944         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
3945         and no ldrh.
3946         (arm_legitimate_index_p): Treat HFmode like HImode.
3947         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
3948         (coproc_secondary_reload_class): Special-case HFmode.
3949         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
3950         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
3951         (arm_init_fp16_builtins): New.
3952         (arm_init_builtins): Call it.
3953         (arm_invalid_parameter_type): New.
3954         (arm_invalid_return_type): New.
3955         (arm_promoted_type): New.
3956         (arm_convert_to_type).
3957         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
3958         format.
3959         (arm_emit_fp16_const): New function.
3960         (arm_mangle_type): Mangle __fp16 as "Dh".
3961         * config/arm/arm.h (TARGET_VFPD32): Make it know about
3962         FPUTYPE_NEON_FP16.
3963         (TARGET_NEON_FP16): New.
3964         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
3965         (enum fputype): Add FPUTYPE_NEON_FP16.
3966         (enum arm_fp16_format_type): Declare.
3967         (arm_fp16_format): Declare.
3968         (LARGEST_EXPONENT_IS_NORMAL): Define.
3969         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
3970         * config/arm/arm-modes.def (HFmode): Define.
3971         * config/arm/vfp.md: (*movhf_vfp): New.
3972         (extendhfsf2): New.
3973         (truncsfhf2): New.
3974         * config/arm/arm.md: (fpu): Add neon_fp16.
3975         (floatsihf2, floatdihf2): New.
3976         (fix_trunchfsi2, fix_trunchfdi2): New.
3977         (truncdfhf2): New.
3978         (extendhfdf2): New.
3979         (movhf): New.
3980         (*arm32_movhf): New.
3981         (*thumb1_movhf): New.
3982         (consttable_2): Add check for HFmode constants.
3983         (consttable_4): Handle HFmode constants.
3984
3985 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
3986
3987         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
3988
3989 2009-06-17  Olivier Hainque  <hainque@adacore.com>
3990
3991         * collect2.c (main): Use CONST_CAST2 to perform char ** to
3992         const char ** conversion in AIX specific section.
3993         
3994 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
3995
3996         * config/i386/i386.c (ix86_special_builtin_type): Remove
3997         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
3998         (bdesc_special_args): Updated.
3999         (ix86_init_mmx_sse_builtins): Likewise.
4000         (ix86_expand_special_args_builtin): Likewise.
4001
4002 2009-06-17  Richard Henderson  <rth@redhat.com>
4003
4004         * tree-pretty-print.c (maybe_dump_asm_name): New.
4005         (dump_decl_name): Use it.
4006         (PRINT_FUNCTION_NAME): Merge into...
4007         (dump_function_name): ... here.  Use maybe_dump_asm_name.
4008
4009 2009-06-17  Cary Coutant  <ccoutant@google.com>
4010
4011         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
4012         Change caller.
4013         * debug.c (struct gcc_debug_hooks): Change placeholder for
4014         source_line hook.
4015         (debug_nothing_int_charstar_int): Replaced by...
4016         (debug_nothing_int_charstar_int_bool): ...this.
4017         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
4018         source_line prototype.
4019         (debug_nothing_int_charstar_int): Replaced by...
4020         (debug_nothing_int_charstar_int_bool): ...this.
4021         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
4022         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
4023         Output is_stmt operand when necessary.
4024         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
4025         (notice_source_line): Add is_stmt parameter.
4026         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
4027         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
4028         Change callers.
4029         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
4030         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
4031
4032 2009-06-17  Ian Lance Taylor  <iant@google.com>
4033
4034         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
4035         Change all uses.
4036         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
4037         call uses.
4038
4039 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
4040
4041         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
4042         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
4043         tree_strip_sign_nop_conversions and
4044         tree_ssa_strip_useless_type_conversions rather than stripping
4045         the operations here.
4046         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
4047         Declare them.
4048         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
4049         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
4050         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
4051         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
4052         functions.
4053
4054 2009-06-17  Michael Eager  <eager@eagercon.com>
4055
4056         * config/rs6000/constraints.md (register_constraint "d"): New.
4057         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
4058         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4059         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
4060         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
4061         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4062         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
4063         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
4064         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
4065         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
4066         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
4067         __fctiwz): Same.
4068         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
4069         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
4070         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
4071         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
4072         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4073         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
4074         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
4075         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
4076         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
4077         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
4078         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
4079         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
4080         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
4081         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
4082
4083 2009-06-16  Ian Lance Taylor  <iant@google.com>
4084
4085         * profile.c (total_num_never_executed): Don't define.
4086         (compute_branch_probabilities): Don't count or print
4087         num_never_executed.
4088         (init_branch_prob): Don't set total_num_never_executed.
4089         (end_branch_prob): Don't print total_num_never_executed.
4090
4091 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
4092
4093         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
4094
4095 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
4096
4097         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
4098         (nabstd2_fpr): Same.
4099
4100 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
4101
4102         * expr.c (expand_assignment): Change complex type check.
4103
4104 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
4105
4106         * doc/plugins.texi (Building GCC plugins): Added new section. 
4107
4108 2009-06-17  Ian Lance Taylor  <iant@google.com>
4109
4110         * c-pch.c (get_ident): Don't set size of templ array.
4111         (pch_init): Don't set size of partial_pch array.
4112
4113         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
4114         string constant to intialize an array whose size is the length of
4115         the string.
4116
4117 2009-06-17  Richard Guenther  <rguenther@suse.de>
4118
4119         PR tree-optimization/40389
4120         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
4121         to addressable types.
4122         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
4123
4124 2009-06-17  Richard Guenther  <rguenther@suse.de>
4125
4126         PR middle-end/40460
4127         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
4128         if there is no evolution of left in the loop bail out.
4129         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
4130         chrec_fold_multiply.
4131
4132 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
4133             Janis Johnson  <janis187@us.ibm.com>
4134
4135         PR target/39254
4136         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
4137         for the symbol ref of a constant that is the source of a move
4138         - nor for any other not-obvious-label-ref constants.
4139
4140 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
4141
4142         * plugin.c (position_pass): Skip newly inserted pass during list
4143         traversal to avoid repeated insertion.
4144
4145 2009-06-16  Ian Lance Taylor  <iant@google.com>
4146
4147         * vec.h (VEC_stack_alloc): Define different version if
4148         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
4149         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
4150         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
4151         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
4152
4153 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4154
4155         * config.gcc (extra_headers): Add ia32intrin.h for x86.
4156
4157         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
4158         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
4159         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
4160         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
4161         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
4162         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4163         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4164         (bdesc_special_args): Add __builtin_ia32_rdtsc and
4165         __builtin_ia32_rdtscp.
4166         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
4167         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
4168         and __builtin_ia32_rorhi.
4169         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
4170         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4171         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4172         (ix86_expand_args_builtin): Likewise.
4173         (ix86_expand_special_args_builtin): Likewise.
4174
4175         * config/i386/i386.md (UNSPECV_RDTSCP): New.
4176         (UNSPECV_RDTSC): Likewise.
4177         (UNSPECV_RDPMC): Likewise.
4178         (*bsr): Renamed to ...
4179         (bsr): This
4180         (*bsr_rex64): Renamed to ...
4181         (bsr_rex64): This.
4182         (rdpmc): New.
4183         (*rdpmc): Likewise.
4184         (*rdpmc_rex64): Likewise.
4185         (rdtsc): Likewise.
4186         (*rdtsc): Likewise.
4187         (*rdtsc_rex64): Likewise.
4188         (rdtscp): Likewise.
4189         (*rdtscp): Likewise.
4190         (*rdtscp_rex64): Likewise.
4191
4192         * config/i386/ia32intrin.h: New.
4193
4194         * config/i386/x86intrin.h: Include <ia32intrin.h>.
4195
4196 2009-06-16  Ian Lance Taylor  <iant@google.com>
4197
4198         * ira-build.c (copy_info_to_removed_store_destinations):
4199         Initialize parent_a.
4200
4201 2009-06-16  Ian Lance Taylor  <iant@google.com>
4202
4203         * c-decl.c (grokdeclarator): Change size_varies to bool.
4204
4205 2009-06-16  Ian Lance Taylor  <iant@google.com>
4206
4207         * sel-sched.c: Make forward declarations of move_op_hooks and
4208         fur_hooks explicitly extern.
4209
4210 2009-06-16  Ian Lance Taylor  <iant@google.com>
4211
4212         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
4213         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
4214
4215 2009-06-16  Ian Lance Taylor  <iant@google.com>
4216
4217         * resource.c (mark_referenced_resources): Change
4218         include_delayed_effects parameter to bool.  Change all callers.
4219         (mark_end_of_function_resources): Likewise.
4220         * reorg.c (insn_references_resource_p): Likewise.
4221         (insn_sets_resource_p): Likewise.
4222         * resource.h (mark_referenced_resources): Update declaration.
4223         (mark_end_of_function_resources): Update declaration.
4224
4225 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4226
4227         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
4228
4229 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4230
4231         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
4232         GCC can bootstrap on AIX with GNU Binutils 2.20.
4233
4234 2009-06-16  Ian Lance Taylor  <iant@google.com>
4235
4236         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
4237
4238 2009-06-16  Ian Lance Taylor  <iant@google.com>
4239
4240         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
4241         inline, not extern inline.
4242         (exact_log2): Likewise.
4243         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
4244         test CLZ_HWI.
4245         (exact_log2): Likewise, but don't test CTZ_HWI.
4246
4247 2009-06-16  Ian Lance Taylor  <iant@google.com>
4248
4249         * bitmap.c (bitmap_clear): Don't declare as inline.
4250         * gimple.c (gimplify_assign): Likewise.
4251         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4252         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
4253         (sched_scan_info): Remove duplicate definition.
4254
4255 2009-06-16  Ian Lance Taylor  <iant@google.com>
4256
4257         * c-common.c (skip_evaluation): Don't define.
4258         (c_inhibit_evaluation_warnings): Define global variable.
4259         (overflow_warning): Check c_inhibit_evaluation_warnings rather
4260         than skip_evaluation.
4261         (convert_and_check, warn_for_div_by_zero): Likewise.
4262         * c-common.h (skip_evaluation): Don't declare.
4263         (c_inhibit_evaluation_warnings): Declare.
4264         * c-parser.c (c_parser_typeof_specifier): Set
4265         c_inhibit_evaluation_warnings rather than skip_evaluation.
4266         (c_parser_conditional_expression): Likewise.
4267         (c_parser_binary_expression): Likewise.
4268         (c_parser_sizeof_expression): Likewise.
4269         (c_parser_alignof_expression): Likewise.
4270         * c-typeck.c (build_indirect_ref): Check
4271         c_inhibit_evaluation_warnings rather than skip_evaluation.
4272         (build_conditional_expr, build_binary_op): Likewise.
4273
4274 2009-06-16  Richard Guenther  <rguenther@suse.de>
4275
4276         * tree-ssa-alias.c (is_escape_site): Remove.
4277         * tree-ssa-alias.h (enum escape_type): Remove.
4278         (is_escape_site): Likewise.
4279         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
4280         via casts and asms without deferring to is_escape_site.
4281
4282 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
4283
4284         PR middle-end/40446
4285         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
4286         use gen_lowpart if op0 has complex mode.
4287
4288 2009-06-16  Richard Guenther  <rguenther@suse.de>
4289
4290         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
4291         variables add them to ESCAPED.
4292         (find_func_aliases): Do not make all indirectly stored values escaped.
4293
4294 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
4295
4296         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
4297         make_decl_one_only.
4298
4299 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4300
4301         PR tree-optimization/40432
4302         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
4303         check whether we need to force gimple register operand.
4304
4305 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4306
4307         PR tree-optimization/40413
4308         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
4309         build_ref_for_offset.
4310         (propagate_subacesses_accross_link): Fix a typo in a comment.
4311
4312 2009-06-16  Ira Rosen  <irar@il.ibm.com>
4313
4314         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
4315         with additional parameter.
4316         * tree-vectorizer.h (enum vect_def_type): Add new value
4317         vect_nested_cycle.
4318         (enum vect_relevant): Add comments.
4319         (vect_is_simple_reduction): Add new argument.
4320         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
4321         Detect nested cycles.
4322         (vect_is_simple_reduction): Update documentation, add an argument to
4323         distinguish inner-loop reduction from nested cycle, detect nested
4324         cycles, fix printings and indentation, don't swap operands in case
4325         of nested cycle.
4326         (get_initial_def_for_reduction): Handle subtraction.
4327         (vect_create_epilog_for_reduction): Add new argument to specify
4328         reduction variable.
4329         (vect_finalize_reduction): Handle subtraction, fix comments.
4330         (vectorizable_reduction): Handle nested cycles. In case of nested
4331         cycle keep track of the reduction variable position. Call 
4332         vect_is_simple_reduction with additional parameter. Use original
4333         statement code in reduction epilogue for nested cycle. Call
4334         vect_create_epilog_for_reduction with additional parameter.
4335         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
4336         inner-loop vectorization.
4337         (vect_recog_widen_sum_pattern): Likewise.
4338         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
4339         and reductions.
4340         (vect_mark_stmts_to_be_vectorized): Likewise.
4341         (vect_get_vec_def_for_operand): Handle nested cycles.
4342
4343 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4344
4345         * doc/invoke.texi (Debugging Options): Fix option index entries
4346         for -fdump-statistics, -frandom-seed add entries for
4347         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
4348         (FRV Options): Fix entries for -mTLS, -mtls.
4349         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
4350         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
4351         (M68hc1x Options): Fix @itemx for -mnominmax.
4352         (MCore Options): Fix entry for -mno-lsim.
4353         (MMIX Options): Fix entry for -mabi=mmixware.
4354         (PDP-11 Options): Fix entry for -mbcopy-builtin.
4355
4356 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
4357
4358         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
4359         Mention the plugin mode of gengtype.
4360         * doc/gty.texi (Source Files Containing Type Information): Likewise.
4361         * gengtype.c: Updated copyright.
4362         (plugin_files, nb_plugin_files) Added new static variables.
4363         (measure_input_list) Care about plugin_files.
4364         (write_rtx_next): Added early return in plugin mode.
4365         (create_file): Updated copyright year in generated file. Added
4366         asserts.
4367         (oprintf): Added early return if NULL outf.
4368         (get_output_file_with_visibility): Care of plugin_files.
4369         (get_output_file_name): May return null.
4370         (write_local): Added early return.
4371         (put_mangled_filename): Ditto.
4372         (finish_root_table): Added check for base_files.
4373         (write_roots): Care about null when plugins.
4374         (main): Added plugin mode.
4375
4376 2009-06-15  Ian Lance Taylor  <iant@google.com>
4377
4378         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
4379         * gcov.c (read_count_file): Add braces around variables declared
4380         before label.
4381
4382         * c.opt (Wjump-misses-init): New warning.
4383         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
4384         -Wall and -Wc++-compat if not already set.
4385         (c_common_post_options): Clear warn_jump_misses_init if it was not
4386         set.
4387         * c-decl.c (struct c_binding): Change type field to a union with
4388         new label field.  Make it the first field in the struct.  Update
4389         references to type to use u.type instead.
4390         (struct c_spot_bindings): Define.
4391         (struct c_goto_bindings): Define.
4392         (c_goto_bindings_p): Define, along with VECs.
4393         (struct c_label_vars): Define.
4394         (struct c_scope): Add has_label_bindings field.
4395         (bind_label, set_spot_bindings): New static functions.
4396         (decl_jump_unsafe, update_spot_bindings): New static functions.
4397         (update_label_decls): New static function.
4398         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
4399         Update binding u.label field to shadowed field.
4400         (c_binding_start_stmt_expr): New function.
4401         (c_binding_end_stmt_expr): New function.
4402         (pushdecl): Don't call c_begin_vm_scope.
4403         (make_label): Add defining and p_label_vars parameters.  Change
4404         all callers.
4405         (lookup_label): Correct test for whether a label has not yet been
4406         defined.  Call bind_label rather than bind.
4407         (warn_about_goto): New static function.
4408         (lookup_label_for_goto): New function.
4409         (declare_label): Call bind_label rather than bind.
4410         (check_earlier_gotos): New static function.
4411         (define_label): Don't give errors about jumping into statement
4412         expressions or scopes of variably modified types.  Call
4413         set_spot_bindings and check_earlier_gotos.  Call bind_label
4414         instead of bind.  Don't set label_context_stack_se or
4415         label_context_stack_vm.
4416         (c_get_switch_bindings): New function.
4417         (c_release_switch_bindings): New function.
4418         (c_check_switch_jump_warnings): New function.
4419         (start_function): Don't set label_context_stack_se or
4420         label_context_stack_vm.
4421         (finish_function): Likewise.
4422         * c-typeck.c (label_context_stack_se): Don't define.
4423         (label_context_stack_vm): Don't define.
4424         (c_finish_goto_label): Call lookup_label_for_goto rather than
4425         lookup_label.  Don't give errors about jumping into a statement
4426         expression or the scope of a variably modified type.  Don't set
4427         label_context_stack_se or label_context_stack_vm.
4428         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
4429         fields.  Add bindings field.
4430         (c_start_case): Don't set deleted fields.  Set bindings field.
4431         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
4432         or blocked_vm.  Call c_check_switch_jump_warnings.
4433         (c_finish_case): Don't test blocked_stmt_expr field.  Call
4434         c_release_switch_bindings.
4435         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
4436         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4437         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
4438         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
4439         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4440         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
4441         (c_begin_vm_scope, c_end_vm_scope): Don't define.
4442         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
4443         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
4444         (C_DECL_UNJUMPABLE_VM): Don't define.
4445         (C_DECL_UNDEFINABLE_VM): Don't define.
4446         (struct c_label_list): Don't define.
4447         (struct c_label_context_se): Don't define.
4448         (struct c_label_context_vm): Don't define.
4449         (struct c_spot_bindings): Declare.
4450         (c_bindings_start_stmt_expr): Declare.
4451         (c_bindings_end_stmt_expr): Declare.
4452         (lookup_label_for_goto): Declare.
4453         (c_get_switch_bindings, c_release_switch_bindings): Declare.
4454         (c_check_switch_jump_warnings): Declare.
4455         (label_context_stack_se, label_context_stack_vm): Don't declare.
4456         (c_finish_goto_label): Update declaration.
4457         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
4458         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
4459         (Warning Options): Document -Wjump-misses-init.
4460
4461 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
4462
4463         * tree-object-size.c (addr_object_size): Fix a pasto in the last
4464         change.
4465
4466 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4467
4468         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
4469
4470 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4471
4472         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
4473
4474 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4475
4476         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
4477
4478 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4479
4480         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
4481         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4482         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
4483         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
4484         * dwarf2asm.c (dw2_force_const_mem): Update call to
4485         make_decl_one_only.
4486         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
4487         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
4488         * langhooks.c (lhd_comdat_group): Remove.
4489         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
4490         * tree.h (DECL_COMDAT_GROUP): New.
4491         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
4492         (tree_decl_with_vis): Add comdat_group. Remove one_only.
4493         (make_decl_one_only): Change signature.
4494         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
4495         make_decl_one_only.
4496         (make_decl_one_only): Change signature.
4497         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
4498
4499 2009-06-15  Richard Guenther  <rguenther@suse.de>
4500
4501         PR middle-end/40439
4502         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
4503
4504 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4505
4506         * tree-ssa-math-opts.c: Remove extra divide.
4507
4508 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4509
4510         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
4511
4512 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4513
4514         * passes.c: Add bswap pass.
4515         * tree-pass.h: Add pass_optimize_bswap declaration.
4516         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
4517         Include rtl.h, expr.h and optabs.h for optab_handler check.
4518         (struct symbolic_number, pass_optimize_bswap): New definition.
4519         (do_shift_rotate, verify_symbolic_number_p): New functions.
4520         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
4521         (gate_optimize_bswap): New function.
4522         * tree.c (widest_int_cst_value): New function.
4523         * tree.h (widest_int_cst_value): Prototype added.
4524
4525 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
4526
4527         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
4528         REG_EQUAL/REG_EQUIV notes.
4529
4530 2009-06-14  Richard Guenther  <rguenther@suse.de>
4531
4532         PR middle-end/40389
4533         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
4534         has its address taken if NRV was applied and it is addressable.
4535         * tree-ssa-structalias.c (get_constraint_for_address_of): New
4536         function split out from ...
4537         (get_constraint_for_1): ... here.
4538         (handle_rhs_call): Use it to mark the return slot escaped if
4539         it is addressable and NRV was applied.
4540
4541 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4542
4543         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
4544         Change first argument type to location_t.
4545         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
4546         Do not set input_location.
4547         Use loc instead of input_location throughout.
4548
4549 2009-06-13  Richard Guenther  <rguenther@suse.de>
4550
4551         PR tree-optimization/40421
4552         * tree-predcom.c (should_unroll_loop_p): Remove.
4553         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
4554
4555 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4556
4557         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4558         Add location argument.
4559
4560 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4561
4562         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
4563         build_decl.
4564         * config/s390/s390.c (s390_build_builtin_va_list): Same.
4565         (s390_gimplify_va_arg): Pass location to create_artificial_label.
4566         * config/spu/spu-protos.h: Add location to
4567         spu_resolve_overloaded_builtin.
4568         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
4569         spu_build_builtin_va_list.
4570         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
4571         argument.  Pass location to build_function_call_vec.
4572         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
4573         build_decl.
4574         (emit_fpu_switch): Same.
4575         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
4576         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
4577         to build_decl and create_artificial_label.
4578         (xtensa_gimplify_va_arg_expr): Same.
4579         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
4580         (xstormy16_gimplify_va_arg_expr): Same.
4581         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
4582         * config/arm/arm.c (arm_build_builtin_va_list): Same.
4583         * config/mips/mips.c (mips_build_builtin_va_list): Same.
4584         (mips16_build_function_stub): Same.
4585         (mips16_build_call_stub): Same.
4586
4587 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
4588
4589         PR target/40327
4590         * arm/constraints.md (Pa, Pb): New constraints.
4591         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
4592         split pattern to deal with them.
4593
4594 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
4595
4596         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
4597         fix index entry for -Xpreprocessor.
4598
4599 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
4600
4601         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4602         Add location argument to build_decl call.
4603         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
4604         (rs6000_init_builtins): Same.
4605         (spe_init_builtins): Same.
4606         (rs6000_gimplify_va_arg): Add location argument to
4607         create_artificial_label call.
4608
4609 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
4610
4611         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
4612         * combine-stack-adj.c (pass_stack_adjustments): Use it.
4613         * Makefile.in: Fix GGC dependency for gcse.o.
4614
4615 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
4616
4617         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
4618         * gimple-pretty-print.c (dump_gimple_stmt): Same.
4619         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
4620         created.
4621         * c-parser.c (c_parser_binary_expression): Use current column while
4622         building binary operations.
4623         * common.opt (fshow-column): Enable by default.
4624         * tree-vrp.c (check_array_ref): Use warning_at.
4625         (check_array_bounds): Use location from call back if expr has no
4626         location.
4627         * tree.h: Add location argument to maybe_fold_*.
4628         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
4629         (maybe_fold_offset_to_array_ref): Add location argument and use it.
4630         (maybe_fold_offset_to_component_ref): Same.
4631         (maybe_fold_offset_to_reference): Same.
4632         (maybe_fold_offset_to_address): Same.
4633         (maybe_fold_stmt_indirect): Same.
4634         (maybe_fold_stmt_addition): Same.
4635         (fold_stmt_r): Pass location to maybe_fold_*.
4636         (fold_gimple_assign): Same.
4637         * c-tree.h: Add location argument to finish_decl,
4638         default_function_array_conversion, store_init_value.
4639         * c-decl.c (define_label): Use error_at.
4640         (c_make_fname_decl): Pass location to finish_decl.
4641         (finish_decl): New location argument.
4642         (build_compound_literal): Pass location to store_init_value.
4643         (grokdeclarator): Pass location to finish_decl.
4644         (grokfield): Same.
4645         * c-typeck.c (array_to_pointer_conversion): New location argument.
4646         (function_to_pointer_conversion): Same.
4647         (default_function_array_conversion): Same.
4648         (parser_build_unary_op): Pass location to overflow_warning.
4649         (parser_build_binary_op): Same.  Use warning_at.
4650         (build_unary_op): Pass location to array_to_pointer_conversion.
4651         (build_c_cast): Pass location to digest_init.
4652         (build_modify_expr): New location argument.
4653         (convert_for_assignment): Same.
4654         (store_init_value): Same.
4655         (digest_init): Same.
4656         (output_init_element): Pass location to digest_init and
4657         array_to_pointer_conversion.
4658         (c_finish_return): Pass location to convert_for_assignment.
4659         * gimplify.c (gimplify_conversion): Pass location to
4660         maybe_fold_offset_to_address.
4661         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
4662         to maybe_fold_stmt_addition.
4663         * c-omp.c (c_finish_omp_atomic): Pass new location to
4664         build_modify_expr.
4665         (c_finish_omp_for): Same.
4666         * c-common.c (overflow_warning): New argument.
4667         * c-common.h: New argument to build_modify_expr, overflow_warning.
4668         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
4669         finish_decl.
4670         (c_parser_initializer): Pass location to
4671         default_function_array_conversion.
4672         (c_parser_initelt): Same.
4673         (c_parser_initval): Same.
4674         (c_parser_asm_operands): Same.
4675         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
4676         (c_parser_conditional_expression): Same.
4677         (c_parser_binary_expression): Add location info to stack.  Use it.
4678         (c_parser_unary_expression): Pass location to
4679         default_function_array_conversion, parser_build_unary_op,
4680         build_indirect_ref, c_parser_postfix_expression_after_primary.
4681         (c_parser_postfix_expression_after_primary): New location argument.
4682         Use it.
4683         (c_parser_expression_conv): Pass location to
4684         default_function_array_conversion.
4685         (c_parser_expr_list): Same.
4686         (c_parser_omp_atomic): Same.
4687         (c_parser_omp_for_loop): Same.
4688         * c-tree.h: (struct c_declarator): Add comment to id_loc.
4689         (build_array_declarator): New argument.
4690         * c-decl.c (build_array_declarator): Add location argument.
4691         (grokdeclarator): Set id_loc for cdk_array.
4692         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
4693         build_array_declarator.
4694         * tree.c (build_omp_clause): Add location argument.
4695         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
4696         (OMP_CLAUSE_LOCATION): New macro.
4697         (struct tree_omp_clause): Add location field.
4698         (build_omp_clause): Add argument.
4699         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
4700         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
4701         build_omp_clause.
4702         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
4703         (cp_parser_omp_clause_collapse): Same.
4704         (cp_parser_omp_clause_default): Same.
4705         (cp_parser_omp_clause_if): Same.
4706         (cp_parser_omp_clause_nowait): Same.
4707         (cp_parser_omp_clause_num_threads): Same.
4708         (cp_parser_omp_clause_ordered): Same.
4709         (cp_parser_omp_clause_schedule): Same.
4710         (cp_parser_omp_clause_untied): Same.
4711         (cp_parser_omp_for_loop): Same.
4712         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
4713         * c-tree.h (c_start_case): Add location argument.
4714         (c_process_expr_stmt): Same.
4715         (c_finish_goto_*): Same.
4716         * tree-parloops.c (initialize_reductions): Pass location to
4717         build_omp_clause.
4718         (create_parallel_loop): Same.
4719         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
4720         (gfc_trans_omp_reduction_list): Same.
4721         (gfc_trans_omp_clauses): Same.
4722         (gfc_trans_omp_do): Same.
4723         * c-typeck.c (c_finish_goto_label): Same.
4724         (c_finish_goto_ptr): New location argument.
4725         (c_start_case): Same.
4726         (emit_side_effect_warnings): Same.
4727         (c_process_expr_stmt): Same.
4728         (c_finish_stmt_expr): Same.
4729         (c_finish_omp_clauses): Use error_at instead of error.
4730         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
4731         build_omp_clause.
4732         * c-omp.c (c_split_parallel_clauses): New location argument.
4733         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
4734         to build_omp_clause.
4735         (convert_local_reference_stmt): Same.
4736         (convert_gimple_call): Same.
4737         * c-common.h (c_split_parallel_clauses): New argument.
4738         * c-parser.c (c_parser_statement_after_labels): Pass location to
4739         c_finish_goto_label.
4740         (c_parser_switch_statement): Pass location to c_start_case.
4741         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
4742         and c_process_expr_stmt.
4743         (c_parser_omp_variable_list): Add location argument.
4744         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
4745         (c_parser_omp_clause_default): Same.
4746         (c_parser_omp_clause_if): Same.
4747         (c_parser_omp_clause_num_threads): Same.
4748         (-c_parser_omp_clause_ordered): Same.
4749         (c_parser_omp_clause_reduction): Pass location to
4750         c_parser_omp_variable_list.
4751         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
4752         (c_parser_omp_clause_untied): Same.
4753         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
4754         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
4755
4756         * c-tree.h (check_for_loop_decls, undeclared_variable,
4757         build_component_ref, build_array_ref, build_external_ref,
4758         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
4759         build_conditional_expr, build_compound_expr, c_cast_expr,
4760         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
4761         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
4762         argument.
4763         * c-semantics.c (build_stmt): Same.
4764         (build_case_label): Same.
4765         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
4766         (undeclared_variable): New argument.
4767         (make_label): Same.
4768         (lookup_label): Pass location on down.
4769         (define_label): Same.
4770         (finish_decl): Same.
4771         (build_compound_literal): Same.
4772         (finish_struct): Same.
4773         (finish_function): Do not set location here.
4774         (check_for_loop_decls): New argument.
4775         * tree.c (save_expr): Set location.
4776         (build_empty_stmt): New argument.
4777         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
4778         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
4779         * builtins.c (gimplify_va_arg_expr): Use locations.
4780         (expand_builtin_sync_operation): Same.
4781         * c-typeck.c (build_component_ref): New argument.
4782         (build_array_ref): Same.
4783         (build_external_ref): Same.
4784         (c_expr_sizeof_expr): Same.
4785         (c_expr_sizeof_type): Same.
4786         (parser_build_unary_op): Same.
4787         (build_conditional_expr): Same.
4788         (build_compound_expr): Pass location on down.
4789         (build_compound_expr): New argument.
4790         (build_c_cast): Same.
4791         (c_cast_expr): Same.
4792         (build_asm_expr): Same.
4793         (c_finish_return): Same.
4794         (c_process_expr_stmt): Pass location on down.
4795         (c_finish_stmt_expr): New argument.
4796         (push_clenaup): Same.
4797         (c_finish_omp_parallel): Same.
4798         (c_finish_omp_task): Same.
4799         * gimplify.c (gimplify_call_expr): Pass location on down.
4800         * c-omp.c (c_finish_omp_master): New argument.
4801         (c_finish_omp_critical): Same.
4802         (c_finish_omp_ordered): Same.
4803         (c_finish_omp_barrier): Same.
4804         (-c_finish_omp_taskwait): Same.
4805         (c_finish_omp_atomic): Same.
4806         (c_finish_omp_flush): Same.
4807         * tree-inline.c (copy_tree_body_r): Pass location on down.
4808         (inline_forbidden_p): Remove use of input_location.
4809         * c-gimplify.c (c_build_bind_expr): New argument.
4810         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
4811         (c_sizeof_or_alignof_type): New argument.
4812         (c_alignof_expr): Same.
4813         (build_va_arg): Same.
4814         (c_add_case_label): Same.
4815         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
4816         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
4817         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
4818         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
4819         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
4820         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
4821         New argument.
4822         * stub-objc.c (objc_build_selector_expr): Same.
4823         (objc_build_throw_stmt): Same.
4824         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
4825         (c_parser_initelt): Same.
4826         (c_parser_compound_statement): Same.
4827         (c_parser_compound_statement_nostart): Same.
4828         (c_parser_label): Same.
4829         (c_parser_statement_after_labels): Same.
4830         (c_parser_if_body): Same.
4831         (c_parser_else_body): Same.
4832         (c_parser_if_statement): Same.
4833         (c_parser_switch_statement): Same.
4834         (c_parser_while_statement): Same.
4835         (c_parser_do_statement): Same.
4836         (c_parser_for_statement): Same.
4837         (c_parser_asm_statement): Same.
4838         (c_parser_conditional_expression): Same.
4839         (c_parser_binary_expression): Same.
4840         (c_parser_cast_expression): Same.
4841         (c_parser_unary_expression): Same.
4842         (c_parser_sizeof_expression): Same.
4843         (c_parser_alignof_expression): Same.
4844         (c_parser_postfix_expression): Same.
4845         (c_parser_expression): Same.
4846         (c_parser_objc_receiver): Same.
4847         (c_parser_omp_variable_list): Same.
4848         (c_parser_omp_structured_block): Same.
4849         (c_parser_omp_atomic): New argument.
4850         (c_parser_omp_barrier): Same.
4851         (c_parser_omp_critical): Same.
4852         (c_parser_omp_flush): Pass location on down.
4853         (c_parser_omp_for_loop): New argument.
4854         (c_parser_omp_for): Same.
4855         (c_parser_omp_master): Same.
4856         (c_parser_omp_ordered): Same.
4857         (c_parser_omp_sections_scope): Same.
4858         (c_parser_omp_sections): Same.
4859         (c_parser_omp_parallel): Same.
4860         (c_parser_omp_single): Same.
4861         (c_parser_omp_task): Same.
4862         (c_parser_omp_taskwait): Pass location on down.
4863         (c_parser_omp_construct): Same.
4864         (c_parser_omp_threadprivate): Same.
4865         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
4866         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
4867         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
4868         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
4869         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
4870         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
4871         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
4872         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
4873         config/i386/i386.c, stmt.c:
4874         Add location argument to the following function definitions and/or
4875         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
4876         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
4877         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
4878         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
4879         do_case, c_finish_bc_stmt, build_compound_literal,
4880         build_function_call.
4881         * c-decl.c (build_compound_literal): Add location argument.
4882         Make all diagnostic calls use location.
4883         (start_struct): Same.
4884         (finish_struct): Same.
4885         (start_enum): Same.
4886         (build_enumerator): Same.
4887         (start_function): Same.
4888         (grokdeclarator): Make all diagnostic calls use location.
4889         (store_parm_decls_oldstyle): Same.
4890         * c-typeck.c (build_function_call): Add location argument.
4891         Make all diagnostic calls use location.
4892         (do_case): Same.
4893         (c_finish_bc_stmt): Same.
4894         * tree-nested.c (get_trampoline_type): Add argument.
4895         Pass location to build_decl.
4896         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
4897         * rtl.h (RTL_LOCATION): New.
4898         * c-common.c (c_add_case_label): Add location argument.
4899         Make all diagnostic calls use location.
4900         * c-common.h: Add location argument to make_fname_decl, do_case,
4901         c_add_case_label, build_function_call, resolve_overloaded_builtin.
4902         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
4903         Set it appropriately for every case.  Pass enum_loc to start_enum
4904         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
4905         parser_xref_tag.
4906         (c_parser_struct_or_union_specifier): Save location.  Use it for
4907         start_struct, finish_struct, and parser_xref_tag.
4908
4909 2009-06-12  Ian Lance Taylor  <iant@google.com>
4910
4911         * fold-const.c (fold_unary): Rename local variable and to and_expr.
4912
4913         * c-opts.c (c_common_handle_option): For -Wc++-compat set
4914         cpp_opts->warn_cxx_operator_names.
4915
4916 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4917
4918         PR tree-opt/38865
4919         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
4920         is returns NULL and OP is a VCE, look through the VCE.
4921
4922 2009-06-12  Ian Lance Taylor  <iant@google.com>
4923
4924         PR bootstrap/40430
4925         * collect2.c (main): Use CONST_CAST2 in code inside #if
4926         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
4927
4928 2009-06-12  Joey Ye  <joey.ye@intel.com>
4929
4930         PR middle-end/39146
4931         * cfgexpand.c (get_decl_align_unit): Update
4932         max_used_stack_slot_alignment with align instead of
4933         stack_alignment_needed.
4934
4935         * function.c (assign_stack_local_1): Update
4936         max_used_stack_slot_alignment with alignment_in_bits instead
4937         of stack_alignment_needed.
4938         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
4939         here.
4940
4941 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
4942
4943         * dwarf2out.c (last_var_location_insn): New variable.
4944         (dwarf2out_end_epilogue): Clear last_var_location_insn.
4945         (dwarf2out_var_location): Don't record anything after last real
4946         insn.  Only change labels if there were any real instructions
4947         in between last note and this one, or if changed sections.
4948
4949 2009-06-11  Richard Henderson  <rth@redhat.com>
4950
4951         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
4952         note when storing the frame pointer in a register.
4953         (FRP): Don't redefine to nothing for epilogue.
4954         (alpha_expand_epilogue): Mark register and sp restores.
4955         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
4956
4957         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
4958         when gen_lowpart is needed.
4959
4960 2009-06-11  Richard Henderson  <rth@redhat.com>
4961
4962         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
4963
4964         * dwarf2out.c (need_data_align_sf_opcode): New.
4965         (div_data_align): Move earlier.
4966         (def_cfa_1, reg_save): Use it.
4967
4968 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
4969
4970         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
4971         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
4972         (ix86_handle_option): Handle OPT_mcrc32.
4973         (ix86_target_string): Add -mcrc32.
4974         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
4975
4976         * config/i386/i386.h (TARGET_CRC32): New.
4977
4978         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
4979         (sse4_2_crc32di): Likewise.
4980
4981         * config/i386/i386.opt (mcrc32): New.
4982
4983         * doc/invoke.texi: Document -mcrc32.
4984
4985 2009-06-11  Richard Henderson  <rth@redhat.com>
4986
4987         * common.opt (gdwarf-): Accept a version number.
4988         * doc/invoke.texi (gdwarf-): Update docs.
4989         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
4990         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
4991         version level, and record it.
4992
4993         * dwarf2.h (DW_CIE_VERSION): Remove.
4994         * dwarf2out.c (DWARF_VERSION): Remove.
4995         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
4996         (output_call_frame_info): Use CIE version 3 for dwarf3,
4997         or if the return register column is out of range for version 1.
4998         (dwarf_stack_op_name): Add all dwarf3 values.
4999         (DEBUG_PUBTYPES_SECTION): New.
5000         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
5001         encoding change for dwarf3.
5002         (output_die) [dw_val_class_die_ref]: Likewise.
5003         (output_compilation_unit_header): Emit correct version for dwarf3.
5004         (output_line_info): Likewise.
5005         (output_pubnames): Update for DWARF_VERSION removal.
5006         (output_aranges): Likewise.
5007         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
5008         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
5009         (dwarf2out_finish): Likewise.
5010
5011 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5012
5013         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
5014         in r148403.
5015
5016 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5017
5018         PR c/39252
5019         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
5020         * builtins.c (expand_builtin_unreachable): New function.
5021         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
5022         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
5023         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
5024         successors.
5025         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
5026         searching for missing barriers.
5027
5028 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5029
5030         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
5031         when -fprofile-generate* was passed.
5032         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
5033
5034 2009-06-11  Anthony Green  <green@moxielogic.com>
5035
5036         * config/moxie/moxie.md: Define length attribute for all instructions.
5037         (rCC): Define.
5038         (*b<cond:code>): Support limited branch ranges for new PC-relative
5039         branch instructions.
5040         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
5041
5042 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
5043
5044         * config/i386/i386.c (min_insn_size): Use get_attr_length
5045         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
5046         For __asm return 0.
5047
5048         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
5049         instead of emit_insn_before.
5050
5051 2009-06-10  Ian Lance Taylor  <iant@google.com>
5052
5053         PR bootstrap/40408
5054         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
5055         GIMPLE_SWITCH.
5056
5057 2009-06-10  Revital Eres  <eres@il.ibm.com>
5058
5059         * passes.c (init_optimization_passes): Reschedule
5060         predictive-commoning pass before complete unroll pass.
5061
5062 2009-06-10  Martin Jambor  <mjambor@suse.cz>
5063
5064         * cgraph.c (cgraph_node_can_be_local_p): New function.
5065         (cgraph_make_node_local): New function.
5066         * cgraph.h (cgraph_node_can_be_local_p): Declare.
5067         (cgraph_make_node_local): Declare.
5068
5069 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
5070
5071         * tree.h (tree_base): Add packed_flag and user_align fields.
5072         Decrease size of spare field.
5073         (TYPE_USER_ALIGN): Use user_align from tree_base.
5074         (DECL_USER_ALIGN): Likewise.
5075         (TYPE_PACKED): Use packed_flag from tree_base.
5076         (DECL_PACKED): Likewise.
5077         (tree_type): Delete packed_flag and user_align fields.  Widen
5078         precision field.  Widen mode field and shuffle fields to align
5079         mode on an 8-bit boundary.
5080         (tree_decl_common): Delete decl_flag_1 and user_align fields.
5081         Renumber decl_flag_* fields.  Fix comments.  Widen
5082         decl_common_unused field.
5083         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
5084         (DECL_EXTERNAL): Likewise.
5085         (DECL_BIT_FIELD): Likewise.
5086         (DECL_NONADDRESSABLE_P): Likewise.
5087         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
5088         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
5089
5090 2009-06-10  Ian Lance Taylor  <iant@google.com>
5091
5092         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
5093         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
5094         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
5095         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
5096         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
5097         DEF_VEC_ALLOC_FUNC_P.
5098         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
5099         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
5100         DEF_VEC_ALLOC_FUNC_O.
5101         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
5102         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
5103         DEF_VEC_ALLOC_FUNC_I.
5104         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
5105         (vec_stack_p_reserve_exact_1): Declare.
5106         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
5107         (vec_stack_free): Declare.
5108         (VEC_stack_alloc): Define.
5109         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
5110         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
5111         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
5112         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
5113         for void_p.
5114         (stack_vecs): New static variable.
5115         (vec_stack_p_reserve_exact_1): New function.
5116         (vec_stack_o_reserve_1): New static function.
5117         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
5118         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
5119         (vec_stack_free): New function.
5120         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
5121         (VEC_df_ref_stack_alloc): Define.
5122         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
5123         DEF_VEC_ALLOC_P_STACK.
5124         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
5125         (struct df_collection_rec): Change _vec fields to VEC.  Remove
5126         _use fields.
5127         (df_free_collection_rec): Adjust for new fields.
5128         (df_insn_rescan): Use new df_collection_rec fields.
5129         (df_notes_rescan, df_canonize_collection_rec): Likewise.
5130         (df_ref_create_structure, df_ref_record): Likewise.
5131         (df_get_conditional_uses, df_get_call_refs): Likewise.
5132         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
5133         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
5134         (df_record_exit_block_uses, df_bb_verify): Likewise.
5135         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
5136         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
5137         Remove count parameter.  Change return type to void.  Change all
5138         callers.
5139         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
5140         Remove count parameter.  Change return type to void.  Change all
5141         callers.
5142         (df_install_refs): Change old_vec parameter to VEC.  Remove count
5143         parameter.  Change all callers.
5144         (df_install_mws): Change old_vec parameter to VEC.  Remove count
5145         parameter.  Change all callers.
5146         (df_refs_verify): Change new_rec parameter to VEC.  Change call
5147         callers.
5148         (df_mws_verify): Likewise.
5149
5150 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
5151
5152         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
5153
5154 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5155
5156         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
5157
5158 2009-06-10  Anthony Green  <green@moxielogic.com>
5159
5160         * config/moxie/crti.asm: New file.
5161         * config/moxie/crtn.asm: New file.
5162         * config/moxie/moxie.c: New file.
5163         * config/moxie/moxie.h: New file.
5164         * config/moxie/sfp-machine.h: New file.
5165         * config/moxie/moxie-protos.h: New file.
5166         * config/moxie/t-moxie: Created.
5167         * config/moxie/t-moxie-softfp: Created.
5168         * config/moxie/moxie.md: Created.
5169         * config/moxie/constraints.md: Created.
5170         * config.gcc: Add moxie support.
5171         * doc/md.texi (Machine Constraints): Add moxie constraints.
5172         * doc/contrib.texi (Contributors): Mention moxie port.
5173         * doc/install.texi (Specific): Mention the moxie port.
5174
5175 2009-06-09  Ian Lance Taylor  <iant@google.com>
5176
5177         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
5178         compiling with C++.
5179         * optabs.c (optab_table): Only use designated initializers if
5180         HAVE_DESIGNATED_INITIALIZERS is defined.
5181         (convert_optab_table): Likewise.
5182         (init_optabs): Always call init_insn_codes if
5183         HAVE_DESIGNATED_INITIALIZERS is not defined.
5184
5185 2009-06-09  Ian Lance Taylor  <iant@google.com>
5186
5187         * targhooks.c (default_builtin_vectorized_function): Change fn
5188         parameter to unsigned int.
5189         (default_builtin_vectorized_conversion): Change code parameter to
5190         unsigned int.
5191         (default_builtin_reciprocal): Change fn parameter to unsigned int.
5192         * targhooks.h: Update declarations.
5193         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
5194         parameter to unsigned int.
5195
5196         * c-typeck.c (comptypes_check_enum_int): New static function.
5197         (comptypes_internal): Add enum_and_int_p parameter.  Change all
5198         callers.
5199         (comp_target_types): Add location parameter.  Change all callers.
5200         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
5201         Change all callers.
5202         (function_types_compatible_p, type_lists_compatible_p): Likewise.
5203         (build_conditional_expr): Add colon_loc parameter.  Change all
5204         callers.
5205         (convert_for_assignment): Add location parameter.  Change all callers.
5206         * c-parser.c (c_parser_conditional_expression): Pass location of
5207         colon to build_conditional_expr.
5208         * c-tree.h (build_conditional_expr): Update declaration.
5209
5210 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5211
5212         * graphite.c: Revert previous patch.
5213
5214 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5215
5216         PR bootstrap/40103
5217         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
5218
5219 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5220
5221         * tree-ssa-loop-prefetch.c
5222         (loop_prefetch_arrays): Fixed a portability problem in printf format
5223         string.
5224
5225 2009-06-09  Martin Jambor  <mjambor@suse.cz>
5226
5227         PR tree-optimization/40351
5228         * tree-sra.c (propagate_subacesses_accross_link): Check that a
5229         refrence to a potential artifical subaccess can be constructed.
5230
5231 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5232
5233         * config/sh/sh-protos.h (sh_optimization_options): Declare.
5234         (sh_override_options): Likewise.
5235         * config/sh/sh.c: Include params.h.
5236         (sh_optimization_options): New.
5237         (sh_override_options): Likewise.
5238         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
5239         (OVERRIDE_OPTIONS): Use sh_override_options.
5240
5241 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5242
5243         * dwarf2out.c (emit_cfa_remember): New variable.
5244         (add_fde_cfi): If emit_cfa_remember, recurse to add
5245         DW_CFA_remember_state first.
5246         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
5247         instead just set emit_cfa_remember.
5248
5249 2009-06-08  Jan Hubicka  <jh@suse.cz>
5250
5251         PR debug/40126
5252         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
5253
5254 2009-06-08  Jan Hubicka  <jh@suse.cz>
5255
5256         PR middle-end/39834
5257         * cgraphunit.c (save_inline_function_body): Do not copy transform
5258         hooks for saved inline bodies.
5259         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
5260         for given function.
5261
5262 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
5263
5264         * jump.c (returnjump_p): Handle delayed branches.  Add missing
5265         function comment.
5266
5267 2009-06-08  Jan Hubicka  <jh@suse.cz>
5268
5269         PR middle-end/40102
5270         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
5271         original node might've been modified.
5272         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
5273
5274 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5275
5276         * tree-object-size.c (addr_object_size): Add OSI argument.
5277         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
5278         (compute_builtin_object_size, expr_object_size): Adjust callers.
5279         (plus_stmt_object_size): Call addr_object_size instead of
5280         compute_builtin_object_size.
5281
5282 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5283             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5284         
5285         * tree-ssa-loop-prefetch.c 
5286         (gather_memory_references): Introduced a counter for the number of 
5287         memory references.
5288         (anything_to_prefetch_p): Introduced a counter for the number of 
5289         prefetches.
5290         (is_loop_prefetching_profitable): New function with a cost model 
5291         for prefetching.
5292         (loop_prefetch_arrays): Use the new cost model to determine if 
5293         prefetching is profitable.
5294         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
5295         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5296         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
5297         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5298         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
5299         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5300         
5301 2009-06-08  Michael Matz  <matz@suse.de>
5302
5303         PR debug/40012
5304         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
5305         partitions use the same.
5306         (expand_one_var): Deal with DECL_RTL sometimes begin set also
5307         for basevars of SSA_NAMEs.
5308         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
5309         to not expand them twice.
5310         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
5311         multiple places.
5312
5313 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
5314
5315         * common.opt (fcompare-debug=, fcompare-debug-second): New.
5316         (fdump-final-insns=, gtoggle): New.
5317         * doc/invoke.texi: Document them.
5318         * final.c (rest_of_clean_state): Dump final insn stream.
5319         * gcc.c (invoke_as): Hook in -fcompare-debug.
5320         (static_spec_functions): Add compare-debug-dump-opt,
5321         compare-debug-self-opt and compare-debug-auxbase-opt.
5322         (compare_debug, compare_debug_second, compare_debug_opt): New.
5323         (switches_debug_check, n_switches_debug_check): New.
5324         (debug_auxbase_opt, debug_check_temp_file): New.
5325         (process_command): Handle -fno-compare-debug, -fcompare-debug and
5326         -fcompare-debug=*.
5327         (do_self_spec): Handle arguments after switches.
5328         (do_spec_1): Add .gk extension to temp file basenames for compare.
5329         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
5330         (cc1_options): Use it instead of normal auxbase computation for
5331         the second compare-debug compilation.
5332         (compare_files): New.
5333         (main): Set up and implement compare debug mode.
5334         (compare_debug_dump_opt_spec_function): New.
5335         (compare_debug_self_opt_spec_function): New.
5336         (compare_debug_auxbase_opt_spec_function): New.
5337         * toplev.c (process_options): Handle flag_gtoggle,
5338         flag_dump_final_insns.
5339         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
5340         during -fcompare-debug-second compilation.
5341
5342 2009-06-07  Ian Lance Taylor  <iant@google.com>
5343
5344         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
5345         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
5346
5347         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
5348         with no default node.  Change warning with %H to warning_at.
5349         Don't clear warn_switch around case checking.
5350         * doc/invoke.texi (Warning Options): Clarify distinction between
5351         -Wswitch and -Wswitch-enum.
5352
5353 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5354
5355         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
5356
5357 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5358
5359         * gbl-ctors.h: Add header guard.
5360
5361 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5362
5363         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
5364         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
5365         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
5366         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
5367         prototypes for removed functions.
5368         (expressions_equal_p): Move to ...
5369         * tree-ssa-sccvn.h: ... here and ...
5370         * matrix-reorg.c: ... adjust includes.
5371
5372 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5373
5374         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
5375
5376 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5377
5378         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
5379         (finish_function): Remove erroneous whitespace.
5380
5381 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5382
5383         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
5384         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
5385
5386 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5387
5388         * errors.c (internal_error): Commentary typo fix.
5389         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
5390         * tree-ssa-pre.c: Ditto.
5391
5392 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5393
5394         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
5395         them is supposed to hold actual statements.
5396
5397 2009-06-06  Ian Lance Taylor  <iant@google.com>
5398
5399         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
5400         empty statements can now have attributes.
5401
5402 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
5403
5404         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
5405         * config/mips/mips.md: Ditto.
5406
5407 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5408
5409         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
5410         _RELOCATABLE.
5411         (__eabi_uconvert): Likewise.
5412
5413 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5414
5415         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
5416         CFI_* definitions with IN_GCC.
5417
5418 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
5419
5420         * xcoffout.h (xcoffout_source_line): Update prototype.
5421
5422 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5423
5424         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
5425         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
5426
5427 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5428
5429         PR middle-end/40340
5430         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
5431         inlined_function_outer_scope_p blocks for artificial inlines
5432         even at -g0/-g1.
5433         * tree.c (tree_nonartificial_location): Rewrite using
5434         block_nonartificial_location.
5435
5436 2009-06-05  Revital Eres  <eres@il.ibm.com>
5437             Leehod Baruch  <leehod@il.ibm.com>
5438
5439         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
5440         (expand_expr_real_1): Remove comment.
5441         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5442         Vectorize misaligned access when the target supports it.
5443         (vect_supportable_dr_alignment): Check for unaligned access support.
5444         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
5445         and remove asset.
5446
5447 2009-06-05  Julian Brown  <julian@codesourcery.com>
5448
5449         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
5450         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
5451
5452 2009-06-05  Richard Guenther  <rguenther@suse.de>
5453
5454         PR bootstrap/40350
5455         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
5456         as possibly unused.
5457
5458 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5459
5460         * config/s390/s390.c (global_not_special_regno_p): New static inline.
5461         (save_gprs): Don't tell unwinder when a global register is saved.
5462         (s390_emit_epilogue): Emit needed epilogue unwind info.
5463
5464 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5465
5466         * dwarf2out.c (deferred_asm_name): New.
5467         (add_name_and_src_coords_attributes): Defer creation of
5468         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
5469         computed yet.
5470         (move_linkage_attr): New.
5471         (dwarf2out_finish): Revisit deferrals and emit attributes at the
5472         right place.
5473
5474 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5475
5476         * tree-nested.c (finalize_nesting_tree_1): Declare the
5477         frame_decl in the binding tree.
5478
5479 2009-06-04  Cary Coutant  <ccoutant@google.com>
5480
5481         * basic-block.h (struct basic_block_def): Add discriminator field.
5482         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
5483         callers.
5484         * debug.c (do_nothing_debug_hooks): Add additional entry.
5485         (debug_nothing_int_charstar_int): New function.
5486         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
5487         (debug_nothing_int_charstar_int): New declaration.
5488         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
5489         discriminator value in .loc directive.
5490         * final.c (last_discriminator): New variable.
5491         (discriminator): New variable.
5492         (final_start_function): Initialize above variables, pass current
5493         discriminator to debug hook.
5494         (notice_source_line): Check for discriminator change.
5495         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
5496         * sdbout.c (sdbout_source_line): New parameter.
5497         * tree-cfg.c (struct locus_discrim_map): New structure type.
5498         (discriminator_per_locus): New hash table.
5499         (build_gimple_cfg): Allocate and free discriminator hash table.
5500         (make_edges): Call assign_discriminator.
5501         (locus_map_hash): New function.
5502         (locus_map_eq): New function.
5503         (next_discriminator_for_locus): New function.
5504         (same_line_p): New function.
5505         (assign_discriminator): New function.
5506         (make_cond_expr_edges): Call assign_discriminator.
5507         (make_gimple_switch_edges): Likewise.
5508         (first_non_label_stmt): New function.
5509         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
5510         all callers.
5511         * xcoffout.c (xcoffout_source_line): Add new parameter.
5512
5513         * configure.ac (gcc_cv_as_discriminator): New configury check for
5514         gas support for discriminator.
5515         * configure: Regenerate.
5516         * config.in: Regenerate.
5517
5518 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5519
5520         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
5521         val after checking for integers.
5522
5523 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
5524
5525         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
5526         X64_REGPARM_MAX.
5527         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
5528         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
5529         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
5530         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
5531         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
5532         X64_SSE_REGPARM_MAX.
5533         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
5534         X64_SSE_REGPARM_MAX.
5535
5536 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
5537
5538         * gcc.c (report_times_to_file): New.
5539         (execute): Implement it.
5540         (process_command): Support -time=.
5541         * doc/invoke.texi: Document it.
5542
5543 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
5544
5545         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
5546         that have value exprs.
5547
5548 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
5549
5550         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
5551         declarations for constants until...
5552         (dw2_output_indirect_constant_1): ... this point.
5553
5554 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
5555
5556         PR target/10242
5557         * arm.md (arm_addsi3): Don't try to split an add with an
5558         eliminable register until after reload has completed.
5559
5560 2009-06-03  Ian Lance Taylor  <iant@google.com>
5561
5562         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
5563         * genattrtab.c (write_length_unit_log): Likewise.
5564         * genchecksum.c (dosum): Likewise.
5565         * gengtype.c (write_rtx_next): Likewise.
5566         (finish_root_table, write_roots): Likewise.
5567         * gimple.c (gimple_ops_offset_): Likewise.
5568         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
5569         * config/arc/arc.c (arc_attribute_table): Likewise.
5570         * config/arm/arm.c (arm_attribute_table): Likewise.
5571         * config/avr/avr.c (avr_attribute_table): Likewise.
5572         * config/crx/crx.c (crx_attribute_table): Likewise.
5573         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
5574         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
5575         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
5576         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
5577         * config/sh/sh.c (sh_attribute_table): Likewise.
5578         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
5579         * config/spu/spu.c (spu_attribute_table): Likewise.
5580         * config/v850/v850.c (v850_attribute_table): Likewise.
5581
5582         * config/alpha/alpha.c (vms_attribute_table): Make static.
5583         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
5584         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
5585         * config/mips/mips.c (mips_attribute_table): Likewise.
5586
5587         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
5588         $(SYSTEM_H).
5589         (cc1-checksum.o): Likewise.
5590
5591 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
5592
5593         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
5594
5595 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
5596
5597         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
5598         insn if it is changing sp.  Use gen_add3_insn instead of
5599         conditionally gen_addsi3 and gen_adddi3.
5600         (offset_below_red_zone_p): New static inline function.
5601         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
5602         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
5603         * config/rs6000/ppc-asm.h: Include auto-host.h.
5604         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
5605         CFI_RESTORE): Define.
5606         * config/rs6000/crtresxgpr.asm: Add unwind info.
5607         * config/rs6000/crtresxfpr.asm: Likewise.
5608         * config/rs6000/crtresgpr.asm: Likewise.
5609         * config/rs6000/crtresfpr.asm: Likewise.
5610         * config/rs6000/crtsavgpr.asm: Likewise.
5611         * config/rs6000/crtsavfpr.asm: Likewise.
5612
5613         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
5614         argument of DWARF2_FRAME_REG_OUT macros.
5615
5616 2009-06-03  Julian Brown  <julian@codesourcery.com>
5617
5618         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
5619         words or less (including TImode) in core registers.
5620
5621 2009-06-03  Richard Guenther  <rguenther@suse.de>
5622
5623         PR middle-end/40328
5624         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
5625
5626 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
5627
5628         * statistics.c (statistics_counter_event): Do not record event 
5629         in pass dump if its number == -1.
5630         (curr_statistics_hash): Add assert that we never get passes 
5631         with static number == -1.
5632
5633 2009-06-03  Richard Guenther  <rguenther@suse.de>
5634             Andrey Belevantsev  <abel@ispras.ru>
5635
5636         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
5637         non-BLKmode arrays addressable.
5638
5639 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
5640
5641         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
5642         * config/m68k/m68k.h: ... here.
5643         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
5644         m68k and fido.
5645
5646 2009-06-03  Martin Jambor  <mjambor@suse.cz>
5647
5648         PR tree-optimization/40323
5649         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
5650         assignment.
5651
5652 2009-06-03  Richard Guenther  <rguenther@suse.de>
5653
5654         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
5655         consistently.
5656
5657 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
5658
5659         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
5660         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
5661         JUMP_TABLE_DATA_P where applicable.
5662         * config/sh/sh.c: Ditto.
5663         * config/sh/sh.h: Ditto.
5664         * config/sh/sh.md: Ditto.
5665         * config/sh/symbian.c: Ditto.
5666
5667 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
5668
5669         * config/i386/driver-i386.c (describe_cache): Optimize
5670         concatenation of strings.  Use snprintf instead of sprintf.
5671         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
5672         target when not compiling with GCC.
5673
5674 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5675
5676         * config/sh/sh.c: Revert last change.
5677         (sh_expand_epilogue): Emit a blockage insn before the frame
5678         pointer adjustment unconditionally.
5679
5680 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5681
5682         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
5683         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
5684         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
5685         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
5686         to COLLECT_GCC_OPTIONS.
5687
5688 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5689
5690         * collect2.c (target_system_root): New variable.
5691         (main): Handle --sysroot=.
5692         (ignore_library): Strip the sysroot from the library path.
5693
5694 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5695
5696         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
5697         (collect2.o): Depend on collect2-aix.h.
5698         (collect2-aix.o): New rule.
5699         * collect2-aix.h: New file.
5700         * collect2-aix.c: Likewise.
5701         * collect2.c: Include collect2-aix.h.  Don't undefine
5702         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
5703         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
5704         Use TARGET_AIX_VERSION instead of _AIX51.
5705         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
5706         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
5707         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
5708         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
5709         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
5710
5711 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5712
5713         * collect2.c (ignore_library): Avoid premature post-increment
5714         and null deference.
5715
5716 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5717
5718         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
5719         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
5720         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
5721         CROSS_DIRECTORY_STRUCTURE too.
5722         (LINK_LIBG_SPEC): Likewise.
5723         (LIB_SPEC): Add %R to sysroot paths.
5724         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
5725         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
5726         * config/rs6000/aix51.h: As for aix43.h.
5727         * config/rs6000/aix52.h: Likewise.
5728         * config/rs6000/aix53.h: Likewise.
5729         * config/rs6000/aix61.h: Likewise.
5730         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
5731         to the beginning of sysroot paths.
5732
5733 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5734
5735         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
5736         INSN_LISTs that are out of the REG_NOTE range.
5737
5738 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5739
5740         * loop-unroll.c (struct iv_to_split): Add pointer to next.
5741         (struct var_to_expand): Likewise.
5742         (struct opt_info): Add head and tail for linked lists of the above.
5743         (analyze_insn_to_expand_var): Initialize next.
5744         (analyze_iv_to_split_insn): Likewise.
5745         (analyze_insns_in_loop): Create linked lists.
5746         (allocate_basic_variable): Simplify for use without hash table.
5747         (insert_var_expansion_initialization): Likewise, make it type-safer.
5748         (combine_var_copies_in_loop_exit): Likewise.
5749         (apply_opt_in_copies): Walk lists rather than hash tables.
5750         (release_var_copies): Simplified and inlined by hand into...
5751         (free_opt_info): ... this function.
5752
5753 2009-06-02  Richard Guenther  <rguenther@suse.de>
5754
5755         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
5756         for field decls.
5757
5758 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5759
5760         * cfgexpand.c (gimple_expand_cfg): Discard the source location
5761         only for builtins that are not overridden.
5762
5763 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5764
5765         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
5766         label string.
5767
5768 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5769
5770         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
5771
5772 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5773
5774         * combine.c (move_deaths): Compare LUIDs within the same BB only.
5775
5776 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5777
5778         * common.opt (fdump-unnumbered-links): New.
5779         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
5780         * print-rtl.c (flag_dump_unnumbered_links): New.
5781         (print_rtx): Test it.
5782
5783 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
5784
5785         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
5786         push/pop multiple to 8-byte alignment.
5787
5788 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
5789
5790         * config/i386/i386.c (queued_cfa_restores): New static variable.
5791         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
5792         functions.
5793         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
5794         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
5795         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
5796         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
5797         note unconditionally.
5798         (ix86_emit_restore_regs_using_mov): Likewise.
5799         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5800         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
5801         it through to ix86_emit_restore_reg_using_pop.
5802         (ix86_emit_leave): Add RED_OFFSET argument.  Call
5803         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
5804         instead of adding REG_CFA_OFFSET note unconditionally.
5805         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
5806         the above functions.  Call ix86_add_queued_cfa_restore_notes when
5807         needed.
5808
5809         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
5810         force output of the label even for dwarf2out_do_cfi_asm.
5811         (add_fde_cfi): If -g2 and above and cfi might change CFA,
5812         force creation of CFI label and chain DW_CFA_set_loc jumping to it
5813         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
5814         caller.
5815         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
5816         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
5817         dwarf2out_cfi_label callers.
5818         * tree.h (dwarf2out_cfi_label): Adjust prototype.
5819         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
5820         Adjust dwarf2out_cfi_label callers.
5821         * config/vax/vax.c (vax_output_function_prologue): Likewise.
5822
5823         * config/i386/i386.h (struct machine_cfa_state,
5824         struct machine_function): Guard with ifndef USED_FOR_TARGET
5825         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
5826
5827         PR other/40024
5828         * emutls.c (__emutls_get_address): Change arr->size to mean number
5829         of allocated arr->data entries instead of # of slots + 1.
5830
5831         PR middle-end/40316
5832         * recog.c (peep2_reinit_state): New function.
5833         (peephole2_init_state): Use it at the end of a basic block and also
5834         when seeing a RTX_FRAME_RELATED_P insn.
5835
5836 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
5837
5838         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
5839         fixuns_truncrfdi2): New.
5840         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
5841         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
5842         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
5843         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
5844         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
5845         *recip_approx): Remove.
5846         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
5847         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
5848         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
5849         move to div.md.
5850         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
5851         setf_exp_rf): New.
5852
5853 2009-06-01  Ian Lance Taylor  <iant@google.com>
5854
5855         * attribs.c (register_attribute): Use CONST_CAST.
5856         * collect2.c (main): Use CONST_CAST2.
5857         (scan_prog_file): Likewise.
5858         * gcc.c (process_command, main): Likewise.
5859         * toplev.c (toplev_main): Likewise.
5860
5861         * c-typeck.c (handle_warn_cast_qual): New static function,
5862         partially broken out of build_c_cast.
5863         (build_c_cast): Call handle_warn_cast_qual.
5864         * doc/invoke.texi (Warning Options): Document new effect of
5865         -Wcast-qual.
5866
5867 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
5868
5869         * diagnostic.c (diagnostic_build_prefix): Always print columns.
5870         (diagnostic_report_current_module): Print columns.
5871         * common.opt (flag_show_column): Enable by default.
5872
5873 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
5874
5875         * alias.c (find_base_term): Check for NULL term before returning.
5876
5877 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
5878
5879         Revert due to PR40320:
5880         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
5881         * calls.c (emit_library_call_value_1): Don't force_operand for move
5882         and push insns.
5883
5884 2009-06-01  Olivier Hainque  <hainque@adacore.com>
5885             Eric Botcazou  <ebotcazou@adacore.com>
5886
5887         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
5888         to be processed as a bitfield for constructor output purposes.
5889         * output.h (initializer_constant_valid_for_bitfield_p): Declare
5890         new function.
5891         * varasm.c (oc_local_state): New type, output_constructor
5892         local state to support communication with helpers.
5893         (oc_outer_state): New type, output_constructor outer state of
5894         relevance in recursive calls.
5895         (output_constructor_array_range): New output_constructor helper,
5896         extracted code for an array range element.
5897         (output_constructor_regular_field): New output_constructor helper,
5898         extracted code for an element that is not a bitfield.
5899         (output_constructor_bitfield): New output_constructor helper,
5900         extracted code for a bitfield element.  Accept an OUTER state
5901         argument for recursive processing.  Recurse on record or array
5902         CONSTRUCTOR values, possibly past noop conversions.
5903         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
5904         VALUE is a valid constant-valued expression for use in a static
5905         bit-field initializer.
5906         (output_constructor): Rework to use helpers.  Accept and honor an
5907         OUTER state argument for recursive calls.  Return total size.  Be
5908         prepared for nested constructors initializing bitfields.
5909         (output_constant): Feed OUTER in calls to output_constructor.
5910
5911 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
5912
5913         * calls.c (emit_library_call_value_1): Don't force_operand for move
5914         and push insns.
5915
5916 2009-06-01  Nick Clifton  <nickc@redhat.com>
5917
5918         * doc/invoke.texi (IA-64 Options): Fix typo.
5919
5920 2009-06-01  Ira Rosen  <irar@il.ibm.com>
5921
5922         PR tree-optimization/39129
5923         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
5924         printed message.
5925         (vect_do_peeling_for_loop_bound): Use
5926         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
5927         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
5928         (vect_loop_versioning): Likewise.
5929         (vect_create_cond_for_alias_checks): Fix indentation.
5930         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
5931         macros.
5932         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
5933         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
5934         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
5935         "control flow in loop".
5936         (vect_estimate_min_profitable_iters): Use
5937         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
5938         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
5939         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5940         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
5941         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
5942         statement belongs to a group of strided accesses with the exact code
5943         check.
5944         (vectorizable_load): Likewise.
5945         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
5946         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
5947
5948 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
5949
5950         * config/freebsd-stdint.h: New file.
5951         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
5952         Add freebsd-stdint.h to tm_file.
5953
5954 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
5955
5956         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
5957         (thumb2_extendhidi2): Likewise.
5958
5959 2009-05-31  Ian Lance Taylor  <iant@google.com>
5960
5961         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
5962
5963 2009-05-31  Ian Lance Taylor  <iant@google.com>
5964
5965         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
5966         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
5967         (ipa-reference.o): Depend upon gt-ipa-reference.h.
5968
5969 2009-05-31  Jason Merrill  <jason@redhat.com>
5970
5971         * tree-pretty-print.c (print_call_name): Take the callee, not the
5972         call itself.  Make non-static.  Use dump_function_name for functions.
5973         (dump_generic_node): Adjust.
5974         * diagnostic.h: Declare print_call_name.
5975         * gimple-pretty-print.c (dump_gimple_call): Use it.
5976
5977 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5978
5979         * config/sh/sh.md (ashldi3_std): New define_expand.
5980         (ashldi3): Use it.
5981
5982 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5983
5984         PR target/40313
5985         * config/sh/sh.c: Include debug.h.
5986         (sh_expand_epilogue): Emit a blockage insn before the frame
5987         pointer adjustment also when dwarf2out_do_frame returns true.
5988
5989 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
5990
5991         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
5992         (thumb2_extendqidi2): New pattern.
5993
5994 2009-05-31  Ira Rosen  <irar@il.ibm.com>
5995
5996         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
5997         mark phis for renaming.
5998         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
5999         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
6000         Call mark_sym_for_renaming.
6001         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
6002         * tree-vect-loop.c (vect_transform_loop): Remove
6003         vect_memsyms_to_rename initialization and a call to
6004         mark_set_for_renaming.
6005
6006 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
6007
6008         PR middle-end/40304
6009         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
6010         frame related even if !set_cfa && style < 0.
6011
6012 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
6013
6014         * config/i386/mingw-tls.c: New file.
6015         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
6016         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
6017         defining _WIN32 but not __CYGWIN__.
6018
6019 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6020
6021         * configure.ac: Add MPC support.
6022         
6023         * config.in, configure: Regenerate.     
6024
6025 2009-05-29  Richard Henderson  <rth@redhat.com>
6026
6027         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
6028         NOTE_INSN_BASIC_BLOCK.
6029         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
6030         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
6031         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
6032         to be deleted.
6033         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
6034         add in_use field.
6035         (add_cfi): Disable check redefining cfa away from drap.
6036         (lookup_cfa_1): Add remember argument; handle remember/restore.
6037         (lookup_cfa): Pass remember argument.
6038         (cfa_remember): New.
6039         (compute_barrier_args_size_1): Remove sibcall check.
6040         (dwarf2out_frame_debug_def_cfa): New.
6041         (dwarf2out_frame_debug_adjust_cfa): New.
6042         (dwarf2out_frame_debug_cfa_offset): New.
6043         (dwarf2out_frame_debug_cfa_register): New.
6044         (dwarf2out_frame_debug_cfa_restore): New.
6045         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
6046         (dwarf2out_begin_epilogue): New.
6047         (dwarf2out_frame_debug_restore_state): New.
6048         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
6049         DW_CFA_restore_state.
6050         (output_cfi_directive): Likewise.
6051         (convert_cfa_to_fb_loc_list): Likewise.
6052         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
6053         * dwarf2out.h: Update.
6054         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
6055         (copy_insn_1): Early out for null.
6056         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
6057         and dwarf2out_frame_debug_restore_state.
6058         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
6059         (prologue_insn_hash, epilogue_insn_hash): New.
6060         (free_after_compilation): Adjust freeing accordingly.
6061         (record_insns): Create hash table if needed; push insns into
6062         hash instead of array.
6063         (maybe_copy_epilogue_insn): New.
6064         (contains): Search hash table instead of array.
6065         (sibcall_epilogue_contains): Remove.
6066         (thread_prologue_and_epilogue_insns): Split eh_return insns
6067         and mark them as epilogues.
6068         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
6069         scanning in terms of basic blocks.
6070         * insn-notes.def (CFA_RESTORE_STATE): New.
6071         * jump.c (returnjump_p_1): Accept EH_RETURN.
6072         (eh_returnjump_p_1, eh_returnjump_p): New.
6073         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
6074         CFA_REGISTER, CFA_RESTORE): New.
6075         * rtl.def (EH_RETURN): New.
6076         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
6077
6078         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
6079         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
6080
6081         * config/i386/i386.c (gen_push): Update cfa state.
6082         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
6083         add a CFA_ADJUST_CFA note.
6084         (ix86_dwarf_handle_frame_unspec): Remove.
6085         (ix86_expand_prologue): Update cfa state.
6086         (ix86_emit_restore_reg_using_pop): New.
6087         (ix86_emit_restore_regs_using_pop): New.
6088         (ix86_emit_leave): New.
6089         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
6090         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
6091         * config/i386/i386.h (struct machine_cfa_state): New.
6092         (ix86_cfa_state): New.
6093         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
6094         (eh_return_internal): Merge from eh_return_<mode>,
6095         use eh_return rtx, split w/ epilogue.
6096
6097 2009-05-29  Ian Lance Taylor  <iant@google.com>
6098
6099         * builtins.c (validate_gimple_arglist): Don't use va_arg with
6100         enum type.
6101         * calls.c (emit_library_call_value_1): Likewise.
6102
6103         * c-typeck.c (c_build_va_arg): New function.
6104         * c-tree.h (c_build_va_arg): Declare.
6105         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
6106         instead of build_va_arg.
6107
6108 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6109
6110         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
6111         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
6112         (ptr_difference_cost): Use affine combinations to compute it.
6113         (difference_cost): Likewise.
6114         (get_computation_cost_at): Compute more accurate cost for addresses
6115         if the ratio is a multiplier allowed in addresses.
6116         For non-addresses, consider that an additional offset or symbol is
6117         added only once.
6118
6119 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6120
6121         * config/i386/i386.c (ix86_decompose_address): Avoid useless
6122         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
6123
6124         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
6125         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
6126         (prefix_rex): For UNIT_MMX don't imply the prefix by default
6127         if MODE_DI.
6128         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
6129         to 1 for TYPE_SSE{IADD1,CVT1}.
6130         (prefix_vex_imm8): Removed.
6131         (length_vex): Only pass 1 as second argument to
6132         ix86_attr_length_vex_default if prefix_extra is 0.
6133         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
6134         (length): For prefix vex computation use length_immediate
6135         attribute instead of prefix_vex_imm8.
6136         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
6137         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
6138         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
6139         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
6140         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
6141         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
6142         a space in between the operands.
6143         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
6144         if one operand is 0xff and the other one si, di, bp or sp.
6145         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
6146         other one si, di, bp or sp.
6147         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
6148         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
6149         type and mode attributes.
6150         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
6151         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
6152         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
6153         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
6154         prefix_data16 attribute iff MODE_DF.
6155         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
6156         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
6157         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
6158         constm128_operand in length_immediate computation.
6159         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
6160         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
6161         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
6162         length_immediate attribute to 1.
6163         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
6164         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
6165         for certain alternatives.
6166         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
6167         prefix_data16 attribute if MODE_V1DF.
6168         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
6169         length_immediate to 1.
6170         (set_got_rex64, set_rip_rex64): Remove length attribute, set
6171         length_address to 4, set mode attribute to MODE_DI.
6172         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
6173         (fxam<mode>2_i387): Set length attribute to 4.
6174         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
6175         *prefetch_3dnow_rex): Override length_address attribute.
6176         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
6177         attributes.
6178         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
6179         (constm128_operand): Removed.
6180         * config/i386/i386.c (memory_address_length): For
6181         disp && !index && !base in 64-bit mode account for SIB byte if
6182         print_operand_address can't optimize disp32 into disp32(%rip)
6183         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
6184         for fs: or gs: segment.
6185         (ix86_attr_length_immediate_default): When checking if shortform
6186         is possible, truncate immediate to the length of the non-shortened
6187         immediate.
6188         (ix86_attr_length_address_default): Ignore MEM_P operands
6189         with X constraint.
6190         (ix86_attr_length_vex_default): Only check for DImode on
6191         GENERAL_REG_P operands.
6192         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
6193         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
6194         (sse_cvttps2pi): Clear prefix_rep attribute.
6195         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
6196         attribute.
6197         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
6198         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
6199         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
6200         iff operand 2 is const_int_operand.
6201         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
6202         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
6203         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
6204         instead of vex.
6205         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
6206         prefix_data16.
6207         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
6208         prefix_data16 attribute for movlpd and movhpd instructions.
6209         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
6210         length_immediate for shufpd instruction.
6211         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
6212         (avx_cmpp<avxmodesuffixf2c><mode>3,
6213         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
6214         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
6215         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
6216         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
6217         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
6218         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
6219         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
6220         prefix_data16 attribute for the first alternative to 1.
6221         (*avx_loadlps): Override length_immediate for the first alternative.
6222         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
6223         attributes for second alternative.
6224         (*vec_concatv2sf_sse4_1): Override length_immediate and
6225         prefix_data16 attributes for second alternative.
6226         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
6227         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
6228         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
6229         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
6230         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
6231         prefix_data16 and length_immediate to 1.
6232         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
6233         to 1.
6234         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
6235         prefix_extra attribute for variants that don't have 0f prefix alone.
6236         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
6237         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
6238         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
6239         *sse4_1_pextrd): Set length_immediate to 1.
6240         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
6241         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
6242         to 1.
6243         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
6244         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
6245         length_immediate to 1 for second alternative.
6246         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
6247         prefix_extra and length_immediate attributes for the first
6248         alternative.
6249         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
6250         first alternative.
6251         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
6252         to 1 for the first and third alternative.
6253         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
6254         alternative.
6255         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
6256         attribute.
6257         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
6258         attribute to 0.
6259         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
6260         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
6261         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
6262         *avx_psign<mode>3): Set prefix_extra attribute to 1.
6263         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
6264         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
6265         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
6266         ssse3_psign<mode>3): Override prefix_rex attribute.
6267         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
6268         (ssse3_palignrti): Override length_immediate to 1.
6269         (ssse3_palignrdi): Override length_immediate to 1, override
6270         prefix_rex attribute.
6271         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
6272         (sse4a_extrqi): Override length_immediate to 2.
6273         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
6274         (sse4a_insertq): Override prefix_data16 to 0.
6275         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
6276         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
6277         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
6278         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
6279         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
6280         and length_immediate to 1.
6281         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
6282         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
6283         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
6284         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
6285         and length_immediate to 1.
6286         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
6287         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
6288         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
6289         avx_ptest256): Override prefix_extra to 1.
6290         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
6291         Override prefix_data16 and length_immediate to 1.
6292         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
6293         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
6294         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
6295         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
6296         prefix_data16 to 0 and prefix_extra to 2.
6297         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
6298         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
6299         attribute.
6300         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
6301         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
6302         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
6303         and prefix_extra to 2.
6304         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
6305         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
6306         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
6307         avx_vpermilvar<mode>3,
6308         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
6309         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
6310         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
6311         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
6312         Override prefix_extra to 1.
6313         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
6314         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
6315         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
6316         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
6317         prefix_extra and length_immediate to 1.
6318         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
6319         modrm to 0.
6320         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
6321         to 1 for the first alternative.
6322         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
6323         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
6324         cases.
6325         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
6326         *movv2sf_internal_avx, *movv2sf_internal): Override
6327         prefix_rep attribute for certain alternatives.
6328         (*mov<mode>_internal): Override prefix_rep or prefix_data16
6329         attributes for certain alternatives.
6330         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
6331         attributes for certain alternatives.
6332         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
6333         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
6334         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
6335         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
6336         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
6337         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
6338         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
6339         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
6340         length_immediate to 1 if operand 2 is const_int_operand.
6341         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
6342         *vec_extractv2si_1): Set length_immediate attribute to 1.
6343         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
6344         using old 3DNOW insn rather than SSE/3DNOW_A.
6345         (mmx_emms, mmx_femms): Clear modrm attribute.
6346
6347 2009-05-29  Martin Jambor  <mjambor@suse.cz>
6348
6349         * tree-sra.c:  New implementation of SRA.
6350
6351         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
6352         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
6353         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
6354         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
6355         (SRA_MAX_STRUCTURE_COUNT): Removed.
6356         (SRA_FIELD_STRUCTURE_RATIO): Removed.
6357         * doc/invoke.texi (sra-max-structure-size): Removed.
6358         (sra-field-structure-ratio): Removed.
6359
6360 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6361
6362         PR middle-end/40291
6363         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
6364         before expansion.
6365
6366 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
6367
6368         PR rtl-optimization/40101
6369         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
6370         seqno.  Adjust comment.
6371         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
6372         inserting bookkeeping before a jump, the jump is not scheduled.
6373         When no positive seqno found, provide a value.  Add comment.
6374
6375 2009-05-29  Richard Guenther  <rguenther@suse.de>
6376
6377         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
6378         short-cutting on the first component.
6379
6380 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6381
6382         PR middle-end/39958
6383         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
6384         for trees other than decls/types.
6385
6386 2009-05-29  Richard Guenther  <rguenther@suse.de>
6387
6388         * tree-ssa-operands.c (get_expr_operands): Do not handle
6389         INDIRECT_REFs in the handled-component case.  Remove
6390         unused get_ref_base_and_extent case.
6391         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
6392         tree_low_cst and host_integerp where possible.
6393         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
6394         codes for equivalence.
6395         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
6396
6397 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
6398
6399         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
6400         to tmake_file for i[34567]86-*-cygwin*. 
6401
6402 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6403
6404         PR target/40017
6405         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
6406         (altivec_categorize_keyword, init_vector_keywords,
6407         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
6408         similar to bool.
6409
6410 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
6411
6412         * tree.c (handle_dll_attribute): Check if node is
6413         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
6414
6415 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
6416
6417         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
6418         component.
6419         (thumb2_zero_extendqidi2): Likewise.
6420
6421 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6422
6423         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
6424         instead of gen_movrt.
6425         * config/sh/sh.md (movrt): Remove.
6426
6427 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
6428
6429         * doc/invoke.texi (IA-64 Options):
6430         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
6431         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
6432         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
6433         -msched-prefer-non-control-spec-insns,
6434         -msched-stop-bits-after-every-cycle,
6435         -msched-count-spec-in-critical-path,
6436         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
6437         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
6438         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
6439         and -msched-spec-verbose.
6440
6441 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
6442
6443         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
6444         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
6445         error if used.
6446         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
6447
6448 2009-05-28  Richard Guenther  <rguenther@suse.de>
6449
6450         * tree-ssa-alias.c (ao_ref_init): New function.
6451         (ao_ref_base): Likewise.
6452         (ao_ref_base_alias_set): Likewise.
6453         (ao_ref_alias_set): Likewise.
6454         (refs_may_alias_p_1): Change signature.
6455         (refs_may_alias_p): Adjust.
6456         (refs_anti_dependent_p): Likewise.
6457         (refs_output_dependent_p): Likewise.
6458         (call_may_clobber_ref_p_1): Change signature.
6459         (call_may_clobber_ref_p): Adjust.
6460         (stmt_may_clobber_ref_p_1): New function split out from ...
6461         (stmt_may_clobber_ref_p): ... here.
6462         (maybe_skip_until): Adjust signature.
6463         (get_continuation_for_phi): Likewise.
6464         (walk_non_aliased_vuses): Likewise.
6465         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
6466         (ao_ref_init): Declare.
6467         (ao_ref_base): Likewise.
6468         (ao_ref_alias_set): Likewise.
6469         (stmt_may_clobber_ref_p_1): Likewise.
6470         (walk_non_aliased_vuses): Adjust.
6471         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
6472         (get_ref_from_reference_ops): remove.
6473         (vn_reference_lookup_2): Adjust signature.
6474         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
6475         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
6476         (vn_reference_lookup): Adjust.
6477         (vn_reference_insert): Likewise.
6478         (vn_reference_insert_pieces): Adjust signature.
6479         (visit_reference_op_call): Adjust.
6480         * tree-ssa-pre.c (get_expr_type): Simplify.
6481         (phi_translate_1): Adjust.
6482         (compute_avail): Likewise.
6483         (translate_vuse_through_block): Do not re-build trees.
6484         (value_dies_in_block_x): Likewise.
6485         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
6486         fields.
6487         (vn_reference_lookup_pieces): Adjust declaration.
6488         (vn_reference_insert_pieces): Likewise.
6489
6490 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
6491
6492         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
6493         with checking disabled.
6494
6495 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
6496
6497         PR target/37216
6498
6499         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
6500         macro definition for support of three-operand format aligned
6501         .comm directive in assembler on cygwin/pe/mingw target OS.
6502         * configure:  Regenerate.
6503         * config.h:  Regenerate.
6504
6505         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
6506         aligned form of .comm directive if -mpe-aligned-commons is in effect.
6507         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
6508
6509         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
6510         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
6511
6512 2009-05-28  Ira Rosen  <irar@il.ibm.com>
6513
6514         PR tree-optimization/40254
6515         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
6516         in analysis of basic blocks.
6517
6518 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
6519
6520         PR middle-end/33699
6521         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
6522         * target-def.h (TARGET_CONST_ANCHOR): New macro.
6523         (TARGET_INITIALIZER): Use it.
6524         * cse.c (CHEAPER): Move it up to the other macros.
6525         (insert): Rename this ...
6526         (insert_with_costs): ... to this.  Add cost parameters.  Update
6527         function comment.
6528         (insert): New function.  Call insert_with_costs.
6529         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
6530         find_reg_offset_for_const, try_const_anchors): New functions.
6531         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
6532         when using a const-anchor.  Call insert_const_anchors.
6533         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
6534         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
6535
6536 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
6537
6538         * tree-inline.c (remap_decls): Enable nonlocalized variables
6539         when not optimizing.
6540
6541 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
6542
6543         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
6544         Simplify other tests involving optimize.
6545
6546 2009-05-27  Tom Tromey  <tromey@redhat.com>
6547
6548         * unwind-dw2.c (_Unwind_DebugHook): New function.
6549         (uw_install_context): Call _Unwind_DebugHook.
6550
6551 2009-05-27  Tom Tromey  <tromey@redhat.com>
6552
6553         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
6554
6555 2009-05-27  Ian Lance Taylor  <iant@google.com>
6556
6557         * Makefile.in (LINKER, LINKER_FLAGS): Define.
6558         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
6559         (ALL_LINKERFLAGS): Define.
6560         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
6561         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
6562         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
6563         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
6564         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
6565         $(LINKER_FOR_BUILD).
6566         (build/gcov-iov$(build_exeext)): Likewise.
6567
6568 2009-05-27  Julian Brown  <julian@codesourcery.com>
6569
6570         * gcse.c (target.h): Include.
6571         (can_assign_to_reg_without_clobbers_p): Check that the target allows
6572         copy of argument to a pseudo register.
6573
6574 2009-05-27  Diego Novillo  <dnovillo@google.com>
6575
6576         * tree-ssa-live.c (dump_scope_block): Document arguments.
6577         (dump_scope_blocks): Document.
6578         (debug_scope_blocks): New.
6579         * tree-flow.h (debug_scope_blocks): Declare.
6580
6581 2009-05-21  Denis Chertykov  <denisc@overta.ru>
6582
6583         * doc/contrib.texi (Contributors): Add myself to the list.
6584
6585 2009-05-27  Olivier Hainque  <hainque@adacore.com>
6586
6587         * expr.c (target_align): New function.  Alignment the TARGET of an
6588         assignment may be assume to have.
6589         (highest_pow2_factor_for_target): Use it instead of relying on
6590         immediate tree attributes of TARGET, not necessarily honored when
6591         intermediate bitfields are involved.
6592         
6593 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6594
6595         PR target/40266
6596         * config/i386/driver-i386.c (host_detect_local_cpu): Support
6597         AVX, SSE4, AES, PCLMUL and POPCNT.
6598
6599 2009-05-27  Diego Novillo  <dnovillo@google.com>
6600
6601         * tree-pretty-print.c (dump_location): New.
6602         (dump_generic_node): Call it.
6603         Factor code to handle BLOCK nodes ...
6604         (dump_block_node): ... here.
6605
6606 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
6607
6608         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
6609         with it.
6610         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
6611         included.
6612         * gcc-plugin.h: Include config.h and system.h.
6613         (IN_GCC): Define if not defined.
6614
6615 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
6616
6617         PR middle-end/40249
6618         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
6619         with -fno-inline.
6620
6621 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
6622
6623         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
6624         applicable.
6625         * config/m32r/m32r.h: Ditto.
6626         * config/m32r/m32r.md: Ditto.
6627         * config/m32r/predicates.md: Ditto.
6628
6629 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
6630
6631         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
6632
6633 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
6634
6635         * doc/plugins.texi
6636         (Loading plugins): typo.
6637         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
6638         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
6639         (Interacting with the GCC Garbage Collector): Added new section.
6640         (Giving information about a plugin): Added new section for
6641         PLUGIN_INFO.
6642         * ggc.h (ggc_register_root_tab): Added declaration.
6643         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
6644         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
6645         (register_callback): Improved comment in declaration.
6646         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
6647         (extra_root_vec) Added static variable for dynamic roots registration.
6648         (ggc_register_root_tab) Added new routine.
6649         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
6650         PLUGIN_GGC_MARKING event.
6651         * ggc-zone.c: Include plugin.h.
6652         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
6653         * ggc-page.c: Include plugin.h.
6654         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
6655         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
6656         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
6657         (register_callback): check lack of callbacks for
6658         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
6659         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
6660         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
6661         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
6662         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
6663         dependency on plugin.h.
6664         (plugin.o): Added dependency on ggc.h...
6665
6666 2009-05-26  Richard Guenther  <rguenther@suse.de>
6667
6668         PR middle-end/40248
6669         Revert
6670         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
6671         with mismatched comparison modes.
6672
6673         * expr.c (expand_expr_real_1): Expand the operand of a
6674         VIEW_CONVERT_EXPR in its natural mode.
6675
6676 2009-05-26  Ian Lance Taylor  <iant@google.com>
6677
6678         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
6679         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
6680         (ALL_COMPILERFLAGS): Define.
6681         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
6682         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
6683         (collect2$(exeext), collect2.o): Likewise.
6684         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
6685         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
6686         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
6687         (libbackend.o, intl.o, cppdefault.o): Likewise.
6688         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
6689         (build/%.o): Use $(COMPILER_FOR_BUILD).
6690         (build/gen%$(build_exeext)): Likewise.
6691         (build/gcov-iov$(build_exeext)): LIkewise.
6692         * config/t-darwin (darwin.o): Use $(COMPILER).
6693         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
6694         * config/t-sol2 (sol2-c.o): Likewise.
6695         (sol2.o): Likewise.
6696         * config/t-vxworks (vxworks.o): Likewise.
6697         * config/x-darwin (host-darwin.o): Likewise.
6698         * config/x-hpux (host-hpux.o): Likewise.
6699         * config/x-linux (host-linux.o): Likewise.
6700         * config/x-solaris (host-solaris.o): Likewise.
6701         * config/alpha/x-alpha (driver-alpha.o): Likewise.
6702         * config/arm/t-arm (arm-c.o): Likewise.
6703         * config/arm/t-pe (pe.o): Likewise.
6704         * config/arm/t-wince-pe (pe.o): Likewise.
6705         * config/i386/t-cygming (winnt.o): Likewise.
6706         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
6707         * config/i386/t-cygwin (cygwin1.o): Likewise.
6708         (cygwin2.o): Likewise.
6709         * config/i386/t-i386 (i386-c.o): Likewise.
6710         * config/i386/t-interix (winnt.o): Likewise.
6711         * config/i386/t-netware (netware.o): Likewise.
6712         * config/i386/t-nwld (nwld.o): Likewise.
6713         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
6714         * config/i386/x-i386 (driver-i386.o): Likewise.
6715         * config/i386/x-cygwin (host-cygwin.o): Likewise.
6716         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
6717         * config/ia64/t-ia64 (ia64-c.o): Likewise.
6718         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
6719         * config/mips/x-native (driver-native.o): Likewise.
6720         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
6721         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
6722         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
6723         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
6724         * config/score/t-score-elf (score7.o): Likewise.
6725         (score3.o): Likewise.
6726         * config/sh/t-sh (sh-c.o): Likewise.
6727         * config/sh/t-symbian (sh-c.o): Likewise.
6728         (symbian.o): Likewise.
6729         * config/spu/t-spu-elf (spu-c.o): Likewise.
6730         * config/v850/t-v850 (v850-c.o): Likewise.
6731         * config/v850/t-v850e (v850-c.o): Likewise.
6732
6733 2009-05-26  Richard Guenther  <rguenther@suse.de>
6734
6735         PR tree-optimization/40122
6736         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
6737         VECTOR_CSTs if possible.
6738         (fold_gimple_assign): Likewise.
6739
6740 2009-05-26  Richard Guenther  <rguenther@suse.de>
6741
6742         PR middle-end/40252
6743         * fold-const.c (fold_binary): Use the correct types for building
6744         rotates.
6745
6746 2009-05-26  Richard Guenther  <rguenther@suse.de>
6747
6748         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
6749         redundant calls to merge_alias_info.
6750         (bump_vector_ptr): Likewise.
6751         * tree-ssa-copy.c (merge_alias_info): Remove.
6752         (replace_exp_1): Remove call to merge_alias_info.
6753         (propagate_tree_value): Likewise.
6754         (fini_copy_prop): Propagate points-to info.
6755         * tree-flow.h (merge_alias_info): Remove.
6756
6757 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
6758
6759         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
6760
6761 2009-05-25  Jan Hubicka  <jh@suse.cz>
6762
6763         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
6764         * cgraph.h (struct inline_summary): New filed self_wize,
6765         size_inlining_benefit, self_time and time_inlining_benefit.
6766         (struct cgraph_global_info): Replace insns by time ans size fields.
6767         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
6768         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
6769         (ipcp_update_callgraph): Do not touch function bodies.
6770         * ipa-inline.c: Include except.h
6771         (MAX_TIME): New constant.
6772         (overall_insns): Remove.
6773         (leaf_node_p): New.
6774         (overall_size, max_benefit): New static variables.
6775         (cgraph_estimate_time_after_inlining): New function.
6776         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
6777         (cgraph_clone_inlined_nodes): Update size.
6778         (cgraph_mark_inline_edge): Update size.
6779         (cgraph_estimate_growth): Use size info.
6780         (cgraph_check_inline_limits): Check size.
6781         (cgraph_default_inline_p): Likewise.
6782         (cgraph_edge_badness): Compute badness based on benefit and size cost.
6783         (cgraph_decide_recursive_inlining): Check size.
6784         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
6785         and times.
6786         (cgraph_decide_inlining): Likewise.
6787         (cgraph_decide_inlining_incrementally): Likewise; honor
6788         PARAM_EARLY_INLINING_INSNS.
6789         (likely_eliminated_by_inlining_p): New predicate.
6790         (estimate_function_body_sizes): New function.
6791         (compute_inline_parameters): Use it.
6792         * except.c (must_not_throw_labels): New function.
6793         * except.h (must_not_throw_labels): Declare.
6794         * tree-inline.c (init_inline_once): Kill inlining_weigths
6795         * tree-ssa-structalias.c: Avoid uninitialized warning.
6796         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
6797         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
6798         (PARAM_INLINE_CALL_COST): Remove.
6799         (PARAM_EARLY_INLINING_INSNS): New.
6800
6801 2009-05-25  Richard Guenther  <rguenther@suse.de>
6802
6803         PR tree-optimization/36327
6804         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
6805         callback for reference translation or lookup at the point of may-defs.
6806         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
6807         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
6808         for union COMPONENT_REFs.
6809         (vn_reference_lookup_3): New callback.  Lookup from memset
6810         and CONSTRUCTOR assignment, translate through struct copies.
6811         (vn_reference_lookup_pieces): Make sure to not free the
6812         passed operands array.  Adjust walk_non_aliased_vuses call.
6813         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
6814         make sure we do not leak memory.
6815
6816 2009-05-25  Richard Guenther  <rguenther@suse.de>
6817
6818         * tree-ssa-alias.h (dump_points_to_solution): Declare.
6819         * tree-inline.c (expand_call_inline): Reset the escaped and
6820         callused solutions.
6821         * tree-ssa-structalias.c (pass_build_ealias): New.
6822         * tree-pass.h (pass_build_ealias): Declare.
6823         * passes.c (init_optimization_passes): Add PTA during 
6824         early optimizations.
6825         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
6826         and CALLUSED solutions.
6827         (dump_points_to_solution): New function, split out from ...
6828         (dump_points_to_info_for): ... here.
6829         * tree-parloops.c (parallelize_loops): Reset the escaped and
6830         callused solutions.
6831
6832 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6833
6834         PR bootstrap/40027
6835         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
6836         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
6837
6838 2009-05-25  Ira Rosen  <irar@il.ibm.com>
6839
6840         PR tree-optimization/40238
6841         * tree-vect-stmts.c (vect_init_vector): Insert initialization
6842         statements after basic block's labels.
6843         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
6844         to free the allocated memory.
6845
6846 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6847
6848         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
6849         return address with a USE.
6850
6851 2009-05-24  Richard Guenther  <rguenther@suse.de>
6852
6853         PR middle-end/40233
6854         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
6855         array type from the main variant of the inner type.
6856
6857 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6858
6859         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
6860         definition to bool (from int) to un-break build.
6861         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
6862
6863 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
6864
6865         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
6866         discard_stmt_changes): Delete.
6867         * tree-ssa-operands.c (scb_stack): Delete.
6868         (init_ssa_operands): Do not initialize it.
6869         (fini_ssa_operands): Do not free it.
6870         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
6871
6872         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
6873         update_stmt, remove the others.  Fix comments.
6874         * tree-dfa.c (optimize_stack_restore): Likewise.
6875         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
6876         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
6877         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6878         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
6879         Likewise.
6880         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
6881         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
6882         (dom_opt_finalize_block): Likewise, adjusting access to
6883         stmts_to_rescan.
6884         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
6885         (stmts_to_rescan): Change item type to gimple.
6886         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
6887
6888 2009-05-24  Ira Rosen  <irar@il.ibm.com>
6889
6890         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
6891         * tree-pass.h (pass_slp_vectorize): New pass.
6892         * params.h (SLP_MAX_INSNS_IN_BB): Define.
6893         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
6894         * tree-vectorizer.c (timevar.h): Include.
6895         (user_vect_verbosity_level): Declare.
6896         (vect_location): Fix comment.
6897         (vect_set_verbosity_level): Update user_vect_verbosity_level
6898         instead of vect_verbosity_level.
6899         (vect_set_dump_settings): Add an argument. Ignore user defined
6900         verbosity if dump flags require higher level of verbosity. Print to
6901         stderr only for loop vectorization.
6902         (vectorize_loops): Update call to vect_set_dump_settings.
6903         (execute_vect_slp): New function.
6904         (gate_vect_slp): Likewise.
6905         (struct gimple_opt_pass pass_slp_vectorize): New.
6906         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
6907         access its members.
6908         (vec_info_for_bb): New function.
6909         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
6910         (VECTORIZATION_ENABLED): New macro.
6911         (SLP_ENABLED, SLP_DISABLED): Likewise.
6912         (vect_is_simple_use): Add bb_vec_info argument.
6913         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
6914         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6915         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6916         vect_schedule_slp, vect_analyze_slp): Likewise.
6917         (vect_analyze_stmt): Add slp_tree argument.
6918         (find_bb_location): Declare.
6919         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
6920         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
6921         (vect_analyze_loop_operations, vect_analyze_loop,
6922         get_initial_def_for_induction, vect_create_epilog_for_reduction,
6923         vect_finalize_reduction, vectorizable_reduction,
6924         vectorizable_live_operation, vect_transform_loop): Likewise.
6925         * tree-data-ref.c (dr_analyze_innermost): Update comment,
6926         skip evolution analysis if analyzing a basic block.
6927         (dr_analyze_indices): Likewise.
6928         (initialize_data_dependence_relation): Skip the test whether the
6929         object is invariant for basic blocks.
6930         (compute_all_dependences): Skip dependence analysis for data
6931         references in basic blocks.
6932         (find_data_references_in_stmt): Don't fail in case of invariant
6933         access in basic block.
6934         (find_data_references_in_bb): New function.
6935         (find_data_references_in_loop): Move code to
6936         find_data_references_in_bb and add a call to it.
6937         (compute_data_dependences_for_bb): New function.
6938         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
6939         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
6940         that STEP is 0.
6941         (vect_analyze_data_ref_dependence): Check for interleaving in case of
6942         unknown dependence in basic block and fail in case of dependence in
6943         basic block.
6944         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
6945         dependence instances from either loop or basic block vectorization
6946         info.
6947         (vect_compute_data_ref_alignment): Check if it is loop vectorization
6948         before calling nested_in_vect_loop_p.
6949         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
6950         dependence instances from either loop or basic block vectorization
6951         info.
6952         (vect_verify_datarefs_alignment): Likewise.
6953         (vect_enhance_data_refs_alignment): Adjust function calls.
6954         (vect_analyze_data_refs_alignment): Likewise.
6955         (vect_analyze_group_access): Fix printing. Skip different checks if
6956         DR_STEP is 0. Keep strided stores either in loop or basic block
6957         vectorization data structure. Fix indentation.
6958         (vect_analyze_data_ref_access): Fix comments, allow zero step in
6959         basic blocks.
6960         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
6961         dependence instances from either loop or basic block vectorization
6962         info.
6963         (vect_analyze_data_refs): Update comment. Call
6964         compute_data_dependences_for_bb to analyze basic blocks.
6965         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
6966         case of loop vectorization. In case of basic block vectorization use
6967         data-ref itself as a base.
6968         (vect_create_data_ref_ptr): In case of basic block vectorization:
6969         don't advance the pointer, add new statements before the current
6970         statement.  Adjust function calls.
6971         (vect_supportable_dr_alignment): Support only aligned accesses in
6972         basic block vectorization.
6973         * common.opt (ftree-slp-vectorize): New flag.
6974         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
6975         (vect_pattern_recog_1): Likewise.
6976         * tree-vect-stmts.c (process_use): Likewise.
6977         (vect_init_vector): Add new statements in the beginning of the basic
6978         block in case of basic block SLP.
6979         (vect_get_vec_def_for_operand): Adjust function calls.
6980         (vect_finish_stmt_generation): Likewise.
6981         (vectorizable_call): Add assert that it is loop vectorization, adjust
6982         function calls.
6983         (vectorizable_conversion, vectorizable_assignment): Likewise.
6984         (vectorizable_operation): In case of basic block SLP, take
6985         vectorization factor from statement's type and skip the relevance
6986         check. Adjust function calls.
6987         (vectorizable_type_demotion): Add assert that it is loop
6988         vectorization, adjust function calls.
6989         (vectorizable_type_promotion): Likewise.
6990         (vectorizable_store): Check for outer loop only in case of loop
6991         vectorization. Adjust function calls. For basic blocks, skip the
6992         relevance check and don't advance pointers.
6993         (vectorizable_load): Likewise.
6994         (vectorizable_condition): Add assert that it is loop vectorization,
6995         adjust function calls.
6996         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
6997         that it is not reduction, get vector type, call only supported
6998         functions, skip loop specific parts.
6999         (vect_transform_stmt): Check for outer loop only in case of loop
7000         vectorization.
7001         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
7002         (vect_is_simple_use): Fix comment, add new argument, fix conditions
7003         for external definition.
7004         * passes.c (pass_slp_vectorize): New pass.
7005         * tree-vect-slp.c (find_bb_location): New function.
7006         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
7007         check for patterns only in loops.
7008         (vect_build_slp_tree): Add argument, adjust function calls, fail in
7009         case of multiple types in basic block SLP.
7010         (vect_mark_slp_stmts_relevant): New function.
7011         (vect_supported_load_permutation_p): Fix comment.
7012         (vect_analyze_slp_instance): Add argument. In case of basic block
7013         SLP, take vectorization factor from statement's type, check that
7014         unrolling factor is 1. Adjust function call. Save SLP instance in
7015         either loop or basic block vectorization structure. Return FALSE,
7016         if SLP failed.
7017         (vect_analyze_slp): Add argument. Get strided stores groups from
7018         either loop or basic block vectorization structure. Return FALSE
7019         if basic block SLP failed.
7020         (new_bb_vec_info): New function.
7021         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
7022         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
7023         (vect_schedule_slp): Add argument. Get SLP instances from either
7024         loop or basic block vectorization structure. Set vectorization factor
7025         to be 1 for basic block SLP.
7026         (vect_slp_transform_bb): New function.
7027         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
7028
7029 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
7030
7031         * final.c (shorten_branches): Do not align labels for jump tables.
7032         (final_scan_insn): Use JUMP_TABLE_DATA_P.
7033
7034 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7035
7036         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
7037         Remove outdated reference to flow.c and fix nits.
7038         * doc/gccint.texi: Tweak RTL description.
7039         * doc/rtl.texi: Likewise.
7040
7041 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
7042
7043         * config/avr/avr.c: Change my email address.
7044         * config/avr/avr.h: Likewise.
7045         * config/avr/avr.md: Likewise.
7046         * config/avr/avr-protos.h: Likewise.
7047         * config/avr/libgcc.S: Likewise.
7048
7049 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
7050
7051         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
7052         (spu_split_load, spu_split_store): Change return type to int.
7053         (spu_split_convert): Declare.
7054         * config/spu/predicates.md (spu_mem_operand): Remove.
7055         (spu_mov_operand): Update.
7056         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
7057         * config/spu/spu.c (regno_aligned_for_load): Remove.
7058         (reg_aligned_for_addr, spu_expand_load): Define.
7059         (spu_expand_extv): Reimplement and handle MEM.
7060         (spu_expand_insv): Handle MEM.
7061         (spu_sched_reorder): Handle insn's with length 0.
7062         (spu_legitimate_address_p): Reimplement.
7063         (store_with_one_insn_p): Return TRUE for any mode with size
7064         larger than 16 bytes.
7065         (address_needs_split): Define.
7066         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
7067         operands.
7068         (spu_convert_move): Define.
7069         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
7070         (spu_split_store): Change all MEM's to TImode.
7071         (spu_init_expanders): Preallocate registers that correspond to
7072         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
7073         mark_reg_pointer.
7074         (spu_split_convert): Define.
7075         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
7076         (_move<mode>, _movdi, _movti): Update predicate and condition.
7077         (load, store): Change to define_split.
7078         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
7079         extend<mode>ti2.
7080         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
7081         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
7082         define_insn_and_split of lshr<mode>3.
7083         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
7084         (<v>ashr<mode>3_imm): Define.
7085         (extv, extzv, insv): Allow MEM operands.
7086         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
7087         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
7088         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
7089         (_spu_convert2): Change to define_insn_and_split and remove the
7090         corresponding define_peephole2.
7091         (stack_protect_set, stack_protect_test, stack_protect_test_si):
7092         Change predicates to memory_operand.
7093
7094 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7095
7096         * config/arm/thumb2.md: Add 16-bit multiply instructions.
7097
7098 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7099
7100         PR tree-optimization/40219
7101         * tree.c (iterative_hash_expr): Make sure the builtin function is
7102         a normal builtin function and not a front end or back end builtin
7103         before indexing into the built_in_decls array.
7104
7105 2009-05-22  Richard Guenther  <rguenther@suse.de>
7106
7107         PR middle-end/38964
7108         * alias.c (write_dependence_p): Do not use TBAA for answering
7109         anti-dependence or output-dependence.
7110         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
7111         (emit_pointer_definition): Remove.
7112         (emit_alias_warning): Likewise.
7113         (find_what_var_points_to): Remove TBAA pruning code.
7114         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
7115         violations.
7116         (compute_points_to_sets): Remove code computing the set of
7117         dereferenced pointers.
7118         * tree-data-ref.c (dr_may_alias_p): Properly use the split
7119         oracle for querying anti and output dependencies.
7120         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
7121         if TBAA may be applied.
7122         (refs_anti_dependent_p): New function.
7123         (refs_output_dependent_p): Likewise.
7124         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
7125         (refs_output_dependent_p): Likewise.
7126         * doc/tree-ssa.texi (Memory model): New section.
7127         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7128         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7129         * cfgexpand.c (expand_gimple_basic_block): Do not handle
7130         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
7131         * expr.c (expand_expr_real_1): Likewise.
7132         * gimple-low.c (lower_stmt): Likewise.
7133         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
7134         (dump_gimple_cdt): Remove.
7135         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7136         (gimple_size): Likewise.
7137         (walk_gimple_op): Likewise.
7138         (is_gimple_stmt): Likewise.
7139         (walk_stmt_load_store_addr_ops): Likewise.
7140         (gimple_build_cdt): Remove.
7141         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7142         * gimple.h (gimple_cdt_new_type): Remove.
7143         (gimple_cdt_new_type_ptr): Likewise.
7144         (gimple_cdt_set_new_type): Likewise.
7145         (gimple_cdt_location): Likewise.
7146         (gimple_cdt_location_ptr): Likewise.
7147         (gimple_cdt_set_location): Likewise.
7148         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7149         * tree-cfg.c (remove_useless_stmts_1): Do not handle
7150         GIMPLE_CHANGE_DYNAMIC_TYPE.
7151         (verify_types_in_gimple_stmt): Likewise.
7152         * tree-inline.c (estimate_num_insns): Likewise.
7153         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
7154         (copy_decl_to_var): Likewise.
7155         (copy_result_decl_to_var): Likewise.
7156         * tree-pretty-print.c (dump_generic_node): Do not handle
7157         CHANGE_DYNAMIC_TYPE_EXPR.
7158         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7159         * tree-ssa-operands.c (get_expr_operands): Likewise.
7160         * tree-ssa-structalias.c (struct variable_info): Remove
7161         no_tbaa_pruning member.
7162         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
7163         (unify_nodes): Do not copy it.
7164         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7165         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
7166         (set_uids_in_ptset): Do not check it.
7167         (find_what_var_points_to): Likewise.
7168         (compute_tbaa_pruning): Remove.
7169         (compute_points_to_sets): Do not call it.
7170         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7171         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7172         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
7173         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
7174         (DECL_NO_TBAA_P): Likewise.
7175         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
7176         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
7177         (expand_omp_atomic_pipeline): Do not set it.
7178         * print-tree.c (print_node): Do not dump it.
7179         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7180         redundant check.
7181
7182 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
7183
7184         PR target/39856
7185         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
7186         for clobber.
7187
7188 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7189
7190         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
7191         non-external.
7192
7193 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7194
7195         * Makefile.in (bversion.h, s-bversion): New targets.
7196         (TOPLEV_H): Add bversion.h.
7197         * toplev.h: Include "bversion.h".
7198         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
7199         the __format__ attribute only if compiling with the same version
7200         of GCC as the sources (the "build version").
7201
7202 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7203
7204         * c-format.c (handle_format_attribute): Fix comment typo.
7205
7206 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
7207
7208         PR target/37846
7209         * config/ia64/ia64.opt (mfused-madd): New.
7210         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
7211         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
7212         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
7213         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
7214         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
7215         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
7216         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
7217         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
7218         instruction if !TARGET_FUSED_MADD.
7219         (fpma, fpms): Remove colon from name.
7220
7221 2009-05-22  Richard Guenther  <rguenther@suse.de>
7222
7223         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7224         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
7225         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7226         TARGET_MEM_REF.
7227         (create_expression_by_pieces): Only convert if necessary.
7228         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
7229         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
7230
7231 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
7232
7233         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
7234         regular pattern from a template and rename it ...
7235         (*extzv_truncsi_exts): ... to this.
7236
7237 2009-05-21  Richard Guenther  <rguenther@suse.de>
7238
7239         * cgraph.h (struct cgraph_node): Remove inline_decl member.
7240         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
7241         (cgraph_default_inline_p): Likewise.
7242         (cgraph_decide_inlining_incrementally): Likewise.
7243
7244 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7245             Uros Bizjak  <ubizjak@gmail.com>
7246
7247         * config/i386/cpuid.h (bit_MOVBE): New.
7248
7249         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
7250
7251         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
7252         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
7253         (ix86_handle_option): Handle OPT_mmovbe.
7254         (ix86_target_string): Add -mmovbe.
7255         (pta_flags): Add PTA_MOVBE.
7256         (processor_alias_table): Add PTA_MOVBE to "atom".
7257         (override_options): Handle PTA_MOVBE.
7258
7259         * config/i386/i386.h (TARGET_MOVBE): New.
7260
7261         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
7262         (*bswapsi_movbe): New.
7263         (*bswapdi_movbe): Likewise.
7264         (bswapdi2): Renamed to ...
7265         (*bswapdi_1): This.
7266         (bswapdi2): New expander.
7267
7268         * config/i386/i386.opt (mmovbe): New.
7269
7270         * doc/invoke.texi: Document -mmovbe.
7271
7272 2009-05-21  Taras Glek  <tglek@mozilla.com>
7273
7274         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
7275         * gcc-plugin.h (plugin_init): Updated signature.
7276         * gcc-plugin.h (plugin_name_args): Moved to this header.
7277         * doc/plugins.texi (plugin_init): Updated documention to reflect
7278         API change.
7279         * doc/plugins.texi (plugin_name_args): Added to documention.
7280
7281 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
7282
7283         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
7284         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
7285
7286 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
7287
7288         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
7289         JUMP_TABLE_DATA_P predicates where applicable.
7290         * config/i386/predicates.md: Ditto.
7291         * config/i386/sse.md: Ditto.
7292
7293 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
7294
7295         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
7296         operand2 -128 override length_immediate attribute to 1.
7297         * config/i386/predicates.md (constm128_operand): New predicate.
7298
7299         * config/i386/i386.c (memory_address_length): Handle %r12
7300         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
7301         also check REGNO.
7302         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
7303         mode look through optional ZERO_EXTEND and SUBREG.
7304         * config/i386/i386.md (R12_REG): New define_constant.
7305         (prefix_data16): For sse unit set also for MODE_TI insns.
7306         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
7307         insns set if operand 1 is ext_QIreg_operand.
7308         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
7309         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
7310         immediate.
7311         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
7312         mode from MODE_DI to MODE_SI.
7313         (movdi_1_rex64): Override modrm and length_immediate attributes
7314         only for movabs (TYPE_IMOV, alternative 2).
7315         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
7316         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7317         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7318         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7319         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
7320         prefix_rex attribute if DImode.
7321         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
7322         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
7323         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
7324         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
7325         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
7326         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
7327         Likewise.  For TYPE_IMOV clear length_immediate attribute.
7328         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
7329         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
7330         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
7331         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
7332         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
7333         or one operand TYPE_ISHIFT.
7334         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
7335         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
7336         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
7337         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
7338         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
7339         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
7340         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
7341         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
7342         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
7343         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
7344         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
7345         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
7346         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
7347         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
7348         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
7349         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
7350         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
7351         set mode attribute, don't override length attribute.
7352         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
7353         to 1.
7354         (return_internal_long): Set length attribute to 2 instead of 1.
7355         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
7356         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
7357         prefix_rex attribute.
7358         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
7359         New predicates.
7360         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
7361
7362 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7363
7364         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
7365
7366 2009-05-20  Ian Lance Taylor  <iant@google.com>
7367
7368         * tree.c (build_tree_list_vec_stat): New function.
7369         (ctor_to_vec): New function.
7370         (build_nt_call_vec): New function.
7371         (build_call_array): Change args to be a const pointer.
7372         (build_call_vec): New function.
7373         * tree.h (build_nt_call_vec): Declare.
7374         (build_tree_list_vec_stat): Declare.
7375         (build_tree_list_vec): Define.
7376         (build_call_array): Update declaration.
7377         (build_call_vec): Declare.
7378         (ctor_to_vec): Declare.
7379         * c-common.c (tree_vector_cache): New static variable.
7380         (make_tree_vector): New function.
7381         (release_tree_vector): New function.
7382         (make_tree_vector_single): New function.
7383         (make_tree_vector_copy): New function.
7384         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
7385         (make_tree_vector_single, make_tree_vector_copy): Declare.
7386         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
7387         (c_parser_expr_list): Don't manage cache here, instead call
7388         make_tree_vector.
7389         (c_parser_release_expr_list): Remove static function.
7390         (c_parser_vec_to_tree_list): Remove static function.
7391         (c_parser_attributes): Call build_tree_list_vec instead of
7392         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
7393         c_parser_release_expr_list.
7394         (c_parser_postfix_expression_after_primary): Likewise.
7395         (c_parser_objc_keywordexpr): Likewise.
7396
7397 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7398
7399         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
7400         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
7401         TARGET_CONVERT_TO_TYPE.
7402         * hooks.c (hook_tree_const_tree_null): Define.
7403         * hooks.h (hook_tree_const_tree_null): Declare.
7404         * target.h (struct gcc_target):  Add invalid_parameter_type,
7405         invalid_return_type, promoted_type, and convert_to_type fields.
7406         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
7407         (TARGET_INVALID_RETURN_TYPE): Define.
7408         (TARGET_PROMOTED_TYPE): Define.
7409         (TARGET_CONVERT_TO_TYPE): Define.
7410         (TARGET_INITIALIZER): Update for new fields.
7411         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
7412         (grokparms): Check targetm.invalid_parameter_type.
7413         * c-typeck.c (default_conversion): Check targetm.promoted_type.
7414         * c-convert.c (convert): Check targetm.convert_to_type.
7415
7416 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
7417
7418         * config/mips/mips.md (*extenddi_truncate<mode>,
7419         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
7420         defintions.
7421         (*extendhi_truncateqi): New define_insn_and_sptit.
7422
7423 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
7424
7425         PR middle-end/40204
7426         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
7427         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
7428
7429 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7430
7431         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
7432         the operand of VIEW_CONVERT_EXPR.
7433
7434 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7435
7436         * config/i386/driver-i386.c (host_detect_local_cpu): Check
7437         extended family and model for Intel processors.  Support Intel Atom.
7438
7439 2009-05-20  Olivier Hainque  <hainque@adacore.com>
7440
7441         * gstab.h (stab_code_type): Define, to be used instead of the
7442         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
7443         notice.
7444         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
7445         occurrences by stab_code_type.
7446         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
7447
7448 2009-05-20  Martin Jambor  <mjambor@suse.cz>
7449
7450         * tree-flow.h (insert_edge_copies_seq): Undeclare.
7451         (sra_insert_before): Likewise.
7452         (sra_insert_after): Likewise.
7453         (sra_init_cache): Likewise.
7454         (sra_type_can_be_decomposed_p): Likewise.
7455         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
7456         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
7457         (sra_insert_before): Likewise.
7458         (sra_insert_after): Likewise.
7459         (sra_init_cache): Likewise.
7460         (insert_edge_copies_seq): Made static and moved upwards.
7461
7462         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
7463         case.
7464
7465         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
7466
7467         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
7468         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
7469         simple copies.
7470
7471 2009-05-20  Richard Guenther  <rguenther@suse.de>
7472
7473         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7474         with mismatched comparison modes.
7475
7476 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7477
7478         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
7479         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
7480         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
7481         with shifts for Thumb2.
7482         (orsi_notsi): New for orn.
7483         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
7484         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
7485         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
7486         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
7487         Don't invert remainder for IOR.
7488         
7489 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
7490
7491         PR tree-optimization/40087
7492         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
7493         number_of_iterations_ne): Rename never_infinite argument.
7494         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
7495         number_of_iterations_le): Handle pointer-type ivs when
7496         exit_must_be_taken is false.
7497         (number_of_iterations_cond):  Do not always assume that
7498         exit_must_be_taken if the control variable is a pointer.
7499
7500 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7501
7502         * c-typeck.c (build_binary_op): Allow % on integal vectors.
7503         * doc/extend.texi (Vector Extension): Document that % is allowed too.
7504
7505 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7506
7507         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
7508         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
7509
7510 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7511
7512         PR c/40172
7513         * c.opt (Wlogical-op): Disabled by default.
7514         * c-opt (c_common_post_options): Do not enable Wlogical-op with
7515         Wextra.
7516         * doc/invoke.texi (Wlogical-op): Likewise.
7517         
7518 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7519
7520         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
7521         into CASE_CONVERT.
7522         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
7523         Propagate the type of the first operand.
7524         <ASSERT_EXPR>: Simplify.
7525         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
7526         Rewrite using the RHS code as discriminant.
7527         <NOP_EXPR>: Turn into CASE_CONVERT.
7528         <PLUS_EXPR>: Propagate the type of the first operand.
7529
7530 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
7531
7532         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
7533         (ia64_dconst_0_375): New.
7534         * config/ia64/ia64.c (ia64_override_options): Remove
7535         -minline-sqrt-min-latency warning.
7536         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
7537         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
7538         * config/ia64/ia64.md (*sqrt_approx): Remove.
7539         (sqrtsf2): Remove #if 0.
7540         (sqrtsf2_internal_thr): Rewrite and move to div.md.
7541         (sqrtdf): Remove assert.
7542         (sqrtdf2_internal_thr): Rewrite and move to div.md.
7543         (sqrtxf2): Remove #if 0.
7544         (sqrtxf2_internal_thr): Rewrite and move to div.md.
7545         * div.md (sqrt_approx_rf): New.
7546         (sqrtsf2_internal_thr): New implementation.
7547         (sqrtsf2_internal_lat): New.
7548         (sqrtdf2_internal_thr: New implementation.
7549         (sqrtxf2_internal): New implementation.
7550
7551 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
7552             Hans-Peter Nilsson  <hp@axis.com>
7553
7554         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
7555         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
7556         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
7557         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
7558         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
7559         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
7560         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
7561         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
7562         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
7563         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
7564         * c-common.c: ...from here.
7565
7566 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7567
7568         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
7569
7570 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7571
7572         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
7573
7574 2009-05-19  Ben Elliston  <bje@au.ibm.com>
7575
7576         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
7577         assignments with memcpy calls.
7578         (add_fdes): Likewise.
7579         (binary_search_unencoded_fdes): Likewise.
7580         (linear_search_fdes): Eliminate type puns.
7581         
7582 2009-05-19  Richard Guenther  <rguenther@suse.de>
7583
7584         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
7585         not falsely claim to have propagated into all uses.
7586
7587 2009-05-19  Ben Elliston  <bje@au.ibm.com>
7588
7589         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
7590         version to v3.0.
7591
7592 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7593
7594         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
7595         * config/sh/sh.c (sh_legitimate_address_p): Make static.
7596         (TARGET_LEGITIMATE_ADDRESS_P): New.
7597         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
7598         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
7599         
7600 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
7601
7602         PR debug/40109
7603         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
7604         child of the containing namespace's DIE.
7605
7606 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
7607
7608         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
7609         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
7610         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
7611         extend patterns.
7612
7613 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7614
7615         PR target/39942
7616         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
7617         gen_align with gen_pad.
7618         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
7619         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
7620
7621         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
7622         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
7623
7624         * config/i386/i386.md (align): Renamed to ...
7625         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
7626         ASM_OUTPUT_MAX_SKIP_PAD.
7627
7628 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7629
7630         * config.gcc: Fix variable syntax.
7631
7632         PR target/39531
7633         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
7634         before calling exact_log2.
7635         (output_iorsi3): Likewise.
7636         (output_xorsi3): Likewise.
7637
7638 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7639
7640         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
7641         for the none zero constant operand except for EQ and NE
7642         comprisons even when the first operand is R0.
7643
7644 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
7645
7646         * config/s390/2064.md: Remove trailing whitespaces.
7647         * config/s390/2084.md: Likewise.
7648         * config/s390/constraints.md: Likewise.
7649         * config/s390/fixdfdi.h: Likewise.
7650         * config/s390/libgcc-glibc.ver: Likewise.
7651         * config/s390/s390-modes.def: Likewise.
7652         * config/s390/s390-protos.h: Likewise.
7653         * config/s390/s390.c: Likewise.
7654         * config/s390/s390.h: Likewise.
7655         * config/s390/s390.md: Likewise.
7656         * config/s390/tpf-unwind.h: Likewise.
7657
7658 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7659
7660         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
7661
7662 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7663
7664         M68K TLS support.
7665         * configure.ac (m68k-*-*): Check if binutils support TLS.
7666         * configure: Regenerate.
7667         * config/m68k/predicates.md (symbolic_operand): Extend comment.
7668         * config/m68k/constraints.md (Cu): New constraint.
7669         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
7670         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
7671         (movsi): Handle TLS symbols.
7672         (addsi3_5200): Handle XTLS symbols, indent.
7673         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
7674         (m68k_tls_reference_p): Declare.
7675         (m68k_legitimize_address): Declare.
7676         (m68k_unwrap_symbol): Declare.
7677         * config/m68k/m68k.opt (mxtls): New option.
7678         * config/m68k/m68k.c (ggc.h): Include.
7679         (m68k_output_dwarf_dtprel): Implement hook.
7680         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
7681         (m68k_expand_prologue): Load GOT pointer when function needs it.
7682         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
7683         (m68k_legitimate_constant_address_p): Same.
7684         (m68k_decompose_address): Handle TLS references.
7685         (m68k_get_gp): New static function.
7686         (enum m68k_reloc): New contants.
7687         (TLS_RELOC_P): New macro.
7688         (m68k_wrap_symbol): New static function.
7689         (m68k_unwrap_symbol): New function.
7690         (m68k_final_prescan_insn_1): New static function.
7691         (m68k_final_prescan_insn): New function.
7692         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
7693         functions.
7694         (legitimize_pic_address): Handle TLS references..
7695         (m68k_tls_get_addr, m68k_get_tls_get_addr)
7696         (m68k_libcall_value_in_a0_p)
7697         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
7698         (m68k_call_m68k_read_tp): Helper variables and functions for ...
7699         (m68k_legitimize_tls_address): Handle TLS references.
7700         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
7701         New functions.
7702         (m68k_legitimize_address): Handle TLS symbols.
7703         (m68k_get_reloc_decoration): New static function.
7704         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
7705         UNSPEC_RELOC32.
7706         (m68k_output_dwarf_dtprel): Implement hook.
7707         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
7708         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
7709         m68k_call_* routines.
7710         (sched_attr_op_type): Handle TLS symbols.
7711         (gt-m68k.h): Include.
7712         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
7713         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
7714
7715 2009-05-18  Martin Jambor  <mjambor@suse.cz>
7716
7717         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
7718         (visit_store_addr_for_mod_analysis): New function.
7719         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
7720         (determine_cst_member_ptr): Use gimple_assign_single_p.
7721         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
7722         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
7723         operands.  Don't check number of operands of a NOP_EXPR.
7724
7725 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
7726
7727         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
7728
7729 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7730
7731         PR c/40172
7732         * c-common.c (warn_logical_operator): Don't warn if one of
7733         expression isn't always true or false.
7734
7735 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
7736
7737         * config/i386/biarch32.h: New file.
7738         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
7739
7740 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
7741
7742         * config/mips/mips.md (*zero_extend<mode>_trunchi,
7743         *zero_extend<mode>_truncqi): Merge these into ...
7744         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
7745         Name the pattern following this as *zero_extendhi_truncqi.
7746
7747 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
7748
7749         PR middle-end/39301
7750         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
7751         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
7752         (output_info): Make field HOST_WIDEST_INT.
7753         (print_statistics): Use HOST_WIDEST_INT_PRINT.
7754         (dump_bitmat_statistics): Same.
7755
7756 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
7757
7758         * config.gcc (use_gcc_stdint):  Set to wrap.
7759         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
7760         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
7761         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7762         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7763         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7764         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7765         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7766         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
7767
7768 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
7769
7770         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
7771         tune_64.
7772         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
7773         Move definitions earlier.
7774         (OPT_ARCH64, OPT_ARCH32): Define.
7775         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
7776         and tune_64.
7777
7778 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
7779
7780         PR target/40153
7781         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
7782         implies.
7783
7784 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
7785
7786         * arm.md (movdi2): Copy non-reg values to DImode registers.
7787
7788 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
7789
7790         PR target/39942
7791         * final.c (label_to_max_skip): New function.
7792         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
7793         CODE_LABEL_NUMBER <= max_labelno.
7794         * output.h (label_to_max_skip): New prototype.
7795         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
7796         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
7797         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
7798         Handle CODE_LABELs with >= 16 byte alignment or with
7799         max_skip == (1 << align) - 1.
7800         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
7801         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
7802
7803         PR target/39942
7804         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
7805         .p2align 3 if MAX_SKIP is smaller than 7.
7806         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7807
7808 2009-05-15  Ian Lance Taylor  <iant@google.com>
7809
7810         * alias.c (struct alias_set_entry_d): Rename from struct
7811         alias_set_entry.  Change all uses.
7812         * except.c (struct call_site_record_d): Rename from struct
7813         call_site_record.  Change all uses.
7814         * except.h (struct eh_region_d): Rename from struct eh_region.
7815         Change all uses.
7816         * gcse.c (struct hash_table_d): Rename from struct hash_table.
7817         Change all uses.
7818         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
7819         ivtype_map_elt.  Change all uses.
7820         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
7821         Change all uses.
7822         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
7823         * graphite.h (struct name_tree_d): Rename from struct name_tree.
7824         Change all uses.
7825         (struct sese_d): Rename from struct sese.  Change all uses.
7826         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
7827         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
7828         * optabs.h (struct optab_d): Rename from struct optab.  Change all
7829         uses.
7830         (struct convert_optab_d): Rename from struct convert_optab.
7831         Change all uses.
7832         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
7833         ipa_opt_pass.  Change all uses.
7834         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
7835         all uses.
7836
7837         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
7838         defined as a typedef.
7839         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
7840         defined as a tag.
7841
7842 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7843
7844         PR 16302
7845         * fold-const.c (make_range,build_range_check,merge_ranges): Move
7846         declaration to...
7847         (merge_ranges): Returns bool. 
7848         * tree.h (make_range): .. to here.
7849         (build_range_check): Likewise.
7850         (merge_ranges): Likewise. Renamed from merge_ranges.
7851         * c-typeck.c (parser_build_binary_op): Update calls to
7852         warn_logical_operator.
7853         * c-common.c (warn_logical_operator): Add new warning.
7854         * c-common.h (warn_logical_operator): Update declaration.
7855         
7856 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7857
7858         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
7859         
7860 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7861
7862         * doc/install.texi: Document MPC requirements, flags etc.
7863
7864         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
7865         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
7866         Evaluate constant arguments.
7867         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
7868         (fold_builtin_1): Likewise, also evaluate constant arguments.
7869         Remove superfluous break.
7870         (do_mpc_ckconv): New.
7871         * real.h: Include mpc.h.
7872         * toplev.c (print_version): Output MPC version info if available.
7873
7874 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
7875
7876         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
7877
7878 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7879
7880         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
7881         only once.
7882
7883 2009-05-15  Jan Hubicka  <jh@suse.cz>
7884
7885         * doc/invoke.texi (max-early-inliner-iterations): New flag.
7886         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
7887         (try_inline): Fix return value.
7888         (cgraph_decide_inlining_incrementally): Honor new value.
7889         (cgraph_early_inlining): Handle indirect inlining.
7890         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
7891
7892 2009-05-15  Jan Hubicka  <jh@suse.cz>
7893
7894         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
7895         * cgraphunit.c (cgraph_finalize_function): Set it.
7896         (cgraph_expand_function): Use it.
7897
7898 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
7899
7900         * real.c (encode_ieee_half): Define.
7901         (decode_ieee_half): Define.
7902         (ieee_half_format): Define.
7903         (arm_half_format): Define.
7904         * real.h (ieee_half_format): Declare.
7905         (arm_half_format): Declare.
7906
7907 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
7908
7909         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
7910         swapped, and reversed optabs exist before trying to use them.
7911
7912 2009-05-15  Paul Brook  <paul@codesourcery.com>
7913             Sandra Loosemore  <sandra@codesourcery.com>
7914
7915         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
7916         loads.  Allow PRE_DEC.
7917         (output_move_neon): Handle PRE_DEC.
7918         (arm_print_operand): Add 'A' for neon structure loads.
7919         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
7920         * config/arm/neon.md (neon_mov): Update comment.
7921         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
7922         calls.
7923         (Um): New constraint.
7924
7925 2009-05-15  Jan Hubicka  <jh@suse.cz>
7926
7927         Revert the following patch until testsuite fallout is fixed:
7928         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
7929         * cgraph.h (struct inline_summary): New filed self_wize,
7930         size_inlining_benefit, self_time and time_inlining_benefit.
7931         (struct cgraph_global_info): Replace insns by time ans size fields.
7932         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
7933         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
7934         (ipcp_update_callgraph): Do not touch function bodies.
7935         * ipa-inline.c: Include except.h
7936         (MAX_TIME): New constant.
7937         (overall_insns): Remove
7938         (overall_size, max_benefit): New static variables.
7939         (cgraph_estimate_time_after_inlining): New function.
7940         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
7941         (cgraph_clone_inlined_nodes): Update size.
7942         (cgraph_mark_inline_edge): Update size.
7943         (cgraph_estimate_growth): Use size info.
7944         (cgraph_check_inline_limits): Check size.
7945         (cgraph_default_inline_p): Likewise.
7946         (cgraph_edge_badness): Compute badness based on benefit and size cost.
7947         (cgraph_decide_recursive_inlining): Check size.
7948         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
7949         and times.
7950         (cgraph_decide_inlining): Likewise.
7951         (cgraph_decide_inlining_incrementally): Likewise; honor
7952         PARAM_EARLY_INLINING_INSNS.
7953         (likely_eliminated_by_inlining_p): New predicate.
7954         (estimate_function_body_sizes): New function.
7955         (compute_inline_parameters): Use it.
7956         * except.c (must_not_throw_labels): New function.
7957         * except.h (must_not_throw_labels): Declare.
7958         * tree-inline.c (init_inline_once): Kill inlining_weigths
7959         * tree-ssa-structalias.c: Avoid uninitialized warning.
7960         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
7961         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
7962         (PARAM_INLINE_CALL_COST): Remove.
7963         (PARAM_EARLY_INLINING_INSNS): New.
7964
7965 2009-05-15  Richard Guenther  <rguenther@suse.de>
7966
7967         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
7968         not TODO_update_ssa.
7969
7970 2009-05-15  Richard Guenther  <rguenther@suse.de>
7971
7972         PR tree-optimization/39999
7973         * gimple.h (gimple_expr_type): Use the expression type looking
7974         through useless conversions.
7975         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
7976         (vn_nary_op_insert_stmt): Likewise.
7977         (simplify_binary_expression): Likewise.
7978
7979 2009-05-15  Richard Guenther  <rguenther@suse.de>
7980
7981         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
7982         New options, enabled by default.
7983         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
7984         Document.
7985         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
7986         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
7987         * tree-ssa-structalias.c (gate_tree_pta): New function.
7988         (pass_build_alias): Use it.
7989
7990 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
7991
7992         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
7993         recurse on an invariant address if a conversion from a pointer
7994         type to a wider integer type is involved.
7995
7996 2009-05-15  Jan Hubicka  <jh@suse.cz>
7997
7998         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
7999         * cgraph.h (struct inline_summary): New filed self_wize,
8000         size_inlining_benefit, self_time and time_inlining_benefit.
8001         (struct cgraph_global_info): Replace insns by time ans size fields.
8002         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8003         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8004         (ipcp_update_callgraph): Do not touch function bodies.
8005         * ipa-inline.c: Include except.h
8006         (MAX_TIME): New constant.
8007         (overall_insns): Remove
8008         (overall_size, max_benefit): New static variables.
8009         (cgraph_estimate_time_after_inlining): New function.
8010         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8011         (cgraph_clone_inlined_nodes): Update size.
8012         (cgraph_mark_inline_edge): Update size.
8013         (cgraph_estimate_growth): Use size info.
8014         (cgraph_check_inline_limits): Check size.
8015         (cgraph_default_inline_p): Likewise.
8016         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8017         (cgraph_decide_recursive_inlining): Check size.
8018         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8019         and times.
8020         (cgraph_decide_inlining): Likewise.
8021         (cgraph_decide_inlining_incrementally): Likewise; honor
8022         PARAM_EARLY_INLINING_INSNS.
8023         (likely_eliminated_by_inlining_p): New predicate.
8024         (estimate_function_body_sizes): New function.
8025         (compute_inline_parameters): Use it.
8026         * except.c (must_not_throw_labels): New function.
8027         * except.h (must_not_throw_labels): Declare.
8028         * tree-inline.c (init_inline_once): Kill inlining_weigths
8029         * tree-ssa-structalias.c: Avoid uninitialized warning.
8030         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8031         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8032         (PARAM_INLINE_CALL_COST): Remove.
8033         (PARAM_EARLY_INLINING_INSNS): New.
8034         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
8035         (inline-call-cost): Remove.
8036         (early-inlining-insns): New.
8037
8038 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8039
8040         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
8041         for bounds.
8042         (print_int_cst_bounds_in_octal_p): Likewise.
8043         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
8044         with subtypes.
8045         * dwarf2out.c (base_type_die): Likewise.
8046         (is_subrange_type): Delete.
8047         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
8048         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
8049         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
8050         if the destination type is boolean.
8051         (build_range_check): Do not special-case subtypes.
8052         (fold_sign_changed_comparison): Likewise.
8053         (fold_unary): Likewise.
8054         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
8055         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
8056         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
8057         * tree.c (subrange_type_for_debug_p): New predicate based on the
8058         former is_subrange_type.
8059         * tree.h (subrange_type_for_debug_p): Declare.
8060         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
8061         (convert_affine_scev): Remove call to above function.
8062         (chrec_convert_aggressive): Likewise.
8063         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
8064         false for conversions involving subtypes.
8065         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
8066         (vrp_val_min): Likewise.
8067         (needs_overflow_infinity): Likewise.
8068         (extract_range_from_unary_expr): Likewise.
8069
8070 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
8071
8072         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8073         * config/frv/frv.c: Likewise.
8074         * config/s390/s390.c: Likewise.
8075         * config/sparc/sparc.h: Likewise.
8076         * config/i386/i386.h: Likewise.
8077         * config/i386/i386.c: Likewise.
8078         * config/crx/crx.c: Likewise.
8079         * config/m68hc11/m68hc11.h: Likewise.
8080         * config/iq2000/iq2000.c: Likewise.
8081         * config/mn10300/mn10300.h: Likewise.
8082         * config/mn10300/mn10300.c: Likewise.
8083         * config/m68k/m68k.c: Likewise.
8084         * config/rs6000/rs6000.c: Likewise.
8085         * config/rs6000/xcoff.h: Likewise.
8086         * config/rs6000/linux64.h: Likewise.
8087         * config/rs6000/sysv4.h: Likewise.
8088         * config/score/score3.c: Likewise.
8089         * config/score/score7.c: Likewise.
8090         * config/score/score.c: Likewise.
8091         * config/arm/arm.md: Likewise.
8092         * config/mips/mips.c: Likewise.
8093         * config/mips/mips.md: Likewise.
8094         * config/bfin/bfin.h: Likewise.
8095         * config/pa/pa.c: Likewise.
8096         * config/pa/constraints.md: Likewise.
8097
8098         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
8099         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
8100         * config/pdp11/pdp11.h: Use memory_address_p instead.
8101
8102 2009-05-14  Ian Lance Taylor  <iant@google.com>
8103
8104         * passes.c (finish_optimization_passes): Change i to int.
8105         * plugin.c (plugins_active_p): Change event to int.
8106         (dump_active_plugins): Likewise.
8107         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
8108         Add cast.
8109         * tree.c (tree_range_check_failed): Change c to unsigned int.
8110         (omp_clause_range_check_failed): Likewise.
8111         (build_common_builtin_nodes): Change mode to int.  Add cast.
8112         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
8113         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
8114
8115         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
8116         ++ or -- with a variable of enum type.
8117
8118 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8119
8120         PR driver/40144
8121         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
8122
8123 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8124
8125         * store-motion.c: Do not include params.h
8126         * Makefile.in: Fix dependencies for various files.
8127
8128 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8129
8130         * auto-inc-dec.c: Fix pass description, remove apparent
8131         accidental duplication.
8132
8133 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8134
8135         PR middle-end/40147
8136         * ipa-utils.h (memory_identifier_string): Moved to ...
8137         * tree.h (memory_identifier_string): Here.  Add GTY(()).
8138
8139 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8140
8141         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
8142         in the former documentation of...
8143         (GO_IF_LEGITIMATE_ADDRESS): ... this.
8144         * ira-conflicts.c (get_dup_num): Use address_operand.
8145         * targhooks.c (default_legitimate_address_p): New.
8146         * targhooks.h (default_legitimate_address_p): New.
8147         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
8148         Call hook.
8149         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
8150         * target.h (struct target): Add legitimate_address_p.
8151         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
8152         (TARGET_INITIALIZER): Include it.
8153
8154         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8155         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
8156         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
8157         (TARGET_LEGITIMATE_ADDRESS_P): New.
8158
8159         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8160         (REG_OK_STRICT_P): Delete.
8161         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
8162         (frv_legitimate_address_p_1): ... this.
8163         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
8164         (frv_legitimate_address_p_1): ... the renamed old
8165         frv_legitimate_address_p.
8166         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
8167         (TARGET_LEGITIMATE_ADDRESS_P): New.
8168
8169         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8170         * config/s390/s390-protos.h (legitimate_address_p): Remove.
8171         * config/s390/s390.c (legitimate_address_p): Rename to...
8172         (s390_legitimate_address_p): ... this, make static.
8173         (legitimize_address): Adjust call.
8174         (TARGET_LEGITIMATE_ADDRESS_P): New.
8175         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
8176
8177         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8178         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
8179         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
8180         (TARGET_LEGITIMATE_ADDRESS_P): New.
8181
8182         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8183         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
8184         * config/spu/spu.c (spu_legitimate_address): Rename to...
8185         (spu_legitimate_address_p): ... this, make static.
8186         (TARGET_LEGITIMATE_ADDRESS_P): New.
8187
8188         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8189         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
8190         * config/sparc/sparc.c (legitimate_address_p): Rename to...
8191         (sparc_legitimate_address_p): ... this, make static and return bool.
8192         (legitimize_address): Adjust call.
8193         (TARGET_LEGITIMATE_ADDRESS_P): New.
8194
8195         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8196         * config/i386/i386-protos.h (legitimate_address_p): Remove.
8197         * config/i386/i386.c (legitimate_address_p): Rename to...
8198         (ix86_legitimate_address_p): ... this, make static.
8199         (constant_address_p): Move after it, adjust call.
8200         (TARGET_LEGITIMATE_ADDRESS_P): New.
8201
8202         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8203         * config/avr/avr-protos.h (legitimate_address_p): Remove.
8204         * config/avr/avr.c (legitimate_address_p): Rename to...
8205         (avr_legitimate_address_p): ... this, make static.
8206         (legitimize_address): Adjust call.
8207         (TARGET_LEGITIMATE_ADDRESS_P): New.
8208
8209         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8210         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
8211         * config/crx/crx.c (crx_legitimate_address_p): Make static.
8212         (TARGET_LEGITIMATE_ADDRESS_P): New.
8213
8214         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8215         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
8216         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
8217         (TARGET_LEGITIMATE_ADDRESS_P): New.
8218
8219         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8220         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
8221         Remove.
8222         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8223         Make static.
8224         (TARGET_LEGITIMATE_ADDRESS_P): New.
8225
8226         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8227         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
8228         Remove.
8229         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
8230         Rename to...
8231         (m68hc11_legitimate_address_p): ... this, make static.
8232         (go_if_legitimate_address_internal): Rename to...
8233         (m68hc11_legitimate_address_p_1): ... this.
8234         (legitimize_address): Adjust call.
8235         (TARGET_LEGITIMATE_ADDRESS_P): New.
8236
8237         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8238         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
8239         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
8240         (TARGET_LEGITIMATE_ADDRESS_P): New.
8241
8242         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8243         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
8244         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
8245         (mn10300_legitimate_address_p): ... this, make static.
8246         (TARGET_LEGITIMATE_ADDRESS_P): New.
8247
8248         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8249         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
8250         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
8251         (TARGET_LEGITIMATE_ADDRESS_P): New.
8252
8253         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8254         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
8255         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
8256         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8257         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
8258         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
8259         (rs6000_legitimate_address_p): ... this, make static.
8260         (TARGET_LEGITIMATE_ADDRESS_P): New.
8261         (REG_MODE_OK_FOR_BASE_P): Delete.
8262         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
8263
8264         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8265         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
8266         Delete.
8267         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
8268         static, adjust types.
8269         (TARGET_LEGITIMATE_ADDRESS_P): New.
8270
8271         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8272         * config/score/score.c (score_address_p): Rename to...
8273         (score_legitimate_address_p): ... this.
8274         (TARGET_LEGITIMATE_ADDRESS_P): New.
8275         * config/score/score3.c (score3_address_p): Rename to...
8276         (score3_legitimate_address_p): ... this.
8277         * config/score/score7.c (score7_address_p): Rename to...
8278         (score7_legitimate_address_p): ... this.
8279
8280         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
8281         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
8282         GO_IF_LEGITIMATE_ADDRESS): Delete.
8283         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
8284         thumb2_legitimate_address_p): Delete.
8285         (arm_legitimate_address_p): Rename to...
8286         (arm_legitimate_address_outer_p): ... this.
8287         * config/arm/constraints.md ("Uq"): Adjust call.
8288         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
8289         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
8290         to...
8291         (arm_legitimate_address_outer_p): ... this.
8292         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
8293         static.
8294         (TARGET_LEGITIMATE_ADDRESS_P): New.
8295
8296         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8297         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
8298         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
8299         (TARGET_LEGITIMATE_ADDRESS_P): New.
8300
8301         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8302         * config/vax/vax-protos.h (legitimate_address_p): Remove.
8303         * config/vax/vax.c (legitimate_address_p): Rename to...
8304         (vax_legitimate_address_p): ... this, make static.
8305         (TARGET_LEGITIMATE_ADDRESS_P): New.
8306
8307         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8308         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
8309         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
8310         (TARGET_LEGITIMATE_ADDRESS_P): New.
8311
8312         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8313         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
8314         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
8315         (mmix_legitimate_address_p): ... this, make static.
8316         (TARGET_LEGITIMATE_ADDRESS_P): New.
8317
8318         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8319         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
8320         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
8321         (TARGET_LEGITIMATE_ADDRESS_P): New.
8322
8323 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8324
8325         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
8326         of MODE_COMPLEX_INT.
8327
8328 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8329
8330         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
8331         LCT_NORMAL in function call.
8332         * mips-tdump.c (print_file_desc): Add cast to enum type.
8333         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
8334         (mark_stabs): Add casts to enum types.
8335         (parse_stabs_common): Add casts to enum types.
8336
8337 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8338
8339         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
8340         Check for invalid values of LETTER.
8341
8342 2009-05-13  Taras Glek  <tglek@mozilla.com>
8343
8344         * attribs.c (register_attribute): moved out attribute registration
8345         into register_attribute.
8346         * doc/plugins.texi: Documented register_attribute and
8347         PLUGIN_ATTRIBUTES.
8348         * gcc-plugin.h: Added forward decl for register_attribute.
8349         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
8350         * plugin.c (register_callback, invoke_plugin_callbacks): Added
8351         PLUGIN_ATTRIBUTES boilerplate.
8352
8353 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
8354
8355         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
8356         values even in sentinel and empty entries.
8357         (ms_printf_flag_specs):  Likewise.
8358         (ms_scanf_flag_specs):  Likewise.
8359         (ms_strftime_flag_specs):  Likewise.
8360         (ms_print_char_table):  Likewise.
8361         (ms_scan_char_table):  Likewise.
8362         (ms_time_char_table):  Likewise.
8363
8364 2009-05-13  Doug Kwan  <dougkwan@google.com>
8365
8366         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
8367
8368 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8369
8370         * config/mips/mips.md (store): Add attributes for QI and HI.
8371         Update comment.
8372         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
8373         (truncdi<mode>2): ... this new pattern.
8374
8375 2009-05-13  Brad Hards  <bradh@kde.org>
8376
8377         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
8378
8379 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
8380             Ben Elliston <bje@au.ibm.com>
8381
8382         PR middle-end/40035
8383         * dse.c (check_mem_read_rtx): Guard against width == -1.
8384
8385 2009-05-13  Michael Matz  <matz@suse.de>
8386
8387         PR middle-end/39976
8388         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
8389         (trivially_conflicts_p): New function.
8390         (insert_backedge_copies): Use it.
8391
8392 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
8393
8394         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
8395         (handle_stdc_pragma): Use new enum constant names.
8396         (handle_pragma_float_const_decimal64): Ditto.
8397
8398 2009-05-13  Ian Lance Taylor  <iant@google.com>
8399
8400         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
8401         tree.def.
8402
8403 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
8404
8405         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
8406         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
8407         multilibs.
8408         * config/m68k/m68k.h (FL_UCLINUX): Define.
8409
8410 2009-05-13  Jan Hubicka  <jh@suse.cz>
8411
8412         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
8413
8414 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8415
8416         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
8417         unless -fschedule-insns is specified.
8418
8419 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8420
8421         PR target/39561
8422         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
8423         TARGET_EXPAND_CBRANCHDI4.
8424         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
8425         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
8426         (cmpeqdi): Fix comment.
8427
8428 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8429
8430         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
8431         (sh_legitimate_address_p): Likewise.
8432         * config/sh/sh.c (sh_legitimate_index_p): New.
8433         (sh_legitimate_address_p): Likewise.
8434         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
8435         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
8436         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
8437         (MAYBE_BASE_REGISTER_RTX_P): New macro.
8438         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
8439         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
8440         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
8441         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
8442         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
8443
8444 2009-05-12  Jan Hubicka  <jh@suse.cz>
8445
8446         * tree-inline.c (estimate_operator_cost): Add operands;
8447         when division happens by constant, it is cheap.
8448         (estimate_num_insns): Loads and stores are not having cost of 0;
8449         EH magic stuff is cheap; when computing runtime cost of switch,
8450         use log2 base of amount of its cases; builtin_expect has cost of 0;
8451         compute cost for moving return value of call.
8452         (init_inline_once): Initialize time_based flags.
8453         * tree-inline.h (eni_weights_d): Add time_based flag.
8454
8455 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8456
8457         * df-core.c: Update head documentation.
8458
8459 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8460
8461         PR bootstrap/40118
8462         * rs6000.c (rs6000_generate_compare): Use op1b instead of
8463         shadowing exisiting variable op1.
8464
8465 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
8466
8467         PR target/37179
8468         * config/i386/driver-i386.c (processor_signatures): New enum.
8469         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
8470         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
8471         processor signature to detect geode processor.
8472
8473 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8474
8475         Revert:
8476
8477         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8478
8479         * optabs.c (prepare_cmp_insn): Temporarily disable test that
8480         causes spurious differences between trunk and cond-optab branch.
8481
8482 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8483
8484         * dojump.c (compare_from_rtx): Delete.
8485         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
8486         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
8487         if the comparison does not satisfy the predicate; test predicates for
8488         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
8489         further if one existing pattern fails.
8490         * expr.h (compare_from_rtx): Delete.
8491         (prepare_operand): Declare it.
8492         * optabs.c: Change "lib call" to "libcall" throughout.
8493         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
8494         HAVE_conditional_trap, emit_cmp_insn): Delete.
8495         (can_compare_p): Delete cmp_optab case.
8496         (prepare_float_lib_cmp): Return an rtx and a machine mode.
8497         Accept other parameters by value.
8498         (prepare_operand): Make non-static.
8499         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
8500         other parameters by value.  Try to widen operands here based on
8501         an optab_methods argument and looking at cbranch_optab.
8502         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
8503         loop.  Use cbranch_optab directly.
8504         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
8505         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
8506         assertion.
8507         (emit_conditional_move, emit_conditional_add): Inline what's needed
8508         of compare_from_rtx, using new prepare_cmp_insn for the rest.
8509         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
8510         with COMPARE.  Move cmov_optab and cstore_optab above
8511         with cbranch_optab, move cmp_optab down with ucmp_optab,
8512         remove tst_otpab.  Do not initialize trap_rtx.
8513         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
8514         for trap code.  Do not check HAVE_conditional_trap.  Use
8515         prepare_cmp_insn.  Accept no predicate for operand 3.
8516         * optabs.h (OTI_cmp): Mark as used only for libcalls.
8517         (OTI_ctrap, ctrap_optab): New.
8518         (tst_optab): Delete.
8519         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
8520         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
8521         with lookup of ctrap_optab.
8522         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
8523         Delete.
8524         (ctrap_optab): New.
8525
8526         * combine.c (combine_simplify_rtx, simplify_set): Do not
8527         special case comparing against zero for cc0 machines.
8528         * simplify-rtx.c (simplify_binary_operation_1): Never remove
8529         COMPARE on cc0 machines.
8530         (simplify_relational_operation): Return a new expression when
8531         a COMPARE could be removed.
8532         * final.c (final_scan_insn): Compare cc_status values
8533         against LHS of a (compare FOO (const_int 0)) cc0 source.
8534         Also check if cc_status.value is the full compare.
8535
8536         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
8537         (cstoreMM4): Document.
8538         (conditional_trap): Document ctrapMM4 instead.
8539         (sync_compare_and_swapMM): Refer to cbranchcc4.
8540         (Dependent Patterns): Eliminate obsolete information referring to
8541         the old jump optimization phase.
8542         (Canonicalization): Include cbranchcc4 case, omit canonicalization
8543         of compares with 0 on cc0 machines.
8544         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
8545         avoiding references to cc0.  Remove text about storing operands
8546         in cmpMM.
8547         * doc/tm.texi (Condition Codes): Include blurb on different
8548         condition code representations, separate into subsections for
8549         CC0, MODE_CC and conditional execution.
8550
8551         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
8552         alpha_emit_setcc): Accept operands and a machine mode.
8553         * config/alpha/alpha.c (alpha_emit_conditional_branch):
8554         Get code/op0/op1 from operands, use machine mode argument
8555         instead of alpha_compare.fp_p.  Emit the branch here.
8556         (alpha_emit_setcc): Likewise, and return boolean.
8557         (alpha_emit_conditional_move): Likewise.  Assert that
8558         cmp_op_mode == cmp_mode, and simplify accordingly.
8559         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
8560         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
8561         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
8562         Delete.
8563         (stack probe test): Use cbranchdi4.
8564         * config/alpha/predicates.md (alpha_cbranch_operator): New.
8565
8566         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
8567         * config/arc/arc.h (movsicc, movsfcc): Use it.
8568         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
8569         (cbranchsi4, cstoresi4): New.
8570         (cmpsi, bCC and sCC expanders): Remove. 
8571
8572         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
8573         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
8574         * config/arm/predicates.md (arm_comparison_operator): Only include
8575         floating-point operators if there is a hardware floating-point unit.
8576         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
8577         deferring to cbranch_cc and cstore_cc respectively.
8578         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
8579         cbranch_cc, cstore_cc): New.
8580         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
8581         arm_compare_op1.
8582         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
8583
8584         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
8585         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
8586         as an argument.
8587         (adjust_insn_length): Adjust calls.
8588         (avr_reorg): Handle (compare (foo) (const_int 0)).
8589         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
8590         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
8591         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
8592         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
8593         (bCC): Remove.
8594         (cbranchqi4, cbranchhi4, cbranchsi4): New.
8595         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
8596
8597         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
8598         (cbranchsi4, cstorebi4, cstoresi4): New.
8599         (movbisi): This insn is duplicate, split it to zero_extend.
8600         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
8601         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
8602         (bfin_optimize_loop): Use cbranch expander.
8603         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
8604         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
8605         (bfin_bimode_comparison_operator): ... this.
8606         (bfin_direct_comparison_operator): New.
8607  
8608         * config/cris/cris.c (cris_normal_notice_update_cc): Look
8609         inside (compare FOO (const_int 0)).
8610         (cris_rtx_costs): Handle ZERO_EXTRACT.
8611         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
8612         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
8613         (*tstdi_v32): Delete.
8614         (*cmpdi_non_v32): Add M alternative for operand 1.
8615         (cmpsi, cmp<mode>): Make private.
8616         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
8617         with COMPARE.
8618         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
8619
8620         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
8621         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
8622         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
8623         (cc_reg_operand): New.
8624         (any_cond): Delete.
8625         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
8626         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
8627         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
8628         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
8629         crx_expand_scond): Delete.
8630
8631         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
8632         (cbranchsi4): New.
8633         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
8634         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
8635
8636         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
8637         cstoresi4, cstoresf4, cstoredf4): New.
8638         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
8639         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
8640         Receive the entire operands array.
8641         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
8642         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
8643         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
8644         Get test/op0/op1 from the operands array.
8645         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
8646
8647         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
8648         (h8300_expand_store): New.
8649         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
8650         (const_int 0)).
8651         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
8652         (h8300_expand_store): New.
8653         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
8654         or do not try to produce (set (cc0) REG).
8655         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
8656         change a compare into a move to a scratch register.  Disable some
8657         peepholes when comparing with zero.
8658         (tstsi, tsthi, tstsi, cmpqi): Make private.
8659         (cmphi): Delete.
8660         (bCC, sCC): Delete.
8661         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
8662         cstoresi4): New.
8663
8664         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
8665         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
8666         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
8667         (ix86_emit_i387_log1p): Use cbranchxf2.
8668         (ix86_expand_setcc): Return void.
8669         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
8670         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
8671         cmp<MODEF>, cmpcc): Remove.
8672         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
8673         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
8674         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
8675         (sCC and bCC expanders): Remove.
8676         (stack_protect_test): Use cbranchcc4.
8677
8678         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
8679         Delete.
8680         (ia64_expand_compare): Accept three rtx by reference and return void.
8681         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
8682         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
8683         from *expr.  Update *expr with the BImode comparison to do.
8684         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
8685         cmptf, bCC, sCC, conditional_trap): Delete.
8686         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
8687         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
8688         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
8689         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
8690         * config/ia64/predicates.md (ia64_cbranch_operator): New.
8691
8692         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
8693         type of last argument.
8694         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
8695         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
8696         use machine mode argument instead of branch_type.  Remove dead
8697         code for floating-point comparisons.
8698         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
8699         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
8700         Remove.
8701         (cbranchsi4, cstoresi4): New.
8702         * config/iq2000/predicates.md (reg_or_const_operand): New.
8703
8704         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
8705         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
8706         (b<code>_op): Rewrite to...
8707         (bcc_op): ... this, using match_operator.
8708         (s<code>_op): Rewrite to...
8709         (scc_op): ... this, using match_operator.
8710         (s<code>_24_op): Rewrite to...
8711         (scc_op_24): ... this, using match_operator.
8712         (s<code>_<mode>): Rewrite to...
8713         (cstore<mode>4): ... this, using match_operator.
8714         (s<code>_<mode>_24): Rewrite to...
8715         (cstore<mode>4_24): ... this, using match_operator.
8716         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
8717         m32c_unpend_compare, m32c_expand_scc): Delete.
8718         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
8719         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
8720         (m32c_expand_movcc): Change NE to EQ if necessary.
8721         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
8722
8723         * config/m32r/m32r-protos.h (gen_cond_store): New.
8724         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
8725         (gen_cond_store): New, from sCC patterns.
8726         (m32r_expand_block_move): Use cbranchsi4.
8727         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
8728         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
8729         (cbranchsi4, cstoresi4): New.
8730         
8731         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
8732         Delete.
8733         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
8734         (m68hc11_notice_update_cc): Look into a compare with 0.
8735         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
8736         Delete.
8737         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
8738         cmphi, cmpqi, bCC): Delete.
8739         (cbranchsi4, cbranchhi4, cbranchqi4): New.
8740         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
8741         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
8742         sets with COMPARE.
8743
8744         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
8745         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
8746         * config/m68k/constraints.md (H): New.
8747         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
8748         the define_insn below.
8749         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
8750         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
8751         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
8752         patterns): Wrap RHS with COMPARE.
8753         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
8754         (*cmpdi_internal): Name this pattern.
8755         (cmpdi): Change to define_insn.
8756         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
8757         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
8758         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
8759         predicate.
8760         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
8761         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
8762         (conditional_trap): Change to...
8763         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
8764         (*conditional_trap): Use the ordered_comparison_operator and
8765         const1_operand predicates.
8766         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
8767         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
8768         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
8769         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
8770
8771         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
8772         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
8773         (mcore_gen_compare): New. 
8774         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
8775         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
8776         (mcore_gen_compare): ... this.
8777         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
8778         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
8779         (stack probe pattern): Use cbranchsi4.
8780
8781         * config/mips/predicates.md (mips_cstore_operator): New.
8782         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
8783         * config/mips/mips.md (any_cond): Delete.
8784         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
8785         always succeed.
8786         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
8787         fixuns_truncsfdi2): Use cbranch patterns.
8788         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
8789         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
8790         Adjust call to mips_expand_conditional_branch.
8791         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
8792         cstore<GPR:mode>4.
8793         * config/mips/mips-protos.h (mips_expand_conditional_branch,
8794         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
8795         * config/mips/mips.c (cmp_operands): Delete.
8796         (mips_emit_compare): Get comparison operands from *op0/*op1.
8797         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
8798         that it succeeds.  Use op0/op1 instead of cmp_operands.
8799         (mips_expand_conditional_branch, mips_expand_conditional_move,
8800         mips_expand_conditional_trap): Likewise.
8801         (mips_block_move_loop): Use cbranch patterns. 
8802         * config/mips/mips.h (cmp_operands): Delete.
8803
8804         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
8805         (mmix_gen_compare_reg): Just return a register in the right CC mode.
8806         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
8807         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
8808         (*cmpcc_folded): Rename to...
8809         (*cmpdi_folded): this.
8810         (*cmpcc): Rename to...
8811         (*cmps): ... this.
8812         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
8813         (bCC): Remove.
8814         (cbranchdi4): New.
8815         (cbranchdf4): New.  Handle invalid comparisons here.
8816         * config/mmix/predicates.md (float_comparison_operator): New.
8817
8818         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
8819         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
8820         * config/mn10300/mn10300.md (tst): Delete.
8821         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
8822         Name these patterns and wrap RHS in a compare.
8823         (*cmpsi): Make this pattern private.  Include tst.
8824         (*cmpsf): Make this pattern private.
8825         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
8826         (compare with zero peepholes): Likewise.
8827         (bCC): Remove.
8828         (cbranchsi4, cbranchsf4): New.
8829         (casesi): Use cbranchsi4.
8830
8831         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
8832         hppa_branch_type): Delete.
8833         (return_addr_rtx): Use cbranchsi4.
8834         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
8835         Emit CCFPmode comparison here.
8836         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
8837         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
8838         hppa_branch_type): Delete.
8839         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
8840         (movsicc, movdicc): Remove references to hppa_compare_op0,
8841         hppa_compare_op1 and compare_from_rtx.
8842         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
8843         (casesi): Use cbranchsi4.
8844
8845         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
8846         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
8847         * config/pdp11/pdp11.md (register_or_const0_operand): New.
8848         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
8849         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
8850         (bCC): Delete.
8851         (cbranchdf4, cbranchhi4, cbranchqi4): New.
8852         (*branch, *branch_inverted): New.
8853
8854         * config/picochip/picochip.md (cbranchhi4): Use
8855         ordered_comparison_operator.
8856         (cmphi, bCC): Remove.
8857
8858         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
8859         (trap_comparison_operator): Delete.
8860         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
8861         rs6000_emit_cbranch): Accept mode and operands.
8862         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
8863         rs6000_compare_fp_p): Delete.   
8864         (rs6000_generate_compare): Accept mode and comparison.  Extract code
8865         and op0/op1 from there.  Replace references to rs6000_compare_op0
8866         and rs6000_compare_op1.
8867         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
8868         extract result from passed operands.
8869         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
8870         extract loc from passed operands.
8871         (rs6000_emit_cmove): Likewise.
8872         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
8873         rs6000_compare_fp_p): Delete.
8874         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
8875         (cbranch<GPR>4, cbranch<FP>4): New.
8876         (cstore<mode>4): New.  Consolidate here all choices about when to use
8877         portable or specialized sCC sequences.
8878         (stack_protect_test): Use cbranchsi4.
8879         (conditional_trap): Replace with ctrap<GPR>4.
8880         (conditional trap insn): Replace trap_comparison_operator with
8881         ordered_comparison_operator. 
8882
8883         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
8884         (s390_emit_prologue): Use ctrap.
8885         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
8886         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
8887         New predicates replacing...
8888         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
8889         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
8890         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
8891         (add<mode>cc): Do not use s390_compare_op0/op1.
8892         (s<code>): Change to...
8893         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
8894         (seq): Change to...
8895         (cstorecc4): ... this.  Handle EQ or NE equally.
8896         (*sne): Un-privatize for use in cstorecc4.
8897         (b<code>): Change to...
8898         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
8899         (conditional_trap): Replace with...
8900         (ctrap<GPR>4, ctrap<FP>4): ... these.
8901         (stack_protect): Use cbranchcc4.
8902
8903         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
8904         * config/score/score-protos.h (score_gen_cmp): Delete.
8905         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
8906         (score_block_move-loop): Use cbranchsi4.
8907         * config/score/score.md (cbranchsi4): New.
8908         (cmpsi, bCC): Delete.
8909         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
8910         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
8911         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
8912         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
8913         * config/score/score3.h (score3_gen_cmp): Delete.
8914         * config/score/score7.h (score7_gen_cmp): Delete.
8915
8916         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
8917         (sh_emit_scc_to_t): ... this.  Return void.
8918         (from_compare): Rename to...
8919         (sh_emit_compare_and_branch): ... this.
8920         (sh_emit_compare_and_set): New.
8921         (sh_expand_t_scc): Accept operands.
8922         * config/sh/predicates.md (sh_float_comparison_operator): New.
8923         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
8924         (prepare_scc_operands): Rename to...
8925         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
8926         arguments.
8927         (sh_emit_cheap_store_flag): New.
8928         (sh_emit_set_t_insn): New.
8929         (from_compare): Rename to...
8930         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
8931         handling of TARGET_SH2E floating point to avoid recursive call.
8932         Generate branch here.
8933         (sh_emit_compare_and_set): New.
8934         (sh_expand_t_scc): Get op0/op1 from arguments.
8935         (sh_emit_cheap_store_flag): New.
8936         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
8937         cases.
8938         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
8939         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
8940         (movsicc, movdicc): Do nothing when it recreated operands from
8941         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
8942         prepare_scc_operands (now sh_emit_scc_to_t).
8943         (udivdi3): Use cstoresi4.
8944         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
8945         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
8946         (cbranchint4_media, cbranchfp4_media): New.
8947         (casesi): Use cbranchdi4.
8948         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
8949         Delete.
8950         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
8951         (movnegt): Remove second operand.
8952         (cbranchsf4, cbranchdf4): New.
8953         (stack_protect): Use cbranchdi4/cbranchsi4.
8954
8955         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
8956         (gen_compare_reg): Accept comparison, extract part of it to...
8957         (gen_compare_reg_1): ... this. 
8958         (gen_compare_operator): Delete.
8959         (gen_v9_scc): Accept separate destination, comparison code and arms.
8960         Do not use sparc_compare_op0/sparc_compare_op1.
8961         (emit_scc_insn, emit_conditional_branch_insn): New.
8962         (emit_v9_brxx): Make static.  Remove useless assertion.
8963         (sparc_emit_float_lib_cmp): Return RTL instead of calling
8964         emit_cmp_insn.
8965         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
8966         * config/sparc/sparc-protos.h (gen_compare_reg,
8967         sparc_emit_float_lib_cmp): Adjust prototype.
8968         (emit_scc_insn, emit_conditional_branch_insn): New.
8969         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
8970         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
8971         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
8972         iterators to the top.
8973         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
8974         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
8975         snedi_special_trunc): Delete.
8976         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
8977         and snedi_special_trunc.
8978         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
8979         cbranchdi4, cbranch<F:mode>4): New.
8980         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
8981         here.  Use gen_compare_reg instead of gen_compare_operator.
8982         (conditional_trap): Replace with...
8983         (ctrapsi4, ctrapdi4): ... this.
8984         (stack_protect_test): Use cbranchcc4.
8985
8986         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
8987         argument to rtx.
8988         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
8989         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
8990         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
8991         from operands[0] or operands[3] depending on is_set.
8992         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
8993         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
8994         cmpdf, bCC), sCC: Remove.
8995         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
8996         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
8997         cstoredf4): New.
8998         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
8999         spu_emit_branch_or_set.
9000
9001         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
9002         Add two arguments.
9003         * config/stormy16/stormy16.h (xstormy16_compare_op0,
9004         xstormy16_compare_op1): Delete.
9005         * config/stormy16/stormy16.c (xstormy16_compare_op0,
9006         xstormy16_compare_op1): Delete. 
9007         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
9008         Adjust calls.
9009         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
9010         (cmphi, cmpsi, bCC): Remove.
9011
9012         * config/v850/v850.md (tstsi, cmpsi): Fold into...
9013         (*cmpsi): ... this one.
9014         (cbranchsi4, cstoresi4): New.
9015         (bCC expanders): Delete.
9016         (sCC insns): Fold into...
9017         (*setcc): ... this one.
9018         (casesi): Do not use gen_cmpsi and gen_bgtu. 
9019         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
9020         (movsicc): Simplify.
9021         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
9022
9023         * config/vax/vax-protos.h (cond_name): New.
9024         (vax_output_conditional_branch): Remove.
9025         * config/vax/vax.c (cond_name): New.
9026         (vax_output_conditional_branch): Remove.
9027         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
9028         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
9029         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
9030         (bit<VAXint>): Wrap source with (compare).
9031         (b<code> and following unnamed pattern): Rename to *branch and
9032         *branch_reversed.  Change macroization to match_operator.
9033         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
9034
9035         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
9036         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
9037         Change last argument to machine_mode.
9038         (xtensa_expand_scc): Add machine_mode argument.
9039         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
9040         (gen_conditional_move, xtensa_expand_conditional_branch,
9041         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
9042         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
9043         Adjust operand numbers.
9044         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
9045         Delete.
9046         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
9047         (cmpsi, cmpsf, b<code>, s<code>): Delete.
9048         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
9049
9050 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
9051
9052         * optabs.c (prepare_cmp_insn): Temporarily disable test that
9053         causes spurious differences between trunk and cond-optab branch.
9054
9055 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9056
9057         PR target/37137
9058         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
9059
9060 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9061
9062         * tree.c (iterative_hash_pointer): Delete.
9063         (iterative_hash_expr): Short-circuit handling of NULL pointer.
9064         Hash UIDs and versions of SSA names.  Don't special-case built-in
9065         function declarations.
9066
9067 2009-05-11  Ian Lance Taylor  <iant@google.com>
9068
9069         PR bootstrap/40103
9070         * graphite.c: Force -Wc++-compat to only be a warning before
9071         #including "cloog/cloog.h".
9072
9073 2009-05-11  Martin Jambor  <mjambor@suse.cz>
9074
9075         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
9076         
9077 2009-05-11  Jan Hubicka  <jh@suse.cz>
9078
9079         * tree-ssa-loop-ivcanon.c: Include target.h
9080         (struct loop_size): new structure.
9081         (constant_after_peeling): New predicate.
9082         (tree_estimate_loop_size): New function.
9083         (estimated_unrolled_size): Rewrite for new estimates.
9084         (try_unroll_loop_completely): Use new estimates.
9085         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
9086
9087 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9088
9089         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
9090         libcpp interface change.
9091         (spu_macro_to_expand): Likewise.
9092
9093 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
9094
9095         PR tree-optimization/40026
9096         * gimplify.c (gimplify_init_constructor): Change initial conditional
9097         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
9098         optimize_compound_literals_in_ctor.
9099
9100 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
9101
9102         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
9103         New devices.
9104         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
9105
9106 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9107
9108         * tree-vect-data-refs.c (vect_analyze_group_access): Use
9109         HOST_WIDE_INT for gap.
9110
9111 2009-05-11  Ira Rosen  <irar@il.ibm.com>
9112
9113         PR tree-optimization/40074
9114         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
9115         account in group size and step comparison.
9116
9117 2009-05-11  Richard Guenther  <rguenther@suse.de>
9118
9119         * passes.c (init_optimization_passes): Strip now incorrect comment.
9120         (execute_function_todo): Do not set PROP_alias.
9121         * tree-pass.h (PROP_alias): Remove.
9122         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
9123         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
9124         * tree-nrv.c (pass_return_slot): Likewise.
9125         * tree-object-size.c (pass_object_sizes): Likewise.
9126         * tree-ssa-dom.c (pass_dominator): Likewise.
9127         (pass_phi_only_cprop): Likewise.
9128         * tree-ssa-dse.c (pass_dse): Likewise.
9129         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9130         (pass_cselim): Likewise.
9131         * tree-ssa-pre.c (pass_pre): Likewise.
9132         (pass_fre): Likewise.
9133         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9134         * tree-ssa-sink.c (pass_sink_code): Likewise.
9135         * tree-stdarg.c (pass_stdarg): Likewise.
9136         * tree-tailcall.c (pass_tail_calls): Likewise.
9137         * tree-vrp.c (pass_vrp): Likewise.
9138
9139 2009-05-10  Ian Lance Taylor  <iant@google.com>
9140
9141         * basic-block.h (enum profile_status): Break out of struct
9142         control_flow_graph.
9143         * cgraph.h (struct inline_summary): Break out of struct
9144         cgraph_local_info.
9145         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
9146         of struct cgraph_order_sort.
9147         * combine.c (enum undo_kind): New enum, broken out of struct undo.
9148         * cse.c (struct branch_path): Break out of struct
9149         cse_basic_block_data.
9150         * except.h (enum eh_region_type): Break out of struct eh_region.
9151         * gcc.c (enum add_del): Break out of struct modify_target.
9152         * genrecog.c (enum decision_type): Break out of struct decision_test.
9153         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
9154         ggc_pch_data.
9155         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
9156         * regmove.c (enum match_use): New enum, broken out of struct match.
9157         * sched-int.h (enum post_call_group): New enum, broken out of
9158         struct deps.
9159         (struct deps_reg): Break out of struct deps.
9160         * target.h (struct asm_int_op): Break out of struct gcc_target.
9161         * tree-eh.c (struct goto_queue_node): Break out of struct
9162         leh_tf_state.
9163         * tree-inline.h (enum copy_body_cge_which): Break out of
9164         copy_body_data.
9165         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
9166
9167         * c-decl.c (in_struct, struct_types): New static variables.
9168         (pushtag): Add loc parameter.  Change all callers.
9169         (lookup_tag): Add ploc parameter.  Change all callers.
9170         (check_compound_literal_type): New function.
9171         (parser_xref_tag): Add loc parameter.  Change all callers.  If
9172         -Wc++-compat, warn about struct/union/enum types defined within a
9173         struct or union.
9174         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
9175         and loc parameters.  Change all callers.  Change error calls to
9176         error_at, using loc.  For a redefinition, if the location of the
9177         original definition is known, report it.  Set in_struct and
9178         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
9179         (finish_struct): Add new parameters enclosing_in_struct and
9180         enclosing_struct_types.  Change all callers.  Set
9181         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
9182         in the struct.  If in a struct, add this struct to struct_types.
9183         (start_enum): Add loc parameter.  Change all callers.  Use
9184         error_at for errors, using loc.  For a redefinition, if the
9185         location of the original definition is known, report it.  If in a
9186         struct, add this enum type to struct_types.  If -Wc++-compat warn
9187         if in sizeof, typeof, or alignof.
9188         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
9189         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
9190         (c_parser_enum_specifier): Get enum location for start_enum.
9191         (c_parser_struct_or_union_specifier): Get struct location for
9192         start_struct.  Save in_struct and struct_types status between
9193         start_struct and finish_struct.
9194         (c_parser_cast_expression): Get location of cast.
9195         (c_parser_alignof_expression): Get location of type.
9196         (c_parser_postfix_expression): Likewise.
9197         (c_parser_postfix_expression_after_paren_type): Add type_loc
9198         parameter.  Change all callers.  Call check_compound_literal_type.
9199         Use type_loc for error about variable size type.
9200         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
9201         of an enum constant from an enum type defined in a struct or union.
9202         (c_cast_expr): Add loc parameter.  Change all callers.  If
9203         -Wc++-compat, warn about defining a type in a cast.
9204         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
9205         (start_enum, start_struct, finish_struct): Update declarations.
9206         (parser_xref_tag, c_cast_expr): Update declarations.
9207         (check_compound_literal_type): Declare.
9208
9209 2009-05-11  Ben Elliston  <bje@au.ibm.com>
9210
9211         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
9212         for recent libcpp interface change.
9213         (rs6000_macro_to_expand): Likewise.
9214
9215 2009-05-10  Michael Matz  <matz@suse.de>
9216
9217         PR target/40031
9218         * config/arm/arm.c (require_pic_register): Emit on entry edge,
9219         not at entry of function.
9220
9221 2009-05-10  Richard Guenther  <rguenther@suse.de>
9222
9223         PR tree-optimization/40081
9224         Revert
9225         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9226         using the main variant of the element type.  Do not fiddle with
9227         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9228
9229         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
9230         structs with volatile fields.
9231
9232 2009-05-10  Jan Hubicka  <jh@suse.cz>
9233
9234         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
9235         (estimate_move_cost): Assert that it does not get called for
9236         VOID_TYPE_P.
9237         (estimate_num_insns): Skip VOID types in argument handling.
9238         (optimize_inline_calls): Delete unreachable blocks and verify that
9239         callgraph is valid.
9240
9241 2009-05-10  Jan Hubicka  <jh@suse.cz>
9242
9243         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
9244         * cgraph.c (cgraph_mark_address_taken_node): New function.
9245         (dump_cgraph_node): Dump new flag.
9246         * cgraph.h (struct cgraph_node): Add address_taken.
9247         (cgraph_mark_address_taken_node): New function.
9248         * ipa.c (cgraph_postorder): Prioritize functions with address taken
9249         since new direct calls can be born.
9250
9251 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9252
9253         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
9254         tok->val.node.node.
9255
9256 2009-05-10  Jan Hubicka  <jh@suse.cz>
9257
9258         PR middle-end/40084
9259         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
9260         argument; rewrite.
9261         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
9262         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
9263         * tree-inline.c (copy_bb): Set frequency correctly.
9264         (fold_marked_statements): Update call to
9265         cgraph_update_edges_for_call_stmt.
9266
9267 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9268
9269         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
9270         identifiers in diagnostics.
9271         * config/arm/arm.c (arm_handle_fndecl_attribute,
9272         arm_handle_isr_attribute): Likewise.
9273         * config/avr/avr.c (avr_handle_progmem_attribute,
9274         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
9275         * config/bfin/bfin.c (handle_int_attribute,
9276         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
9277         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
9278         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
9279         Likewise.
9280         * config/darwin.c (darwin_handle_kext_attribute,
9281         darwin_handle_weak_import_attribute): Likewise.
9282         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
9283         h8300_handle_eightbit_data_attribute,
9284         h8300_handle_tiny_data_attribute): Likewise.
9285         * config/i386/i386.c (ix86_handle_cconv_attribute,
9286         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
9287         * config/i386/winnt.c (ix86_handle_shared_attribute,
9288         ix86_handle_selectany_attribute): Likewise.
9289         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
9290         * config/m32c/m32c.c (function_vector_handler): Likewise.
9291         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
9292         m68hc11_handle_fntype_attribute): Likewise.
9293         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
9294         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
9295         * config/mips/mips.c (mips_insert_attributes,
9296         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
9297         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
9298         rs6000_handle_struct_attribute): Likewise.
9299         * config/sh/sh.c (sh_insert_attributes,
9300         sh_handle_resbank_handler_attribute,
9301         sh_handle_interrupt_handler_attribute,
9302         sh2a_handle_function_vector_handler_attribute,
9303         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
9304         Likewise.
9305         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
9306         * config/spu/spu.c (spu_handle_fndecl_attribute,
9307         spu_handle_vector_attribute): Likewise.
9308         * config/stormy16/stormy16.c
9309         (xstormy16_handle_interrupt_attribute): Likewise.
9310         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
9311         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
9312
9313 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9314
9315         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
9316         (pp_translate_identifiers): New.
9317         (pp_identifier): Only conditionally translate identifier to locale
9318         character set.
9319         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
9320         (pp_base_tree_identifier): Only conditionally translate identifier
9321         to locale character set.
9322         * c-pretty-print.c (M_): Define.
9323         (pp_c_type_specifier, pp_c_primary_expression): Mark English
9324         fragments for conditional translation with M_.
9325         * tree-pretty-print.c (maybe_init_pretty_print): Disable
9326         identifier translation.
9327
9328 2009-05-10  Richard Guenther  <rguenther@suse.de>
9329
9330         PR tree-optimization/40081
9331         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9332         using the main variant of the element type.  Do not fiddle with
9333         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9334
9335 2009-05-09  Jan Hubicka  <jh@suse.cz>
9336
9337         PR middle-end/40080
9338         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
9339         indirect calls; verify cgraph afterwards.
9340
9341 2009-05-09  Jan Hubicka  <jh@suse.cz>
9342
9343         PR bootstrap/40082
9344         * ipa.c (update_inlined_to_pointer): New function.
9345         (cgraph_remove_unreachable_nodes): Use it.
9346
9347 2009-05-09  Jan Hubicka  <jh@suse.cz>
9348
9349         * tree-eh.c (struct leh_state): Remove prev_try.
9350         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
9351         not track prev_try.
9352         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
9353         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
9354         remove_eh_handler_and_replace, foreach_reachable_handler,
9355         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
9356         * except.h (struct eh_region): Remove eh_region_u_cleanup.
9357         (gen_eh_region_cleanup): Update prototype.
9358
9359 2009-05-09  Jan Hubicka  <jh@suse.cz>
9360
9361         PR middle-end/40043
9362         * except.c (copy_eh_region): Always set prev_try.
9363         (redirect_eh_edge_to_label): Find outer try.
9364         (foreach_reachable_handler): When looking for prev try
9365         handle case where previous try is not going to be taken.
9366
9367 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
9368
9369         PR tree-optimization/40049
9370         * tree-vect-stmts.c (vectorizable_operation): If the machine has
9371         only vector/vector shifts, convert the type of the constant to the
9372         appropriate type to avoid building incorrect trees, which
9373         eventually have problems with garbage collection.
9374
9375 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
9376
9377         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
9378         -1 for complex floating-point types if honoring signed zeros.
9379
9380 2009-05-08  Jan Hubicka  <jh@suse.cz>
9381
9382         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
9383         argument; handle correctly when profile is absent.
9384         (build_cgraph_edges): Update.
9385         (rebuild_cgraph_edges): Update.
9386         * cgraph.c: Do not include varray.h.
9387         (cgraph_set_call_stmt_including_clones): New function.
9388         (cgraph_create_edge_including_clones): Likewise
9389         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9390         (cgraph_update_edges_for_call_stmt): Handle clones.
9391         (cgraph_remove_node): Handle clone tree.
9392         (cgraph_remove_node_and_inline_clones): New function.
9393         (dump_cgraph_node): Dump clone tree.
9394         (cgraph_clone_node): Handle clone tree.
9395         (clone_function_name): Bring here from tree-inline.c.
9396         (cgraph_create_virtual_clone): New function.
9397         * cgraph.h (ipa_replace_map): Move here from ipa.h.
9398         (cgraph_clone_info): New function.
9399         (strut cgraph_node): Add clone_info and new clone tree pointers.
9400         (cgraph_remove_node_and_inline_clones,
9401         cgraph_set_call_stmt_including_clones,
9402         cgraph_create_edge_including_clones,
9403         cgraph_create_virtual_clone): Declare.
9404         (cgraph_function_versioning): Use VEC argument.
9405         (compute_call_stmt_bb_frequency): Update prototype.
9406         (cgraph_materialize_all_clones): New function.
9407         * ipa-cp.c (ipcp_update_cloned_node): Remove.
9408         (ipcp_create_replace_map): Update to VECtors.
9409         (ipcp_update_callgraph): Use virtual clones.
9410         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
9411         (ipcp_update_profiling): Do not update local profiling.
9412         (ipcp_insert_stage): Use VECtors and virtual clones.
9413         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
9414         (clone_of_p): New function.
9415         (cgraph_preserve_function_body_p): Use clone tree.
9416         (cgraph_optimize): Materialize clones.
9417         (cgraph_function_versioning): Update for VECtors.
9418         (save_inline_function_body): Use clone tree.
9419         (cgraph_materialize_clone): New function.
9420         (cgraph_materialize_all_clones): Likewise.
9421         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
9422         * ipa.c: Include gimple.h.
9423         (cgraph_remove_unreachable_nodes): Use clone tree.
9424         * ipa-prop.c (ipa_note_param_call): Update call to
9425         compute_call_stmt_bb_frequencycall.
9426         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
9427         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9428         (copy_bb): Handle updating of clone tree; add new edge when new call
9429         appears.
9430         (expand_call_inline): Be strict about every call having edge.
9431         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
9432         (delete_unreachable_blocks_update_callgraph): New function.
9433         (tree_function_versioning): Use VECtors; always remove unreachable
9434         blocks and fold conditionals.
9435         * tree-inline.h: Do not include varray.h.
9436         (tree_function_versioning): Remove.
9437         * Makefile.in (GTFILES): Remove tree-inline.c
9438         * passes.c (do_per_function): Do only functions having body.
9439         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
9440         tree.
9441
9442 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9443             Andrew Morrow  <acm@google.com>
9444
9445         PR c/36892
9446         * c-common.c (c_common_attribute_table): Permit deprecated
9447         attribute to take an optional argument.
9448         (handle_deprecated_attribute): If the optional argument to
9449         __attribute__((deprecated)) is not a string ignore the attribute
9450         and emit a warning.
9451
9452         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
9453         * c-typeck.c (build_component_ref): Likewise.
9454         (build_external_ref): Likewise.
9455
9456         * toplev.c (warn_deprecated_use): Add an attribute argument.
9457         Emit the message associated with __attribute__((deprecated)).
9458
9459         * toplev.h (warn_deprecated_use): Updated.
9460
9461         * doc/extend.texi: Document new optional parameter to
9462         __attribute__((deprecated))
9463
9464 2009-05-08  Michael Eager <eager@eagercon.com>
9465
9466         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
9467         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
9468
9469 2009-05-08  Richard Guenther  <rguenther@suse.de>
9470
9471         PR tree-optimization/40062
9472         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
9473         Avoid exponential behavior.
9474
9475 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9476
9477         PR rtl-optimization/33928
9478         PR 26854
9479         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
9480         process_uses, build_single_def_use_links): New.
9481         (update_df): Update use_def_ref.
9482         (forward_propagate_into): Use get_def_for_use instead of use-def
9483         chains.
9484         (fwprop_init): Call build_single_def_use_links and let it initialize
9485         dataflow.
9486         (fwprop_done): Free use_def_ref.
9487         (fwprop_addr): Eliminate duplicate call to df_set_flags.
9488         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
9489         df_rd_simulate_one_insn): New.
9490         (df_rd_bb_local_compute_process_def): Update head comment.
9491         (df_chain_create_bb): Use the new RD simulation functions.
9492         * df.h (df_rd_simulate_artificial_defs_at_top, 
9493         df_rd_simulate_one_insn): New.
9494         * opts.c (decode_options): Enable fwprop at -O1.
9495         * doc/invoke.texi (-fforward-propagate): Document this.
9496
9497 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
9498
9499         PR c/24581
9500         * c-typeck.c (build_binary_op): Handle arithmetic between one real
9501         and one complex operand specially.
9502         * tree-complex.c (some_nonzerop): Do not identify a real value as
9503         zero if flag_signed_zeros.
9504
9505 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9506
9507         PR rtl-optimization/33928
9508         * loop-invariant.c (record_use): Fix && vs. || mishap.
9509
9510 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9511
9512         PR rtl-optimization/33928
9513         * loop-invariant.c (struct use): Add addr_use_p.
9514         (struct def): Add n_addr_uses.
9515         (struct invariant): Add cheap_address.
9516         (create_new_invariant): Set cheap_address.
9517         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
9518         (record_uses): Pass df_ref to record_use.
9519         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
9520         used only as such.
9521
9522 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9523
9524         * config/sh/sh.c: Do not include c-pragma.h.
9525
9526 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9527
9528         * config/spu/spu.c: Remove include of c-common.h.
9529
9530 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
9531
9532         PR c/39037
9533         * c-common.h (mark_valid_location_for_stdc_pragma,
9534         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
9535         clear_float_const_decimal64, float_const_decimal64_p): New.
9536         * c.opt (Wunsuffixed-float-constants): New.
9537         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
9538         unsuffixed float constant, handle new warning.
9539         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
9540         * c-decl.c (c_scope): New flag float_const_decimal64.
9541         (set_float_const_decimal64, clear_float_const_decimal64,
9542         float_const_decimal64_p): New.
9543         (push_scope): Set new flag.
9544         * c-parser.c (c_parser_translation_unit): Mark when it's valid
9545         to use STDC pragmas.
9546         (c_parser_external_declaration): Ditto.
9547         (c_parser_compound_statement_nostart): Ditto.
9548         * c-pragma.c (valid_location_for_stdc_pragma,
9549         mark_valid_location_for_stdc_pragma,
9550         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
9551         handle_pragma_float_const_decimal64): New.
9552         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
9553         * cp/semantics.c (valid_location_for_stdc_pragma_p,
9554         set_float_const_decimal64, clear_float_const_decimal64,
9555         float_const_decimal64_p): New dummy functions.
9556         * doc/extend.texi (Decimal Float): Remove statement that the
9557         pragma, and suffix for double constants, are not supported.
9558         * doc/invoke.texi (Warning Options): List new option.
9559         (-Wunsuffixed-float-constants): New.
9560
9561 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
9562
9563         * config/i386/i386.c: Do not include c-common.h.
9564
9565 2009-05-07  Mark Heffernan  <meheff@google.com>
9566
9567         * doc/invoke.texi (Debugging Options): Document change of debugging
9568         dump location.
9569         * opts.c (decode_options): Make dump_base_name relative to
9570         aux_base_name directory.
9571
9572 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
9573
9574         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
9575         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
9576
9577 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
9578
9579         * Makefile.in (install-plugin): Simplify a bit.
9580
9581 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
9582
9583         * Makefile.in (OBJS-common): Add regcprop.o.
9584         (regcprop.o): New.
9585         * timevar.def (TV_CPROP_REGISTERS): New.
9586         * regrename.c (regrename_optimize): Return 0.
9587         (rest_of_handle_regrename): Delete.
9588         (pass_rename_registers): Point to regrename_optimize.
9589         (struct value_data_entry, struct value_data, 
9590         kill_value_one_regno, kill_value_regno, kill_value,
9591         set_value_regno, init_value_data, kill_clobbered_value,
9592         kill_set_value, kill_autoinc_value, copy_value,
9593         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
9594         replace_oldest_value_reg, replace_oldest_value_addr,
9595         replace_oldest_value_mem, copyprop_hardreg_forward_1,
9596         debug_value_data, validate_value_data): Move...
9597         * regcprop.c: ... here.
9598         (rest_of_handle_cprop): Delete.
9599         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
9600
9601 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
9602
9603         PR middle-end/40057
9604         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
9605         GEN_INT for 1 << bitnum.
9606         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
9607         build_int_cst_type.
9608
9609 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
9610
9611         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
9612         Remove wrong description of "nand" operation.
9613
9614 2009-05-06  Richard Guenther  <rguenther@suse.de>
9615             Adam Nemet  <anemet@caviumnetworks.com>
9616
9617         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
9618         comment.  Add that if LHS is not a gimple register, then RHS1 has
9619         to be a single object (GIMPLE_SINGLE_RHS).
9620
9621 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
9622
9623         * expr.c (get_def_for_expr): Move it up in the file.
9624         (store_field): When expanding a bit-field store, look at the
9625         defining gimple stmt for the masking conversion.
9626
9627 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
9628
9629         PR middle-end/39986
9630         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
9631         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
9632         32-bit memcpy into long.
9633
9634 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
9635
9636         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
9637         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
9638         new_reg_loc_descr.
9639         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
9640         instead of appending DW_OP_deref*.
9641
9642 2009-05-06  Michael Matz  <matz@suse.de>
9643
9644         PR middle-end/40021
9645         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
9646         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
9647
9648 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
9649
9650         * Makefile.in (install-plugin): Fix srcdir handling.
9651
9652 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
9653
9654         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
9655         when processing for not_regs_needed bitmap.
9656         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
9657         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
9658         handling it for rhs. 
9659
9660 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9661
9662         * config/i386/i386.md (unnamed inc/dec peephole): Use
9663         optimize_insn_for_size_p instead of optimize_size.
9664         * config/i386/predicates.md (incdec_operand): Likewise.
9665         (aligned_operand): Likewise.
9666         * config/i386/sse.md (divv8sf3): Likewise.
9667         (sqrtv8sf2): Likewise.
9668
9669 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9670
9671         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
9672
9673         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
9674
9675 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9676
9677         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
9678         ssemodesuffixf2c with avxmodesuffixf2c.
9679
9680 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
9681
9682         PR c/40032
9683         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
9684
9685 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
9686
9687         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
9688         (struct tree_base): Adjust spacing for 8 bit boundaries.
9689         (struct tree_decl_common): Add decl_by_reference_flag bit.
9690         (DECL_BY_REFERENCE): Adjust.
9691         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
9692         print DECL_BY_REFERENCE bit.
9693         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
9694         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
9695         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
9696         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
9697         unconditionally.
9698
9699         PR middle-end/39666
9700         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
9701         range of the type, but default label is missing, add it with one
9702         of the existing labels instead of adding a new label for it.
9703
9704 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
9705
9706         * dwarf.h: Remove.
9707
9708 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
9709
9710         * Makefile.in (enable_plugin, plugin_includedir): New.
9711         (install): Depend on install-plugin.
9712         (PLUGIN_HEADERS): New.
9713         (install-plugin): New.
9714         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
9715
9716 2009-05-05  Richard Guenther  <rguenther@suse.de>
9717
9718         PR tree-optimization/40022
9719         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
9720         the only vuse.
9721         (phivn_valid_p): Fix tuplification error, simplify.
9722         (phiprop_insert_phi): Add dumps.
9723         (propagate_with_phi): Simplify.
9724
9725 2009-05-05  Richard Guenther  <rguenther@suse.de>
9726
9727         PR middle-end/40023
9728         * builtins.c (gimplify_va_arg_expr): Properly build the address.
9729
9730 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
9731
9732         * tree.h (strip_float_extensions): Remove duplicate declaration.
9733         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
9734         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
9735         block_ultimate_origin): Rearrange the declarations line to match the
9736         comment that indicates the .c file which the functions are defined.
9737         (dwarf2out_*, set_decl_rtl): Add comment.
9738         (get_base_address): Adjust comment.
9739         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
9740         declarations line and add comment.
9741         (is_builtin_name): Add blank after function name, for clarity.
9742
9743 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
9744
9745         * attribs.c (decl_attributes): Use %qE for identifiers in
9746         diagnostics.
9747         * cgraphunit.c (verify_cgraph_node): Translate function names to
9748         locale character set in diagnostics.
9749         * coverage.c (get_coverage_counts): Use %qE for identifiers in
9750         diagnostics.
9751         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
9752         Document that functions are named in UTF-8.
9753         * expr.c (expand_expr_real_1): Translate function names to locale
9754         character set in diagnostics.
9755         * gimplify.c (omp_notice_variable, omp_is_private,
9756         gimplify_scan_omp_clauses): Use %qE for identifiers in
9757         diagnostics.
9758         * langhooks.c (lhd_print_error_function): Translate function names
9759         to locale character set.
9760         * langhooks.h (decl_printable_name): Document that return value is
9761         in internal character set.
9762         * stmt.c: Include pretty-print.h
9763         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
9764         diagnostics.
9765         (resolve_operand_name_1): Translate named operand name to locale
9766         character set.
9767         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
9768         diagnostics.
9769         * toplev.c (announce_function): Translate function names to locale
9770         character set.
9771         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
9772         (default_tree_printer): Use pp_identifier or translate identifiers
9773         to locale character set.  Mark "<anonymous>" for translation.
9774         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
9775         for identifiers in diagnostics.
9776         * tree.c (handle_dll_attribute): Use %qE for identifiers in
9777         diagnostics.
9778         * varasm.c (output_constructor): Use %qE for identifiers in
9779         diagnostics.
9780
9781 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
9782
9783         * configure.ac: use ` ` instead of $()
9784         * configure: Regenerate.
9785
9786 2009-05-05  Ben Elliston  <bje@au.ibm.com>
9787
9788         * config/pa/linux-atomic.c: Eliminate conditional include of
9789         errno.h on non-LP64 systems to simplify build requirements.
9790
9791 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
9792
9793         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
9794         diagnostics.
9795         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
9796         and pass value to identifier_to_locale.
9797         (warn_variable_length_array): Make name a tree.
9798         (grokdeclarator): Separate diagnostic texts for named and unnamed
9799         declarators.  Use %qE for named declarators.
9800         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
9801         diagnostics.
9802         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
9803         identifiers in diagnostics.
9804         * c-typeck.c (push_member_name, start_init): Pass identifiers to
9805         identifier_to_locale.  Mark "anonymous" strings for translation.
9806
9807 2009-05-04  Michael Eager <eager@eagercon.com>
9808
9809         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
9810         address for DImode/DFmode only if double-precision FP regs.
9811
9812 2009-05-04  Michael Eager <eager@eagercon.com>
9813
9814         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
9815         TARGET_SINGLE_FLOAT check.
9816
9817 2009-05-04  Michael Eager <eager@eagercon.com>
9818
9819         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
9820
9821 2009-05-04  Michael Eager <eager@eagercon.com>
9822
9823         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
9824         * config/rs6000/t-xilinx: New
9825
9826 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
9827
9828         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
9829         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
9830         * gcc/explow.c (memory_address): Use target hook.
9831         * gcc/targhooks.c (default_legitimize_address): New.
9832         * gcc/targhooks.h (default_legitimize_address): New.
9833         * gcc/target.h (legitimize_address): New.
9834         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
9835         (TARGET_INITIALIZER): Include it.
9836         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
9837
9838         * config/bfin/bfin-protos.h (legitimize_address): Remove.
9839         * config/bfin/bfin.c (legitimize_address): Remove.
9840         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
9841         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
9842         Remove.
9843         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
9844         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
9845
9846         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
9847         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
9848         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
9849         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
9850         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
9851         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
9852         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
9853         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
9854         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
9855         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
9856         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
9857         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
9858         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
9859         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
9860         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
9861         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
9862         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
9863         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
9864         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
9865         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
9866         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
9867         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
9868         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
9869
9870         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
9871         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
9872         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
9873         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
9874         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
9875         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
9876         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
9877         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
9878         (thumb_legitimize_address): Delete.
9879         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
9880         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
9881         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
9882         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
9883         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
9884         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
9885         Delete.
9886         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
9887         Delete.
9888
9889         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
9890         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
9891         * config/m32r/m32r.c (m32r_legitimize_address): New.
9892         * config/m68k/m68k.c (m68k_legitimize_address): New.
9893         * config/score/score.c (score_legitimize_address): Standardize.
9894         * config/score/score3.c (score3_legitimize_address): Standardize.
9895         * config/score/score3.h (score3_legitimize_address): Adjust.
9896         * config/score/score7.c (score7_legitimize_address): Standardize.
9897         * config/score/score7.h (score7_legitimize_address): Adjust.
9898         * config/sh/sh.c (sh_legitimize_address): New.
9899         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
9900
9901         * gcc/config/s390/s390.c (legitimize_address): Rename to...
9902         (s390_legitimize_address): ... this.
9903         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
9904         (sparc_legitimize_address): ... this.
9905         * gcc/config/i386/i386.c (legitimize_address): Rename to...
9906         (ix86_legitimize_address): ... this.
9907         * gcc/config/avr/avr.c (legitimize_address): Rename to...
9908         (avr_legitimize_address): ... this.
9909         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
9910         (mn10300_legitimize_address): ... this.
9911         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
9912         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
9913         (alpha_expand_mov): Adjust call.
9914
9915         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
9916         * config/spu/spu.c (spu_legitimize_address): Likewise.
9917         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
9918         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
9919
9920 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
9921
9922         * intl.c (locale_encoding, locale_utf8): New.
9923         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
9924         * intl.h (locale_encoding, locale_utf8): Declare.
9925         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
9926         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
9927         New.
9928         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
9929         argument.
9930         (pp_tree_identifier): Define to call pp_base_tree_identifier.
9931         (pp_base_tree_identifier): Declare as function.
9932         (identifier_to_locale): Declare.
9933         * Makefile.in (pretty-print.o): Update dependencies.
9934         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
9935
9936 2009-05-04  Richard Guenther  <rguenther@suse.de>
9937
9938         PR middle-end/40015
9939         * builtins.c (fold_builtin_memory_op): Do not decay to element
9940         type if the size matches the whole array.
9941
9942 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
9943
9944         * expmed.c (synth_mult): When trying out a shift, pass the result
9945         of a signed shift.
9946
9947 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
9948
9949         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
9950         (shiftsub1_cost): New.
9951         (init_expmed): Compute shiftsub1_cost.
9952         (synth_mult): Optimize multiplications by constants of the form
9953         -(2^^m-1) for some constant positive integer m.
9954
9955 2009-05-03  Richard Guenther  <rguenther@suse.de>
9956
9957         PR c/39983
9958         * c-typeck.c (array_to_pointer_conversion): Do not built
9959         ADDR_EXPRs of arrays of pointer-to-element type.
9960         * c-gimplify.c (c_gimplify_expr): Revert change fixing
9961         up wrong ADDR_EXPRs after-the-fact.
9962         * c-common.c (strict_aliasing_warning): Strip pointer
9963         conversions for obtaining the original type.
9964         * builtins.c (fold_builtin_memset): Handle array types.
9965         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
9966         and array types
9967
9968 2009-05-03  Richard Guenther  <rguenther@suse.de>
9969
9970         PR middle-end/23329
9971         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
9972         Do not lose casts from array types with unknown extent to array
9973         types with known extent.
9974         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
9975         alias set compatibility.
9976
9977 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9978
9979         * flags.h (extra_warnings): Delete.
9980         * toplev.c (process_options): Handle Wuninitialized here.
9981         * opts.c (extra_warnings): Delete.
9982         (set_Wextra): Delete.
9983         (common_handle_option): -Wextra can be handled automatically.
9984         * c-opts.c (c_common_handle_option): Delete obsolete code.
9985         (c_common_post_options): Simplify comment.
9986         * common.opt (W): Add Var.
9987         (Wextra): Add Var.
9988         (Wuninitialized): Initialize to -1.
9989
9990 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
9991             Richard Guenther  <rguenther@suse.de>
9992
9993         * expr.c (get_def_for_expr): New function.
9994         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
9995         SSA rather than trees.
9996         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
9997         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
9998         
9999 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
10000
10001         * c-common.c (reswords): Add _Imaginary.
10002         * c-common.c (enum rid): Add RID_IMAGINARY.
10003
10004 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
10005
10006         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
10007         Patch by Richard Guenther.
10008
10009 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
10010
10011         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
10012         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10013         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
10014         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
10015         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
10016         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
10017         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
10018         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
10019         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
10020         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
10021         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
10022         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
10023         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
10024         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
10025         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
10026         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
10027         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
10028         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
10029
10030 2009-05-02  Richard Guenther  <rguenther@suse.de>
10031
10032         PR tree-optimization/39940
10033         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
10034         doing so.
10035
10036 2009-05-02  Richard Guenther  <rguenther@suse.de>
10037
10038         PR middle-end/40001
10039         * tree-ssa.c (execute_update_addresses_taken): Properly check
10040         if we can mark a variable DECL_GIMPLE_REG_P.
10041         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
10042         back to the end of the function.
10043         (is_gimple_reg_type): Remove complex type special casing.
10044         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
10045         if not optimizing.
10046
10047 2009-05-02  Ben Elliston  <bje@au.ibm.com>
10048
10049         * doc/collect2.texi (Collect2): Document search path behaviour
10050         when configured with --with-ld.
10051
10052 2009-05-02  Jan Hubicka  <jh@suse.cz>
10053
10054         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
10055         parameter; update callers.
10056         (coalesce_cost_edge): EH edges are costier because they needs
10057         splitting even if not critical and even more costier when there are
10058         multiple EH predecestors.
10059
10060 2009-05-02  Jan Hubicka  <jh@suse.cz>
10061
10062         * except.c (remove_eh_handler_and_replace): Handle updating after
10063         removing TRY blocks.
10064
10065 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
10066
10067         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
10068
10069 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
10070
10071         * varasm.c: Do not include c-pragma.h.
10072         * attribs.c: Do not incude c-common.h.
10073
10074 2009-05-01  Michael Matz  <matz@suse.de>
10075
10076         * calls.c (initialize_argument_information): Handle SSA names like
10077         decls with a non MEM_P DECL_RTL.
10078
10079 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10080
10081         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
10082         * ipa-utils.c: Likewise.
10083         * ipa-type-escape.c: Likewise.
10084         * cgraphunit.c Do not include c-common.h.
10085         * ipa-pure-const.c: Likewise.
10086         * tree-if-conv.c: Likewise.
10087         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
10088         * ipa-struct-reorg.c: Likewise.
10089         * tree-nomudflap.c: Likewise.
10090         * tree-ssa-structalias.c: Likewise.
10091
10092 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10093
10094         * store-motion.c: Many cleanups to make this pass a first-class
10095         citizen instead of an appendix to gcse load motion.  Add TODO list
10096         to make this pass faster/cleaner/better.
10097
10098         (struct ls_expr): Post gcse.c-split cleanups.
10099         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
10100         "stores" field to "avail_stores".
10101         (pre_ldst_mems): Rename to store_motion_mems.
10102         (pre_ldst_table): Rename to store_motion_mems_table.
10103         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
10104         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
10105         (ldst_entry): Rename to st_expr_entry, update users.
10106         (free_ldst_entry): Rename to free_st_expr_entry, update users.
10107         (free_ldst_mems): Rename to free_store_motion_mems, update users.
10108         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
10109         update caller.
10110         (first_ls_expr): Rename to first_st_expr, update users.
10111         (next_ls_expr): Rename to next_st_expr, update users.
10112         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
10113         fields properly for store motion instead of names inherited from load
10114         motion in gcse.c.
10115         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
10116         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
10117         are done with it.
10118
10119         (ae_kill): Rename to st_kill, update users.
10120         (ae_gen): Rename to st_avloc, update users.
10121         (transp): Rename to st_transp, update users.
10122         (pre_insert_map): Rename to st_insert_map, update users.
10123         (pre_delete_map): Rename to st_delete_map, update users.
10124         (insert_store, build_store_vectors, free_store_memory,
10125         one_store_motion_pass): Update for abovementioned changes.
10126
10127         (gcse_subst_count, gcse_create_count): Remove.
10128         (one_store_motion_pass): New statistics counters "n_stores_deleted"
10129         and "n_stores_created", local variables.
10130
10131         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
10132         use for_each_rtx.
10133
10134         (regvec, compute_store_table_current_insn): Remove.
10135         (reg_set_info, reg_clear_last_set): Remove.
10136         (compute_store_table): Use DF caches instead of local dataflow
10137         solvers.
10138
10139 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
10140
10141         * c-objc-common.c (c_tree_printer): Print identifiers with
10142         pp_identifier, not pp_string.  Mark "({anonymous})" for
10143         translation.
10144         * c-pretty-print.c (pp_c_ws_string): New.
10145         (pp_c_cv_qualifier, pp_c_type_specifier,
10146         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
10147         pp_c_storage_class_specifier, pp_c_function_specifier,
10148         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
10149         pp_c_primary_expression, pp_c_postfix_expression,
10150         pp_c_unary_expression, pp_c_shift_expression,
10151         pp_c_relational_expression, pp_c_equality_expression,
10152         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
10153         use pp_string and pp_c_ws_string in place of pp_identifier and
10154         pp_c_identifier for non-identifiers.  Mark English strings for
10155         translation.
10156         * c-pretty-print.h (pp_c_ws_string): Declare.
10157
10158 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
10159             Roland McGrath <roland@redhat.com>
10160
10161         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
10162         (ENABLE_LD_BUILDID): New configuration option.
10163         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
10164         (LINK_BUILDID_SPEC): New macro.
10165         (init_spec): If defined, prepend it between LINK_EH_SPEC and
10166         link_spec.
10167         * doc/install.texi: Document --enable-linker-build-id option.
10168         * configure: Rebuild.
10169         * config.in: Rebuild.
10170
10171 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
10172
10173         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
10174         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
10175         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
10176         MIPS_GP_SAVE_AREA_SIZE.
10177         * config/mips/mips.c (struct mips_frame_info): Update comment
10178         before arg_pointer_offset and hard_frame_pointer_offset.
10179         (mips_compute_frame_info): Update diagram before function: to
10180         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
10181         indicate the position of frame_pointer_rtx with -fstack-protector and
10182         to show args_size.  Don't allocate cprestore area for leaf functions
10183         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
10184         cprestore_size.
10185         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
10186
10187 2009-04-30  Michael Matz  <matz@suse.de>
10188
10189         PR tree-optimization/39955
10190         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
10191
10192 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10193
10194         * ira.c (setup_cover_and_important_classes):  Use safe macro
10195         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
10196         directly.
10197         * genpreds.c (write_tm_preds_h):  Output suitable definition of
10198         REG_CLASS_FOR_CONSTRAINT.
10199
10200 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10201
10202         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
10203         instead of an int.
10204         * bitmap.c (bitmap_descriptor): Likewise.
10205         * ggc-common.c (loc_descriptor): Likewise.
10206         * varray.c (varray_descriptor): Likewise.
10207         * vec.c (vec_descriptor): Likewise.
10208
10209 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10210
10211         * Makefile.in (dce.o): Add $(EXCEPT_H).
10212         * dce.c: Include except.h and delete redundant vector definitions.
10213         (deletable_insn_p): Return false for non-call insns that can throw
10214         if DF is running.
10215
10216 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10217
10218         * gcse.c (ae_gen): Remove.
10219         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
10220         and make non-static function to make it available in store-motion.c.
10221         Update call sites with search-and-replace.
10222         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
10223         extract_mentioned_regs, extract_mentioned_regs_helper,
10224         find_moveable_store, compute_store_table, load_kills_store, find_loads,
10225         store_killed_in_insn, store_killed_after, store_killed_before,
10226         build_store_vectors, insert_insn_start_basic_block, insert-store,
10227         remove_reachable_equiv_notes, replace_store_insn, delete_store,
10228         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
10229         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
10230         * store-motion.c: ...new file.  Also copy data structures from gcse.c
10231         and clean up to remove parts not used by store motion.
10232         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
10233         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
10234
10235 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10236
10237         PR target/38571
10238         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
10239         when optimizing for size.
10240
10241 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
10242
10243         * gcse.c (gcse_constant_p): Fix typo in last change.
10244
10245 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10246
10247         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
10248
10249 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
10250
10251         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
10252
10253 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
10254
10255         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
10256         CONST_HIGH_PART result.
10257
10258 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
10259
10260         * config/avr/avr.c (initial_elimination_offset): Rename to
10261         avr_initial_elimination_offset.
10262         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
10263         change return type to bool.
10264         (avr_can_eliminate): New function.
10265         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
10266         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
10267         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
10268         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
10269         avr_initial_elimination_offset.
10270         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
10271         (avr_initial_elimination_offset): Define.
10272
10273 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
10274             Steven Bosscher  <steven@gcc.gnu.org>
10275
10276         PR rtl-optimization/39938
10277         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
10278         * cfgrtl.c: Include insn-attr.h.
10279         (rest_of_pass_free_cfg): New function.
10280         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
10281         * resource.c (init_resource_info): Remove call to df_analyze.
10282
10283 2009-04-29  Richard Guenther  <rguenther@suse.de>
10284
10285         PR target/39943
10286         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
10287         allow conversion to signed integers.
10288
10289 2009-04-29  Richard Guenther  <rguenther@suse.de>
10290
10291         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
10292         shifts of floating point vectors if the shift amount is
10293         a constant multiple of the element size.
10294
10295 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
10296             Michael Matz  <matz@suse.de>
10297
10298         PR middle-end/39927
10299         PR bootstrap/39929
10300         * tree-outof-ssa.c (emit_partition_copy): New function.
10301         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10302         insert_part_to_rtx_on_edge): Perform the partition base var
10303         copy using emit_partition_copy.
10304         (insert_value_copy_on_edge): Convert constants to the right mode.
10305         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
10306         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
10307
10308 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10309
10310         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
10311         scan backwards to try to find a constant to initialize it.
10312
10313         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
10314         insn before the loop_end instruction, don't look past labels.
10315
10316 2009-04-29  Richard Guenther  <rguenther@suse.de>
10317
10318         PR middle-end/39937
10319         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
10320         loose type conversions.
10321         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
10322         stmts only if there are no uses of its definition.
10323
10324 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10325
10326         * config/bfin/bfin.h (splitting_loops): Declare.
10327         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
10328         Reorder bit definitions to be ascending.
10329         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
10330         * config/bfin/bfin.c (splitting_loops): New variable.
10331         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
10332         (struct loop_info): Remove members INIT and LOOP_INIT.
10333         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
10334         the LSETUP sequence.  Allow LC to be loaded from any register, but
10335         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
10336         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
10337         set to 1.
10338         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
10339         of reload_completed.
10340
10341         From Jie Zhang:
10342         * config/bfin/bfin.md (movsi_insn): Refine constraints.
10343
10344 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
10345
10346         * Makefile.in (PLUGIN_VERSION_H): New.
10347         (OBJS-common): Remove plugin-version.o.
10348         (plugin.o): Depend on (PLUGIN_VERSION_H).
10349         (plugin-version.o): Remove.
10350         * configure: Regenerate
10351         * configure.ac: Create plugin-version.h.
10352         * gcc-plugin.h (plugin_gcc_version): Remove.
10353         (plugin_default_version_check): Change signature.
10354         * plugin-version.c: Remove.
10355         * plugin.c: Include plugin-version.h.
10356         (str_plugin_gcc_version_name): Remove.
10357         (try_init_one_plugin): Pass gcc version to plugin_init.
10358         (plugin_default_version_check): Both gcc and plugin versions are now
10359         arguments.
10360
10361 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10362         
10363         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
10364         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
10365         Remove special case testing for last insn of inner loops. Don't fail
10366         if the loop ends with a jump, emit an extra nop instead.
10367
10368         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
10369         DREGS rather than comparing directly.  Remove code that tries to
10370         account for latencies.
10371
10372 2009-04-29  Richard Guenther  <rguenther@suse.de>
10373
10374         PR tree-optimization/39941
10375         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
10376         eliminating an indirect call.
10377
10378 2009-04-29  Richard Guenther  <rguenther@suse.de>
10379
10380         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
10381         parameter.  Allow invariants as base if !require_lvalue.
10382         (verify_gimple_assign_single): Adjust.
10383
10384 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10385
10386         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
10387         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
10388         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
10389         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
10390         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
10391         a VEC_SELECT.
10392         * config/bfin/bfin.c (bfin_expand_builtin,
10393         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
10394
10395 2009-04-28  Richard Guenther  <rguenther@suse.de>
10396
10397         * tree-vect-loop.c (get_initial_def_for_induction): Use
10398         correct types for pointer increment.
10399
10400 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10401
10402         * toplev.c (print_version): Update GMP version string calculation.
10403
10404 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10405
10406         PR rtl-optimization/39938
10407         * resource.c (init_resource_info): Add call to df_analyze.
10408
10409 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10410
10411         * config/alpha/alpha.md (usegp): Cast the result of
10412         alpha_find_lo_sum_using_gp to enum attr_usegp.
10413         * config/alpha/alpha.c (override_options): Remove end-of-structure
10414         marker element from cpu_table.  Use array size of cpu_table to handle
10415         -mcpu and -mtune options.
10416         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
10417
10418 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
10419
10420         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
10421         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
10422         tune_32 and tune_64.
10423         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10424         support on PowerPC.
10425         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
10426         * config/rs6000/option-defaults.h: ... here.  New file.
10427         (OPT_64, OPT_32): Define.
10428         (MASK_64BIT): Define to 0 if not already defined.
10429         (OPT_ARCH64, OPT_ARCH32): Define.
10430         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
10431         and tune_64.
10432
10433 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10434
10435         * config/arm/arm.c (arm_override_options): Emit error on using
10436         fpa with AAPCS.
10437
10438 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10439
10440         PR rtl-optimization/39914
10441         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
10442         registers for allocnos created from user-defined variables only
10443         when not optimizing.
10444
10445 2009-04-28  Richard Guenther  <rguenther@suse.de>
10446
10447         PR middle-end/39937
10448         * fold-const.c (fold_binary): Use distribute_real_division only
10449         on float types.
10450
10451 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
10452
10453         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
10454         add hpux-stdint.h to tm_file.
10455         (hppa[12]*-*-hpux11*): Ditto.
10456         (ia64*-*-hpux*): Ditto.
10457         * config/hpux-stdint.h: New.
10458         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
10459         __STDC_EXT__ for all compiles.
10460         * config/pa/pa-hpux.h: Ditto.
10461         * config/pa/pa-hpux10.h: Ditto.
10462         * config/pa/pa-hpux11.h: Ditto.
10463
10464 2009-04-28  Catherine Moore  <clm@codesourcery.com>
10465
10466         * debug.h (set_name): Add comment.
10467
10468 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
10469
10470         PR target/39929
10471         * config/darwin.c (machopic_gen_offset): Check
10472         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
10473         * config/arm/arm.c (require_pic_register): Likewise.
10474
10475 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
10476
10477         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
10478         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
10479         m32c_promote_prototypes): Delete.
10480
10481 2009-04-28  Michael Matz  <matz@suse.de>
10482
10483         PR middle-end/39922
10484         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
10485         constants.
10486
10487 2009-04-28  Richard Guenther  <rguenther@suse.de>
10488
10489         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
10490
10491 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10492
10493         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
10494         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
10495         * config/arm/arm-tune.md: Regenerate.
10496
10497 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
10498
10499         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
10500         block if there are complex incoming edges.
10501         (sel_merge_blocks): Remove useless assert.
10502         (sel_redirect_edge_and_branch): Check that edge was redirected.
10503         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
10504         (sel_find_rgns): Delete declaration.
10505         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
10506         the region when it is not a preheader.
10507
10508 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10509
10510         PR c/39323
10511         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
10512
10513 2009-04-28  Richard Guenther  <rguenther@suse.de>
10514
10515         * tree.h (SSA_NAME_VALUE): Remove.
10516         (struct tree_ssa_name): Remove value_handle member.
10517         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
10518         array for jump threading.
10519         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
10520         SSA_NAME_VALUEs.
10521         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
10522         * tree-flow.h (threadedge_initialize_values): Declare.
10523         (threadedge_finalize_values): Likewise.
10524         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
10525         (SSA_NAME_VALUE): Define.
10526         (threadedge_initialize_values): New function.
10527         (threadedge_finalize_values): Likewise.
10528         * tree-ssa-dom.c (ssa_name_values): New global variable.
10529         (SSA_NAME_VALUE): Define.
10530         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
10531
10532 2009-04-28  Ira Rosen  <irar@il.ibm.com>
10533
10534         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10535         Use REPORT_VECTORIZED_LOCATIONS instead 
10536         REPORT_VECTORIZED_LOOPS.
10537         * tree-vectorizer.c (vect_verbosity_level): Make static.
10538         (vect_loop_location): Rename to vect_location.
10539         (vect_set_verbosity_level): Update comment.
10540         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
10541         and vect_location.
10542         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
10543         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
10544         instead REPORT_UNVECTORIZED_LOOPS.
10545         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
10546         and vect_loop_def to vect_external_def and vect_internal_def.
10547         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
10548         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
10549         REPORT_UNVECTORIZED_LOCATIONS.
10550         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
10551         and vect_used_in_loop and to vect_unused_in_scope and 
10552         vect_used_in_scope.
10553         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
10554         (vect_verbosity_level): Remove declaration.
10555         (vect_analyze_operations): Likewise.
10556         (vect_analyze_stmt): Declare.
10557         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
10558         REPORT_UNVECTORIZED_LOCATIONS.
10559         (vect_get_loop_niters): Fix indentation.
10560         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
10561         (vect_analyze_loop_operations): New function.
10562         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
10563         vect_analyze_operations.
10564         (vect_is_simple_reduction): Use new names.
10565         (vectorizable_live_operation, vect_transform_loop): Likewise.
10566         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
10567         to specify whether the data references can be a part of interleaving
10568         chain.
10569         (vect_analyze_data_ref_dependence): Use new names.
10570         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
10571         (vect_create_addr_base_for_vector_ref): Remove redundant code.
10572         * tree-vect-patterns.c (widened_name_p): Use new names.
10573         (vect_recog_dot_prod_pattern): Likewise.
10574         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
10575         (process_use, vect_mark_stmts_to_be_vectorized, 
10576         vect_model_simple_cost, vect_model_store_cost,
10577         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
10578         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
10579         vectorizable_operation, vectorizable_type_demotion,
10580         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
10581         vectorizable_condition): Likewise.
10582         (vect_analyze_operations): Split into vect_analyze_loop_operations
10583         and ...
10584         (vect_analyze_stmt): ... new function.
10585         (new_stmt_vec_info): Use new names.
10586         (vect_is_simple_use): Use new names and fix comment.
10587         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
10588         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
10589
10590 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10591
10592         PR target/39911
10593         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
10594         and integer modes for x87 operands.  Do not ICE for unsupported size,
10595         generate error instead.  Generate error for unsupported operand types.
10596         ['z']: Do not handle HImode memory operands specially.  Warning
10597         for floating-point operands.  Fallthru to 'Z' for unsupported operand
10598         types.  Do not ICE for unsupported size, generate error instead.
10599         (output_387_binary_op): Use %Z to output operands.
10600         (output_fp_compare): Ditto.
10601         (output_387_reg_move): Ditto.
10602
10603 2009-04-28  Ben Elliston  <bje@au.ibm.com>
10604
10605         PR c++/35652
10606         Revert:
10607
10608         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10609
10610         * builtins.c (c_strlen): Do not warn here.
10611         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
10612         * c-common.c (pointer_int_sum): Take an explicit location.
10613         Warn about offsets out of bounds.
10614         * c-common.h (pointer_int_sum): Adjust declaration.
10615
10616 2009-04-27  Ian Lance Taylor  <iant@google.com>
10617
10618         * collect2.c (is_ctor_dtor): Change type of ret field in struct
10619         names to symkind.
10620         * dce.c (run_fast_df_dce): Change type of old_flags to int.
10621         * df-core.c (df_set_flags): Change return type to int.  Change
10622         type of old_flags to int.
10623         (df_clear_flags): Likewise.
10624         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
10625         (df_get_conditional_uses): Likewise.
10626         * df.h (df_set_flags, df_clear_flags): Update declarations.
10627         * dwarf2out.c (struct indirect_string_node): Change type of form
10628         field to enum dwarf_form.
10629         (AT_string_form): Change return type to enum dwarf_form.
10630         * fixed-value.c (fixed_compare): Add cast to enum type.
10631         * fwprop.c (update_df): Change 0 to VOIDmode.
10632         * gensupport.c: Change 0 to UNKNOWN.
10633         * gimple.h (gimple_cond_code): Add cast to enum type.
10634         * haifa-sched.c (reemit_notes): Add cast to enum type.
10635         * hooks.c (hook_int_void_no_regs): Remove function.
10636         * hooks.h (hook_int_void_no_regs): Remove declaration.
10637         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
10638         * predict.c (combine_predictions_for_insn): Add casts to enum type.
10639         * real.c (real_arithmetic): Add cast to enum type.
10640         (real_compare): Likewise.
10641         * target.h (struct gcc_target): Change return type of
10642         branch_target_register_class to enum reg_class.
10643         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
10644         default_branch_target_register_class.
10645         * targhooks.c (default_branch_target_register_class): New function.
10646         * targhooks.h (default_branch_target_register_class): Declare.
10647         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
10648         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
10649         cast to int.
10650         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
10651         ERROR_MARK.
10652         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
10653         vect_uninitialized_def.  Change 0 to ERROR_MARK.
10654         * tree-vect-stmts.c (supportable_widening_operation): Don't
10655         initialize icode1 and icode2.
10656         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
10657         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
10658         and to STD_C89.
10659         (cmn_err_flag_specs): Change 0 to STD_C89.
10660         (cmn_err_char_table): Likewise.
10661         * config/arm/arm.c (get_arm_condition_code): Change type of code
10662         to enum arm_cond_code.
10663         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
10664         (IWMMXT_BUILTIN2): Likewise.
10665         (neon_builtin_type_bits): Don't define typedef.
10666         (neon_builtin_datum): Change type of bits field to int.
10667         (arm_expand_neon_args): Add cast to enum type.
10668         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
10669         TLS_MODEL_NONE.
10670         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
10671         casts to enum type.
10672         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
10673         MIPS_FP_COND_f.
10674         * config/mips/mips.md (jal_macro): Return enum constant.
10675         (single_insn): Likewise.
10676         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
10677         CODE_FOR_nothing.
10678         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10679         casts to enum type.
10680         * config/s390/s390.c (s390_tune_flags): Change type to int.
10681         (s390_arch_flags): Likewise.
10682         (s390_handle_arch_option): Change flags field of struct pta to int.
10683         * config/s390/s390.h (s390_tune_flags): Update declaration.
10684         (s390_arch_flags): Likewise.
10685         * config/sh/sh.c (prepare_move_operands): Compare
10686         tls_symbolic_operand result with enum constant.
10687         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
10688         (sh_expand_prologue): Add cast to enum type.
10689         (sh_expand_epilogue): Likewise.
10690         (tls_symbolic_operand): Change return type to enum tls_model.
10691         (fpscr_set_from_mem): Add cast to enum type.
10692         (legitimize_pic_address): Compare tls_symbolic_operand result with
10693         enum constant.
10694         (sh_target_reg_class): Change return type to enum reg_class.
10695         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
10696         PROCESSOR_xxx.
10697         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
10698         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
10699         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
10700         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
10701         (delayed_branch, tls_call_delay): Likewise.
10702         (eligible_for_sibcall_delay): Likewise.
10703         (eligible_for_return_delay): Likewise. 
10704         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
10705         (spu_expand_builtin_1): Likewise.
10706
10707         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
10708         for all types of conversions.
10709         (output_init_element): Issue -Wc++-compat warning if needed when
10710         initializing a bitfield with enum type.
10711         * c-parser.c (c_parser_expression): Set original_type to
10712         original_type of right hand operand of comman operator.
10713
10714 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10715
10716         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
10717         grammar nits.
10718         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
10719         * doc/cpp.texi (Standard Predefined Macros)
10720         (Implementation-defined behavior): Likewise.
10721         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
10722         * doc/gimple.texi (GIMPLE Exception Handling)
10723         (@code{GIMPLE_ASSIGN}): Likewise.
10724         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
10725         * doc/invoke.texi (Warning Options, Optimize Options)
10726         (AVR Options, Darwin Options): Likewise.
10727         (Optimize Options): Reformulate -fwhole-program description.
10728         * doc/loop.texi (Lambda): Likewise.
10729         * doc/md.texi (Output Template, Define Constraints)
10730         (Standard Names, Insn Splitting): Likewise.
10731         * doc/options.texi (Option properties): Likewise.
10732         * doc/passes.texi (Tree-SSA passes): Likewise.
10733         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
10734         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
10735         (File Names and DBX): Likewise.
10736         * doc/trouble.texi (Incompatibilities): Likewise.
10737
10738 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
10739
10740         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
10741         instruction is correct.
10742
10743 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
10744
10745         Allow non-constant arguments to conversion intrinsics.
10746         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
10747         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
10748         * spu.c (print_operand): Handle 'v' and 'w'.
10749         (exp2_immediate_p, spu_gen_exp2): Define.
10750         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
10751         spu_convtf_1): Update parameter descriptions.
10752         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
10753         * constraints.md ('v', 'w'): New.
10754         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
10755         Remove.
10756         (i2f, I2F): New define_mode_attr.
10757         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
10758         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
10759         fixuns_truncv4sfv4si2):  Update to use mode attribute.
10760         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
10761         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
10762         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
10763         patterns for combine.
10764
10765 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
10766
10767         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
10768         (cprop, hoist, pre, store_motion): New debug counters.
10769         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
10770         is not an RTL pass anymore.
10771         (pass_profiling): Remove extern decl for pass removed in 2005.
10772         (pass_gcse, pass_jump_bypass): Remove.
10773         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
10774         to 0 for clean state.
10775         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
10776         * cse.c (gate_handle_cse_after_global_opts,
10777         rest_of_handle_cse_after_global_opts): New functions.
10778         (pass_cse_after_global_opts): New pass, does local CSE.
10779         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
10780         (TV_CPROP): New timevar.
10781         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
10782         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
10783         (gcse_main, recompute_all_luids): Remove.
10784         (compute_hash_table_work): Call max_reg_num instead of reading
10785         max_gcse_regno.
10786         (cprop_jump): Don't set run_jump_opt_after_gcse.
10787         (constprop_register): Always allow to alter jumps.
10788         (cprop_insn): Likewise.
10789         (do_local_cprop): Likewise.
10790         (local_cprop_pass): Likewise.  Return non-zero if something changed.
10791         (cprop): Remove function, fold interesting bits into one_cprop_pass.
10792         (find_implicit_sets): Add note about missed optimization opportunity.
10793         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
10794         pass_rtl_cprop execute function.
10795         Don't bother tracking the pass number, each pass gets its own dumpfile
10796         now anyway.
10797         Always allow to alter jumpsand bypass jumps.
10798         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
10799         will just find no suitable set.
10800         (pre_edge_insert): Fix dumping, this function is for PRE only.
10801         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
10802         pass_rtl_pre execute function.
10803         (hoist_code): Return non-zero if something changed.  Keep track of
10804         substitutions and insertions for statistics gathering similar to PRE.
10805         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
10806         called from the pass_rtl_hoist execute function.  Show pass statistics.
10807         (compute_store_table): Use max_reg_num directly instead of using the
10808         formerly global max_gcse_regno.
10809         (build_store_vectors): Likewise.
10810         (replace_store_insn): Fix dumping.
10811         (store_motion): Rename to ...
10812         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
10813         pass, called from the pass_rtl_store_motion execute function.  Keep
10814         track of substitutions and insertions for statistics gathering similar
10815         to PRE.
10816         (bypass_jumps): Remove, fold interesting bits into ...
10817         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
10818         from the pass_rtl_cprop execute function.
10819         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
10820         pass_jump_bypass): Remove.
10821         (gate_handle_gcse, rest_of_handle_gcse): Remove.
10822         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
10823         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
10824         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
10825         (gate_rtl_store_motion, execute_rtl_store_motion,
10826         pass_rtl_store_motion): New.
10827         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
10828         make it clear that -fcse-skip-blocks is a no-op for backward compat.
10829         * passes.c (init_optimization_passes): Remove pass_gcse and
10830         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
10831         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
10832         instead of pass_jump_bypass.
10833
10834 2009-04-27  Richard Guenther  <rguenther@suse.de>
10835
10836         PR middle-end/39928
10837         * gimplify.c (gimplify_expr): If we are required to create
10838         a temporary make sure it ends up as register.
10839
10840 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
10841
10842         PR target/39903
10843         * config/i386/i386.c (construct_container): Don't call
10844         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
10845         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
10846
10847 2009-04-27  Michael Matz  <matz@suse.de>
10848
10849         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
10850         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
10851         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
10852         (dump_replaceable_exprs): Take a bitmap.
10853         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
10854         array.
10855         (expand_gimple_basic_block): Likewise.
10856         * tree-ssa-ter.c (struct temp_expr_table_d): Make
10857         replaceable_expressions member a bitmap.
10858         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
10859         (mark_replaceable): Likewise.
10860         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
10861         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
10862
10863 2009-04-27  Richard Guenther  <rguenther@suse.de>
10864
10865         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
10866         (verify_stmts): Dispatch to gimple/type verification code.
10867         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
10868         issue with call argument types.
10869
10870 2009-04-27  Michael Matz  <matz@suse.de>
10871
10872         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
10873         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
10874         to above.
10875
10876 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
10877             Eric Botcazou  <ebotcazou@adacore.com>
10878
10879         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
10880         a label's basic block.
10881         (mark_target_live_regs): Tidy and rework obsolete comments.
10882         Change back DF problem to LIVE.  If a label starts a basic block,
10883         assume that all registers that used to be live then still are.
10884         (init_resource_info): If a label starts a basic block, set its
10885         BLOCK_FOR_INSN accordingly.
10886         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
10887
10888 2009-04-27  Richard Guenther  <rguenther@suse.de>
10889
10890         * tree-flow-inline.h (function_ann): Remove.
10891         (get_function_ann): Likewise.
10892         * tree-dfa.c (create_function_ann): Remove.
10893         * tree-flow.h (struct static_var_ann_d): Remove.
10894         (struct function_ann_d): Likewise.
10895         (union tree_ann_d): Remove fdecl member.
10896         (function_ann_t): Remove.
10897         (function_ann, get_function_ann, create_function_ann): Remove
10898         declarations.
10899
10900 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
10901
10902         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
10903
10904 2009-04-27  Jan Hubicka  <jh@suse.cz>
10905
10906         * ipa-pure-const.c (struct funct_state_d): New fields
10907         state_previously_known, looping_previously_known; remove
10908         state_set_in_source.
10909         (analyze_function): Use new fields.
10910         (propagate): Avoid assumption that state_set_in_source imply
10911         nonlooping.
10912
10913         * tree-ssa-loop-niter.c (finite_loop_p): New function.
10914         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
10915         * cfgloop.h (finite_loop_p): Declare.
10916
10917 2009-04-26  Michael Matz  <matz@suse.de>
10918
10919         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
10920
10921 2009-04-26  Michael Matz  <matz@suse.de>
10922
10923         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
10924         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
10925         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
10926         pass_mark_used_blocks): Remove.
10927         * tree-optimize.c (pass_free_datastructures,
10928         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
10929         * passes.c (init_optimization_passes): Don't call
10930         pass_mark_used_blocks, remove dead code.
10931
10932 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
10933
10934         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
10935         * tree-ssa-live.h (register_ssa_partition): Likewise.
10936
10937 2009-04-26  Michael Matz  <matz@suse.de>
10938
10939         Expand from SSA.
10940         * builtins.c (fold_builtin_next_arg): Handle SSA names.
10941         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
10942         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
10943         SSA names. 
10944         (compare_pairs): Swap cost comparison.
10945         (coalesce_ssa_name): Don't use change_partition_var.
10946         * tree-nrv.c (struct nrv_data): Add modified member.
10947         (finalize_nrv_r): Set it.
10948         (tree_nrv): Use it to update statements.
10949         (pass_nrv): Require PROP_ssa.
10950         * tree-mudflap.c (mf_decl_cache_locals,
10951         mf_build_check_statement_for): Use make_rename_temp.
10952         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
10953         * alias.c (find_base_decl): Handle SSA names.
10954         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
10955         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
10956         * rtl.h (set_reg_attrs_for_parm): Declare.
10957         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
10958         to "optimized", remove unused locals at finish.
10959         (execute_free_datastructures): Make global, call
10960         delete_tree_cfg_annotations.
10961         (execute_free_cfg_annotations): Don't call
10962         delete_tree_cfg_annotations.
10963
10964         * ssaexpand.h: New file.
10965         * expr.c (toplevel): Include ssaexpand.h.
10966         (expand_assignment): Handle SSA names the same as register variables.
10967         (expand_expr_real_1): Expand SSA names.
10968         * cfgexpand.c (toplevel): Include ssaexpand.h.
10969         (SA): New global variable.
10970         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
10971         (SSAVAR): New macro.
10972         (set_rtl): New helper function.
10973         (add_stack_var): Deal with SSA names, use set_rtl.
10974         (expand_one_stack_var_at): Likewise.
10975         (expand_one_stack_var): Deal with SSA names.
10976         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
10977         before unique numbers.
10978         (expand_stack_vars): Use set_rtl.
10979         (expand_one_var): Accept SSA names, add asserts for them, feed them
10980         to above subroutines.
10981         (expand_used_vars): Expand all partitions (without default defs),
10982         then only the local decls (ignoring those expanded already).
10983         (expand_gimple_cond): Remove edges when jumpif() expands an
10984         unconditional jump.
10985         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
10986         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
10987         SSA name.
10988         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
10989         members of SA; deal with PARM_DECL partitions here; expand
10990         all PHI nodes, free tree datastructures and SA.  Commit instructions
10991         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
10992         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
10993         info and statements at start, collect garbage at finish.
10994         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
10995         (VAR_ANN_PARTITION) Remove.
10996         (change_partition_var): Don't declare.
10997         (partition_to_var): Always return SSA names.
10998         (var_to_partition): Only accept SSA names.
10999         (register_ssa_partition): Only check argument.
11000         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
11001         member.
11002         (delete_var_map): Don't free it.
11003         (var_union): Only accept SSA names, simplify.
11004         (partition_view_init): Mark only useful SSA names as used.
11005         (partition_view_fini): Only deal with SSA names.
11006         (change_partition_var): Remove.
11007         (dump_var_map): Use ssa_name instead of partition_to_var member.
11008         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
11009         basic blocks.
11010         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
11011         (struct _elim_graph): New member const_dests; nodes member vector of
11012         ints.
11013         (set_location_for_edge): New static helper.
11014         (create_temp): Remove.
11015         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
11016         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
11017         (new_elim_graph): Allocate const_dests member.
11018         (clean_elim_graph): Truncate const_dests member.
11019         (delete_elim_graph): Free const_dests member.
11020         (elim_graph_size): Adapt to new type of nodes member.
11021         (elim_graph_add_node): Likewise.
11022         (eliminate_name): Likewise.
11023         (eliminate_build): Don't take basic block argument, deal only with
11024         partition numbers, not variables.
11025         (get_temp_reg): New static helper.
11026         (elim_create): Use it, deal with RTL temporaries instead of trees.
11027         (eliminate_phi): Adjust all calls to new signature.
11028         (assign_vars, replace_use_variable, replace_def_variable): Remove.
11029         (rewrite_trees): Only do checking.
11030         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
11031         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
11032         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
11033         contains_tree_r, MAX_STMTS_IN_LATCH,
11034         process_single_block_loop_latch, analyze_edges_for_bb,
11035         perform_edge_inserts): Remove.
11036         (expand_phi_nodes): New global function.
11037         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
11038         functions, initialize new parameter, remember partitions having a
11039         default def.
11040         (finish_out_of_ssa): New global function.
11041         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
11042         don't reset in_ssa_p here, don't disable TER when mudflap.
11043         (pass_del_ssa): Remove.
11044         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
11045         partition members.
11046         (execute_free_datastructures): Declare.
11047         * Makefile.in (SSAEXPAND_H): New variable.
11048         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
11049         * basic-block.h (commit_one_edge_insertion): Declare.
11050         * passes.c (init_optimization_passes): Move pass_nrv and
11051         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
11052         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
11053         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
11054         (redirect_branch_edge): Deal with super block when expanding, split
11055         out jump patching itself into ...
11056         (patch_jump_insn): ... here, new static helper.
11057
11058 2009-04-26  Michael Matz  <matz@suse.de>
11059
11060         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
11061         beyond num_ssa_names.
11062         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
11063         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
11064
11065 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11066
11067         PR inline-asm/39543
11068         * fwprop.c (forward_propagate_asm): New function.
11069         (forward_propagate_and_simplify): Propagate also into __asm, if it
11070         doesn't increase the number of referenced registers.
11071
11072         PR c/39889
11073         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
11074
11075 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11076
11077         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
11078         note_nonlocal_vla_type for nonlocal VLAs.
11079         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
11080         contains_remapped_vars, remap_vla_decls): New functions.
11081         (convert_nonlocal_reference_stmt): If not optimizing, call
11082         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
11083         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
11084         if it wasn't found in var_map.
11085         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
11086         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
11087         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
11088         declare_vars.
11089         * gimplify.c (nonlocal_vlas): New variable.
11090         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
11091         referenced VLAs.
11092         (gimplify_body): Create and destroy nonlocal_vlas.
11093
11094         * dwarf2out.c (loc_descr_plus_const): New function.
11095         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
11096         mem_loc_descriptor, loc_descriptor_from_tree_1,
11097         descr_info_loc, gen_variable_die): Use it.
11098
11099         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
11100         !TREE_STATIC VAR_DECLs.
11101         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
11102         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
11103         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
11104         DECL_BY_REFERENCE is valid.
11105         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
11106         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
11107         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
11108         Copy DECL_BY_REFERENCE.
11109         (struct nesting_copy_body_data): New type.
11110         (nesting_copy_decl): New function.
11111         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
11112         if they have variable length.
11113
11114 2009-04-26  Michael Matz  <matz@suse.de>
11115
11116         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
11117         mark new temporaries for renaming.
11118
11119 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11120
11121         PR c/39581
11122         * c-decl.c (global_bindings_p): Return negative value.
11123         (c_variable_size): New.  Based on variable_size from
11124         stor-layout.c.
11125         (grokdeclarator): Call c_variable_size not variable_size.
11126
11127 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
11128
11129         * config/i386/i386.c (print_operand) ['z']: Fix typo.
11130
11131 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
11132
11133         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
11134         Redefine it to just use mingw/include.
11135         (ASM_SPEC): Rules for -m32 and -m64.
11136         (LINK_SPEC): Use Likewise.
11137         (SPEC_32): New define.
11138         (SPEC_64): Likewise.
11139         (SUB_LINK_SPEC): Likewise.
11140         (MULTILIB_DEFAULTS): New define.
11141         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
11142         Add multilib options.
11143         (MULTILIB_DIRNAMES): Likewise.
11144         (MULTILIB_OSDIRNAMES): Likewise.
11145         (LIBGCC): Likewise.
11146         (INSTALL_LIBGCC): Likewise.
11147
11148 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11149
11150         PR c/39556
11151         * c-tree.h (enum c_inline_static_type): New.
11152         (record_inline_static): Declare.
11153         * c-decl.c (struct c_inline_static, c_inline_statics,
11154         record_inline_static, check_inline_statics): New.
11155         (pop_file_scope): Call check_inline_statics.
11156         (start_decl): Call record_inline_static instead of pedwarning
11157         directly for static in inline function.
11158         * c-typeck.c (build_external_ref): Call record_inline_static
11159         instead of pedwarning directly for static referenced in inline
11160         function.
11161
11162 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
11163
11164         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
11165         not new but only being rescanned.
11166         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
11167         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
11168         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
11169         record_set_info, compute_set, grealloc): Remove.
11170         (recompute_all_luids): New function.
11171         (gcse_main): Don't compute sets, and don't do related memory
11172         allocations/free-ing.  If something changed before the end of the
11173         pass, update LUIDs using recompute_all_luids.
11174         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
11175         (free_gcse_mem): Don't free it either.
11176         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
11177         Use the df insn LUIDs.
11178         (load_killed_in_block): Likewise.
11179         (compute_hash_table_work): Don't compute reg_set_in_block.
11180         (compute_transp): Use DF_REG_DEF_CHAINs.
11181         (local_cprop_pass): Don't use compute_sets and related functions.
11182         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
11183         Use get_max_uid() instead of max_cuid.
11184         (insert_insn_end_basic_block, pre_insert_copy_insn,
11185         update_ld_motion_stores): Don't try to
11186         keep reg_set tables up to date.
11187         (pre_insert_copies): Use df insn LUIDs.
11188         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
11189         (reg_set_info): Don't use extra bitmap argument.
11190         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
11191         information to compute regs_set_in_block.
11192         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
11193         (bypass_jumps): Don't use compute_sets and friends.
11194
11195 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11196
11197         PR testsuite/39710
11198         * opts.c (undocumented_msg): Do not leave blank even with
11199         ENABLE_CHECKING.
11200
11201 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11202
11203         * c-decl.c (build_enumerator): Allow values folding to integer
11204         constants but not integer constant expressions with a pedwarn if
11205         pedantic.
11206
11207 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11208
11209         PR c/39582
11210         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
11211         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
11212         type is an integer constant.
11213
11214 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11215
11216         PR target/39897
11217         * config/i386/i386.c (print_operand) ['z']: Revert handling of
11218         HImode operands.
11219
11220 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11221
11222         PR c/39564
11223         * c-decl.c (grokdeclarator): Diagnose declarations of functions
11224         with variably modified return type and no storage class
11225         specifiers, except for the case of nested functions.  Distinguish
11226         extern declarations of functions with variably modified return
11227         types from those of objects with variably modified types.
11228
11229 2009-04-25  Jan Hubicka  <jh@suse.cz>
11230
11231         * tree.c (list_equal_p): New function.
11232         * tree.h (list_equal_p): Declare.
11233         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11234         basic_block_def, basic_block, const_basic_block): New.
11235         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
11236         (redirect_eh_edge): New function.
11237         (make_eh_edge_update_phi): EH edges are not abnormal.
11238         * except.c: Include tree-flow.h.
11239         (list_match): New function.
11240         (eh_region_replaceable_by_p): New function.
11241         (replace_region): New function.
11242         (hash_type_list): New function.
11243         (hash_eh_region): New function.
11244         (eh_regions_equal_p): New function.
11245         (merge_peers): New function.
11246         (remove_unreachable_regions): Verify EH tree when checking;
11247         merge peers.
11248         (copy_eh_region_1): New function.
11249         (copy_eh_region): New function.
11250         (push_reachable_handler): New function.
11251         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
11252         regions without label but with live RESX.
11253         * except.h (redirect_eh_edge_to_label): New.
11254         * tree-flow.h (redirect_eh_edge): New.
11255         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11256         basic_block_def, basic_block, const_basic_block): Remove.
11257         * Makefile.in (except.o): Add dependency on tree-flow.h
11258         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
11259         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
11260         Remove.
11261
11262 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
11263
11264         PR bootstrap/39645
11265         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
11266         on the destination of memcpy.
11267
11268 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
11269
11270         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
11271         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
11272         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
11273
11274 2009-04-25  Jan Hubicka  <jh@suse.cz>
11275
11276         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
11277         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
11278         to be reached by different label than left.
11279         (update_eh_edges): Update comment; remove edge_to_remove if possible
11280         and return true if suceeded.
11281         (cleanup_empty_eh): Accept sharing map; handle shared regions.
11282         (cleanup_eh): Compute sharing map.
11283         * except.c (remove_eh_handler_and_replace): Add argument if we should
11284         update regions.
11285         (remove_unreachable_regions): Update for label sharing.
11286         (label_to_region_map): Likewise.
11287         (get_next_region_sharing_label): New function.
11288         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
11289         prev_try pointers.
11290         (remove_eh_handler): Update.
11291         (remove_eh_region_and_replace_by_outer_of): New function.
11292         * except.h (struct eh_region): Add next_region_sharing_label.
11293         (remove_eh_region_and_replace_by_outer_of,
11294         get_next_region_sharing_label): Declare.
11295         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
11296
11297 2009-04-25  Jan Hubicka  <jh@suse.cz>
11298
11299         * tree-cfg.c (split_critical_edges): Split also edges where we can't
11300         insert code even if they are not critical.
11301
11302 2009-04-25  Jan Hubicka  <jh@suse.cz>
11303
11304         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11305         (gimple_can_remove_branch_p): EH edges won't remove branch by
11306         redirection.
11307         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
11308         updating of non-abnormal EH edges.
11309         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11310         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
11311         (split_critical_edges): Split also edges where emitting code on them
11312         will lead to splitting later.
11313
11314 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11315             H.J. Lu  <hongjiu.lu@intel.com>
11316
11317         PR target/39590
11318         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
11319         the configured assembler supports fildq and fistpq mnemonics.
11320         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
11321         * configure: Regenerated.
11322         * config.in: Ditto.
11323
11324         * config/i386/i386.c (print_operand): Handle 'Z'.
11325         ['z']: Remove handling of special fild/fist suffixes.
11326         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
11327         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
11328         suffix of fild insn.
11329         (*floatsi<mode>2_vector_mixed): Ditto.
11330         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
11331         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
11332         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11333         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
11334         * config/i386/gas.h (GAS_MNEMONICS): Remove.
11335
11336 2009-04-25  Ben Elliston  <bje@au.ibm.com>
11337  
11338         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
11339         the source of a set operation.
11340
11341 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
11342
11343         * target.h (struct gcc_target): Add case_values_threshold field.
11344         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
11345         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
11346         * targhooks.c (default_case_values_threshold): New function.
11347         * targhooks.h (default_case_values_threshold): Declare function.
11348         * stmt.c (expand_case): Use case_values_threshold target hook.
11349         * expr.h (case_values_threshold): Remove declartation.
11350         * expr.c (case_values_threshold): Remove function.
11351         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
11352
11353         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
11354         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11355         (avr_case_values_threshold): Declare as static.
11356         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
11357
11358         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
11359         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11360         (mn10300_case_values_threshold): New function.
11361
11362 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11363
11364         * ira.c (setup_cover_and_important_classes): Add enum cast.
11365
11366 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
11367
11368         * genpreds.c (write_enum_constraint_num): Output definition of
11369         CONSTRAINT_NUM_DEFINED_P macro.
11370         * ira.c (setup_cover_and_important_classes): Use
11371         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
11372         
11373 2009-04-24  DJ Delorie  <dj@redhat.com>
11374
11375         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
11376         __SH2A_SINGLE_ONLY__ also.
11377
11378 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
11379
11380         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
11381         (movdf_internal): Ditto.
11382         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
11383         SFmode and DFmode constants.
11384         (ia64_print_operand): Add 'G' format for printing
11385         floating point constants.
11386
11387 2009-04-24  Richard Guenther  <rguenther@suse.de>
11388
11389         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
11390         from unsigned additions.
11391
11392 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
11393
11394         * c-typeck.c (set_init_index): Allow array designators that are
11395         not integer constant expressions with a pedwarn if pedantic.
11396
11397 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11398
11399         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
11400         zero if no overlap in nonzero bits between the operands.
11401
11402 2009-04-24  Ian Lance Taylor  <iant@google.com>
11403
11404         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
11405         (record_dead_and_set_regs): Likewise.
11406         * df.h (struct df_mw_hardreg): Change flags field to int.
11407         (struct df_base_ref): Likewise.
11408         (struct df): Change changeable_flags field to int.
11409         * df-scan.c (df_defs_record): Change clobber_flags to int.
11410         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
11411         constants rather than #define macros.
11412         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
11413         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
11414         (enum dwarf_calling_convention): Likewise.
11415         (enum dwarf_line_number_x_ops): Likewise.
11416         (enum dwarf_call_frame_info): Likewise.
11417         (enum dwarf_source_language): Likewise.
11418         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
11419         (add_calling_convention_attribute): Likewise.
11420         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
11421         (combine_comparisons): Change compcode to int.  Add cast to enum type.
11422         * genrecog.c (maybe_both_true_2): Change c to int.
11423         (write_switch): Likewise.  Add cast to enum type.
11424         * gimplify.c (gimplify_omp_for): Handle return values from
11425         gimplify_expr using MIN rather than bitwise or.
11426         (gimplify_expr): Add cast to enum type.
11427         * ipa-prop.c (update_jump_functions_after_inlining): Change
11428         IPA_BOTTOM to IPA_JF_UNKNOWN.
11429         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
11430         Add casts to enum type.
11431         (setup_cover_and_important_classes): Change cl to int.  Add casts
11432         to enum type.
11433         (setup_class_translate): Change cl and mode to int.
11434         (ira_init_once): Change mode to int.
11435         (free_register_move_costs): Likewise.
11436         (setup_prohibited_mode_move_regs): Add casts to enum type.
11437         * langhooks.c (add_builtin_function_common): Rework assertion that
11438         value fits bitfield.
11439         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
11440         * omega.c (omega_do_elimination): Avoid math on enum types.
11441         * optabs.c (expand_vec_shift_expr): Remove casts to int.
11442         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
11443         int local to handle integral_argment value.
11444         * regmove.c (try_auto_increment): Change PUT_MODE to
11445         PUT_REG_NOTE_KIND.
11446         * reload.c (push_secondary_reload): Add casts to enum type.
11447         (secondary_reload_class, find_valid_class): Likewise.
11448         * reload1.c (emit_input_reload_insns): Likewise.
11449         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
11450         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
11451         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
11452         constant.
11453         * tree.c (build_common_builtin_nodes): Add casts to enum type.
11454         * tree-complex.c (complex_lattice_t): Typedef to int rather than
11455         enum type.
11456         (expand_complex_libcall): Add casts to enum type.
11457         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
11458         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
11459         with ERROR_MARK, not NUM_TREE_CODES.
11460         (vect_create_epilog_for_reduction): Likewise.
11461         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
11462         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
11463         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
11464         enum machine_mode.
11465         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
11466         vect_unused_in_loop.  Change 0 to loop_vect.
11467         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
11468         * var-tracking.c (get_init_value): Change return type to enum
11469         var_init_status.
11470         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
11471         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
11472         arm_fp_model.
11473         (arm_override_options): Add casts to enum type.
11474         (arm_emit_tls_decoration): Likewise.
11475         * config/i386/i386.c (ix86_function_specific_restore): Add casts
11476         to enum type.
11477         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
11478         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
11479         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
11480         enum type.
11481         * config/s390/s390.c (code_for_builtin_64): Change to array of
11482         enum insn_code.
11483         (code_for_builtin_31): Likewise.
11484         (s390_expand_builtin): Change code_for_builtin to enum insn_code
11485         const *.
11486         * config/sparc/sparc.c (sparc_override_options): Change value
11487         field in struct code_model to enum cmodel.  In initializer change
11488         0 to NULL and add cast to enum type.
11489
11490         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
11491         Change all callers.  Issue a -Wc++-compat warning using
11492         lhs_origtype if necessary.
11493         (convert_for_assignment): Issue -Wc++-compat warnings about
11494         invalid conversions to enum type on assignment.
11495         * c-common.h (build_modify_expr): Update declaration.
11496
11497 2009-04-24  Nick Clifton  <nickc@redhat.com>
11498
11499         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
11500         (function_arg_advance): Likewise.
11501         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
11502         5th alternative.
11503
11504 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11505
11506         * config/s390/constraints.md ('I', 'J'): Fix condition.
11507
11508 2009-04-24  Diego Novillo  <dnovillo@google.com>
11509
11510         * gengtype-parse.c (parse_error): Add newline after message.
11511
11512 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11513
11514         * config/i386/sse.md (avxmodesuffixs): Removed.
11515         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
11516         (*avx_pinsr<ssevecsize>): This.
11517
11518 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11519
11520         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
11521         follow chains of regs with a single definition, and allow expressions
11522         that are function_invariant_p.
11523         (simple_rhs_p): Allow expressions that are function_invariant_p.
11524
11525 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
11526
11527         PR middle-end/39867
11528         * fold-const.c (fold_cond_expr_with_comparison): When folding
11529         > and >= to MAX, make sure the MAX uses the same type as the
11530         comparison's operands.
11531
11532 2009-04-24  Nick Clifton  <nickc@redhat.com>
11533
11534         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
11535         addressing for DImode accesses.
11536         (frv_print_operand_address): Handle PLUS case.
11537         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
11538
11539 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
11540
11541         PR rtl-optimization/39794
11542         * alias.c (canon_true_dependence): Add x_addr argument.
11543         * rtl.h (canon_true_dependence): Adjust prototype.
11544         * cse.c (check_dependence): Adjust canon_true_dependence callers.
11545         * cselib.c (cselib_invalidate_mem): Likewise.
11546         * gcse.c (compute_transp): Likewise.
11547         * dse.c (scan_reads_nospill): Likewise.
11548         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
11549         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
11550         canon_base_addr of the group, plus optional offset.
11551         (struct group_info): Rename canon_base_mem to
11552         canon_base_addr.
11553         (get_group_info): Set canon_base_addr to canon_rtx of base, not
11554         canon_rtx of base_mem.
11555
11556 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
11557
11558         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11559         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
11560
11561 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11562
11563         * config/spu/spu-builtins.h: Delete file.
11564
11565         * config/spu/spu.h (enum spu_builtin_type): Move here from
11566         spu-builtins.h.
11567         (struct spu_builtin_description): Likewise.  Add GTY marker.
11568         Do not use enum spu_function_code or enum insn_code.
11569         (spu_builtins): Add extern declaration.
11570
11571         * config/spu/spu.c: Do not include "spu-builtins.h".
11572         (enum spu_function_code, enum spu_builtin_type_index,
11573         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
11574         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
11575         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
11576         unsigned_V2DI_type_node): Move here from spu-builtins.h.
11577         (spu_builtin_types): Make static.  Add GTY marker.
11578         (spu_builtins): Add extern declaration with GTY marker.
11579         Include "gt-spu.h".
11580
11581         * config/spu/spu-c.c: Do not include "spu-builtins.h".
11582         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
11583         Check programmatically whether all parameters are scalar.
11584
11585         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
11586
11587 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
11588
11589         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
11590         assignment from the constructor either if the target is volatile.
11591
11592 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
11593
11594         * config/arm/arm.md (insv): Do not share operands[0].
11595
11596 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
11597
11598         * config/vxlib-tls.c (active_tls_threads): Delete.
11599         (delete_hook_installed): New.
11600         (tls_delete_hook): Don't delete the delete hook.
11601         (tls_destructor): Delete it here.
11602         (__gthread_set_specific): Adjust installing the delete hook.
11603         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
11604         __gthread_leave_tsd_dtor_context.
11605
11606 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
11607
11608         * c-format.c (gcc_tdiag_char_table): Add support for %E.
11609
11610 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
11611
11612         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
11613         enum type.
11614         (alpha_rtx_costs): Ditto.
11615         (emit_unlikely_jump): Use add_reg_note.
11616         (emit_frame_store_1): Ditto.
11617         (alpha_expand_prologue): Ditto.
11618         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
11619         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
11620
11621 2009-04-23  Nick Clifton  <nickc@redhat.com>
11622
11623         * config/v850/v850.md (epilogue): Remove suppressed code.
11624         (return): Rename to return_simple and remove test of frame size.
11625         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
11626         to gen_return_simple.
11627
11628 2009-04-22  Jing Yu  <jingyu@google.com>
11629
11630         PR testsuite/39781
11631         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
11632
11633 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11634
11635         PR C/31499
11636         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
11637         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
11638         value is a VECTOR_CST, the element type is the element type of the
11639         vector.
11640
11641 2009-04-22  DJ Delorie  <dj@redhat.com>
11642
11643         * config/m32c/m32c.h: Update GTY annotations to new syntax.
11644
11645 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
11646
11647         * alias.c (find_base_term): Move around LO_SUM case, so that
11648         CONST falls through into PLUS/MINUS handling.
11649
11650         PR c/39855
11651         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
11652         into 0, use omit_one_operand.
11653
11654 2009-04-23  Ben Elliston  <bje@au.ibm.com>
11655
11656         * config/rs6000/linux-unwind.h (get_regs): Remove type
11657         puns. Change the type of `pc' to an array of unsigned ints and
11658         update all users.  Constify frame24.
11659
11660 2009-04-22  DJ Delorie  <dj@redhat.com>
11661
11662         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
11663         declarations before code.
11664         (current_function_special_page_vector): Likewise.
11665         (m32c_expand_insv): Silence a warning.
11666
11667 2009-04-21  Taras Glek  <tglek@mozilla.com>
11668
11669         * alias.c: Update GTY annotations to new syntax.
11670         * basic-block.h: Likewise.
11671         * bitmap.h: Likewise.
11672         * c-common.h: Likewise.
11673         * c-decl.c: Likewise.
11674         * c-parser.c: Likewise.
11675         * c-pragma.c: Likewise.
11676         * c-tree.h: Likewise.
11677         * cfgloop.h: Likewise.
11678         * cgraph.h: Likewise.
11679         * config/alpha/alpha.c: Likewise.
11680         * config/arm/arm.h: Likewise.
11681         * config/avr/avr.h: Likewise.
11682         * config/bfin/bfin.c: Likewise.
11683         * config/cris/cris.c: Likewise.
11684         * config/darwin.c: Likewise.
11685         * config/frv/frv.c: Likewise.
11686         * config/i386/i386.c: Likewise.
11687         * config/i386/i386.h: Likewise.
11688         * config/i386/winnt.c: Likewise.
11689         * config/ia64/ia64.h: Likewise.
11690         * config/iq2000/iq2000.c: Likewise.
11691         * config/mips/mips.c: Likewise.
11692         * config/mmix/mmix.h: Likewise.
11693         * config/pa/pa.c: Likewise.
11694         * config/pa/pa.h: Likewise.
11695         * config/rs6000/rs6000.c: Likewise.
11696         * config/s390/s390.c: Likewise.
11697         * config/sparc/sparc.c: Likewise.
11698         * config/xtensa/xtensa.c: Likewise.
11699         * cselib.h: Likewise.
11700         * dbxout.c: Likewise.
11701         * dwarf2out.c: Likewise.
11702         * except.c: Likewise.
11703         * except.h: Likewise.
11704         * fixed-value.h: Likewise.
11705         * function.c: Likewise.
11706         * function.h: Likewise.
11707         * gimple.h: Likewise.
11708         * integrate.c: Likewise.
11709         * optabs.c: Likewise.
11710         * output.h: Likewise.
11711         * real.h: Likewise.
11712         * rtl.h: Likewise.
11713         * stringpool.c: Likewise.
11714         * tree-data-ref.c: Likewise.
11715         * tree-flow.h: Likewise.
11716         * tree-scalar-evolution.c: Likewise.
11717         * tree-ssa-address.c: Likewise.
11718         * tree-ssa-alias.h: Likewise.
11719         * tree-ssa-operands.h: Likewise.
11720         * tree.c: Likewise.
11721         * tree.h: Likewise.
11722         * varasm.c: Likewise.
11723         * varray.h: Likewise.
11724         * vec.h: Likewise.
11725         * coretypes.h: Do not define GTY macro if it is already defined.
11726         * doc/gty.texi: Update GTY documentation to new syntax.
11727         * gengtype-lex.l: Enforce attribute-like syntax for GTY
11728         annotations on structs.
11729         * gengtype-parse.c: Likewise.
11730
11731 2009-04-22  Mark Heffernan  <meheff@google.com>
11732
11733         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
11734
11735 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
11736
11737         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
11738         where appropriate.
11739
11740 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
11741
11742         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
11743         the same as a PLUS without a shift.  Increase the cost of a
11744         CONST_INT in MULT.
11745
11746 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11747
11748         * Makefile.in: Update dependencies.
11749         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
11750         * errors.h: Remove bogus comment about compatibility.
11751         (warning): Update declaration.
11752         * genautomata.c: Update all calls to warning.
11753         * gimple.c: Do not include errors.h. Include toplev.h.
11754         * tree-ssa-structalias.c: Do not include errors.h.
11755         * omega.c: Likewise.
11756         * tree-ssa-reassoc.c: Likewise.
11757         * config/spu/spu-c.c: Likewise.
11758         * config/spu/t-spu-elf: Update dependencies.
11759
11760 2009-04-22  Richard Guenther  <rguenther@suse.de>
11761
11762         PR tree-optimization/39824
11763         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
11764         make sure the types are compatible.
11765
11766 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11767
11768         PR c++/14875
11769         * c-common.c (c_parse_error): Take a token_flags parameter.
11770         Use token_type for the token type instead.
11771         Pass token_flags to cpp_type2name.
11772         * c-common.h (c_parse_error): Update declaration.
11773         * c-parser.c (c_parser_error): Pass 0 as token flags.
11774
11775 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
11776
11777         PR rtl-optimization/39580
11778         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
11779         
11780 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11781
11782         * function.c (expand_function_end): Do not emit a jump to the "naked"
11783         return label for fall-through returns.
11784         * except.c (sjlj_emit_function_exit): Always place the call to the
11785         unregister function at the location installed by expand_function_end.
11786
11787 2009-04-22  Richard Guenther  <rguenther@suse.de>
11788
11789         PR tree-optimization/39845
11790         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
11791         (gen_inbound_check): Likewise.
11792
11793 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
11794
11795         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
11796         padding for PPC.
11797         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
11798         * config/vxlib.c (__gthread_once): Add race guard for PPC.
11799
11800 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
11801
11802         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
11803         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
11804         shift counts to avoid out-of-bounds array accesses.
11805
11806 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
11807
11808         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
11809         (Pmode): Move above.
11810
11811 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
11812
11813         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
11814         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
11815         GET_CODE macro.  Use IN_RANGE macro where appropriate.
11816         * config/alpha/alpha.h: Ditto.
11817         * config/alpha/alpha.md: Ditto.
11818         * config/alpha/constraints.md: Ditto.
11819         * config/alpha/predicates.md: Ditto.
11820         
11821 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
11822
11823         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
11824         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11825         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11826         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11827         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11828         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11829         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11830         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11831         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11832         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11833         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11834         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11835         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11836         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11837         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11838         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11839         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11840         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11841         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11842         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11843         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11844         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11845         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11846         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11847         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11848         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11849         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11850
11851 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11852
11853         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
11854         references from comments.
11855         * cfgbuild.c: (count_basic_blocks): Delete.
11856         (find_basic_blocks_1): Delete.
11857         (find_basic_blocks): Delete.
11858         * except.c (finish_eh_generation): Make static.  Move comment from
11859         except.h here.  Remove find_basic_blocks references from comments.
11860         * except.h (finish_eh_generation): Delete.
11861         * basic-block.h (find_basic_blocks): Delete.
11862         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
11863
11864 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
11865
11866         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
11867         (sdbout_parms):  Likewise.
11868
11869 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11870
11871         * config/sh/sh.c (prepare_cbranch_operands): Use
11872         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
11873         (expand_cbranchdi4): Likewise.
11874         (from_compare): Add cast to enum type.
11875         (expand_cbranchsi4): Use add_reg_note.
11876         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
11877         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
11878         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
11879         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
11880         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
11881         instead of CODE_FOR_nothing.
11882         (cbranchdi4): Likewise.  Fix the order of arguments for
11883         gen_rtx_fmt_ee.
11884         (push_fpscr): Use add_reg_note.
11885         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
11886         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
11887         
11888 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
11889
11890         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
11891         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
11892         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
11893         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
11894         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
11895         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
11896         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
11897         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
11898         config/alpha/x-vms, config/arc/t-arc,
11899         config/arm/README-interworking, config/arm/arm-c.c,
11900         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
11901         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
11902         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
11903         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
11904         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
11905         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
11906         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
11907         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
11908         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
11909         config/cris/t-elfmulti, config/crx/t-crx,
11910         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
11911         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
11912         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
11913         config/h8300/t-h8300, config/i386/athlon.md,
11914         config/i386/darwin-libgcc.10.4.ver,
11915         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
11916         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
11917         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
11918         config/i386/t-linux64, config/i386/t-nwld,
11919         config/i386/t-rtems-i386, config/i386/t-sol2-10,
11920         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
11921         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
11922         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
11923         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
11924         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
11925         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
11926         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
11927         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
11928         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
11929         config/m68k/t-uclinux, config/mcore/t-mcore,
11930         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
11931         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
11932         config/mips/crtn.asm, config/mips/irix-crti.asm,
11933         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
11934         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
11935         config/mips/mips-fixed.md, config/mips/sb1.md,
11936         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
11937         config/mips/t-iris6, config/mips/t-isa3264,
11938         config/mips/t-libgcc-mips16, config/mips/t-linux64,
11939         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
11940         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
11941         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
11942         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
11943         config/mn10300/t-linux, config/mn10300/t-mn10300,
11944         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
11945         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
11946         config/picochip/libgccExtras/clzsi2.asm,
11947         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
11948         config/rs6000/darwin-libgcc.10.4.ver,
11949         config/rs6000/darwin-libgcc.10.5.ver,
11950         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
11951         config/rs6000/t-aix43, config/rs6000/t-aix52,
11952         config/rs6000/t-darwin, config/rs6000/t-fprules,
11953         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
11954         config/rs6000/t-lynx, config/rs6000/t-netbsd,
11955         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
11956         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
11957         config/rs6000/t-rtems, config/rs6000/t-spe,
11958         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
11959         config/score/t-score-elf, config/sh/divcost-analysis,
11960         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
11961         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
11962         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
11963         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
11964         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
11965         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
11966         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
11967         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
11968         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
11969         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
11970         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
11971         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
11972         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
11973         limitx.h, version.c, xcoff.h: Add copyright and license notices.
11974         * config/h8300/genmova.sh: Include copyright and license notices
11975         in generated output.
11976         * config/h8300/mova.md: Regenerate.
11977         * doc/install.texi2html: Include word "Copyright" in copyright
11978         notice and use name "Free Software Foundation, Inc.".
11979         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
11980         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
11981         ChangeLog-2007, ChangeLog-2008: Correct dates.
11982
11983 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
11984
11985         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
11986         NE_EXPR operations as well.
11987         * c-parser.c (c_parser_condition): Do not set location information on
11988         the condition.
11989         (c_parser_conditional_expression): Likewise.
11990         (c_parser_binary_expression): Set location information on operators.
11991         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
11992         TRUTH_NOT_EXPR has been folded.
11993         * fold-const.c (fold_truth_not_expr): Copy location information from
11994         the incoming expression to the outgoing one.
11995         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
11996         recursive calls on the LHS of the operator but pass that of the
11997         operator to recursive calls on the RHS of the operator.  Set it
11998         on the COND_EXPR.
11999         (shortcut_cond_expr): Set the locus of the operator on the second
12000         COND_EXPR and that of the expression on the first in degenerate cases.
12001         Pass the locus of the expression to calls to shortcut_cond_r.
12002         Set the locus of the 'then' block on the associated jump, if any.
12003         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
12004         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
12005         expression to call to gimplify_boolean_expr.
12006
12007 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
12008
12009         * config.gcc: Add additional configuration for
12010         i686-w64-mingw* and x86_64-w64-mingw* triplet.
12011         * config/i386/mingw-w64.h: New mingw-w64 specific header.
12012         (CPP_SPEC): Redefine for allowing -municode option.
12013         (STARTFILE_SPEC): Likewise.
12014         * config/i386/t-mingw-w64: New.
12015         * config/i386/mingw-w64.opt: New.
12016         (municode): Add new target option.
12017         * doc/invoke.texi (municode): Add documentation for new option.
12018
12019 2009-04-21  Ian Lance Taylor  <iant@google.com>
12020
12021         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12022         Correct test for number of arguments.
12023         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12024
12025 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
12026
12027         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
12028         argument of emit_library_call.
12029
12030 2009-04-21  Richard Guenther  <rguenther@suse.de>
12031
12032         PR middle-end/39829
12033         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
12034         inside VIEW_CONVERT_EXPRs.
12035
12036 2009-04-21  Martin Jambor  <mjambor@suse.cz>
12037
12038         * tree-switch-conversion.c (build_constructors): Split a long line.
12039         (constructor_contains_same_values_p): New function.
12040         (build_one_array): Create assigns of constants if possible, do not
12041         call mark_sym_for_renaming, call update_stmt.
12042         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
12043         make_rename_temp.  Do not call mark_symbols_for_renaming, call
12044         update_stmt.
12045         (gen_def_assigns): Do not call mark_symbols_for_renaming or
12046         find_new_referenced_vars, call update_stmt.
12047         (gen_inbound_check): Use create_tmp_var and create ssa names manually
12048         instead of calling make_rename_temp.  Do not call
12049         find_new_referenced_vars or mark_symbols_for_renaming, call
12050         update_stmt.
12051
12052 2009-04-21  Richard Guenther  <rguenther@suse.de>
12053
12054         PR tree-optimization/39827
12055         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
12056         (tree_ssa_phiprop): Pass the correct array size.
12057
12058 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
12059
12060         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
12061
12062 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12063
12064         PR 16202
12065         * c-typeck.c (lvalue_p): Move declaration ...
12066         * c-common.h (lvalue_p): ... to here.
12067         * c-common.c (candidate_equal_p): New.
12068         (add_tlist): Use it.
12069         (merge_tlist): Use it.
12070         (warn_for_collisions_1): Likewise.
12071         (warning_candidate_p): Accept more candidates.
12072         (verify_tree): A warning candidate can be an expression. Use
12073         candidate_equal_p.
12074
12075 2009-04-21  Ben Elliston  <bje@au.ibm.com>
12076
12077         PR target/5267
12078         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
12079         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
12080         options.  Remove -mcall-solaris documentation.
12081
12082 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12083
12084         PR c++/13358
12085         * doc/invoke.texi (-Wlong-long): Update description.
12086         * c-lex (interpret_integer): Only warn if there was no previous
12087         overflow and -Wlong-long is enabled.
12088         * c-decl.c (declspecs_add_type): Drop redundant flags.
12089         * c.opt (Wlong-long): Init to -1.
12090         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
12091         and front-end warn_long_long. Wlong-long only depends on other
12092         flags if it is uninitialized.
12093         * c-parser.c (disable_extension_diagnostics): warn_long_long is
12094         the same for CPP and FE.
12095         (restore_extension_diagnostics): Likewise.
12096
12097 2009-04-20  Ian Lance Taylor  <iant@google.com>
12098
12099         Fix enum conversions which are invalid in C++:
12100         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
12101         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
12102         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
12103         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
12104         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
12105         (dbxout_parms): Likewise.
12106         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
12107         (df_clear_flags): Likewise.
12108         * df-problems.c (df_rd_bb_local_compute_process_def): Change
12109         top_flag parameter to int.
12110         (df_chain_create_bb_process_use): Likewise.
12111         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
12112         Remove cast.
12113         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
12114         (df_ref_create_structure, df_def_record_1): Likewise.
12115         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
12116         (df_notes_rescan): Change 0 to VOIDmode in function call.
12117         (df_get_call_refs, df_insn_refs_collect): Likewise.
12118         (df_bb_regs_collect): Likewise.
12119         (df_entry_block_defs_collect): Likewise.
12120         (df_exit_block_uses_collect): Likewise.
12121         * df.h: Update declarations.
12122         * double-int.c (double_int_divmod): Add cast to enum type.
12123         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
12124         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
12125         (based_loc_descr): Likewise.
12126         (loc_descriptor_from_tree_1): Change first_op and second_op to
12127         enum dwarf_location_atom.  Add cast to enum type.
12128         * expmed.c (init_expmed): Change 0 to SET in function call.
12129         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
12130         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
12131         (do_store_flag): Likewise.
12132         * fixed-value.h (struct fixed_value): Change mode to enum
12133         machine_mode.
12134         * function.c (assign_parms): Change 0 to VOIDmode in function call.
12135         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
12136         function call.
12137         (insert_insn_decl, insert_decl, insert_state): Likewise.
12138         (automata_list_finish): Likewise.
12139         * genrecog.c (process_define_predicate): Add cast to enum type.
12140         * gensupport.c (init_predicate_table): Add cast to enum type.
12141         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
12142         function call.
12143         (gimple_build_call_1, gimple_build_label): Likewise.
12144         (gimple_build_goto, gimple_build_asm_1): Likewise.
12145         (gimple_build_switch_1, gimple_build_cdt): Likewise.
12146         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
12147         (enum fallback): Rename from enum fallback_t.
12148         (fallback_t): Typedef as int.
12149         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
12150         GSI_SAME_STMT in function call.
12151         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
12152         enum type.
12153         (setup_reg_class_relations): Likewise.
12154         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
12155         (setup_prohibited_class_mode_regs): Add cast to enum type.
12156         (setup_prohibited_mode_move_regs): Likewise.
12157         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
12158         (record_address_regs): Change i to enum reg_class.
12159         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
12160         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
12161         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
12162         (GET_MODE_2XWIDER_MODE): Likewise.
12163         (GET_CLASS_NARROWEST_MODE): Likewise.
12164         * omp-low.c (expand_omp_for): Add cast to enum type.
12165         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
12166         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
12167         * postreload.c (reload_cse_simplify_operands): Change rclass local
12168         to enum reg_class.
12169         * predict.c (combine_predictions_for_insn): Change best_predictor
12170         and predictor to enum br_predictor.
12171         (combine_predictions_for_bb): Likewise.
12172         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
12173         use SET_PREDICT_EXPR_OUTCOME.
12174         * real.c (real_arithmetic): Change icode to code in function call.
12175         * reginfo.c (init_move_cost): Add casts to enum type.
12176         (init_reg_sets_1, init_fake_stack_mems): Likewise.
12177         * regmove.c (regclass_compatible_p): Change class0 and class1 to
12178         enum reg_class.
12179         * reload.c (find_valid_class): Add casts to enum type.
12180         (push_reload): Change 0 to NO_REGS in function call.
12181         (find_reloads): Change this_alternative to array of enum
12182         reg_class.  Remove some now-unnecessary casts.
12183         (make_memloc): Change 0 to VOIDmode in function call.
12184         * reload1.c (reload): Change 0 to VOIDmode in function call.
12185         (eliminate_regs_1, elimination_effects): Likewise.
12186         (eliminate_regs_in_insn): Likewise.
12187         (emit_input_reload_insns): Add cast to enum type.
12188         (delete_output_reload): Change 0 to VOIDmode in function call.
12189         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
12190         to enum type in function call.
12191         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
12192         (SET_PREDICT_EXPR_OUTCOME): Define.
12193         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
12194         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
12195         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
12196         (dump_function): Likewise.
12197         * tree-dump.h: Update declarations.
12198         * tree-pass.h: Update declarations.
12199         * varasm.c (assemble_integer): Change mclass to enum mode_class.
12200         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
12201         enum type.
12202         (arm_rtx_costs_1): Correct parenthesization.
12203         (arm_rtx_costs): Add casts to enum type.
12204         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
12205         (vfp_emit_fstmd): Use add_rg_note.
12206         (emit_multi_reg_push, emit_sfm): Likewise.
12207         (thumb_set_frame_pointer): Likewise.
12208         (arm_expand_prologue): Likewise.
12209         (arm_regno_class): Change return type to enum reg_class.
12210         (thumb1_expand_prologue): Use add_reg_note.
12211         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
12212         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
12213         in function call.
12214         * config/arm/gentune.sh: Add cast to enum type.
12215         * config/arm/arm-tune.md: Rebuild.
12216         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
12217         (ix86_split_fp_branch, predict_jump): Likewise.
12218         (ix86_expand_multi_arg_builtin): Change sub_code from enum
12219         insn_code to enum rtx_code.
12220         (ix86_builtin_vectorized_function): Add cast to enum type.
12221         * config/i386/i386.md (truncdfsf2): Change slot to enum
12222         ix86_stack_slot.
12223         (truncxf<mode>2, isinf<mode>2): Likewise.
12224         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
12225         enum type.
12226         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
12227         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
12228         (insert_bundle_state): Change 1 to INSERT in function call.
12229         (ia64_add_bundle_selector_before): Likewise.
12230         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
12231         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
12232         (restore_stack_nonlocal): Likewise.
12233         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
12234         function call.
12235         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
12236         function call.
12237         (mips_rtx_costs): Likewise.
12238         (mips_override_options): Add casts to enum type.
12239         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
12240         in function call.
12241         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
12242         (store_reg, set_reg_plus_d): Likewise.
12243         (hppa_expand_prologue, hppa_profile_hook): Likewise.
12244         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12245         cast to enum type.
12246         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
12247         function call.
12248         (emit_unlikely_jump): Use add_reg_note.
12249         (rs6000_emit_allocate_stack): Likewise.
12250         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
12251         (output_toc): Change 1 to INSERT in function call.
12252         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
12253         (rs6000_initialize_trampoline): Likewise.
12254         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
12255         function call.
12256         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
12257         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
12258         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
12259         (save_gprs): Use add_reg_note.
12260         (s390_emit_prologue): Likewise.
12261         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12262         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
12263         (sparc_fold_builtin): Add cast to enum type.
12264         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
12265         enum insn_code.
12266         (spu_expand_prologue): Use add_reg_note.
12267         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
12268
12269 2009-04-20  Ian Lance Taylor  <iant@google.com>
12270
12271         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
12272         (c_parser_postfix_expression_after_primary): Get VEC for list of
12273         arguments.  Get original types of arguments.  Call
12274         build_function_call_vec.
12275         (cached_expr_list_1, cached_expr_list_2): New static variables.
12276         (c_parser_expr_list): Change return type to VEC *.  Add
12277         p_orig_types parameter.  Change all callers.
12278         (c_parser_release_expr): New static function.
12279         (c_parser_vec_to_tree_list): New static function.
12280         * c-typeck.c (build_function_call): Rewrite to build a VEC and
12281         call build_function_call_vec.
12282         (build_function_call_vec): New function, based on old
12283         build_function_call.
12284         (convert_arguments): Remove nargs and argarray parameters.  Change
12285         values to a VEC.  Add origtypes parameter.
12286         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
12287         (convert_for_assignment): Add origtype parameter.  Change all
12288         callers.  If warn_cxx_compat, check for conversion to an enum
12289         type when calling a function.
12290         (store_init_value): Add origtype parameter.  Change all callers.
12291         (digest_init): Likewise.
12292         (struct init_node): Add origtype field.
12293         (add_pending_init): Add origtype parameter.  Change all callers.
12294         (output_init_element): Likewise.
12295         (output_pending_init_elements): Pass origtype from init_node to
12296         output_init_element.
12297         (process_init_element): Pass origtype from c_expr to
12298         output_init_element.
12299         (c_finish_return): Add origtype parameter.  Change all callers.
12300         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
12301         caller.
12302         (sync_resolve_params): Likewise.
12303         (sync_resolve_return): Change params to first_param.  Change caller.
12304         (resolve_overloaded_builtins): Change params to VEC *.  Change
12305         callers.  Save first parameter around call to build_function_call_vec.
12306         * c-decl.c (finish_decl): Add origtype parameter.  Change all
12307         callers.  Call build_function_call_vec rather than
12308         build_function_call for cleanup.
12309         * c-tree.h: Update declarations.
12310         * c-common.h: Update declarations.
12311         * stub-objc.c (objc_rewrite_function_call): Change parameter from
12312         params to first_param.
12313         * target.h (struct gcc_target): Change resolve_overloaded_builtin
12314         params parameter from tree to void *.
12315         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12316         Change arglist parameter to have type void *, and to be a pointer
12317         to a VEC.
12318         * config/rs6000/rs6000-protos.h
12319         (altivec_resolve_overloaded_builtin): Update declaration.
12320         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
12321         fnargs parameter to have type void *, and to be a pointer to a
12322         VEC.  Call build_function_call_vec instead of
12323         build_function_call.
12324         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
12325
12326 2009-04-20  Joey Ye  <joey.ye@intel.com>
12327             Xuepeng Guo  <xuepeng.guo@intel.com>
12328             H.J. Lu  <hongjiu.lu@intel.com>
12329
12330         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
12331
12332         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
12333         (IX86_LEA_PRIORITY): Likewise.
12334         (distance_non_agu_define): New function.
12335         (distance_agu_use): Likewise.
12336         (ix86_lea_for_add_ok): Likewise.
12337         (ix86_dep_by_shift_count): Likewise.
12338
12339         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
12340         should split for LEA.
12341
12342         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
12343         function.
12344         (ix86_dep_by_shift_count): Likewise.
12345
12346 2009-04-20  Richard Guenther  <rguenther@suse.de>
12347
12348         * expr.c (handled_component_p): Move ...
12349         * tree.h (handled_component_p): ... here.
12350         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
12351         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
12352         and REALPART_EXPR to be in one group.
12353
12354 2009-04-20  Richard Guenther  <rguenther@suse.de>
12355
12356         * basic-block.h (get_all_dominated_blocks): Declare.
12357         * dominance.c (get_all_dominated_blocks): New function.
12358         * tree-cfg.c (get_all_dominated_blocks): Remove.
12359         (remove_edge_and_dominated_blocks): Adjust.
12360         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
12361         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
12362         instead of recursing.
12363
12364 2009-04-20  Doug Kwan  <dougkwan@google.com>
12365
12366         * cgraph.h (cgraph_node_ptr): New type for vector functions.
12367         (struct cgraph_node_set_def): New type.
12368         (cgraph_node_set) New type. Also declare vector functions.
12369         (struct cgraph_node_set_element_def): New type.
12370         (cgraph_node_set_element): Ditto.
12371         (cgraph_node_set_iterator): New iterator type.
12372         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
12373         cgraph_node_set_remove, dump_cgraph_node_set,
12374         debug_cgraph_node_set): New prototypes.
12375         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
12376         cgraph_node_set_size): New inlines.
12377         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
12378         including cgraph.h.
12379         (struct ipa_opt_pass): Add struct cgraph_node_set_def
12380         argument to function 'write_summary'.
12381         * ipa.c: Include ggc.h.
12382         (hash_cgraph_node_set_element,
12383         eq_cgraph_node_set_element, cgraph_node_set_new,
12384         cgraph_node_set_add, cgraph_node_set_remove,
12385         cgraph_node_set_find, dump_cgraph_node_set,
12386         debug_cgraph_node_set): New functions.
12387         * Makefile.in (ipa.o): Add dependency on GGC_H.
12388
12389 2009-04-20  Ira Rosen  <irar@il.ibm.com>
12390
12391         PR tree-optimization/39675
12392         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
12393         check of the return code of vect_schedule_slp. Check that
12394         stmt_vec_info still exists for the statement, before checking its
12395         vectorization type.
12396
12397 2009-04-20  Michael Matz  <matz@suse.de>
12398
12399         * Makefile.in (generated_files): Take out $(simple_generated_c).
12400
12401 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
12402
12403         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
12404         (UINTPTR_TYPE):  Likewise.
12405
12406 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12407
12408         PR c/37481
12409         * c-typeck.c (digest_init): Check for initializing an array with a
12410         string literal.
12411
12412 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12413
12414         PR c/19771
12415         * c-semantics.c (pop_stmt_list): Propagate
12416         STATEMENT_LIST_HAS_LABEL to parent statement list.
12417
12418 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
12419
12420         * config/mips/mips.h (mips_tune_attr): New macro.
12421         * config/mips/mips.md (cpu): Use it.
12422
12423 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12424
12425         PR c/38243
12426         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
12427         declaring a tag.
12428
12429 2009-04-19  Diego Novillo  <dnovillo@google.com>
12430
12431         * toplev.c (compile_file): Move call to coverage_finish ...
12432         * cgraphunit.c (ipa_passes): ... here.
12433         Call cgraph_process_new_functions.
12434         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
12435         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
12436
12437 2009-04-19  Jan Hubicka  <jh@suse.cz>
12438
12439         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
12440         cfun.
12441         (dump_cgraph_node): Dump can throw external flag.
12442         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
12443
12444 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12445
12446         PR c/32061
12447         PR c++/36954
12448         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
12449         * common.opt (Wlogical-op): Move from here...
12450         * c.opt (Wlogical-op): ... to here.
12451         * c-typeck.c (parser_build_binary_op): Update call to
12452         warn_logical_operator.
12453         * c-opts.c (c_common_post_options): Enable warn_logical_op with
12454         extra_warnings.
12455         * c-common.c (warn_logical_op): Update.
12456         * c-common.h (warn_logical_op): Update declaration.
12457
12458 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12459
12460         * tree.c (protected_set_expr_location): Fix formatting.
12461
12462 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12463
12464         PR c/27676
12465         * c-typeck.c (readonly_warning): new.
12466         (build_unary_op, build_modify_expr): Use readonly_warning for
12467         storing into something readonly but not const-qualified.
12468
12469 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12470
12471         PR c/22367
12472         * c-typeck.c (build_unary_op): Check for taking address of
12473         expression of type void.
12474
12475 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12476
12477         PR c/35210
12478         * c-typeck.c (build_function_call): Check for calling a function
12479         with qualified void return types.  Call require_complete_type when
12480         generating a trap.
12481
12482 2009-04-18  Jan Hubicka  <jh@suse.cz>
12483
12484         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
12485         Set nothrow flag.
12486         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
12487         can_throw_external flag.
12488         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
12489         * ipa-pure-const.c (ignore_edge): New function.
12490         (propagate): Compute order for NOTHROW computation; set NOTHROWs
12491         only over can_throw_external edges.
12492         (local_pure_const): Add nothrow flag.
12493         * ipa-utils.c (searchc): Add ignore_edge callback.
12494         (ipa_utils_reduced_inorder): Add ignore_edge callback.
12495         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
12496         (set_nothrow_function_flags): Update cgraph.
12497         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
12498
12499 2009-04-18  Richard Guenther  <rguenther@suse.de>
12500
12501         PR middle-end/39804
12502         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
12503         (fold_stmt): ... this and ...
12504         (fold_stmt_inplace): ... this.
12505         (fold_stmt_1): Fold references in calls and asms.
12506         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
12507
12508 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12509
12510         * tree-vrp.c (ssa_name_nonzero_p): Remove.
12511         * tree.h: Remove the prototype for ssa_name_nonzero_p.
12512
12513 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12514
12515         * tree.c (function_args_count): Remove.
12516         * tree.h: Remove the prototype for function_args_count.
12517
12518 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12519
12520         * tree-iterator.c (expr_only): Remove.
12521         * tree.h: Remove the prototype for expr_only.
12522
12523 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12524
12525         * reginfo.c (cannot_change_mode_set_regs): Remove.
12526         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
12527
12528 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
12529
12530         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
12531         whether operands 0 and 1 overlaps.
12532
12533 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12534
12535         PR middle-end/36902
12536         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
12537         pointer. Use warning_at instead of warning.
12538         (search_for_addr_array): Likewise.
12539         (check_array_bounds): Likewise.
12540         (check_all_array_refs): Check that the incoming edge is not in the
12541         list of edges to be removed.
12542         (check_all_array_refs): Avoid the temporal pointer.
12543         (vrp_visit_cond_stmt): Fix typo.
12544         (simplify_switch_using_ranges): Handle the case where the switch
12545         index is an integer constant.
12546
12547 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
12548
12549         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
12550
12551 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12552
12553         * doc/extend.texi, doc/invoke.texi: Fix typos.
12554
12555 2009-04-17  Cary Coutant  <ccoutant@google.com>
12556
12557         * tree-flow-inline.h (get_lineno): Fix inverted test.
12558
12559 2009-04-17  Diego Novillo  <dnovillo@google.com>
12560
12561         * tree-ssa-pre.c (create_expression_by_pieces): Remove
12562         assertion for AVAIL_OUT.
12563
12564 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
12565
12566         PR target/38627
12567         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
12568         * config/sh/linux-atomic.asm: Likewise.
12569
12570 2009-04-17  Diego Novillo  <dnovillo@google.com>
12571
12572         * except.c (debug_eh_tree): New.
12573         (struct eh_region, struct eh_status): Move ...
12574         * except.h: ... here.
12575         (add_type_for_runtime): Declare extern.
12576         (lookup_type_for_runtime): Likewise.
12577         (debug_eh_tree): Declare.
12578         * Makefile.in (GTFILES): List except.h before except.c
12579
12580 2009-04-17  Diego Novillo  <dnovillo@google.com>
12581
12582         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
12583         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
12584         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
12585         (find_vars_r): ... here.
12586         * tree-flow.h (find_referenced_vars_in): Declare.
12587         * tree-ssa-pre.c (create_expression_by_pieces): Assert
12588         that AVAIL_OUT exists for BLOCK.
12589         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
12590         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
12591         (tree-parloops.o): Likewise.
12592
12593 2009-04-17  Simon Baldwin  <simonb@google.com>
12594
12595         * toplev.c (default_tree_printer): Add handling for %E format.
12596
12597 2009-04-17  Diego Novillo  <dnovillo@google.com>
12598
12599         * tree-pretty-print.c (dump_generic_node): Add break after
12600         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
12601         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
12602         FUNCTION_TYPE together.  Call print_struct_decl when printing
12603         structures and TDF_SLIM is not given.
12604         (print_struct_decl): Fix logic for detecting recursion.
12605
12606 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
12607
12608         PR 31567
12609         * gcc.c (create_at_file): New.
12610         (compile_input_file_p): New.
12611         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
12612         * main.c (main): Update call to toplev_main.
12613         * toplev.c (toplev_main): Change signature. Call expandargv.
12614         * toplev.h (toplev_main): Change signature.
12615
12616 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
12617
12618         * dwarf2out.c (field_byte_offset): Use the type size as the field size
12619         if the latter is not constant.
12620
12621 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
12622
12623         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
12624
12625 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
12626
12627         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
12628         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
12629
12630 2009-04-17  Richard Guenther  <rguenther@suse.de>
12631
12632         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12633         Handle component references view-converting an invariant address.
12634
12635 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
12636
12637         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
12638         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
12639         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
12640         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
12641         Use @deftypevr rather than @deftypevar.
12642
12643 2009-04-17  Richard Guenther  <rguenther@suse.de>
12644
12645         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
12646         (get_prop_source_stmt): Likewise.
12647         (can_propagate_from): Likewise.
12648
12649 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
12650
12651         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
12652         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
12653         (--with-multilib-list): Add default value.
12654         * configure: Regenerate.
12655         * Makefile.in (TM_ENDIAN_CONFIG): Define.
12656         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
12657         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
12658         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
12659         Don't add default cpu to multilib list unnecessarily, but do enable
12660         the relevant compiler option..
12661         Add support for --with-multilib-list=<blank> and
12662         --with-multilib-list=!<somelib> to supress unwanted multilibs.
12663         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
12664         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
12665         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
12666         TM_MULTILIB_CONFIG.
12667         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
12668         (MULTILIB_OSDIRNAMES): New variable.
12669         * config/sh/t-1e: Delete file.
12670         * config/sh/t-mlib-sh1: Delete file.
12671         * config/sh/t-mlib-sh2: Delete file.
12672         * config/sh/t-mlib-sh2a: Delete file.
12673         * config/sh/t-mlib-sh2a-nofpu: Delete file.
12674         * config/sh/t-mlib-sh2a-single: Delete file.
12675         * config/sh/t-mlib-sh2a-single-only: Delete file.
12676         * config/sh/t-mlib-sh2e: Delete file.
12677         * config/sh/t-mlib-sh3e: Delete file.
12678         * config/sh/t-mlib-sh4: Delete file.
12679         * config/sh/t-mlib-sh4-nofpu: Delete file.
12680         * config/sh/t-mlib-sh4-single: Delete file.
12681         * config/sh/t-mlib-sh4-single-only: Delete file.
12682         * config/sh/t-mlib-sh4a: Delete file.
12683         * config/sh/t-mlib-sh4a-nofpu: Delete file.
12684         * config/sh/t-mlib-sh4a-single: Delete file.
12685         * config/sh/t-mlib-sh4a-single-only: Delete file.
12686         * config/sh/t-mlib-sh4al: Delete file.
12687         * config/sh/t-mlib-sh5-32media: Delete file.
12688         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
12689         * config/sh/t-mlib-sh5-64media: Delete file.
12690         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
12691         * config/sh/t-mlib-sh5-compact: Delete file.
12692         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
12693         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
12694         * doc/install.texi (Options specification): Add
12695         --with-multilib-list and --with-endian.
12696
12697 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
12698
12699         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
12700         REVISION_c.
12701         (OBJS-common): Add plugin-version.o.
12702         (plugin-version.o): New.
12703         * gcc-plugin.h (plugin_gcc_version): New.
12704         (plugin_default_version_check): New.
12705         (plugin_init_func, plugin_init): Add version argument.
12706         * plugin-version.c: New.
12707         * plugin.c (str_plugin_gcc_version_name): New.
12708         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
12709         pass it to the init function.
12710         (plugin_default_version_check): New.
12711
12712 2009-04-17  Richard Guenther  <rguenther@suse.de>
12713
12714         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
12715         for decl-vs-decl disambiguation.
12716
12717 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
12718
12719         * config/s390/s390.h (s390_tune_attr): New macro definition.
12720         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
12721
12722 2009-04-17  Richard Guenther  <rguenther@suse.de>
12723
12724         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
12725         (fold_stmt_r): Likewise.
12726         (maybe_fold_reference): New function.
12727         (fold_gimple_assign): Handle cases fold_stmt_r did.
12728         (fold_stmt): Do not use fold_stmt_r.
12729         (fold_stmt_inplace): Likewise.
12730
12731 2009-04-17  Richard Guenther  <rguenther@suse.de>
12732
12733         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
12734         (record_equivalences_from_stmt): Remove useless checks and
12735         simplifications.
12736         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
12737         the type is already suitable.
12738
12739 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
12740
12741         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
12742
12743 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
12744
12745         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
12746         (CMPtype): Define as __gcc_CMPtype.
12747
12748 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
12749
12750         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
12751         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
12752
12753 2009-04-17  Richard Guenther  <rguenther@suse.de>
12754
12755         PR tree-optimization/39746
12756         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
12757         special-casing for builtins and static variable use/def.
12758         (call_may_clobber_ref_p_1): Likewise.
12759
12760 2009-04-16  Ian Lance Taylor  <iant@google.com>
12761
12762         * df.h: Include "timevar.h".
12763         (struct df_problem): Change tv_id field to timevar_id_t.
12764         * tree-pass.h: Include "timevar.h".
12765         (struct opt_pass): Change tv_id field to timevar_id_t.
12766         * timevar.h (timevar_id_t): Define TV_NONE.
12767         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
12768         TV_NONE rather than tv_id != 0.
12769         (execute_one_pass): Likewise.
12770         * Makefile.in (DF_H): Add $(TIMEVAR_H).
12771         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
12772         dependencies to $(TREE_PASS_H).
12773         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
12774         to TV_NONE.
12775         (pass_branch_target_load_optimize2): Likewise.
12776         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
12777         (pass_outof_cfg_layout_mode): Likewise.
12778         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
12779         (pass_rebuild_cgraph_edges): Likewise.
12780         (pass_remove_cgraph_callee_edges): Likewise.
12781         * df-core.c (pass_df_initialize_opt): Likewise.
12782         (pass_df_initialize_no_opt): Likewise.
12783         (pass_df_finish): Likewise.
12784         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
12785         * except.c (pass_set_nothrow_function_flags): Likewise.
12786         (pass_convert_to_eh_region_ranges): Likewise.
12787         * final.c (pass_compute_alignments): Likewise.
12788         * function.c (pass_instantiate_virtual_regs): Likewise.
12789         (pass_init_function): Likewise.
12790         (pass_leaf_regs): Likewise.
12791         (pass_match_asm_constraints): Likewise.
12792         * gimple-low.c (pass_lower_cf): Likewise.
12793         (pass_mark_used_blocks): Likewise.
12794         * init-regs.c (pass_initialize_regs): Likewise.
12795         * integrate.c (pass_initial_value_sets): Likewise.
12796         * ira.c (pass_ira): Likewise.
12797         * jump.c (pass_cleanup_barriers): Likewise.
12798         * omp-low.c (pass_expand_omp): Likewise.
12799         (pass_lower_omp): Likewise.
12800         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
12801         * recog.c (pass_split_all_insns): Likewise.
12802         (pass_split_after_reload): Likewise.
12803         (pass_split_before_regstack): Likewise.
12804         (pass_split_before_sched2): Likewise.
12805         (pass_split_for_shorten_branches): Likewise.
12806         * reginfo.c (pass_reginfo_init): Likewise.
12807         (pass_subregs_of_mode_init): Likewise.
12808         (pass_subregs_of_mode_finish): Likewise.
12809         * passes.c (pass_postreload): Likewise.
12810         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
12811         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
12812         (pass_warn_function_return): Likewise.
12813         (pass_warn_function_noreturn): Likewise.
12814         * tree-complex.c (pass_lower_complex): Likewise.
12815         (pass_lower_complex_O0): Likewise.
12816         * tree-if-conv.c (pass_if_conversion): Likewise.
12817         * tree-into-ssa.c (pass_build_ssa): Likewise.
12818         * tree-mudflap.c (pass_mudflap_1): Likewise.
12819         (pass_mudflap_2): Likewise.
12820         * tree-nomudflap.c (pass_mudflap_1): Likewise.
12821         (pass_mudflap_2): Likewise.
12822         * tree-nrv.c (pass_return_slot): Likewise.
12823         * tree-object-size.c (pass_object_sizes): Likewise.
12824         * tree-optimize.c (pass_all_optimizations): Likewise.
12825         (pass_early_local_passes): Likewise.
12826         (pass_all_early_optimizations): Likewise.
12827         (pass_cleanup_cfg): Likewise.
12828         (pass_cleanup_cfg_post_optimizing): Likewise.
12829         (pass_free_datastructures): Likewise.
12830         (pass_free_cfg_annotations): Likewise.
12831         (pass_fixup_cfg): Likewise.
12832         (pass_init_datastructures): Likewise.
12833         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
12834         (pass_late_warn_uninitialized): Likewise.
12835         (pass_update_address_taken): Likewise.
12836         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
12837         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
12838         (pass_cse_sincos): Likewise.
12839         (pass_convert_to_rsqrt): Likewise.
12840         * tree-ssa-structalias.c (pass_build_alias): Likewise.
12841         * tree-stdarg.c (pass_stdarg): Likewise.
12842         * tree-tailcall.c (pass_tail_recursion): Likewise.
12843         (pass_tail_calls): Likewise.
12844         * tree-vect-generic.c (pass_lower_vector): Likewise.
12845         (pass_lower_vector_ssa): Likewise.
12846         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
12847
12848 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
12849
12850         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
12851         XLR entry.
12852         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
12853         Handle -march=xlr.
12854         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
12855         logical and signext.
12856
12857 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12858
12859         PR target/39767
12860         * config/sh/predicates.md (arith_operand): Check if the operand
12861         of TRUNCATE is a REG.
12862
12863 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12864
12865         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
12866         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
12867
12868 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12869
12870         * tree-iterator.c (tsi_split_statement_list_after,
12871         tsi_split_statement_list_before): Remove.
12872         * tree-iterator.h: Remove the prototypes for
12873         tsi_split_statement_list_after and tsi_split_statement_list_before.
12874
12875 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12876
12877         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
12878         * tree-ssa-propagate.h: Remove the prototype for
12879         stmt_makes_single_load.
12880
12881 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12882
12883         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
12884         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
12885
12886 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12887
12888         * tree-iterator.c (EXPR_LAST_BODY): Remove.
12889
12890 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12891
12892         * except.c (eh_region_outer_p): Remove.
12893         * except.h: Remove the prototype for eh_region_outer_p.
12894
12895 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
12896
12897         * function.c (current_function_assembler_name): Remove.
12898         * function.h: Remove the prototype for
12899         current_function_assembler_name.
12900
12901 2009-04-16  Ian Lance Taylor  <iant@google.com>
12902
12903         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
12904         (add_reg_note): Call alloc_reg_note.
12905         * rtl.h (alloc_reg_note): Declare.
12906         * combine.c (try_combine): Use alloc_reg_note.
12907         (recog_for_combine, move_deaths): Likewise.
12908         (distribute_notes): Use alloc_reg_note and add_reg_note.
12909         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
12910         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
12911         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
12912
12913 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
12914
12915         PR rtl-optimization/39762
12916         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
12917         ira_may_move_out_cost): Add comments about way of their usage.
12918         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
12919
12920         * ira-conflicts.c (process_regs_for_copy): Use function
12921         ira_get_register_move_cost instead of global
12922         ira_register_move_cost.
12923
12924         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
12925         color_pass, move_spill_restore, update_curr_costs): Ditto.
12926
12927         * ira-lives.c (process_single_reg_class_operands): Ditto.
12928
12929         * ira-emit.c (emit_move_list): Ditto.
12930
12931         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
12932         (record_reg_classes): Ditto.  Use functions
12933         ira_get_register_move_cost and ira_get_may_move_cost instead of
12934         global vars ira_register_move_cost, ira_may_move_out_cost and
12935         ira_may_move_in_cost.
12936         (record_address_regs): Don't call ira_init_register_move_cost.
12937         Use function ira_get_may_move_cost instead of global
12938         ira_may_move_in_cost.
12939         (process_bb_node_for_hard_reg_moves): Use function
12940         ira_get_register_move_cost instead of global ira_register_move_cost.
12941         (ira_costs): Don't call ira_init_register_move_cost.
12942
12943 2009-04-16  Richard Guenther  <rguenther@suse.de>
12944
12945         * tree-cfg.c (verify_gimple_assign_binary):
12946         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
12947         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
12948         (create_general_new_stmt): Note that this function is broken.
12949
12950 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
12951
12952         * common.opt (fhelp): Add Var(help_flag).
12953         * gcc-plugin.h (plugin_info): Add help.
12954         * plugin.c (plugin_name_args): Add help.
12955         (register_plugin_info): Set plugin->help.
12956         (print_help_one_plugin): New.
12957         (print_plugins_help): New.
12958         * plugin.h (print_plugins_help): New.
12959         * toplev.c (toplev_main): Call print_plugins_help if needed.
12960
12961 2009-04-16  Richard Guenther  <rguenther@suse.de>
12962
12963         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
12964         (gimple_ior_addresses_taken_1): New function.
12965         (gimple_ior_addresses_taken): Likewise.
12966         * gimple.h (struct gimple_statement_with_ops_base): Remove
12967         addresses_taken member.
12968         (gimple_ior_addresses_taken): Declare.
12969         (gimple_addresses_taken, gimple_addresses_taken_ptr,
12970         gimple_set_addresses_taken): Remove.
12971         * ipa-reference.c (mark_address): New function.
12972         (scan_stmt_for_static_refs): Use it for marking addresses taken.
12973         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
12974         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
12975         (gimple_add_to_addresses_taken): Remove.
12976         (get_tmr_operands): Call mark_address_taken.
12977         (get_asm_expr_operands): Likewise.
12978         (get_expr_operands): Likewise.
12979         (build_ssa_operands): Do not clear the addresses_taken bitmap.
12980         (free_stmt_operands): Do not free it.
12981         * tree-ssa.c (delete_tree_ssa): Likewise.
12982         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
12983
12984 2009-04-16  Richard Guenther  <rguenther@suse.de>
12985
12986         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
12987         (walk_stmt_load_store_ops): Likewise.
12988         * gimple.c (get_base_loadstore): New function.
12989         (walk_stmt_load_store_addr_ops): Likewise.
12990         (walk_stmt_load_store_ops): Likewise.
12991         * ipa-pure-const.c (check_op): Simplify.
12992         (check_load, check_store): New functions.
12993         (check_stmt): Use walk_stmt_load_store_ops.
12994         * ipa-reference.c (mark_load): Adjust signature.
12995         (mark_store): Likewise.
12996         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
12997
12998 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
12999
13000         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
13001         (plugin_info): New.
13002         * opts.c (common_handle_option): Don't call print_version.
13003         * plugin.c (plugin_name_args): Add version.
13004         (register_plugin_info): New.
13005         (register_callback): Handle PLUGIN_INFO.
13006         (try_init_one_plugin): New.
13007         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
13008         if failed to init.
13009         (finalize_one_plugin): New.
13010         (finalize_plugins): New.
13011         (print_one_plugin): New.
13012         (print_plugins_versions): New.
13013         * plugin.h (print_plugins_versions): New.
13014         (finalize_plugins): New.
13015         * toplev.c (compile_file): Don't call initialize_plugins.
13016         (print_version): Call print_plugins_versions.
13017         (toplev_main): Call initialize_plugins. Print version if needed.
13018         Call finalize_plugins.
13019
13020 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13021
13022         * common.opt (fversion): New.
13023         * gcc.c (print_version): New.
13024         (process_command): Don't print the version. Just set print_version.
13025         (main): Print version. Call subprocesses if print_version and
13026         verbose_flag are set.
13027         * opts.c (common_handle_option): Handle OPT_fversion.
13028
13029 2009-04-16  Richard Guenther  <rguenther@suse.de>
13030             Ira Rosen  <irar@il.ibm.com>
13031
13032         PR tree-optimization/39698
13033         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
13034         type of the reduction variable.  Only generate the def if
13035         it is needed.
13036
13037         * omp-low.c (expand_omp_for_generic): When converting to a pointer
13038         make sure to first convert to an integer of the same precision.
13039         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
13040         the type of the evolution correctly in computing the new
13041         induction variable base.
13042
13043 2009-04-16  Richard Guenther  <rguenther@suse.de>
13044
13045         PR middle-end/39625
13046         * tree-cfg.c (make_blocks): Split statements with to-be
13047         abnormal SSA names on the lhs.
13048
13049 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
13050
13051         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
13052         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
13053         * c-typeck.c (really_start_incremental_init): Likewise.
13054         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
13055         (TARGET_INITIALIZER): Remove it.
13056         * target.h (struct target): Remove vector_opaque_p.
13057         * tree.c (build_opaque_vector_type): New.
13058         * tree.h (TYPE_VECTOR_OPAQUE): New.
13059         (build_opaque_vector_type): Declare.
13060         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
13061         * config/rs6000/rs6000.c (build_opaque_vector_type,
13062         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
13063         (rs6000_init_builtins): Use build_opaque_vector_type for
13064         opaque_V4SI_type_node.
13065
13066 2009-04-15  Catherine Moore  <clm@codesourcery.com>
13067
13068         * debug.h (set_name):  Declare.
13069         * dwarf2out.c (dwarf2out_set_name): Declare.
13070         (dwarf2_debug_hooks): Add set_name.
13071         (find_AT_string): New.
13072         (add_AT_string): Call find_AT_string.
13073         (dwarf2out_set_name): New.
13074         * cp/decl.c (grokdeclarator): Call set_name.
13075         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
13076         * debug.c (do_nothing_debug_hooks):  Likewise.
13077         * dbxout.c (dbx_debug_hooks): Likewise.
13078         * sdbout.c (sdb_debug_hooks): Likewise.
13079
13080 2009-04-15  Michael Eager  <eager@eagercon.com>
13081
13082         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
13083         reg for single-precision FPU.
13084         * config/rs6000/rs6000.md (movsi_internal1): Only for
13085         !TARGET_SINGLE_FPU.
13086         (movsi_internal1_single): New. Add pattern to move SI values to/from
13087         single-precision FP regs.
13088
13089 2009-04-15  Richard Guenther  <rguenther@suse.de>
13090
13091         * omp-low.c (lower_rec_input_clauses): Build correct address
13092         expressions.
13093         (expand_omp_for_generic): Fix multiplication type.
13094         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
13095         (generate_memset_zero): Fix types.
13096         * tree-profile.c (prepare_instrumented_value): Correctly
13097         widen a pointer.
13098
13099 2009-04-15  Ian Lance Taylor  <iant@google.com>
13100
13101         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
13102         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
13103         for -Wall and for -Wc++-compat.
13104         (c_common_post_options): For C++, set warn_enum_compare if not
13105         already set.
13106         * c-tree.h (struct c_expr): Add field original_type.
13107         (build_external_ref): Update declaration.
13108         * c-parser.c (c_parser_braced_init): Set original_type.
13109         (c_parser_initelt): Likewise.
13110         (c_parser_expr_no_commas): Likewise.
13111         (c_parser_conditional_expression): Likewise.
13112         (c_parser_cast_expression): Likewise.
13113         (c_parser_unary_expression): Likewise.  Pull setting of
13114         original_code to top of function.
13115         (c_parser_sizeof_expression): Set original_type.
13116         (c_parser_alignof_expression): Likewise.
13117         (c_parser_postfix_expression): Likewise.  Pull setting of
13118         original_code to top of function.
13119         (c_parser_postfix_expression_after_paren_type): Set original_type.
13120         (c_parser_postfix_expression_after_primary): Likewise.
13121         (c_parser_expression): Likewise.
13122         * c-typeck.c (build_external_ref): Add type parameter.  Change all
13123         callers.
13124         (c_expr_sizeof_expr): Set original_type field.
13125         (parser_build_unary_op): Likewise.
13126         (parser_build_binary_op): Likewise.  Optionally warn about
13127         comparisons of enums of different types.
13128         (digest_init): Set original_type field.
13129         (really_start_incremental_init): Likewise.
13130         (push_init_level, pop_init_level): Likewise.
13131         * doc/invoke.texi (Warning Options): -Wenum-compare now
13132         supported in C.
13133
13134 2009-04-15  Richard Guenther  <rguenther@suse.de>
13135
13136         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
13137         out a necessary conversion.
13138         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
13139         names we didn't value number.
13140         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
13141
13142 2009-04-15  Richard Guenther  <rguenther@suse.de>
13143
13144         PR tree-optimization/39764
13145         * tree-ssa-ccp.c (get_value): Canonicalize value with
13146         canonicalize_float_value.
13147
13148 2009-04-15  Jan Hubicka  <jh@suse.cz>
13149
13150         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
13151         Wrong version of patch.
13152
13153 2009-04-15  Jan Hubicka  <jh@suse.cz>
13154
13155         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
13156
13157 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
13158
13159         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
13160         our distinct integral and vector types.
13161
13162 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
13163
13164         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
13165         * init.c (build_vtbl_address): Remove call to assemble_external.
13166
13167 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
13168
13169         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
13170         output for other floating point modes.
13171
13172 2009-04-14  Diego Novillo  <dnovillo@google.com>
13173
13174         * diagnostic.c (diagnostic_report_diagnostic): Do not
13175         warn about loaded plugins for DK_ERROR and DK_WARNING.
13176         * c-decl.c (declspecs_add_type): Move call to
13177         invoke_plugin_callbacks ...
13178         * c-parser.c (c_parser_declspecs): ... here.
13179         * plugin.c (dump_active_plugins): Tidy output.
13180
13181 2009-04-14  Diego Novillo  <dnovillo@google.com>
13182             Le-Chun Wu  <lcwu@google.com>
13183
13184         * configure.ac: Add --enable-plugin support.
13185         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
13186         * Makefile.in (PLUGIN_H): Define.
13187         Export ENABLE_PLUGIN and GMPINC to site.exp.
13188         Add PLUGINLIBS to link command.
13189         Add/modify dependencies for plugin.o and files including plugin.h.
13190         (plugin.o): New.
13191         * config.in: Regenerate.
13192
13193         * opts.c (common_handle_option): Handle OPT_fplugin_ and
13194         OPT_fplugin_arg_.
13195
13196 2009-04-14  Le-Chun Wu  <lcwu@google.com>
13197
13198         * tree-pass.h (register_one_dump_file): Add a prototype for
13199         register_one_dump_file.
13200         * toplev.c (compile_file): Call initialize_plugins.
13201         (do_compile): Call invoke_plugin_callbacks.
13202         (toplev_main): Call invoke_plugin_callbacks.
13203         * common.opt: Add -fplugin= and -fplugin-arg-.
13204         * gcc-plugin.h: New public header file for plugins to include.
13205         * plugin.c: New source file.
13206         * plugin.h: New internal header file.
13207         * passes.c (register_one_dump_file): Make it external.
13208
13209         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
13210
13211 2009-04-14  Diego Novillo  <dnovillo@google.com>
13212
13213         * doc/plugins.texi: New.
13214         * doc/gccint.texi: Add reference to Plugins chapter.
13215         * doc/invoke.texi: Document -fplugin and -fplugin-arg
13216         * diagnostic.c (diagnostic_report_diagnostic): Warn about
13217         loaded plugins, if any.
13218         * timevar.def (TV_PLUGIN_INIT): Define.
13219         (TV_PLUGIN_RUN): Define.
13220         * plugin.c: Include timevar.h
13221         (plugins_active_p): New.
13222         (dump_active_plugins): New.
13223         (debug_active_plugins): New.
13224
13225 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
13226
13227         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
13228         library paths.
13229         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
13230
13231 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
13232
13233         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
13234         the same as a minus without a shift.
13235
13236 2009-04-14  Nick Clifton  <nickc@redhat.com>
13237
13238         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
13239         comparisons with small integers will always produce a short
13240         branch.
13241
13242 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
13243
13244         Merge:
13245         2008-12-19  Diego Novillo  <dnovillo@google.com>
13246
13247         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
13248
13249 2009-04-14  Richard Guenther  <rguenther@suse.de>
13250
13251         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
13252         verification.
13253         (verify_gimple_assign_binary): Likewise.  Handle shifts and
13254         rotates correctly.
13255         (verify_gimple_phi): Print the mismatched argument position.
13256         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13257         Fix types.
13258         (vect_update_init_of_dr): Likewise.
13259         * matrix-reorg.c (transform_access_sites): Do what the
13260         comment suggests.
13261         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
13262
13263 2009-04-13  Michael Eager  <eager@eagercon.com>
13264
13265         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
13266         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
13267         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
13268         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
13269         remove duplicate config
13270
13271 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13272
13273         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
13274         file_name:line_number type locator of the call site.
13275
13276 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
13277
13278         * genautomata.c: Put blank after comma.
13279         (automaton_decls): New.
13280         (struct unit_usage): Add comments to member next.
13281         (store_alt_unit_usage): Keep the list ordered.
13282         (unit_present_on_list_p, equal_alternatives_p): New.
13283         (check_regexp_units_distribution): Check units distribution
13284         correctness correctly.
13285         (main): Don't write automata if error is found.  Return correct
13286         exit code.
13287
13288         * config/m68k/cf.md (cfv4_ds): Remove.
13289         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
13290         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
13291
13292         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
13293         power4-load-ext, power4-store, power4-store-update,
13294         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
13295         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
13296         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
13297         power4-sqrt, power4-isync): Modify reservation to make correct
13298         unit distribution to automata.
13299
13300         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
13301         power5-store-update, power5-two, power5-three, power5-lmul,
13302         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
13303
13304 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
13305
13306         * except.c (pass_set_nothrow_function_flags): Set name and add
13307         TODO_dump_func.
13308         (set_nothrow_function_flags): Mention in the dump file when
13309         changing a function to nothrow.
13310
13311 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
13312
13313         PR/39066
13314         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
13315         instead of unsigned long.
13316
13317 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13318
13319         * config/arm/arm.c (return_used_this_function): Remove.
13320         (arm_output_function_prologue): Remove use of
13321         return_used_this_function.
13322         (output_return_instruction): Replace use of
13323         return_used_this_function
13324         by cfun->machine->return_used_this_function.
13325         (arm_output_epilogue): Likewise.
13326         (arm_output_function_epilogue): Likewise.
13327         (thumb_unexpanded_epilogue): Likewise.
13328         * config/arm/arm.h (struct machine_function):
13329         New member return_used_this_function.
13330
13331 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
13332
13333         * doc/install.texi: Correct description of default directory for
13334         --with-gxx-include-dir.
13335
13336 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13337
13338         * fold-const.c (build_range_check): Properly deal with enumeral and
13339         boolean base types.
13340
13341 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
13342
13343         * doc/invoke.texi (max_gcse_passes): Remove documentation.
13344         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
13345         * params.h (MAX_GCSE_PASSES): Remove.
13346         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
13347         in sequence.  Remove ability to run multiple passes.
13348         (bypass_jumps): Report run as third CPROP pass.
13349
13350 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
13351
13352         PR middle-end/39651
13353         * except.c (can_throw_external): Look at each insn in a SEQUENCE
13354         when deciding whether the whole SEQUENCE can throw.
13355
13356 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
13357
13358         PR target/39740
13359         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
13360         offseted label references.
13361
13362 2009-04-11  Jan Hubicka  <jh@suse.cz>
13363
13364         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
13365
13366 2009-04-11  Richard Guenther  <rguenther@suse.de>
13367
13368         PR middle-end/39732
13369         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
13370         return variables as TREE_ADDRESSABLE.
13371
13372 2009-04-11  Richard Guenther  <rguenther@suse.de>
13373
13374         PR tree-optimization/39713
13375         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
13376         reference trees have SSA_NAME operands.
13377
13378 2009-04-11  Richard Guenther  <rguenther@suse.de>
13379
13380         PR c/39712
13381         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
13382         address expressions.
13383
13384 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
13385
13386         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
13387         match changes in Cygwin 1.7
13388         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
13389         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
13390
13391 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13392
13393         PR tree-optimization/39701
13394         * doc/invoke.texi (Optimization Options): Document change in
13395         meaning and initialization of -fdelete-null-pointer-checks.
13396
13397 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13398
13399         PR middle-end/39701
13400         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
13401
13402         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
13403         here.
13404
13405         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
13406
13407 2009-04-10  Chao-ying Fu  <fu@mips.com>
13408
13409         * doc/tm.texi (Instruction Output): Document
13410         TARGET_ASM_FINAL_POSTSCAN_INSN.
13411         * target.h (final_postscan_insn): New field in asm_out.
13412         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13413         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
13414         * final.c (final_scan_insn): Call
13415         targetm.asm_out.final_postscan_insn after outputting
13416         an asm macro and a normal instruction.
13417
13418         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
13419         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
13420         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
13421         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
13422         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13423
13424 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13425
13426         PR middle-end/39701
13427         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
13428         variables as non-NULL even with -fdelete-null-pointer-checks.
13429
13430 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13431
13432         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
13433
13434 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
13435
13436         PR target/39678
13437         * config/i386/i386.c (classify_argument): Handle SCmode with
13438         (bit_offset % 64) != 0.
13439
13440 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
13441
13442         * doc/invoke.texi (Optimize Options): Add cross-reference to
13443         -Q --help=optimizers examples.
13444
13445 2009-04-10  Ben Elliston  <bje@au.ibm.com>
13446
13447         PR target/36800
13448         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
13449         regalign for the reg == fpr and TDmode case.
13450
13451 2009-04-09  David Ayers  <ayers@fsfe.org>
13452
13453         PR objc/29200
13454         * objc/objc-act.c (warn_with_method): Remove helper function.
13455         (check_duplicates): Call warning and inform directly.
13456         (really_start_method): Likewise.
13457
13458 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
13459
13460         * expmed.c (expand_divmod): Always use a comparison for a division
13461         by a large unsigned integer.
13462
13463         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
13464         for things others than variables or functions as nonzero.
13465
13466 2009-04-09  Nick Clifton  <nickc@redhat.com>
13467
13468         * unwind-compat.c: Change copyright header to refer to version
13469         3 of the GNU General Public License with version 3.1 of the
13470         GCC Runtime Library Exception and to point readers at the
13471         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
13472         * config/alpha/crtfastmath.c: Likewise.
13473         * config/alpha/linux-unwind.h: Likewise.
13474         * config/alpha/qrnnd.asm: Likewise.
13475         * config/alpha/vms-crt0-64.c: Likewise.
13476         * config/alpha/vms-crt0.c: Likewise.
13477         * config/alpha/vms-dwarf2.asm: Likewise.
13478         * config/alpha/vms-dwarf2eh.asm: Likewise.
13479         * config/alpha/vms-psxcrt0-64.c: Likewise.
13480         * config/alpha/vms-psxcrt0.c: Likewise.
13481         * config/alpha/vms_tramp.asm: Likewise.
13482         * config/arc/initfini.c: Likewise.
13483         * config/arc/lib1funcs.asm: Likewise.
13484         * config/arm/bpabi-v6m.S: Likewise.
13485         * config/arm/bpabi.S: Likewise.
13486         * config/arm/bpabi.c: Likewise.
13487         * config/arm/crti.asm: Likewise.
13488         * config/arm/crtn.asm: Likewise.
13489         * config/arm/ieee754-df.S: Likewise.
13490         * config/arm/ieee754-sf.S: Likewise.
13491         * config/arm/lib1funcs.asm: Likewise.
13492         * config/arm/libunwind.S: Likewise.
13493         * config/arm/linux-atomic.c: Likewise.
13494         * config/arm/mmintrin.h: Likewise.
13495         * config/arm/pr-support.c: Likewise.
13496         * config/arm/unaligned-funcs.c: Likewise.
13497         * config/arm/unwind-arm.c: Likewise.
13498         * config/arm/unwind-arm.h: Likewise.
13499         * config/avr/libgcc.S: Likewise.
13500         * config/bfin/crti.s: Likewise.
13501         * config/bfin/crtlibid.s: Likewise.
13502         * config/bfin/crtn.s: Likewise.
13503         * config/bfin/lib1funcs.asm: Likewise.
13504         * config/bfin/linux-unwind.h: Likewise.
13505         * config/cris/arit.c: Likewise.
13506         * config/cris/cris_abi_symbol.c: Likewise.
13507         * config/darwin-64.c: Likewise.
13508         * config/darwin-crt2.c: Likewise.
13509         * config/darwin-crt3.c: Likewise.
13510         * config/darwin.h: Likewise.
13511         * config/dbxelf.h: Likewise.
13512         * config/dfp-bit.c: Likewise.
13513         * config/dfp-bit.h: Likewise.
13514         * config/elfos.h: Likewise.
13515         * config/fixed-bit.c: Likewise.
13516         * config/fixed-bit.h: Likewise.
13517         * config/fp-bit.c: Likewise.
13518         * config/fp-bit.h: Likewise.
13519         * config/fr30/crti.asm: Likewise.
13520         * config/fr30/crtn.asm: Likewise.
13521         * config/fr30/lib1funcs.asm: Likewise.
13522         * config/freebsd-spec.h: Likewise.
13523         * config/frv/cmovd.c: Likewise.
13524         * config/frv/cmovh.c: Likewise.
13525         * config/frv/cmovw.c: Likewise.
13526         * config/frv/frvbegin.c: Likewise.
13527         * config/frv/frvend.c: Likewise.
13528         * config/frv/lib1funcs.asm: Likewise.
13529         * config/glibc-stdint.h: Likewise.
13530         * config/h8300/clzhi2.c: Likewise.
13531         * config/h8300/crti.asm: Likewise.
13532         * config/h8300/crtn.asm: Likewise.
13533         * config/h8300/ctzhi2.c: Likewise.
13534         * config/h8300/fixunssfsi.c: Likewise.
13535         * config/h8300/lib1funcs.asm: Likewise.
13536         * config/h8300/parityhi2.c: Likewise.
13537         * config/h8300/popcounthi2.c: Likewise.
13538         * config/i386/ammintrin.h: Likewise.
13539         * config/i386/att.h: Likewise.
13540         * config/i386/avxintrin.h: Likewise.
13541         * config/i386/biarch64.h: Likewise.
13542         * config/i386/bmmintrin.h: Likewise.
13543         * config/i386/cpuid.h: Likewise.
13544         * config/i386/cross-stdarg.h: Likewise.
13545         * config/i386/crtfastmath.c: Likewise.
13546         * config/i386/crtprec.c: Likewise.
13547         * config/i386/cygming-crtbegin.c: Likewise.
13548         * config/i386/cygming-crtend.c: Likewise.
13549         * config/i386/cygwin.asm: Likewise.
13550         * config/i386/emmintrin.h: Likewise.
13551         * config/i386/gmm_malloc.h: Likewise.
13552         * config/i386/gthr-win32.c: Likewise.
13553         * config/i386/i386.h: Likewise.
13554         * config/i386/immintrin.h: Likewise.
13555         * config/i386/linux-unwind.h: Likewise.
13556         * config/i386/linux64.h: Likewise.
13557         * config/i386/mm3dnow.h: Likewise.
13558         * config/i386/mmintrin-common.h: Likewise.
13559         * config/i386/mmintrin.h: Likewise.
13560         * config/i386/nmmintrin.h: Likewise.
13561         * config/i386/pmm_malloc.h: Likewise.
13562         * config/i386/pmmintrin.h: Likewise.
13563         * config/i386/smmintrin.h: Likewise.
13564         * config/i386/sol2-c1.asm: Likewise.
13565         * config/i386/sol2-ci.asm: Likewise.
13566         * config/i386/sol2-cn.asm: Likewise.
13567         * config/i386/sol2-gc1.asm: Likewise.
13568         * config/i386/tmmintrin.h: Likewise.
13569         * config/i386/unix.h: Likewise.
13570         * config/i386/w32-unwind.h: Likewise.
13571         * config/i386/wmmintrin.h: Likewise.
13572         * config/i386/x86-64.h: Likewise.
13573         * config/i386/x86intrin.h: Likewise.
13574         * config/i386/xmmintrin.h: Likewise.
13575         * config/ia64/crtbegin.asm: Likewise.
13576         * config/ia64/crtend.asm: Likewise.
13577         * config/ia64/crtfastmath.c: Likewise.
13578         * config/ia64/crti.asm: Likewise.
13579         * config/ia64/crtn.asm: Likewise.
13580         * config/ia64/fde-glibc.c: Likewise.
13581         * config/ia64/lib1funcs.asm: Likewise.
13582         * config/ia64/linux-unwind.h: Likewise.
13583         * config/ia64/quadlib.c: Likewise.
13584         * config/ia64/unwind-ia64.c: Likewise.
13585         * config/linux.h: Likewise.
13586         * config/m32c/m32c-lib1.S: Likewise.
13587         * config/m32c/m32c-lib2-trapv.c: Likewise.
13588         * config/m32c/m32c-lib2.c: Likewise.
13589         * config/m32r/initfini.c: Likewise.
13590         * config/m68hc11/larith.asm: Likewise.
13591         * config/m68hc11/m68hc11-crt0.S: Likewise.
13592         * config/m68k/cf.md: Likewise.
13593         * config/m68k/crti.s: Likewise.
13594         * config/m68k/crtn.s: Likewise.
13595         * config/m68k/lb1sf68.asm: Likewise.
13596         * config/m68k/linux-unwind.h: Likewise.
13597         * config/mcore/crti.asm: Likewise.
13598         * config/mcore/crtn.asm: Likewise.
13599         * config/mcore/lib1.asm: Likewise.
13600         * config/mips/linux-unwind.h: Likewise.
13601         * config/mips/loongson.h: Likewise.
13602         * config/mips/mips16.S: Likewise.
13603         * config/mmix/crti.asm: Likewise.
13604         * config/mmix/crtn.asm: Likewise.
13605         * config/pa/fptr.c: Likewise.
13606         * config/pa/hpux-unwind.h: Likewise.
13607         * config/pa/lib2funcs.asm: Likewise.
13608         * config/pa/linux-atomic.c: Likewise.
13609         * config/pa/linux-unwind.h: Likewise.
13610         * config/pa/milli64.S: Likewise.
13611         * config/pa/quadlib.c: Likewise.
13612         * config/pa/stublib.c: Likewise.
13613         * config/picochip/libgccExtras/adddi3.asm: Likewise.
13614         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
13615         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
13616         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
13617         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
13618         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
13619         * config/picochip/libgccExtras/divmod15.asm: Likewise.
13620         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
13621         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
13622         * config/picochip/libgccExtras/longjmp.asm: Likewise.
13623         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
13624         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
13625         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
13626         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
13627         * config/picochip/libgccExtras/setjmp.asm: Likewise.
13628         * config/picochip/libgccExtras/subdi3.asm: Likewise.
13629         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
13630         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
13631         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
13632         * config/rs6000/750cl.h: Likewise.
13633         * config/rs6000/altivec.h: Likewise.
13634         * config/rs6000/biarch64.h: Likewise.
13635         * config/rs6000/crtresfpr.asm: Likewise.
13636         * config/rs6000/crtresgpr.asm: Likewise.
13637         * config/rs6000/crtresxfpr.asm: Likewise.
13638         * config/rs6000/crtresxgpr.asm: Likewise.
13639         * config/rs6000/crtsavfpr.asm: Likewise.
13640         * config/rs6000/crtsavgpr.asm: Likewise.
13641         * config/rs6000/darwin-asm.h: Likewise.
13642         * config/rs6000/darwin-fallback.c: Likewise.
13643         * config/rs6000/darwin-fpsave.asm: Likewise.
13644         * config/rs6000/darwin-ldouble.c: Likewise.
13645         * config/rs6000/darwin-tramp.asm: Likewise.
13646         * config/rs6000/darwin-unwind.h: Likewise.
13647         * config/rs6000/darwin-vecsave.asm: Likewise.
13648         * config/rs6000/darwin-world.asm: Likewise.
13649         * config/rs6000/e500crtres32gpr.asm: Likewise.
13650         * config/rs6000/e500crtres64gpr.asm: Likewise.
13651         * config/rs6000/e500crtres64gprctr.asm: Likewise.
13652         * config/rs6000/e500crtrest32gpr.asm: Likewise.
13653         * config/rs6000/e500crtrest64gpr.asm: Likewise.
13654         * config/rs6000/e500crtresx32gpr.asm: Likewise.
13655         * config/rs6000/e500crtresx64gpr.asm: Likewise.
13656         * config/rs6000/e500crtsav32gpr.asm: Likewise.
13657         * config/rs6000/e500crtsav64gpr.asm: Likewise.
13658         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13659         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
13660         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
13661         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
13662         * config/rs6000/eabi-ci.asm: Likewise.
13663         * config/rs6000/eabi-cn.asm: Likewise.
13664         * config/rs6000/eabi.asm: Likewise.
13665         * config/rs6000/linux-unwind.h: Likewise.
13666         * config/rs6000/linux64.h: Likewise.
13667         * config/rs6000/paired.h: Likewise.
13668         * config/rs6000/paired.md: Likewise.
13669         * config/rs6000/ppc64-fp.c: Likewise.
13670         * config/rs6000/ppu_intrinsics.h: Likewise.
13671         * config/rs6000/rs6000.h: Likewise.
13672         * config/rs6000/si2vmx.h: Likewise.
13673         * config/rs6000/sol-ci.asm: Likewise.
13674         * config/rs6000/sol-cn.asm: Likewise.
13675         * config/rs6000/spe.h: Likewise.
13676         * config/rs6000/spu2vmx.h: Likewise.
13677         * config/rs6000/sysv4.h: Likewise.
13678         * config/rs6000/tramp.asm: Likewise.
13679         * config/rs6000/vec_types.h: Likewise.
13680         * config/s390/linux-unwind.h: Likewise.
13681         * config/s390/tpf-unwind.h: Likewise.
13682         * config/score/crti.asm: Likewise.
13683         * config/score/crtn.asm: Likewise.
13684         * config/sh/crt1.asm: Likewise.
13685         * config/sh/crti.asm: Likewise.
13686         * config/sh/crtn.asm: Likewise.
13687         * config/sh/divtab-sh4-300.c: Likewise.
13688         * config/sh/divtab-sh4.c: Likewise.
13689         * config/sh/divtab.c: Likewise.
13690         * config/sh/lib1funcs-4-300.asm: Likewise.
13691         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
13692         * config/sh/lib1funcs.asm: Likewise.
13693         * config/sh/lib1funcs.h: Likewise.
13694         * config/sh/linux-atomic.asm: Likewise.
13695         * config/sh/linux-unwind.h: Likewise.
13696         * config/sh/shmedia.h: Likewise.
13697         * config/sh/sshmedia.h: Likewise.
13698         * config/sh/ushmedia.h: Likewise.
13699         * config/sparc/crtfastmath.c: Likewise.
13700         * config/sparc/linux-unwind.h: Likewise.
13701         * config/sparc/sol2-c1.asm: Likewise.
13702         * config/sparc/sol2-ci.asm: Likewise.
13703         * config/sparc/sol2-cn.asm: Likewise.
13704         * config/spu/divmodti4.c: Likewise.
13705         * config/spu/divv2df3.c: Likewise.
13706         * config/spu/float_disf.c: Likewise.
13707         * config/spu/float_unsdidf.c: Likewise.
13708         * config/spu/float_unsdisf.c: Likewise.
13709         * config/spu/float_unssidf.c: Likewise.
13710         * config/spu/mfc_multi_tag_release.c: Likewise.
13711         * config/spu/mfc_multi_tag_reserve.c: Likewise.
13712         * config/spu/mfc_tag_release.c: Likewise.
13713         * config/spu/mfc_tag_reserve.c: Likewise.
13714         * config/spu/mfc_tag_table.c: Likewise.
13715         * config/spu/multi3.c: Likewise.
13716         * config/spu/spu_internals.h: Likewise.
13717         * config/spu/spu_intrinsics.h: Likewise.
13718         * config/spu/spu_mfcio.h: Likewise.
13719         * config/spu/vec_types.h: Likewise.
13720         * config/spu/vmx2spu.h: Likewise.
13721         * config/stormy16/stormy16-lib2.c: Likewise.
13722         * config/svr4.h: Likewise.
13723         * config/sync.c: Likewise.
13724         * config/v850/lib1funcs.asm: Likewise.
13725         * config/vxlib-tls.c: Likewise.
13726         * config/vxlib.c: Likewise.
13727         * config/vxworks-dummy.h: Likewise.
13728         * config/xtensa/crti.asm: Likewise.
13729         * config/xtensa/crtn.asm: Likewise.
13730         * config/xtensa/ieee754-df.S: Likewise.
13731         * config/xtensa/ieee754-sf.S: Likewise.
13732         * config/xtensa/lib1funcs.asm: Likewise.
13733         * config/xtensa/lib2funcs.S: Likewise.
13734         * config/xtensa/linux-unwind.h: Likewise.
13735         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13736         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
13737         * coretypes.h: Likewise.
13738         * crtstuff.c: Likewise.
13739         * defaults.h: Likewise.
13740         * dwarf2.h: Likewise.
13741         * emutls.c: Likewise.
13742         * gbl-ctors.h: Likewise.
13743         * gcov-io.h: Likewise.
13744         * ginclude/float.h: Likewise.
13745         * ginclude/iso646.h: Likewise.
13746         * ginclude/stdarg.h: Likewise.
13747         * ginclude/stdbool.h: Likewise.
13748         * ginclude/stddef.h: Likewise.
13749         * ginclude/stdfix.h: Likewise.
13750         * ginclude/stdint-gcc.h: Likewise.
13751         * ginclude/tgmath.h: Likewise.
13752         * gthr-aix.h: Likewise.
13753         * gthr-dce.h: Likewise.
13754         * gthr-gnat.c: Likewise.
13755         * gthr-gnat.h: Likewise.
13756         * gthr-lynx.h: Likewise.
13757         * gthr-mipssde.h: Likewise.
13758         * gthr-nks.h: Likewise.
13759         * gthr-posix.c: Likewise.
13760         * gthr-posix.h: Likewise.
13761         * gthr-posix95.h: Likewise.
13762         * gthr-rtems.h: Likewise.
13763         * gthr-single.h: Likewise.
13764         * gthr-solaris.h: Likewise.
13765         * gthr-tpf.h: Likewise.
13766         * gthr-vxworks.h: Likewise.
13767         * gthr-win32.h: Likewise.
13768         * gthr.h: Likewise.
13769         * libgcc2.c: Likewise.
13770         * libgcc2.h: Likewise.
13771         * libgcov.c: Likewise.
13772         * tsystem.h: Likewise.
13773         * typeclass.h: Likewise.
13774         * unwind-c.c: Likewise.
13775         * unwind-compat.h: Likewise.
13776         * unwind-dw2-fde-compat.c: Likewise.
13777         * unwind-dw2-fde-darwin.c: Likewise.
13778         * unwind-dw2-fde-glibc.c: Likewise.
13779         * unwind-dw2-fde.c: Likewise.
13780         * unwind-dw2-fde.h: Likewise.
13781         * unwind-dw2.c: Likewise.
13782         * unwind-dw2.h: Likewise.
13783         * unwind-generic.h: Likewise.
13784         * unwind-pe.h: Likewise.
13785         * unwind-sjlj.c: Likewise.
13786         * unwind.inc: Likewise.
13787         * config/arm/neon-gen.ml: Change generated copyright header to
13788         refer to version 3 of the GNU General Public License with
13789         version 3.1 of the GCC Runtime Library Exception and to point
13790         readers at the COPYING3 and COPYING3.RUNTIME files and the
13791         FSF's license web page.
13792         * config/arm/arm_neon.h: Regenerate.
13793
13794 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13795
13796         * config/cris/cris.md: Change copyright header to refer to version
13797         3 of the GNU General Public License.
13798         * doc/install.texi2html: Change copyright header to refer to version
13799         3 of the GNU General Public License and to point readers at the
13800         COPYING3 file and the FSF's license web page.
13801         * config/vax/linux.h: Likewise.
13802
13803 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
13804
13805         * config/i386/i386.md (cmpcc): New.
13806         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
13807         (sync_compare_and_swap_cc*): Delete.
13808
13809         * config/s390/s390.c (s390_compare_emitted): Remove.
13810         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
13811         s390_compare_emitted used to be handled.  Assert that modes match.
13812         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
13813         refer to sync_compare_and_swap_ccsi.
13814         * config/s390/s390.h (s390_compare_emitted): Remove.
13815         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
13816         instead of s390_compare_emitted.
13817         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
13818         instead of s390_compare_emitted.
13819         * config/s390/s390.md (cmpcc): New.
13820         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
13821         CC_REGNUM, do not pretend it's set.
13822         (sync_compare_and_swap_cc*): Delete.
13823         * config/s390/predicates.md (cc_reg_operand): New.
13824
13825         * expr.c (sync_compare_and_swap_cc): Delete.
13826         * optabs.h (sync_compare_and_swap_cc): Delete.
13827         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
13828         is being used with can_compare_p.
13829         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
13830         (find_cc_set): New.
13831         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
13832         look for a MODE_CC set instead.  Use emit_store_flag.
13833         (expand_compare_and_swap_loop): Likewise, with some additional
13834         complication to avoid a force_reg when useless.  Use
13835         emit_cmp_and_jump_insns.
13836         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
13837         * doc/md.texi (sync_compare_and_swap_cc): Merge with
13838         sync_compare_and_swap documentation.
13839
13840 2009-04-09  Jan Hubicka  <jh@suse.cz>
13841
13842         * except.c (find_prev_try): Break out from ....
13843         (duplicate_eh_regions): ... here; properly update prev_try pointers
13844         when duplication part of tree.
13845         (dump_eh_tree): Improve dumping.
13846         (verify_eh_region): New.
13847         (verify_eh_tree): Use it.
13848
13849 2009-04-06  Richard Guenther  <rguenther@suse.de>
13850
13851         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
13852         &ARRAY addresses by adjusting their types and prepending
13853         a conversion.
13854         * tree-cfg.c (verify_gimple_assign_single): Verify that
13855         addresses are correct.
13856
13857 2009-04-09  Richard Guenther  <rguenther@suse.de>
13858
13859         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
13860         indices into an array reference if possible.
13861         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13862         Fold POINTER_PLUS_EXPR statements with invariant address.
13863
13864 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
13865
13866         PR target/39634
13867         * config.gcc (powerpc64-*-linux*): Always build biarch.
13868
13869 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
13870
13871         PR c/39613
13872         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
13873         it and pedwarn if this results in an INTEGER_CST.
13874
13875 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13876
13877         * doc/install.texi: Update minimum GMP version.  Remove obsolete
13878         text in MPFR section.
13879
13880 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13881
13882         * dwarf2out.c (class_scope_p): New static inline.
13883         (class_or_namespace_scope_p): Use it.
13884         (gen_variable_die): Use DW_TAG_member tag for static data member
13885         declarations instead of DW_TAG_variable.
13886
13887         PR middle-end/39573
13888         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
13889         variables.
13890
13891 2009-04-08  Richard Guenther  <rguenther@suse.de>
13892
13893         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
13894         valueize random data.
13895
13896 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
13897
13898         * config.gcc (aix tm_file):  Add aix-stdint.h.
13899         (aix tm clause use_gcc_stdint):  Set to wrap.
13900         * config/rs6000/aix-stdint.h:  New file.
13901
13902 2009-04-08  Richard Guenther  <rguenther@suse.de>
13903
13904         PR middle-end/36291
13905         * tree-dfa.c (add_referenced_var): Do not recurse into
13906         global initializers.
13907         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
13908         exposed variables.
13909         (fold_const_aggregate_ref): Likewise.
13910
13911 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
13912
13913         * recog.c (ordered_comparison_operator): New.
13914         * gensupport.c (std_preds): Add it.
13915         * doc/md.texi (Machine-Independent Predicates): Document it.
13916
13917 2009-04-08  Jan Hubicka  <jh@suse.cz>
13918
13919         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
13920         * function.h (rtl_eh): Remove exception_handler_label_map.
13921         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
13922         remove_exception_handler_label, for_each_eh_label_1): Remove.
13923         (rtl_remove_unreachable_regions): Remove.
13924         (convert_from_eh_region_ranges): Do not remove unreachable regions.
13925         (find_exception_handler_labels): Don't build the hashtable.
13926         (maybe_remove_eh_handler): Remove.
13927         (for_each_eh_label): Rewrite to walk the tree.
13928         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
13929         * except.h (maybe_remove_eh_handler): Remove.
13930         * passes.c (init_optimization_passes): Schedule second EH cleanup
13931         before out-of-ssa.
13932         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
13933         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
13934
13935 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
13936
13937         * genoutput.c (validate_optab_operands): New.
13938         (gen_insn, gen_expand): Call it.
13939
13940         * genflags.c (gen_insn): Detect misused iterators.
13941         (main): Pass line_no to gen_insn, exit with status 1 on error.
13942
13943         * genextract.c (line_no): Make global.
13944         (VEC_safe_set_locstr): Change assertion to error message.
13945         (main): Exit with status 1 on error.
13946
13947 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
13948
13949         PR c/39614
13950         PR c/39673
13951         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
13952         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
13953         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
13954         * c-convert.c (convert): Do not call fold on results of conversion
13955         functions when the result is a C_MAYBE_CONST_EXPR.
13956         * c-parser.c (c_parser_postfix_expression): Do not fold condition
13957         of __builtin_choose_expr.
13958         * c-typeck.c (remove_c_maybe_const_expr): New.
13959         (build_unary_op, build_conditional_expr, build_compound_expr,
13960         build_binary_op, c_objc_common_truthvalue_conversion): Call
13961         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
13962         integer operands.
13963
13964 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
13965
13966         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
13967         CODE to produce a new one. Add a prototype to use fold_convert_const
13968
13969 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
13970
13971         PR bootstrap/39660
13972         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
13973         mix declarations and code.
13974
13975 2009-04-08  Ben Elliston  <bje@au.ibm.com>
13976
13977         * gcc.c: Replace `CC' with `GCC' throughout.
13978
13979 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
13980
13981         * doc/invoke.texi: Document Atom support.
13982
13983 2009-04-07  Jason Merrill  <jason@redhat.com>
13984
13985         PR c++/25185
13986         * c-common.h, c-common.c: Add flag_pretty_templates.
13987         * c-opts.c (c_common_handle_option): Set it.
13988         * c.opt: Add -fno-pretty-templates.
13989         * doc/invoke.texi (C++ Dialect Options): Likewise.
13990
13991 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
13992
13993         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
13994         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
13995         (ia64_expand_builtin): Likewise.
13996
13997 2009-04-07  Martin Jambor  <mjambor@suse.cz>
13998
13999         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
14000         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
14001         ADDR_EXPRS are include too.
14002
14003 2009-04-07  Richard Guenther  <rguenther@suse.de>
14004
14005         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
14006         decls are only used if passes as parameters or if they are
14007         local statics and the call is not to a builtin.
14008         (call_may_clobber_ref_p_1): Likewise.
14009
14010 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14011
14012         * expr.c (do_store_flag): Remove last argument.  Simplify code
14013         to avoid duplication of tests already done by can_compare_p.
14014         (expand_expr_real_1): Adjust caller.
14015
14016 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14017
14018         * optabs.c (can_compare_p): Test the predicate of a
14019         cbranch and cstore pattern.
14020
14021 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14022
14023         * expr.c (convert_move): Use emit_store_flag instead of
14024         "emulating" it.
14025
14026 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14027
14028         * config/i386/i386.c (ix86_compare_emitted): Remove.
14029         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
14030         ix86_compare_op0 like ix86_compare_emitted used to be handled.
14031         * config/i386/i386.h (ix86_compare_emitted): Remove.
14032         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
14033         instead of ix86_compare_emitted.
14034         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
14035
14036 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
14037
14038         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
14039         Add t-sysroot-suffix to tmake_file.
14040         * config/print-sysroot-suffix.sh: New file.
14041         * config/t-sysroot-suffix: New file.
14042
14043 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14044
14045         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
14046         as the latter produces a warning when the target does not support
14047         infinity.
14048
14049 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14050
14051         * dfp.c: Replace type punning assignments with memcpy throughout.
14052         * Makefile.in (dfp.o-warn): Remove.
14053
14054 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
14055
14056         PR target/39634
14057         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
14058         Include soft-fp/t-softfp after rs6000/t-linux64.
14059
14060 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14061
14062         * stor-layout.c (set_sizetype): Use the full precision of their
14063         machine mode for bitsize types.
14064
14065 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14066
14067         * config/i386/i386.md: Revert 2 accidental checkins.
14068
14069 2009-04-06  Joey Ye  <joey.ye@intel.com>
14070             Xuepeng Guo  <xuepeng.guo@intel.com>
14071             H.J. Lu  <hongjiu.lu@intel.com>
14072
14073         Atom pipeline model, tuning and insn selection.
14074         * config.gcc (atom): Add atom config options and target.
14075
14076         * config/i386/atom.md: New.
14077
14078         * config/i386/i386.c (atom_cost): New cost.
14079         (m_ATOM): New macro flag.
14080         (initial_ix86_tune_features): Set m_ATOM.
14081         (x86_accumulate_outgoing_args): Likewise.
14082         (x86_arch_always_fancy_math_387): Likewise.
14083         (processor_target): Add Atom cost.
14084         (cpu_names): Add Atom cpu name.
14085         (override_options): Set Atom ISA.
14086         (ix86_issue_rate): New case PROCESSOR_ATOM.
14087         (ix86_adjust_cost): Likewise.
14088
14089         * config/i386/i386.h (TARGET_ATOM): New target macro.
14090         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
14091         (TARGET_OPT_AGU): New target option.
14092         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
14093         (processor_type): Add PROCESSOR_ATOM.
14094
14095         * config/i386/i386.md (cpu): Add new value "atom".
14096         (use_carry, movu): New attr.
14097         (atom.md): Include atom.md.
14098         (adddi3_carry_rex64): Set attr "use_carry".
14099         (addqi3_carry): Likewise.
14100         (addhi3_carry): Likewise.
14101         (addsi3_carry): Likewise.
14102         (*addsi3_carry_zext): Likewise.
14103         (subdi3_carry_rex64): Likewise.
14104         (subqi3_carry): Likewise.
14105         (subhi3_carry): Likewise.
14106         (subsi3_carry): Likewise.
14107         (x86_movdicc_0_m1_rex64): Likewise.
14108         (*x86_movdicc_0_m1_se): Likewise.
14109         (x86_movsicc_0_m1): Likewise.
14110         (*x86_movsicc_0_m1_se): Likewise.
14111         (*adddi_1_rex64): Emit add insn as much as possible.
14112         (*addsi_1): Likewise.
14113         (return_internal): Set atom_unit.
14114         (return_internal_long): Likewise.
14115         (return_pop_internal): Likewise.
14116         (*rcpsf2_sse): Set atom_sse_attr attr.
14117         (*qrt<mode>2_sse): Likewise.
14118         (*prefetch_sse): Likewise.
14119
14120         * config/i386/i386-c.c (ix86_target_macros_internal): New case
14121         PROCESSOR_ATOM.
14122         (ix86_target_macros_internal): Likewise.
14123
14124         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
14125         (*prefetch_sse_rex): Likewise.
14126         (sse_rcpv4sf2): Likewise.
14127         (sse_vmrcpv4sf2): Likewise.
14128         (sse_sqrtv4sf2): Likewise.
14129         (<sse>_vmsqrt<mode>2): Likewise.
14130         (sse_ldmxcsr): Likewise.
14131         (sse_stmxcsr): Likewise.
14132         (*sse_sfence): Likewise.
14133         (sse2_clflush): Likewise.
14134         (*sse2_mfence): Likewise.
14135         (*sse2_lfence): Likewise.
14136         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
14137         (<sse>_movup<ssemodesuffixf2c>): Likewise.
14138         (avx_movdqu<avxmodesuffix>): Likewise.
14139         (avx_lddqu<avxmodesuffix>): Likewise.
14140         (sse2_movntv2di): Change attr "type" to "ssemov".
14141         (sse2_movntsi): Likewise.
14142         (rsqrtv8sf2): Change attr "type" to "sseadd".
14143         (sse3_addsubv2df3): Set attr "atom_unit".
14144         (sse3_h<plusminus_insn>v4sf3): Likewise.
14145         (*sse2_pmaddwd): Likewise.
14146         (*vec_extractv2di_1_rex64): Likewise.
14147         (*vec_extractv2di_1_avx): Likewise.
14148         (sse2_psadbw): Likewise.
14149         (ssse3_phaddwv8hi3): Likewise.
14150         (ssse3_phaddwv4hi3): Likewise.
14151         (ssse3_phadddv4si3): Likewise.
14152         (ssse3_phadddv2si3): Likewise.
14153         (ssse3_phaddswv8hi3): Likewise.
14154         (ssse3_phaddswv4hi3): Likewise.
14155         (ssse3_phsubwv8hi3): Likewise.
14156         (ssse3_phsubwv4hi3): Likewise.
14157         (ssse3_phsubdv4si3): Likewise.
14158         (ssse3_phsubdv2si3): Likewise.
14159         (ssse3_phsubswv8hi3): Likewise.
14160         (ssse3_phsubswv4hi3): Likewise.
14161         (ssse3_pmaddubsw128): Likewise.
14162         (sse3_pmaddubsw: Likewise.
14163         (ssse3_palignrti): Likewise.
14164         (ssse3_palignrdi): Likewise.
14165
14166 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
14167
14168         * doc/install.texi (Specific): Fix two cross-references to MinGW.
14169
14170 2009-04-06  Richard Guenther  <rguenther@suse.de>
14171
14172         PR tree-optimization/28868
14173         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
14174         of which PHI results we inserted.
14175         (insert_into_preds_of_block): Record inserted PHIs.
14176         (eliminate): Eliminate redundant PHI nodes.
14177         (init_pre): Init inserted_phi_names.
14178
14179 2009-04-06  Richard Guenther  <rguenther@suse.de>
14180
14181         PR tree-optimization/39643
14182         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
14183         IMAGPART_EXPRs of complex constants.
14184         (execute_fold_all_builtins): If we folded a call queue
14185         TODO_update_address_taken.
14186
14187 2009-04-06  Jan Hubicka  <jh@suse.cz>
14188
14189         PR middle-end/39659
14190         * except.c (remove_unreachable_regions): Propagate may_contain_throw
14191         flag.
14192
14193 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
14194
14195         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
14196         delay slot.
14197         (ic_invalidate_array): Likewise.
14198
14199 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
14200
14201         * calls.c (emit_library_call_value_1): Fix a problem with parameter
14202         alignment for library calls.
14203
14204 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
14205
14206         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
14207         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
14208         * config/i386/mingw-stdint.h:  New file.
14209
14210 2009-04-05  Richard Guenther  <rguenther@suse.de>
14211
14212         PR tree-optimization/39648
14213         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
14214         our &A vs. &A[0] IL deficiencies.
14215
14216 2009-04-04  Jan Hubicka  <jh@suse.cz>
14217
14218         * except.c (sjlj_find_directly_reachable_regions): Be ready for
14219         removed toplevel regions.
14220         (sjlj_mark_call_sites): Likewise.
14221
14222 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
14223
14224         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
14225         (cygwin tm clause use_gcc_stdint):  Set to wrap.
14226         * config/i386/cygwin-stdint.h:  New file.
14227
14228 2009-04-04  Richard Guenther  <rguenther@suse.de>
14229
14230         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
14231         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
14232         single-argument PHIs if we are in loop-closed SSA form.
14233         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
14234         for the pre-condition.
14235         (slpeel_tree_peel_loop_to_edge): Likewise.
14236         (vect_build_loop_niters): Take an optional sequence to append stmts.
14237         (vect_generate_tmps_on_preheader): Likewise.
14238         (vect_do_peeling_for_loop_bound): Take extra guards for the
14239         pre-condition.
14240         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
14241         the cost model check.
14242         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
14243         guards if we are going to peel.  Do not apply versioning in that case.
14244         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
14245         (vect_do_peeling_for_loop_bound): Likewise.
14246         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
14247         loop bound only record extra pre-conditions, do not apply loop
14248         versioning.
14249
14250 2009-04-04  Richard Guenther  <rguenther@suse.de>
14251
14252         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
14253         renaming code.
14254
14255 2009-04-04  Jan Hubicka  <jh@suse.cz>
14256
14257         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14258         last_basic_block for size of bb->index indexed array.
14259         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
14260         compute_out, link_btr_uses, build_btr_def_use_webs,
14261         build_btr_def_use_webs, migrate_btr_defs): Likewise.
14262
14263 2009-04-04  Jan Hubicka  <jh@suse.cz>
14264
14265         * except.c (remove_eh_handler_and_replace): Break out from ...
14266         (remove_eh_handler): ... here.
14267         (bring_to_root): New function.
14268         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
14269         handled ones, bring others to root of tree.
14270
14271 2009-04-04  Jan Hubicka  <jh@suse.cz>
14272
14273         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
14274         (all_phis_safe_to_merge): New function.
14275         (update_info): New structure.
14276         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
14277         (cleanup_empty_eh): Update SSA if possible.
14278
14279 2009-04-04  Richard Guenther  <rguenther@suse.de>
14280
14281         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
14282         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
14283         (append_vuse): Likewise.
14284
14285 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
14286
14287         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
14288         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
14289         instead of REG_UNSAVED for DW_CFA_undefined.
14290         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
14291         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
14292         outermost frame.
14293
14294 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
14295
14296         PR target/39501
14297         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
14298         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
14299         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
14300
14301 2009-04-04  Richard Guenther  <rguenther@suse.de>
14302
14303         PR tree-optimization/8781
14304         PR tree-optimization/37892
14305         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
14306         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
14307         (valueize_refs): Call it for *& valueizations.
14308         (shared_reference_ops_from_ref): Rename to ...
14309         (valueize_shared_reference_ops_from_ref): ... this and valueize.
14310         (shared_reference_ops_from_call): Rename to ...
14311         (valueize_shared_reference_ops_from_call): ... this and valueize.
14312         (vn_reference_lookup): Update.
14313         (visit_reference_op_call): Likewise.
14314         * tree-ssa-pre.c (phi_translate_1): Fold *&.
14315         (eliminate): Value-replace the call address in call statements.
14316
14317 2009-04-04  Richard Guenther  <rguenther@suse.de>
14318
14319         PR tree-optimization/39636
14320         * tree-ssa-forwprop.c
14321         (forward_propagate_addr_into_variable_array_index): Check for
14322         GIMPLE_ASSIGN before accessing the rhs code.
14323
14324 2009-04-03  Jason Merrill  <jason@redhat.com>
14325
14326         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
14327
14328 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
14329
14330         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
14331         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
14332         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
14333         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
14334         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
14335         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
14336         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
14337         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
14338         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
14339         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
14340         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
14341         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
14342         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
14343         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
14344         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
14345         Use fr_reg_or_fp01_operand instead of fr_register_operand
14346
14347         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
14348         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
14349         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
14350
14351 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
14352
14353         PR rtl-optimization/39607
14354         PR rtl-optimization/39631
14355
14356         Revert:
14357
14358         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14359         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
14360         instead of DF_LR_OUT.
14361         * ira-lives.c (process_bb_node_lives): Ditto.
14362         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
14363         instead of DF_LR_{OUT,IN}.
14364         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
14365         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
14366
14367 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
14368
14369         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
14370         (execute_lower_omp): Always run but take the short way out if -fopenmp
14371         is not given.
14372         (gate_lower_omp): Remove, forcing the pass manager to always run the
14373         pass and always set PROP_gimple_lomp.
14374         (pass_lower_omp): Remove gate function.
14375         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
14376         PROP_trees.  Instead, require it.
14377         * ipa-cp.c (pass_ipa_cp): Likewise.
14378         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
14379         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
14380         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
14381         and PROP_gimple_leh.
14382
14383 2009-04-03  Richard Guenther  <rguenther@suse.de>
14384
14385         PR middle-end/13146
14386         PR tree-optimization/23940
14387         PR tree-optimization/33237
14388         PR middle-end/33974
14389         PR middle-end/34093
14390         PR tree-optimization/36201
14391         PR tree-optimization/36230
14392         PR tree-optimization/38049
14393         PR tree-optimization/38207
14394         PR tree-optimization/38230
14395         PR tree-optimization/38301
14396         PR tree-optimization/38585
14397         PR middle-end/38895
14398         PR tree-optimization/38985
14399         PR tree-optimization/39299
14400         * tree-ssa-structalias.h: Remove.
14401         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
14402         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
14403         (struct vuse_element_d): Remove.
14404         (struct vuse_vec_d): Likewise.
14405         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
14406         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
14407         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
14408         VUSE_ELEMENT_VAR): Likewise.
14409         (struct voptype_d): Likewise.
14410         (NUM_VOP_FREE_BUCKETS): Likewise.
14411         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
14412         (struct stmt_operands_d): Remove.
14413         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
14414         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
14415         VDEF_NUM, VDEF_VECT): Likewise.
14416         (copy_virtual_operands): Remove.
14417         (operand_build_cmp): Likewise.
14418         (create_ssa_artificial_load_stmt): Likewise.
14419         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
14420         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
14421         vuse_index and mayuse_index members.  Pack and move done and iter_type
14422         members to the front.
14423         (SSA_OP_VMAYUSE): Remove.
14424         (SSA_OP_VIRTUAL_USES): Adjust.
14425         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
14426         (unlink_stmt_vdef): Declare.
14427         (add_to_addressable_set): Remove.
14428         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
14429         (vrp_visit_stmt): Likewise.
14430         * doc/tree-ssa.texi (Alias analysis): Update.
14431         * doc/invoke.texi (max-aliased-vops): Remove docs.
14432         (avg-aliased-vops): Likewise.
14433         * tree-into-ssa.c (syms_to_rename): Remove.
14434         (need_to_update_vops_p): Likewise.
14435         (need_to_initialize_update_ssa_p): Rename to ...
14436         (update_ssa_initialized_fn): ... this.  Track function we are
14437         initialized for.
14438         (symbol_marked_for_renaming): Simplify.
14439         (add_new_name_mapping): Do not set need_to_update_vops_p.
14440         (dump_currdefs): Use SYMS_TO_RENAME.
14441         (rewrite_update_stmt): Always walk all uses/defs.
14442         (dump_update_ssa): Adjust.
14443         (init_update_ssa): Take function argument.  Track what we are
14444         initialized for.
14445         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
14446         (create_new_def_for): Initialize for cfun, assert we are initialized
14447         for cfun.
14448         (mark_sym_for_renaming): Simplify.
14449         (mark_set_for_renaming): Do not initialize update-ssa.
14450         (need_ssa_update_p): Simplify.  Take function argument.
14451         (name_mappings_registered_p): Assert we ask for the correct function.
14452         (name_registered_for_update_p): Likewise.
14453         (ssa_names_to_replace): Likewise.
14454         (release_ssa_name_after_update_ssa): Likewise.
14455         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
14456         (dump_decl_set): Do not print a newline.
14457         (debug_decl_set): Do it here.
14458         (dump_update_ssa): And here.
14459         * tree-ssa-loop-im.c (move_computations): Adjust.
14460         (movement_possibility): Likewise.
14461         (determine_max_movement): Likewise.
14462         (gather_mem_refs_stmt): Likewise.
14463         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
14464         or NAME_MEMORY_TAG.
14465         * tree-complex.c (update_all_vops): Remove.
14466         (expand_complex_move): Adjust.
14467         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
14468         Simplify test for memory referencing statement.  Exclude
14469         non-invariant ADDR_EXPRs.
14470         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
14471         * tree-loop-distribution.c (generate_memset_zero): Adjust.
14472         (rdg_flag_uses): Likewise.
14473         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
14474         related code.
14475         (tree_optimize_tail_calls_1): Also split the
14476         edge from the entry block if we have degenerate PHI nodes in
14477         the first basic block.
14478         * tree.c (init_ttree): Remove memory-tag related code.
14479         (tree_code_size): Likewise.
14480         (tree_node_structure): Likewise.
14481         (build7_stat): Re-write to be build6_stat.
14482         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
14483         (SSA_VAR_P): Adjust.
14484         (struct tree_memory_tag): Remove.
14485         (struct tree_memory_partition_tag): Likewise.
14486         (union tree_node): Adjust.
14487         (build7): Re-write to be build6.
14488         * tree-pass.h (pass_reset_cc_flags): Remove.
14489         (TODO_update_address_taken): New flag.
14490         (pass_simple_dse): Remove.
14491         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
14492         * params.h (MAX_ALIASED_VOPS): Remove.
14493         (AVG_ALIASED_VOPS): Likewise.
14494         * omp-low.c (expand_omp_taskreg): Update SSA form.
14495         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
14496         aliases the lhs in a copy stmt.
14497         * tree-ssa-dse.c (struct address_walk_data): Remove.
14498         (memory_ssa_name_same): Likewise.
14499         (memory_address_same): Likewise.
14500         (get_kill_of_stmt_lhs): Likewise.
14501         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
14502         unused stores.  Look through PHI nodes into post-dominated regions.
14503         (dse_optimize_stmt): Simplify.  Properly remove stores.
14504         (tree_ssa_dse): Compute dominators.
14505         (execute_simple_dse): Remove.
14506         (pass_simple_dse): Likewise.
14507         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
14508         gimple_loaded_syms and gimple_stored_syms computation.
14509         * toplev.c (dump_memory_report): Dump alias and pta stats.
14510         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
14511         (vn_reference_eq): Likewise.
14512         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
14513         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
14514         valueize_vuses): Remove.
14515         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
14516         (get_def_ref_stmt_vuse): ... this.
14517         (vn_reference_lookup_2): New function.
14518         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
14519         walking equivalent vuses.  Simplify.
14520         (vn_reference_lookup): Likewise.
14521         (vn_reference_insert): Likewise.
14522         (vn_reference_insert_pieces): Likewise.
14523         (visit_reference_op_call): Simplify.
14524         (visit_reference_op_load): Likewise.
14525         (visit_reference_op_store): Likewise.
14526         (init_scc_vn): Remove shared_lookup_vuses initialization.
14527         (free_scc_vn): Remove shared_lookup_vuses freeing.
14528         (sort_vuses, sort_vuses_heap): Remove.
14529         (get_ref_from_reference_ops): Export.
14530         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
14531         vector with single vuse pointer.
14532         (vn_reference_lookup_pieces, vn_reference_lookup,
14533         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
14534         (shared_vuses_from_stmt): Remove.
14535         (get_ref_from_reference_ops): Declare.
14536         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
14537         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
14538         memory-tag related code.
14539         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
14540         (likely_value): Add comment, skip static-chain of call statements.
14541         (surely_varying_stmt_p): Adjust.
14542         (gimplify_and_update_call_from_tree): Likewise.
14543         (execute_fold_all_builtins): Do not rebuild alias info.
14544         (gimplify_and_update_call_from_tree): Properly update VOPs.
14545         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
14546         (copy_ref_info): Remove memory-tag related code.
14547         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
14548         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
14549         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
14550         computation.
14551         * tree-ssa-dom.c (gimple_p): Remove typedef.
14552         (eliminate_redundant_computations): Adjust.
14553         (record_equivalences_from_stmt): Likewise.
14554         (avail_expr_hash): Likewise.
14555         (avail_expr_eq): Likewise.
14556         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
14557         (stmt_makes_single_load): Likewise.
14558         (stmt_makes_single_store): Likewise.
14559         * tree-ssa-alias.c: Rewrite completely.
14560         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
14561         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
14562         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
14563         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
14564         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
14565         Remove public functions.
14566         (pass_reset_cc_flags): Remove.
14567         (pass_build_alias): Move ...
14568         * tree-ssa-structalias.c (pass_build_alias): ... here.
14569         * tree-ssa-alias.c (may_be_aliased): Move ...
14570         * tree-flow-inline.h (may_be_aliased): ... here.
14571         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
14572         count_uses_and_derefs): Move ...
14573         * gimple.c: ... here.
14574         * gimple.h (count_uses_and_derefs): Declare.
14575         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
14576         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
14577         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
14578         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
14579         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
14580         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
14581         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
14582         New functions.
14583         * tree-dfa.c (refs_may_alias_p): Move ...
14584         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
14585         * tree-ssa-alias.h: New file.
14586         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
14587         (statement_sink_location): Likewise.
14588         * opts.c (decode_options): Do not adjust max-aliased-vops or
14589         avg-aliased-vops values.
14590         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
14591         (TV_CALL_CLOBBER): Likewise.
14592         (TV_FLOW_SENSITIVE): Likewise.
14593         (TV_FLOW_INSENSITIVE): Likewise.
14594         (TV_MEMORY_PARTITIONING): Likewise.
14595         (TV_ALIAS_STMT_WALK): New timevar.
14596         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
14597         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
14598         (get_address_description): Remove memory-tag related code.
14599         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
14600         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
14601         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
14602         and immediate uses in statements.  Document.
14603         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
14604         (dump_symbols): Remove.
14605         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
14606         * alias.c (get_deref_alias_set): New function split out from ...
14607         (get_alias_set): ... here.
14608         * alias.h (get_deref_alias_set): Declare.
14609         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
14610         type parameter.  Remove restrict pointer handling.  Create a
14611         ref-all pointer in case type-based alias sets do not conflict.
14612         (vect_analyze_data_refs): Remove SMT related code.
14613         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
14614         (vectorizable_load): Likewise.
14615         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
14616         (DR_SYMBOL_TAG, DR_VOPS): Remove.
14617         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
14618         Ignore vops and SMTs.
14619         (dr_analyze_alias): Likewise..
14620         (free_data_ref): Likewise.
14621         (create_data_ref): Likewise.
14622         (analyze_all_data_dependences): Likewise.
14623         (get_references_in_stmt): Adjust.
14624         * tree-flow-inline.h (gimple_aliases_computed_p,
14625         gimple_addressable_vars, gimple_call_clobbered_vars,
14626         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
14627         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
14628         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
14629         gimple_mem_ref_stats): Remove.
14630         (gimple_vop): New function.
14631         (op_iter_next_use): Remove vuses and mayuses cases.
14632         (op_iter_next_def): Remove vdefs case.
14633         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
14634         (clear_and_done_ssa_iter): Do not set removed fields.
14635         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
14636         Assert we are not iterating over vuses or vdefs if not also
14637         iterating over uses or defs.
14638         (op_iter_init_use): Likewise.
14639         (op_iter_init_def): Likewise.
14640         (op_iter_next_vdef): Remove.
14641         (op_iter_next_mustdef): Likewise.
14642         (op_iter_init_vdef): Likewise.
14643         (compare_ssa_operands_equal): Likewise.
14644         (link_use_stmts_after): Handle vuse operand.
14645         (is_call_used): Use is_call_clobbered.
14646         (is_call_clobbered): Global variables are always call clobbered,
14647         query the call-clobbers bitmap.
14648         (mark_call_clobbered): Ignore global variables.
14649         (clear_call_clobbered): Likewise.
14650         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
14651         virtual operands sanity check.
14652         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
14653         Remove.
14654         (TARGET_MEM_REF): Remove TMR_TAG operand.
14655         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
14656         Remove call-clobber related code.
14657         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
14658         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
14659         partitions or escape reason.
14660         (get_single_def_stmt, get_single_def_stmt_from_phi,
14661         get_single_def_stmt_with_phi): Remove.
14662         (dump_referenced_vars): Tidy.
14663         (get_ref_base_and_extent): Allow bare decls.
14664         (collect_dfa_stats): Adjust.
14665         * graphite.c (rename_variables_in_stmt): Adjust.
14666         (graphite_copy_stmts_from_block): Likewise.
14667         (translate_clast): Likewise.
14668         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
14669         (EXPR_DIES): New.
14670         (translate_vuse_through_block): Use the oracle.
14671         (phi_translate_1): Adjust.
14672         (value_dies_in_block_x): Use the oracle.  Cache the outcome
14673         in EXPR_DIES.
14674         (valid_in_sets): Check if the VUSE for
14675         a REFERENCE is available.
14676         (eliminate): Do not remove stmts during elimination,
14677         instead queue and remove them afterwards.
14678         (do_pre): Do not rebuild alias info.
14679         (pass_pre): Run TODO_rebuild_alias before PRE.
14680         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
14681         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
14682         (mark_all_v_defs_stmt): Remove.
14683         (mark_all_v_defs_seq): Adjust.
14684         (sra_replace): Likewise.
14685         (scalarize_use): Likewise.
14686         (scalarize_copy): Likewise.
14687         (scalarize_init): Likewise.
14688         (scalarize_ldst): Likewise.
14689         (todoflags): Remove.
14690         (tree_sra): Do not rebuild alias info.
14691         (tree_sra_early): Adjust.
14692         (pass_sra): Run TODO_update_address_taken before SRA.
14693         * tree-predcom.c (set_alias_info): Remove.
14694         (prepare_initializers_chain): Do not call it.
14695         (mark_virtual_ops_for_renaming): Adjust.
14696         (mark_virtual_ops_for_renaming_list): Remove.
14697         (initialize_root_vars): Adjust.
14698         (initialize_root_vars_lm): Likewise.
14699         (prepare_initializers_chain): Likewise.
14700         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
14701         (may_propagate_copy_into_stmt): Likewise.
14702         (merge_alias_info): Do nothing for now.
14703         (propagate_tree_value_into_stmt): Adjust.
14704         (stmt_may_generate_copy): Likewise.
14705         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
14706         not mark symbols for renaming.
14707         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
14708         with the same statement, make sure to update the new pointed-to one.
14709         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
14710         call statements, do not mark symbols for renaming.
14711         (mark_operand_necessary): Dump something.
14712         (ref_may_be_aliased): New function.
14713         (mark_aliased_reaching_defs_necessary_1): New helper function.
14714         (mark_aliased_reaching_defs_necessary): Likewise.
14715         (mark_all_reaching_defs_necessary_1): Likewise.
14716         (mark_all_reaching_defs_necessary): Likewise.
14717         (propagate_necessity): Do not process virtual PHIs.  For
14718         non-aliased loads mark all reaching definitions as necessary.
14719         For aliased loads and stores mark the immediate dominating
14720         aliased clobbers as necessary.
14721         (visited): New global static.
14722         (perform_tree_ssa_dce): Free visited bitmap after propagating
14723         necessity.
14724         (remove_dead_phis): Perform simple dead virtual PHI removal.
14725         (remove_dead_stmt): Properly unlink virtual operands when
14726         removing stores.
14727         (eliminate_unnecessary_stmts): Schedule PHI removal after
14728         stmt removal.
14729         * tree-ssa-ter.c (is_replaceable_p): Adjust.
14730         (process_replaceable): Likewise.
14731         (find_replaceable_in_bb): Likewise.
14732         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
14733         based on the single gimple vop.
14734         (verify_flow_insensitive_alias_info): Remove.
14735         (verify_flow_sensitive_alias_info): Likewise.
14736         (verify_call_clobbering): Likewise.
14737         (verify_memory_partitions): Likewise.
14738         (verify_alias_info): Likewise.
14739         (verify_ssa): Adjust..
14740         (execute_update_addresses_taken): Export.  Update SSA
14741         manually.  Optimize only when optimizing.  Use a local bitmap.
14742         (pass_update_address_taken): Remove TODO_update_ssa, add
14743         TODO_dump_func.
14744         (pass_update_address_taken): Just use TODO_update_address_taken.
14745         (init_tree_ssa): Do not initialize addressable_vars.
14746         (verify_ssa): Verify new VUSE / VDEF properties.
14747         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
14748         Do not call verify_alias_info.
14749         (delete_tree_ssa): Clear the VUSE, VDEF operands.
14750         Do not free the loaded and stored syms bitmaps.  Reset the escaped
14751         and callused solutions.  Do not free addressable_vars.
14752         Remove memory-tag related code.
14753         (warn_uninitialized_var): Aliases are always available.
14754         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
14755         * lambda-code.c (can_put_in_inner_loop): Adjust.
14756         (can_put_after_inner_loop): Likewise.
14757         (perfect_nestify): Likewise.
14758         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
14759         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
14760         (vectorizable_conversion): Do not mark symbols for renaming.
14761         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
14762         (expand_call_inline): Unlink the calls virtual operands before
14763         replacing it.
14764         (tree_function_versioning): Do not call update_ssa if we are not
14765         updating clones.  Simplify.
14766         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
14767         (propagate_with_phi): Likewise..
14768         * tree-outof-ssa.c (create_temp): Remove memory tag and call
14769         clobber code.  Assert we are not aliased or global.
14770         * tree-flow.h: Include tree-ssa-alias.h
14771         (enum escape_type): Remove.
14772         (struct mem_sym_stats_d): Likewise.
14773         (struct mem_ref_stats_d): Likewise.
14774         (struct gimple_df): Add vop member.  Remove global_var,
14775         call_clobbered_vars, call_used_vars, addressable_vars,
14776         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
14777         escaped and callused members.
14778         (struct ptr_info_def): Remove all members, add points-to solution
14779         member pt.
14780         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
14781         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
14782         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
14783         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
14784         (tree-ssa-alias.o): Likewise.
14785         (toplev.o): Add tree-ssa-alias.h
14786         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
14787         * gimple.c (gimple_set_bb): Fix off-by-one error.
14788         (is_gimple_reg): Do not handle memory tags.
14789         (gimple_copy): Also copy virtual operands.
14790         Delay updating the statement.  Do not reset loaded and stored syms.
14791         (gimple_set_stored_syms): Remove.
14792         (gimple_set_loaded_syms): Likewise.
14793         (gimple_call_copy_skip_args): Copy the virtual operands
14794         and mark the new statement modified.
14795         * tree-ssa-structalias.c (may_alias_p): Remove.
14796         (set_uids_in_ptset): Take the alias set to prune with as
14797         parameter.  Fold in the alias test of may_alias_p.
14798         (compute_points_to_sets): Compute whether a ptr is dereferenced
14799         in a local sbitmap.
14800         (process_constraint): Deal with &ANYTHING on the lhs, reject all
14801         other ADDRESSOF constraints on the lhs.
14802         (get_constraint_for_component_ref): Assert that we don't get
14803         ADDRESSOF constraints from the base of the reference.
14804         Properly generate UNKNOWN_OFFSET for DEREF if needed.
14805         (struct variable_info): Remove collapsed_to member.
14806         (get_varinfo_fc): Remove.
14807         (new_var_info): Do not set collapsed_to.
14808         (dump_constraint): Do not follow cycles.
14809         (dump_constraint_graph): Likewise.
14810         (build_pred_graph): Likewise.
14811         (build_succ_graph): Likewise.
14812         (rewrite_constraints): Likewise.
14813         (do_simple_structure_copy): Remove.
14814         (do_rhs_deref_structure_copy): Remove.
14815         (do_lhs_deref_structure_copy): Remove.
14816         (collapse_rest_of_var): Remove.
14817         (do_structure_copy): Re-implement.
14818         (pta_stats): New global variable.
14819         (dump_pta_stats): New function.
14820         (struct constraint_expr): Make offset signed.
14821         (UNKNOWN_OFFSET): Define special value.
14822         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
14823         (solution_set_expand): New helper function split out from ...
14824         (do_sd_constraint): ... here.
14825         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
14826         (do_ds_constraint): Likewise.
14827         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
14828         and CALLUSED = *CALLUSED.
14829         (set_union_with_increment): Make inc argument signed.
14830         (type_safe): Remove.
14831         (get_constraint_for_ptr_offset): Handle unknown and negative
14832         constant offsets.
14833         (first_vi_for_offset): Handle offsets before start.  Bail
14834         out early for offsets beyond the variable extent.
14835         (first_or_preceding_vi_for_offset): New function.
14836         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
14837         Together with ESCAPED = *ESCAPED this properly computes reachability.
14838         (find_what_var_points_to): New function.
14839         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
14840         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
14841         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
14842         pt_solutions_intersect): New functions.
14843         (compute_call_used_vars): Remove.
14844         (compute_may_aliases): New main entry into PTA computation.
14845         * gimple.h (gimple_p): New typedef.
14846         (struct gimple_statement_base): Remove references_memory_p.
14847         (struct gimple_statement_with_memory_ops_base): Remove
14848         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
14849         members.
14850         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
14851         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
14852         gimple_set_references_memory): Remove.
14853         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
14854         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
14855         New functions.
14856         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
14857         (verify_expr): Allow RESULT_DECL.
14858         (gimple_duplicate_bb): Do not copy virtual operands.
14859         (gimple_duplicate_sese_region): Adjust.
14860         (gimple_duplicate_sese_tail): Likewise.
14861         (mark_virtual_ops_in_region): Remove.
14862         (move_sese_region_to_fn): Do not call it.
14863         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
14864         and pass_simple_dse.
14865         (execute_function_todo): Handle TODO_update_address_taken,
14866         call execute_update_addresses_taken for TODO_rebuild_alias.
14867         (execute_todo): Adjust.
14868         (execute_one_pass): Init dump files early.
14869         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
14870         call-clobbered.
14871         (create_general_new_stmt): Clear vops.
14872         * tree-ssa-reassoc.c (get_rank): Adjust.
14873         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
14874         symbols for renaming.
14875         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
14876         (PARAM_AVG_ALIASED_VOPS): Likewise.
14877         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
14878         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
14879         * tree-ssa-operands.c: Simplify for new virtual operand representation.
14880         (operand_build_cmp, copy_virtual_operands,
14881         create_ssa_artificial_load_stmt, add_to_addressable_set,
14882         gimple_add_to_addresses_taken): Remove public functions.
14883         (unlink_stmt_vdef): New function.
14884
14885 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
14886
14887         * config.gcc (powerpc-*-linux*): Merge variants.
14888
14889 2009-04-02  Chao-ying Fu  <fu@mips.com>
14890             James Grosbach  <james.grosbach@microchip.com>
14891
14892         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
14893         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
14894         cop0_sp_offset.
14895         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
14896         keep_interrupts_masked_p, use_debug_exception_return_p.
14897         (mips_attribute_table): Add interrupt, use_shadow_register_set,
14898         keep_interrupts_masked, use_debug_exception_return.
14899         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
14900         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
14901         New functions.
14902         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
14903         (mips_print_operand): Process COP0 registers to print $0 .. $31
14904         correctly for GAS to process.
14905         (mips_interrupt_extra_call_saved_reg_p): New function.
14906         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
14907         extra registers.
14908         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
14909         (mips_compute_frame_info): Add supports for interrupt context that
14910         includes doubleword accumulators and COP0 registers.
14911         (mips_for_each_saved_acc): New function.
14912         (mips_for_each_saved_gpr_and_fpr): Change the function name from
14913         mips_for_each_saved_reg.
14914         (mips_save_reg): Save accumulators.
14915         (mips_kernel_reg_p): A new for_each_rtx callback.
14916         (mips_expand_prologue): Support interrupt handlers.
14917         (mips_restore_reg): Restore accumulators.
14918         (mips_expand_epilogue): Support interrupt handlers.
14919         (mips_can_use_return_insn): Return false for interrupt handlers.
14920         (mips_epilogue_uses): New function.
14921         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
14922         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
14923         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
14924         cop0_move): New instructions.
14925         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
14926         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
14927         defines.
14928         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
14929         New defines.
14930         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
14931         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
14932         interrupt handlers, we use K0 as the temporary register.
14933         (EPILOGUE_USES): Change to a function call.
14934         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
14935         handlers, we use K0 as the temporary register.
14936
14937         * doc/extend.texi (Function Attributes): Document interrupt,
14938         use_shadow_register_set, keep_interrupts_masked,
14939         use_debug_exception_return for MIPS attributes.
14940
14941 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
14942
14943         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
14944         Remove a number of t-files from tmake_file.
14945         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
14946         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
14947         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
14948         target_prototype, not TARGET_PROTOTYPE.
14949         (LINK_OS_GNU_SPEC): Define.
14950         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
14951         and darwin-ldoubdle.c.
14952
14953 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14954
14955         PR driver/39293
14956         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
14957         (cpp_options): Ditto.
14958         (default_compilers): Ditto.
14959         (display_help): Ditto.
14960         (process_command): Ditto.
14961         (do_spec_1): Ditto.
14962         (set_input): Use lbasename instead of duplicate code.
14963         (save_temps_prefix): New static for -save-temps=obj.
14964         (save_temps_length): Ditto.
14965
14966         * doc/invoke.texi (-save-temps=obj): Document new variant to
14967         -save-temps switch.
14968
14969 2009-04-02  Jeff Law  <law@redhat.com>
14970
14971         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
14972         variable.
14973
14974 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
14975
14976         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
14977         * configure: Regenerated.
14978
14979 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
14980
14981         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
14982         share the argument list.
14983
14984 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
14985
14986         Merge
14987
14988         2009-02-12  Diego Novillo  <dnovillo@google.com>
14989
14990         * varpool.c (debug_varpool): New.
14991         * cgraph.h (debug_varpool): Declare.
14992
14993 2009-04-02  Jan Hubicka  <jh@suse.cz>
14994
14995         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
14996         pass.
14997
14998 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
14999
15000         * config/i386/i386.c (ix86_abi): Move initialization to ...
15001         (override_options): Here.
15002
15003 2009-04-02  Christian Bruel  <christian.bruel@st.com>
15004
15005         * config/sh/sh.c (sh_dwarf_register_span): New function.
15006         (TARGET_DWARF_REGISTER_SPAN): Define.
15007         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
15008
15009 2009-04-02  Ira Rosen  <irar@il.ibm.com>
15010
15011         PR tree-optimization/39595
15012         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
15013         interleaved loads group is not  greater than the SLP group size.
15014
15015 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15016
15017         * builtins.c (is_builtin_name): New.
15018         (called_as_built_in): Use is_builtin_name.
15019         * tree.h (is_builtin_name): New.
15020         * varasm.c (incorporeal_function_p): Use is_builtin_name
15021
15022 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
15023
15024         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
15025
15026 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
15027
15028         PR c++/26693
15029         * c-decl.c (clone_underlying_type): Move this ...
15030         * c-common.c (set_underlying_type): ... here.
15031         Also, make sure the function properly sets TYPE_STUB_DECL() on
15032         the newly created typedef variant type.
15033         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
15034         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
15035         points.
15036
15037 2009-04-02  Richard Guenther  <rguenther@suse.de>
15038
15039         PR tree-optimization/37221
15040         * tree-flow.h (degenerate_phi_result): Declare.
15041         * tree-ssa-dom.c (degenerate_phi_result): Export.
15042         * tree-scalar-evolution.c (analyze_initial_condition): If
15043         the initial condition is defined by a degenerate PHI node
15044         use the degenerate value.
15045
15046 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
15047
15048         PR rtl-optimization/39588
15049         * combine.c (merge_outer_ops): Do not set the constant when this
15050         is not necessary.
15051         (simplify_shift_const_1): Do not modify it either in this case.
15052
15053 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
15054
15055         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
15056         tuning is deprecated if -mtune value is set to an Itanium1 variant.
15057
15058 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
15059
15060         PR c/29027
15061         * c-lex.c (interpret_float): Default (no suffix) is double.
15062
15063 2009-04-1  Xinliang David Li  <davidxl@google.com>
15064
15065         * config/i386/i386.c (legitimate_constant_p): Recognize
15066         all one vector constant.
15067
15068 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15069
15070         * config/vax/vax.c: Add #includes to silence warnings.
15071         Change #include order to silence two warnings.
15072
15073 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15074
15075         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
15076         (ASM_SPEC): Pass -k to the assembler for PIC code.
15077
15078 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15079
15080         * config.gcc: Add vax-*-linux* to the switch.
15081         * config/vax/linux.h: New file. (TARGET_VERSION,
15082         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
15083
15084 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15085
15086         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
15087         Use predicate macros instead of GET_CODE() == foo.
15088         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
15089         ashlsi3, rotrsi3, <unnamed>): Likewise.
15090
15091 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15092
15093         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
15094         jbbccihi, jbbccisi): Remova trailing whitespace.
15095         * config/vax/constraints.md: Likewise.
15096         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15097         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
15098         * config/vax/predicates.md: Likewise.
15099         * config/vax/vax.c (print_operand_address, vax_output_int_move,
15100         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
15101         * config/vax/vax.h: Likewise.
15102         * config/vax/vax.md (nonlocal_goto): Likewise.
15103
15104 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15105
15106         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
15107         (indirectable_address_p, adjacent_operands_p): Add spaces around
15108         braces.
15109         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
15110
15111 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15112
15113         * config/vax/vax.c (legitimate_constant_address_p,
15114         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
15115         index_term_p, reg_plus_index_p, legitimate_address_p,
15116         vax_mode_dependent_address_p): Update comments to match functions
15117         modified by the recent int->bool conversion.
15118
15119 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15120
15121         * config/vax/builtins.md: Update copyright message.
15122         * config/vax/constraints.md: Likewise.
15123         * config/vax/netbsd-elf.h: Likewise.
15124         * config/vax/predicates.md: Likewise.
15125         * config/vax/vax-protos.h: Likewise.
15126         * config/vax/vax.c: Likewise.
15127         * config/vax/vax.h: Likewise.
15128         * config/vax/vax.md: Likewise.
15129         * config/vax/vax.opt: Likewise.
15130
15131 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15132
15133         * config/vax/builtins.md (ffssi2, ffssi2_internal,
15134         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
15135         * config/vax/constraints.md (B, R): Likewise.
15136         * config/vax/predicates.md (external_memory_operand,
15137         nonimmediate_addsub_di_operand): Likewise.
15138         * config/vax/vax.c (vax_output_int_add): Likewise.
15139         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
15140         untyped_call): Likewise.
15141
15142 2009-04-01  Matt Thomas  <matt@3am-software.com>
15143
15144         * config/vax/predicates.md: New file.
15145         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
15146         external_const_operand, nonsymbolic_operand, external_memory_operand,
15147         indirect_memory_operand, indexed_memory_operand,
15148         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
15149         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
15150         predicate.
15151         * config/vax/constraints.md: New file.
15152         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
15153         New constraint.
15154         * config/vax/builtins.md: New file.
15155         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
15156         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
15157         jbbccisi): Define.
15158         * config/vax/vax.opt (mqmath): Add option.
15159         * config/vax/vax.md (isfx): Extend with DI.
15160         (VAXintQH, VAXintQHSD): Define.
15161         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
15162         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
15163         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
15164         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
15165         (movdi): Update constraints and use vax_output_int_move().
15166         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
15167         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
15168         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
15169         nonlocal_goto): New.
15170         (mov<mode>): Extend accepted operand types.
15171         (subdi3_old): Rename from subdi3, change update constraints and use
15172         a new implementation.
15173         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
15174         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
15175         MOVE_RATIO, CLEAR_RATIO): Define.
15176         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
15177         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
15178         (PRINT_OPERAND): Redefine using a function instead of inlined code.
15179         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15180         (split_quadword_operands): Make static and really allow variable
15181         splitting.
15182         (print_operand_address): Update for PIC generation.
15183         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
15184         indexable_address_p, fixup_mathdi_operand,
15185         vax_expand_addsub_di_operands, adjacent_operands_p): New.
15186         (vax_float_literal, legitimate_constant_p,
15187         indirectable_constant_address_p, index_term_p,
15188         reg_plus_index_p): Return bool instead of int.
15189         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
15190         where needed.
15191         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
15192         generation.
15193         (vax_output_conditional_branch): Indent.
15194         (legitimate_constant_address_p, indirectable_constant_address_p,
15195         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
15196         vax_mode_dependent_address_p): Return bool instead of int, update for
15197         PIC generation.
15198         * config/vax/vax-protos.h (legitimate_constant_address_p,
15199         legitimate_constant_p, legitimate_address_p,
15200         vax_mode_dependent_address_p): Change declaration to bool.
15201         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
15202         vax_expand_addsub_di_operands, vax_output_int_subtract,
15203         vax_output_movmemsi): Declare.
15204         (split_quadword_operands, vax_float_literal): Delete declaration.
15205         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
15206         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
15207         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
15208         ASM_OUTPUT_DWARF_PCREL): Define.
15209         (ASM_SPEC): Change definition to allow PIC generation.
15210
15211 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
15212
15213         * doc/sourcebuild.texi: Update front-end requirements.
15214
15215 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15216
15217         PR target/39226
15218         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
15219         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
15220         (booldi3_internal3): Use boolean_or_operator instead of
15221         boolean_operator.
15222
15223 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
15224
15225         PR c/39605
15226         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
15227         declarator whose size is not an integer constant expression but
15228         folds to an integer constant, then treat it as a constant
15229         subsequently.
15230
15231 2009-04-01  Richard Guenther  <rguenther@suse.de>
15232
15233         * fold-const.c (fold_plusminus_mult_expr): Do not fold
15234         i * 4 + 2 to (i * 2 + 1) * 2.
15235
15236 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15237
15238         PR c/37772
15239         * c-parser.c (c_parser_asm_statement): Skip until close paren and
15240         return if c_parser_asm_string_literal returned NULL.
15241
15242 2009-04-01  Nick Clifton  <nickc@redhat.com>
15243
15244         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
15245         already defined.
15246         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
15247         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
15248         other typedefs to avoid conflicts with libgcc2.c.  Define labels
15249         to gain 16-bit bit-manipulation functions from libgcc2.c and then
15250         include it.
15251         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
15252         to gain 16-bit trapping arithmetic functions from libgcc2.c and
15253         then include it.
15254
15255 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
15256
15257         * varasm.c (default_function_rodata_section): Declare DOT as
15258         const char*.
15259
15260 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
15261             Andrey Galkin  <agalkin@hypercom.com>
15262
15263         PR/39492
15264         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
15265         Make object_name unique for each process.
15266
15267 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15268
15269         PR other/39591
15270         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
15271         addressable variables in the parallel that could go out of scope while
15272         running queued tasks.
15273
15274 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
15275
15276         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
15277         (CASE_VALUES_THRESHOLD): Redefine.
15278         * config/avr/avr.c (avr_override_options): Remove initialization of
15279         avr_case_values_threshold variable.
15280         (avr_case_values_threshold): Remove variable. Add new function.
15281         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
15282         * config/avr/avr.opt (mno-tablejump): Remove option.
15283         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
15284
15285 2009-04-01  DJ Delorie  <dj@redhat.com>
15286
15287         * varasm.c (default_function_rodata_section): Don't assume
15288         anything about where the first '.' in the section name is.
15289
15290 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
15291
15292         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
15293         rs6000_emit_stack_tie.
15294
15295 2009-03-31  Ian Lance Taylor  <iant@google.com>
15296
15297         * tree-eh.c (tree_remove_unreachable_handlers): Compare
15298         gimple_code with GIMPLE_RESX, not RESX.
15299
15300 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15301
15302         * c-common.c (c_get_ident): New.
15303         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
15304
15305 2009-04-01  Ben Elliston  <bje@au.ibm.com>
15306
15307         * config/rs6000/sysv4.opt (msdata): Improve option description.
15308
15309 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
15310
15311         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
15312         (divdf3_internal_lat): Remove.
15313         (divxf3_internal_lat): Remove.
15314         (divxf3_internal_thr): Remove.
15315         (divxf): Use divxf3_internal.
15316         * config/ia64/div.md (divsf3_internal_lat): New.
15317         (divdf3_internal_lat): New.
15318         (divxf3_internal): New.
15319
15320 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15321
15322         PR c/448
15323         * Makefile.in (USE_GCC_STDINT): Define.
15324         (stmp-int-hdrs): Install stdint.h if applicable.
15325         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
15326         if known.
15327         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
15328         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
15329         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15330         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15331         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15332         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15333         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15334         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15335         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15336         (c_common_nodes_and_builtins): Initialize
15337         underlying_wchar_type_node.  Do not initialize
15338         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
15339         nodes for new types.
15340         (c_stddef_cpp_builtins): Define macros for new types.
15341         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
15342         Remove.
15343         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
15344         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
15345         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
15346         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
15347         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
15348         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
15349         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
15350         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
15351         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
15352         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
15353         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
15354         int16_type_node, int32_type_node, int64_type_node,
15355         uint8_type_node, uint16_type_node, c_uint32_type_node,
15356         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
15357         int_least32_type_node, int_least64_type_node,
15358         uint_least8_type_node, uint_least16_type_node,
15359         uint_least32_type_node, uint_least64_type_node,
15360         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
15361         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
15362         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
15363         uintptr_type_node): Define.
15364         * c-cppbuiltin.c (builtin_define_constants,
15365         builtin_define_type_minmax): New.
15366         (builtin_define_stdint_macros): Define more macros.
15367         (c_cpp_builtins): Define more limit macros.
15368         (type_suffix): New.
15369         (builtin_define_type_max): Define in terms of
15370         builtin_define_type_minmax.  Remove is_long parameter.  All
15371         callers changed.
15372         * config.gcc (use_gcc_stdint): Define.
15373         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
15374         Add newlib-stdint.h for generic targets.
15375         * config/glibc-stdint.h, config/newlib-stdint.h,
15376         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
15377         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
15378         * config/score/score.h (UINTPTR_TYPE): Define.
15379         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15380         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15381         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15382         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15383         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15384         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15385         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15386         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15387         * config/spu/spu.h (STDINT_LONG32): Define.
15388         * configure.ac (use_gcc_stdint): Substitute.
15389         * configure: Regenerate.
15390         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
15391         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
15392         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
15393         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
15394         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
15395         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
15396         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
15397         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
15398         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
15399         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
15400         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
15401         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
15402         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
15403         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
15404         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
15405         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
15406         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
15407         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
15408         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
15409         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
15410         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
15411         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
15412         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15413         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15414         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15415         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15416         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15417         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15418         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
15419
15420 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
15421
15422         * loop-iv.c (suitable_set_for_replacement): Renamed from
15423         simplify_using_assignment; changed to return bool and to accept new
15424         args DEST and SRC.  Return true iff we find a source/destination pair
15425         that can be used to make a replacement, and fill SRC and DEST if so.
15426         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
15427         changed.
15428         (simplify_using_initial_values): Deal with altered regs here and track
15429         more precisely the effect they have on the validity of our expression.
15430
15431         * loop-iv.c (simplify_using_condition): A condition of the form
15432         (EQ REG CONST) can be used to simply make a substitution.
15433         (simplify_using_initial_values): Keep track of conditions we have seen
15434         and keep using them to simplify new expressions, while applying the
15435         same substitutions to them as to the expression.
15436
15437         * simplify-rtx.c (simplify_relational_operation_1): Simplify
15438         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
15439         GEU/LTU reversed.
15440
15441         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
15442         changed.  Use this when trying to improve the upper bound.
15443         Generate the comparison by using simplify_gen_relational.
15444
15445         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
15446
15447         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
15448         functions.
15449         (simplify_using_assignment, simplify_using_initial_values): Call
15450         replace_in_expr to make replacements.  Call replace_single_def_regs
15451         once on the initial version of the expression.
15452
15453 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15454
15455         PR target/27237
15456         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
15457
15458 2009-03-31  Richard Guenther  <rguenther@suse.de>
15459
15460         PR middle-end/31029
15461         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
15462         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
15463
15464 2009-03-31  Richard Guenther  <rguenther@suse.de>
15465
15466         * tree.h (div_if_zero_remainder): Declare.
15467         * fold-const.c (div_if_zero_remainder): Export.
15468         * tree-ssa-forwprop.c
15469         (forward_propagate_addr_into_variable_array_index): Handle
15470         constant array index addition outside of the variable index.
15471
15472 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15473
15474         PR target/39592
15475         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
15476         define_splits, floatunssi<mode>2): Require x87 conversions from
15477         DImode to be permitted.
15478
15479 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15480
15481         PR preprocessor/15638
15482         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
15483
15484 2009-03-31  Richard Guenther  <rguenther@suse.de>
15485
15486         PR middle-end/23401
15487         PR middle-end/27810
15488         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
15489         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
15490         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
15491         a separate statement.
15492         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
15493         (lookup_tmp_var): Likewise.
15494         (is_gimple_formal_tmp_or_call_rhs): Remove.
15495         (is_gimple_reg_or_call_rhs): Rename to ...
15496         (is_gimple_reg_rhs_or_call): ... this.
15497         (is_gimple_mem_or_call_rhs): Rename to ...
15498         (is_gimple_mem_rhs_or_call): ... this.
15499         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
15500         DECL_GIMPLE_REG_P only if is_formal is true.
15501         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
15502         for non-proper post-modify expression gimplification.
15503         (gimplify_self_mod_expr): For post-modify expressions gimplify
15504         the lvalue to a minimal lvalue.
15505         (rhs_predicate_for): Remove formal temp case.
15506         (gimplify_modify_expr_rhs): Likewise.
15507         (gimplify_addr_expr): Use is_gimple_reg.
15508         (gimplify_expr): Remove formal temp cases.
15509         (gimple_regimplify_operands): Likewise.
15510         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
15511         and FILTER_EXPR like constants.
15512         * gimple.c (walk_gimple_op): Fix val_only initialization, use
15513         is_gimple_reg.
15514         (is_gimple_formal_tmp_rhs): Remove.
15515         (is_gimple_reg_rhs): Remove special casing.
15516         (is_gimple_mem_rhs): Fix.
15517         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
15518         (is_gimple_formal_tmp_var): Remove.
15519         (is_gimple_formal_tmp_reg): Likewise.
15520         (is_gimple_min_lval): Allow invariant component ref parts.
15521         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
15522         is_gimple_formal_tmp_reg): Remove declarations.
15523         * tree-cfg.c (verify_expr): Verify that variables with address
15524         taken do not have DECL_GIMPLE_REG_P set.
15525         * tree-mudflap.c (mf_build_check_statement_for): Use
15526         force_gimple_operand instead of gimplify_expr.
15527
15528 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
15529
15530         * modulo-sched.c (sms_schedule_by_order): Pass the actual
15531         schedulable rows to compute_split_row.
15532
15533 2009-03-31  Ben Elliston  <bje@au.ibm.com>
15534
15535         PR target/31635
15536         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
15537         OPT_mvrsave.
15538
15539 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
15540
15541         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
15542         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
15543         * configure: Regenerate.
15544         * config.in: Regenerate.
15545         * config/rs6000/rs6000.opt (mtls-markers): Add.
15546         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
15547         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
15548         (tls_ld_aix, tls_ld_sysv): Likewise.
15549         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
15550         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
15551
15552 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
15553
15554         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
15555
15556 2009-03-30  Jan Hubicka  <jh@suse.cz>
15557
15558         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
15559         out of RESX.
15560         (tree_remove_unreachable_handlers): Cleanup EH predecestor
15561         detection and label handling.
15562
15563 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15564
15565         * ira-int.h (ira_allocno): Rename left_conflicts_num to
15566         left_conflicts_size.
15567         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
15568         ALLOCNO_LEFT_CONFLICTS_SIZE.
15569
15570         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
15571         remove_allocno_from_bucket_and_push,
15572         allocno_spill_priority_compare, push_allocnos_to_stack,
15573         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
15574         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
15575         (setup_allocno_left_conflicts_num): Ditto.  Rename to
15576         setup_allocno_left_conflicts_size.
15577         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
15578         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
15579         setup_allocno_left_conflicts_size instead of
15580         setup_allocno_left_conflicts_num.
15581
15582         * ira-build.c (ira_create_allocno): Use
15583         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
15584         ALLOCNO_LEFT_CONFLICTS_NUM.
15585
15586 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15587
15588         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
15589         instead of DF_LR_OUT.
15590
15591         * ira-lives.c (process_bb_node_lives): Ditto.
15592
15593         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
15594         instead of DF_LR_{OUT,IN}.
15595
15596         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
15597
15598         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
15599
15600 2009-03-30  Jan Hubicka  <jh@suse.cz>
15601
15602         * except.c (label_to_region_map): Fix thinko.
15603
15604 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
15605
15606         PR middle-end/38237
15607         * tree.h (tree_find_value): New declaration.
15608         * tree.c (tree_find_value): New function.
15609         * varasm.c (assemble_external): Avoid duplicate entries on lists.
15610
15611 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
15612
15613         PR debug/39563
15614         * c-decl.c (struct c_binding): Add locus field.
15615         (bind): Add locus argument, set locus field from it.
15616         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
15617         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
15618         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
15619         implicitly_declare, undeclared_variable, lookup_label,
15620         declare_label, c_make_fname_decl, c_builtin_function,
15621         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
15622         bind callers.
15623
15624 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15625
15626         PR target/38781
15627         * config/i386/i386.c (classify_argument): Check total size of
15628         structure.
15629
15630 2009-03-30  Martin Jambor  <mjambor@suse.cz>
15631
15632         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
15633         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
15634         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
15635         respectively.
15636
15637         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
15638         seen_variable_array_ref while also traversing a union.
15639
15640         * tree-inline.c (optimize_inline_calls): Do not call
15641         cgraph_node_remove_callees.
15642         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
15643         (pass_remove_cgraph_callee_edges): New variable.
15644         * passes.c (init_optimization_passes): Add
15645         pass_remove_cgraph_callee_edges after early inlining and before all
15646         late intraprocedural passes.
15647
15648         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
15649
15650 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15651
15652         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
15653         Fix typos in names.
15654
15655 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15656
15657         * combine.c (simplify_comparison): Use have_insn_for.
15658         * dojump.c (do_jump): Likewise.
15659
15660 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15661
15662         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
15663         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
15664         sparc_compare_op0 like sparc_compare_emitted used to be handled.
15665         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
15666         instead of sparc_compare_emitted.
15667         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
15668         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
15669         instead of sparc_compare_emitted.
15670
15671 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15672
15673         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
15674         enter/exit cfglayout mode.
15675         (pass_partition_block): Require it.
15676         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
15677         (combine_instructions): Track basic blocks instead of labels.
15678         (update_cfg_for_uncondjump): New.
15679         (try_combine): Use it.  Update jumps after rescanning.
15680         (pass_combine): Require PROP_cfglayout.
15681         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
15682
15683 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15684
15685         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
15686         Provide/destroy PROP_cfglayout respectively.
15687         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
15688         * tree-pass.h (PROP_cfglayout): New.
15689
15690 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15691
15692         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
15693         fold_convert_const_fixed_from_fixed,
15694         fold_convert_const_fixed_from_int,
15695         fold_convert_const_fixed_from_real, fold_negate_const): Do not
15696         set TREE_CONSTANT_OVERFLOW.
15697         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
15698         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
15699
15700 2009-03-30  Ira Rosen  <irar@il.ibm.com>
15701
15702         * tree-vect-loop-manip.c: New file.
15703         * tree-vectorizer.c: Update documentation and included files.
15704         (vect_loop_location): Make extern.
15705         (rename_use_op): Move to tree-vect-loop-manip.c
15706         (rename_variables_in_bb, rename_variables_in_loop,
15707         slpeel_update_phis_for_duplicate_loop,
15708         slpeel_update_phi_nodes_for_guard1,
15709         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
15710         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
15711         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
15712         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
15713         find_loop_location): Likewise.
15714         (new_stmt_vec_info): Move to tree-vect-stmts.c.
15715         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
15716         get_vectype_for_scalar_type, vect_is_simple_use,
15717         supportable_widening_operation, supportable_narrowing_operation):
15718         Likewise.
15719         (bb_in_loop_p): Move to tree-vect-loop.c.
15720         (new_loop_vec_info, destroy_loop_vec_info,
15721         reduction_code_for_scalar_code, report_vect_op,
15722         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
15723         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
15724         (vect_supportable_dr_alignment): Likewise.
15725         * tree-vectorizer.h (tree-data-ref.h): Include.
15726         (vect_loop_location): Declare.
15727         Reorganize function declarations according to the new file structure.
15728         * tree-vect-loop.c: New file.
15729         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
15730         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
15731         * tree-vect-data-refs.c: New file.
15732         * tree-vect-patterns.c (timevar.h): Don't include.
15733         * tree-vect-stmts.c: New file.
15734         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
15735         tree-vect-slp.c, tree-vect-loop.c.
15736         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
15737         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
15738         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
15739         (tree-vect-analyze.o): Remove.
15740         (tree-vect-transform.o): Likewise.
15741         (tree-vect-data-refs.o): Add rule.
15742         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
15743         tree-vect-slp.o): Likewise.
15744         (tree-vect-patterns.o): Remove redundant dependencies.
15745         (tree-vectorizer.o): Likewise.
15746         * tree-vect-slp.c: New file.
15747
15748 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15749
15750         * optc-gen.awk: Warn if an option flag has multiple different
15751         help strings.
15752
15753 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
15754
15755         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
15756         -floop-block): Document dependences on PPL, CLooG and Graphite.
15757
15758 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
15759
15760         PR rtl-optimization/323
15761         * c-common.c (c_fully_fold, convert_and_check,
15762         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
15763         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
15764         * c-common.def (EXCESS_PRECISION_EXPR): New.
15765         * c-cppbuiltin.c (builtin_define_float_constants): Define
15766         constants with enough digits for long double.
15767         * c-lex.c (interpret_float): Interpret constant with excess
15768         precision where appropriate.
15769         * c-opts.c (c_common_post_options): Set
15770         flag_excess_precision_cmdline.  Give an error for
15771         -fexcess-precision=standard for C++ for processors where the
15772         option is significant.
15773         * c-parser.c (c_parser_conditional_expression): Handle excess
15774         precision in condition.
15775         * c-typeck.c (convert_arguments): Handle arguments with excess
15776         precision.
15777         (build_unary_op): Move excess precision outside operation.
15778         (build_conditional_expr): Likewise.
15779         (build_compound_expr): Likewise.
15780         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
15781         (build_modify_expr): Handle excess precision in RHS.
15782         (convert_for_assignment): Handle excess precision in converted
15783         value.
15784         (digest_init, output_init_element, process_init_element): Handle
15785         excess precision in initializer.
15786         (c_finish_return): Handle excess precision in return value.
15787         (build_binary_op): Handle excess precision in operands and add
15788         excess precision as needed for operation.
15789         * common.opt (-fexcess-precision=): New option.
15790         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
15791         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15792         For standard excess precision, output explicit conversion to and
15793         truncation from XFmode.
15794         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
15795         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
15796         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
15797         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
15798         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
15799         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
15800         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
15801         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
15802         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
15803         define_splits, sqrt<mode>2): Disable where appropriate for
15804         standard excess precision.
15805         * convert.c (convert_to_real): Do not shorten arithmetic to type
15806         for which excess precision would be used.
15807         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
15808         * doc/invoke.texi (-fexcess-precision=): Document option.
15809         (-mfpmath=): Correct index entry.
15810         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
15811         flag_excess_precision): New.
15812         * langhooks.c (lhd_post_options): Set
15813         flag_excess_precision_cmdline.
15814         * opts.c (common_handle_option): Handle -fexcess-precision=.
15815         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
15816         init_excess_precision): New.
15817         (lang_dependent_init_target): Call init_excess_precision.
15818         * tree.c (excess_precision_type): New.
15819         * tree.h (excess_precision_type): Declare.
15820
15821 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
15822
15823         PR c/35235
15824         * c-typeck.c (build_component_ref): Do not copy qualifiers from
15825         non-lvalue to component.
15826
15827 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
15828
15829         PR preprocessor/34695
15830         * Makefile.in (c-opts.o): Depend on c-tree.h.
15831         * c-common.c: Move down include of diagnostic.h.
15832         (done_lexing, c_cpp_error): New.
15833         * c-common.h (done_lexing): Declare.
15834         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
15835         (parse_in).
15836         * c-opts.c: Include c-tree.h.
15837         (c_common_init_options): Set preprocessor error callback.
15838         (c_common_handle_option): Do not set preprocessor
15839         inhibit_warnings, warnings_are_errors, warn_system_headers,
15840         pedantic_errors or inhibit_warnings flags.
15841         (c_common_post_options): Do not check cpp_errors (parse_in).
15842         (c_common_finish): Do not output dependencies if there were
15843         errors.  Do not check return value of cpp_finish.
15844         * c-ppoutput.c (pp_file_change): Set input_location.
15845         * c-tree.h (c_cpp_error): Declare.
15846         * diagnostic.c (diagnostic_set_info_translated): Also initialize
15847         override_column.
15848         (diagnostic_build_prefix): Check override_column.
15849         * diagnostic.h (diagnostic_info): Add override_column field.
15850         (diagnostic_override_column): Define.
15851
15852 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
15853
15854         * c-common.c (c_expand_expr, c_staticp): Remove.
15855         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
15856         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
15857         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
15858         * c-gimplify.c (gimplify_compound_literal_expr,
15859         optimize_compound_literals_in_ctor): Remove.
15860         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
15861         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
15862         * c-semantics.c (emit_local_var): Remove.
15863
15864         * langhooks-def.h (lhd_expand_expr): Remove.
15865         * langhooks.c (lhd_expand_expr): Remove.
15866         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
15867
15868         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
15869         handling from c-semantics.c; don't call into langhook.
15870         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
15871         * gimplify.c (gimplify_compound_literal_expr,
15872         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
15873         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
15874         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
15875         as was done in c-gimplify.c.
15876         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
15877         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
15878         Move from c-common.h.
15879         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
15880
15881         * tree.c (staticp): Do not call langhook.
15882         * langhooks.c (lhd_staticp): Delete.
15883         * langhooks-def.h (lhd_staticp): Delete prototype.
15884         (LANG_HOOKS_STATICP): Delete.
15885         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
15886
15887         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
15888         instead of DECL_STMTs.
15889
15890 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
15891
15892         PR c/456
15893         PR c/5675
15894         PR c/19976
15895         PR c/29116
15896         PR c/31871
15897         PR c/35198
15898         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
15899         void_type_node.
15900         (fold_call_expr): Return a NOP_EXPR from folding rather than the
15901         contained expression.
15902         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
15903         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
15904         conditional expressions for C.
15905         (decl_constant_value_for_optimization): Move from
15906         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
15907         whether optimizing and that the expression is a VAR_DECL not of
15908         array type instead of doing such checks in the caller.  Do not
15909         check pedantic.  Call gcc_unreachable for C++.
15910         * c-common.def (C_MAYBE_CONST_EXPR): New.
15911         * c-common.h (c_fully_fold, c_save_expr,
15912         decl_constant_value_for_optimization): New prototypes.
15913         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
15914         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
15915         EXPR_INT_CONST_OPERANDS): Define.
15916         * c-convert.c (convert): Strip nops from expression.
15917         * c-decl.c (groktypename): Take extra parameters expr and
15918         expr_const_operands.  Update call to grokdeclarator.
15919         (start_decl): Update call to grokdeclarator.  Add statement for
15920         expressions used in type of decl.
15921         (grokparm): Update call to grokdeclarator.
15922         (push_parm_decl): Update call to grokdeclarator.
15923         (build_compound_literal): Add parameter non_const and build a
15924         C_MAYBE_COSNT_EXPR if applicable.
15925         (grokdeclarator): Take extra parameters expr and
15926         expr_const_operands.  Track expressions used in declaration
15927         specifiers and declarators.  Fold array sizes and track whether
15928         they are constant expressions and whether they are integer
15929         constant expressions.
15930         (parser_xref_tag): Set expr and expr_const_operands fields in
15931         return value.
15932         (grokfield): Update call to grokdeclarator.
15933         (start_function): Update call to grokdeclarator.
15934         (build_null_declspecs): Set expr and expr_const_operands fields in
15935         return value.
15936         (declspecs_add_type): Handle expressions in typeof specifiers.
15937         * c-parser.c (c_parser_declspecs): Set expr and
15938         expr_const_operands fields for declaration specifiers.
15939         (c_parser_enum_specifier): Likewise.
15940         (c_parser_struct_or_union_specifier): Likewise.
15941         (c_parser_typeof_specifier): Likewise.  Update call to
15942         groktypename.  Fold expression as needed.  Return expressions with
15943         type instead of adding statements.
15944         (c_parser_attributes): Update calls to c_parser_expr_list.
15945         (c_parser_statement_after_labels): Fold expression before passing
15946         to objc_build_throw_stmt.
15947         (c_parser_condition): Fold expression.
15948         (c_parser_asm_operands): Fold expression.
15949         (c_parser_conditional_expression): Use c_save_expr.  Update call
15950         to build_conditional_expr.
15951         (c_parser_alignof_expression): Update call to groktypename.
15952         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
15953         original_code.  Fold expression argument of va_arg.  Create
15954         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
15955         argument to va_arg.  Update calls to groktypename.  Fold array
15956         index for offsetof.  Verify that first argument to
15957         __builtin_choose_expr has integer type.
15958         (c_parser_postfix_expression_after_paren_type): Update calls to
15959         groktypename and build_compound_literal.  Handle expressions with
15960         side effects in type name.
15961         (c_parser_postfix_expression_after_primary): Update call to
15962         c_parser_expr_list.  Set original_code for calls to
15963         __builtin_constant_p.
15964         (c_parser_expr_list): Take extra parameter fold_p.  Fold
15965         expressions if requested.
15966         (c_parser_objc_type_name): Update call to groktypename.
15967         (c_parser_objc_synchronized_statement): Fold expression.
15968         (c_parser_objc_receiver): Fold expression.
15969         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
15970         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
15971         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
15972         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
15973         (struct c_typespec): Add elements expr and expr_const_operands.
15974         (struct c_declspecs): Add elements expr and expr_const_operands.
15975         (groktypename, build_conditional_expr, build_compound_literal):
15976         Update prototypes.
15977         (in_late_binary_op): Declare.
15978         * c-typeck.c (note_integer_operands): New function.
15979         (in_late_binary_op): New variable.
15980         (decl_constant_value_for_broken_optimization): Move to c-common.c
15981         and rename to decl_constant_value_for_optimization.
15982         (default_function_array_conversion): Do not strip nops.
15983         (default_conversion): Do not call
15984         decl_constant_value_for_broken_optimization.
15985         (build_array_ref): Do not fold result.
15986         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
15987         result when operand is a VLA.
15988         (c_expr_sizeof_type): Update call to groktypename.  Handle
15989         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
15990         result when operand names a VLA type.
15991         (build_function_call): Update call to build_compound_literal.
15992         Only fold result for calls to __builtin_* functions.  Strip
15993         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
15994         the function designator.
15995         (convert_arguments): Fold arguments.  Update call to
15996         convert_for_assignment.
15997         (build_unary_op): Handle increment and decrement of
15998         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
15999         decrement earlier.  Fold operand of increment and decrement.
16000         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
16001         built for integer operand.  Wrap returns that are INTEGER_CSTs
16002         without being integer constant expressions or that have integer
16003         constant operands without being INTEGER_CSTs.
16004         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
16005         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
16006         result is an integer constant expression or can be used in
16007         unevaluated parts of one and avoid folding and wrap as
16008         appropriate.  Fold operands before possibly doing -Wsign-compare
16009         warnings.
16010         (build_compound_expr): Wrap result for C99 if operands can be used
16011         in integer constant expressions.
16012         (build_c_cast): Update call to digest_init.  Do not ignore
16013         overflow from casting floating-point constants to integers.  Wrap
16014         results that could be confused with integer constant expressions,
16015         null pointer constants or floating-point constants.
16016         (c_cast_expr): Update call to groktypename.  Handle expressions
16017         included in type name.
16018         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
16019         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
16020         Update calls to convert_for_assignment.
16021         (convert_for_assignment): Take new parameter
16022         null_pointer_constant.  Do not strip nops or call
16023         decl_constant_value_for_broken_optimization.  Set
16024         in_late_binary_op for conversions to boolean.
16025         (store_init_value): Update call to digest_init.
16026         (digest_init): Take new parameter null_pointer_constant.  Do not
16027         call decl_constant_value_for_broken_optimization.  pedwarn for
16028         initializers not constant expressions.  Update calls to
16029         convert_for_assignment.
16030         (constructor_nonconst): New.
16031         (struct constructor_stack): Add nonconst element.
16032         (really_start_incremental_init, push_init_level, pop_init_level):
16033         Handle constructor_nonconst and nonconst element.
16034         (set_init_index): Call constant_expression_warning for array
16035         designators.
16036         (output_init_element): Fold value.  Set constructor_nonconst as
16037         applicable.  pedwarn for initializers not constant expressions.
16038         Update call to digest_init.  Call constant_expression_warning
16039         where constant initializers are required.
16040         (process_init_element): Use c_save_expr.
16041         (c_finish_goto_ptr): Fold expression.
16042         (c_finish_return): Fold return value.  Update call to
16043         convert_for_assignment.
16044         (c_start_case): Fold switch expression.
16045         (c_process_expr_stmt): Fold expression.
16046         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
16047         ensure statement expression is not evaluated in constant expression.
16048         (build_binary_op): Track whether results are integer constant
16049         expressions or may occur in such, disable folding and wrap results
16050         as applicable.  Fold operands for -Wsign-compare warnings unless
16051         in_late_binary_op.
16052         (c_objc_common_truthvalue_conversion): Handle results folded to
16053         integer constants that are not integer constant expressions.
16054         * doc/extend.texi: Document when typeof operands are evaluated,
16055         that condition of __builtin_choose_expr is an integer constant
16056         expression, and more about use of __builtin_constant_p in
16057         initializers.
16058
16059 2009-03-29  Richard Guenther  <rguenther@suse.de>
16060
16061         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16062         propagate addresses of array references.
16063
16064 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
16065
16066         * regmove.c (perhaps_ends_bb_p): Remove.
16067         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
16068         from INSN and check that the main loop stays within that basic block.
16069         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
16070         (regmove_forward_pass): Split out from regmove_optimize.  Use
16071         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
16072         (regmove_backward_pass): Split out from regmove_optimize.  Use
16073         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
16074         (regmove_optimize): Simplify.
16075
16076 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16077
16078         PR target/39545
16079         * config/i386/i386.c (classify_argument): Ignore flexible array
16080         member in struct and warn ABI change.
16081
16082 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16083
16084         * config/i386/i386-protos.h (ix86_agi_dependent): New.
16085
16086         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
16087         (ix86_adjust_cost): Updated.
16088
16089 2009-03-29  Jan Hubicka  <jh@suse.cz>
16090
16091         PR middle-end/28850
16092         * tree-pass.h (pass_cleanup_eh): New function.
16093         (remove_unreachable_regions): Break code handling RTL
16094         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
16095         that can not be reached by runtime.
16096         (can_be_reached_by_runtime): New function.
16097         (label_to_region_map): New function.
16098         (num_eh_regions): New function.
16099         (rtl_remove_unreachable_regions): New function.
16100         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
16101         (remove_eh_region): New function.
16102         * except.h: Include sbitmap and vecprim.
16103         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
16104         num_eh_regions): Declare.
16105         * passes.c (init_optimization_passes): Schedule cleanup_eh.
16106         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
16107         * tree-eh.c (tree_remove_unreachable_handlers): New function.
16108         (tree_empty_eh_handler_p): New function.
16109         (cleanup_empty_eh): New function.
16110         (cleanup_eh): New function.
16111         (pass_cleanup_eh): New function.
16112
16113 2009-03-29  Jan Hubicka  <jh@suse.cz>
16114
16115         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
16116         for removed regions.
16117
16118 2009-03-29  Jan Hubicka  <jh@suse.cz>
16119
16120         * except.c (dump_eh_tree): Dump all datastructures.
16121
16122 2009-03-29  Jan Hubicka  <jh@suse.cz>
16123
16124         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
16125         (duplicate_eh_regions_1): Likewise.
16126         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
16127         vector; call EH verification.
16128         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16129         Be ready for region being removed.
16130
16131 2009-03-29  Jan Hubicka  <jh@suse.cz>
16132
16133         * bitmap.c (bitmap_last_set_bit): New function.
16134         * bitmap.h (bitmap_last_set_bit): Declare.
16135
16136 2009-03-29  David Ayers  <ayers@fsfe.org>
16137
16138         PR objc/27377
16139         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
16140         by calling objc_compare_types and surpress warnings about
16141         incompatible C pointers that are compatible ObjC pointers.
16142
16143 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
16144
16145         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
16146         call initialize_inline_failed.
16147         (initialize_inline_failed): Move it from here ...
16148         * cgraph.c (initialize_inline_failed): ... to here.
16149         (cgraph_create_edge): Call initialize_inline_failed rather than
16150         setting inline_failed directly.
16151
16152 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16153
16154         PR target/32542
16155         * sysv4.opt (msdata): Improve comment.
16156         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
16157         * sysv4.h (SVR4_ASM_SPEC): Likewise.
16158
16159 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16160
16161         PR target/30451
16162         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
16163         load and store attributes.
16164
16165 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16166
16167         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
16168         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
16169         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
16170         * doc/extend.texi (X86 Built-in Functions): Add index entries for
16171         __builtin_infq and __builtin_huge_valq.
16172
16173 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
16174
16175         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
16176         atmega8m1 devices.
16177         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16178         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
16179
16180 2009-03-28  Xinliang David Li  <davidxl@google.com>
16181
16182         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
16183         (do_dbg_cnt): New function.
16184
16185 2009-03-28  Jan Hubicka  <jh@suse.cz>
16186
16187         Merge from pretty-ipa:
16188
16189         2009-03-27  Jan Hubicka  <jh@suse.cz>
16190
16191         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16192         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
16193         * passes.c (function_called_by_processed_nodes_p): New.
16194         * ipa-pure-const.c (check_call): Fix handling of operands.
16195         (analyze_function): Dump debug output for skipped bodies.
16196         (local_pure_const): Use function_called_by_processed_nodes_p.
16197         * dwarf2out.c (reference_to_unused): Use output.
16198         * passes.c (do_per_function_toporder): Likewise.
16199
16200         2008-11-12  Jan Hubicka  <jh@suse.cz>
16201
16202         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
16203         * ipa-pure-const.c (funct_state_d): Add can throw field; make
16204         state_set_in_source enum
16205         (check_decl): Ignore memory tags; do not set fake looping flags;
16206         dump diagnostics.
16207         (check_operand, check_tree, check_rhs_var, check_lhs_var,
16208         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
16209         (check_call, analyze_function): Rewrite.
16210         (check_stmt): New.
16211         (add_new_function): Update call of analyze_function.
16212         (generate_summary): Add call of analyze_function.
16213         (propagate): Propagate can_throw; handle state_set_in_source correctly.
16214         (local_pure_const): New function.
16215         (pass_local_pure_const): New pass.
16216         * ipa-inline.c (inline_transform): Set after_inlining.
16217         * tree-eh.c (stmt_can_throw_external): New.
16218         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
16219         work with aliasing built.
16220         * tree-flow.h (stmt_can_throw_external): New.
16221         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
16222         and local pure/const pass in early and late optimization queue.
16223
16224 2009-03-28  Martin Jambor  <mjambor@suse.cz>
16225
16226         * fold-const.c (get_pointer_modulus_and_residue): New parameter
16227         allow_func_align.
16228         (fold_binary): Allow function decl aligment consideration is the
16229         second argument is integer constant one.
16230         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
16231         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
16232         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
16233
16234 2009-03-28  Jan Hubicka  <jh@suse.cz>
16235
16236         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
16237         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
16238         * function.h (rtl_data): Add nothrow flag.
16239         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
16240         set DECL_NOTHROW for AVAILABLE functions.
16241
16242 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
16243
16244         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
16245         following vector keyword has expansion starting with pixel or bool
16246         keyword, expand vector to __vector and pixel or bool to __pixel or
16247         __bool.
16248
16249         PR c++/39554
16250         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
16251         warn_if_disallowed_function_p): Removed.
16252         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
16253         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
16254         warning_if_disallowed_function_p.
16255         * flags.h (warn_if_disallowed_function_p,
16256         warn_disallowed_functions): Removed.
16257         * common.opt (Wdisallowed-function-list=): Removed.
16258         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
16259
16260 2009-03-28  Richard Guenther  <rguenther@suse.de>
16261
16262         PR tree-optimization/38723
16263         * tree-ssa-pre.c (compute_avail): Add all default definitions to
16264         the entry block.
16265
16266 2009-03-28  Jan Hubicka  <jh@suse.cz>
16267
16268         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
16269         test introduced by my previous patch.
16270
16271 2009-03-28  Richard Guenther  <rguenther@suse.de>
16272
16273         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
16274         the PHIs value undefined.
16275
16276 2009-03-28  Jan Hubicka  <jh@suse.cz>
16277
16278         * tree-pass.h (pass_fixup_cfg): New pass.
16279         * ipa-inline.c (inline_transform): Set
16280         always_inline_functions_inlined/after_inlining.
16281         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
16282         (pass_fixup_cfg): New pass.
16283         * passes.c (init_optimization_passes): Add fixup_cfg.
16284
16285 2009-03-28  Richard Guenther  <rguenther@suse.de>
16286
16287         PR tree-optimization/38458
16288         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
16289         argument use the arguments copy-of value.
16290
16291 2009-03-28  Richard Guenther  <rguenther@suse.de>
16292
16293         PR tree-optimization/38180
16294         * tree-ssa-ccp.c (get_default_value): Simplify.
16295         (likely_value): Likewise.
16296         (surely_varying_stmt_p): Properly handle VOP case.
16297         (ccp_initialize): Likewise.
16298         (ccp_fold): Handle propagating through *&.
16299         (fold_const_aggregate_ref): Also handle decls.
16300
16301 2009-03-28  Jan Hubicka  <jh@suse.cz>
16302
16303         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16304         * cgraph.h (cgraph_node): Likewise.
16305         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
16306         (cgraph_reset_node): Use process flag.
16307         (cgraph_mark_functions_to_output): Likewise.
16308         (cgraph_expand_function): Likewise.
16309         (cgraph_expand_all_functions): Likewise.
16310         (cgraph_output_in_order): Likewise.
16311         * dwarf2out.c (reference_to_unused): Likewise.
16312         * passes.c do_per_function_toporder): Likewise.
16313
16314 2009-03-28  Jan Hubicka  <jh@suse.cz>
16315
16316         Bring from lto-branch:
16317
16318         2008-09-03  Doug Kwan  <dougkwan@google.com>
16319
16320         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
16321         enums instead of reason strings.
16322         * cgraph.c (cgraph_create_edge): Same.
16323         (cgraph_inline_failed_string): New function.
16324         * cgraph.h (cgraph_inline_failed_t): New enum type.
16325         (cgraph_inline_failed_string): New prototype.
16326         (struct cgraph_edge): Change type of INLINED_FAILED from constant
16327         char pointer to cgraph_inline_failed_t.
16328         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
16329         (cgraph_default_inline_p): Ditto.
16330         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
16331         to cgraph_inline_failed_t pointer.
16332         * cif-code.def: New file.
16333         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
16334         reason string.
16335         (cgraph_check_inline_limits): Change type of REASON to pointer to
16336         cgraph_inline_failed_t.  Replace reason strings with enums.
16337         (cgraph_default_inline_p): Ditto.
16338         (cgraph_recursive_inlining_p): Ditto.
16339         (update_caller_keys): Change type of FAILED_REASON to
16340         cgraph_inline_failed_t.
16341         (cgraph_set_inline_failed): Change type of REASON to pointer to
16342         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
16343         convert enums to strings for text output.
16344         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
16345         to be of type cgraph_inline_failed_t.  Replace reason strings with
16346         enums.  Call cgraph_inline_failed_string to covert enums
16347         to strings for text output.
16348         (cgraph_decide_inlining): Replace reason strings with enums.
16349         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
16350         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
16351         for text output.
16352         * tree-inline.c (expand_call_inline): Change type of REASON
16353         to cgraph_inline_failed_t.  Replace reason strings with enums.
16354         Call cgraph_inline_failed_string for text output.
16355         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
16356         (cgraph.o): Ditto.
16357
16358 2009-03-28  Jan Hubicka  <jh@suse.cz>
16359
16360         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
16361         cgraph_clone_node): Remove master clone handling.
16362         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16363         * cgraph.h (master_clone): Remove.
16364         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16365         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
16366         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
16367
16368 2009-03-28  Jan Hubicka  <jh@suse.cz>
16369
16370         * cgraph.c (cgraph_function_body_availability): Functions declared
16371         inline are always safe to assume that it is not going to be replaced.
16372
16373 2009-03-28  Richard Guenther  <rguenther@suse.de>
16374
16375         PR tree-optimization/38513
16376         * tree-ssa-pre.c (eliminate): Remove redundant stores.
16377         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
16378         EXC_PTR_EXPR and FILTER_EXPR.
16379         (get_ref_from_reference_ops): Likewise.
16380
16381 2009-03-28  Richard Guenther  <rguenther@suse.de>
16382
16383         PR tree-optimization/38968
16384         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
16385         Use FLOOR_MOD_EXPR to compute misalignment.
16386
16387 2009-03-28  Richard Guenther  <rguenther@suse.de>
16388
16389         PR tree-optimization/37795
16390         * tree.h (combine_comparisons): Declare.
16391         * fold-const.c (combine_comparisons): Export.
16392         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
16393         comparisons.
16394         (ifcombine_iforif): Use combine_comparisons.
16395
16396 2009-03-28  Jan Hubicka  <jh@suse.cz>
16397
16398         * tree-eh.c (inlinable_call_p): New function.
16399         (make_eh_edges): Use it.
16400         (verify_eh_edges): Use it.
16401         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
16402         * except.c (reachable_next_level): Add inlinable_function argument
16403         (sjlj_find_directly_reachable_regions): Update.
16404         (add_reachable_handler): Do not set saw_any_handlers.
16405         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
16406         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16407         Add new inlinable call parameter.
16408         (can_throw_internal, can_throw_external): Update.
16409         * except.h (can_throw_internal_1, can_throw_external_1,
16410         foreach_reachable_handler): Update declaration.
16411
16412 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
16413
16414         * config/arm/t-arm-coff, config/h8300/coff.h,
16415         config/i386/i386-aout.h, config/i386/i386-coff.h,
16416         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
16417         config/pdp11/2bsd.h, config/rs6000/aix41.h,
16418         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
16419         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
16420         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
16421         sys-types.h: Remove.
16422         * Makefile.in: Remove protoize and fixproto support and references
16423         in comments.
16424         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
16425         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
16426         Remove.
16427         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
16428         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
16429         unprotoize$(exeext).
16430         (rest.encap): Don't depend on $(STMP_FIXPROTO)
16431         (.PHONY): Don't depend on proto.
16432         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
16433         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
16434         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
16435         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
16436         build/gen-protos.o, build/scan.o, xsys-protos.h,
16437         build/fix-header$(build_exeext), build/fix-header.o,
16438         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
16439         stmp-install-fixproto): Remove.
16440         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
16441         SYSCALLS.c or fixproto files.
16442         (install-common): Don't install protoize.
16443         (install-headers-tar, install-headers-cpio, install-headers-cp):
16444         Don't depend on $(STMP_FIXPROTO).
16445         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
16446         install fixproto files or write out fixproto settings.
16447         (uninstall): Don't uninstall protoize.
16448         * config.gcc (use_fixproto): Remove.
16449         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
16450         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
16451         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
16452         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
16453         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
16454         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
16455         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
16456         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
16457         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
16458         * config/t-vxworks (STMP_FIXPROTO): Remove.
16459         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
16460         STMP_FIXPROTO): Remove.
16461         * config.in, configure: Regenerate.
16462         * crtstuff.c (gid_t, uid_t): Don't undefine.
16463         * doc/install.texi: Change m68k-coff to m68k-elf in example.
16464         (arm-*-coff, arm-*-aout: Remove target entries.
16465         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
16466         Remove mention of AIX 4.1.
16467         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
16468         * doc/invoke.texi (Running Protoize): Remove.
16469         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
16470         (Protoize Caveats): Remove.
16471         * tsystem.h: Update comments on headers assumed to exist.
16472
16473 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
16474
16475         * genautomata.c: Add a new year to the copyright.  Add a new
16476         reference.
16477         (struct insn_reserv_decl): Add comments for member bypass_list.
16478         (find_bypass): Remove.
16479         (insert_bypass): New.
16480         (process_decls): Use insert_bypass.
16481         (output_internal_insn_latency_func): Output all bypasses with the
16482         same input insn in one switch case.
16483
16484         * rtl.def (define_bypass): Describe bypass choice.
16485         * doc/md.texi (define_bypass): Ditto.
16486
16487 2009-03-27  Richard Guenther  <rguenther@suse.de>
16488
16489         * gimplify.c (mark_addressable): Export.
16490         * tree-flow.h (mark_addressable): Declare.
16491         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
16492         * tree-ssa.c (verify_phi_args): Verify that address taken
16493         variables have TREE_ADDRESSABLE set.
16494
16495 2009-03-27  Richard Guenther  <rguenther@suse.de>
16496
16497         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
16498         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
16499         Do not mark decls TREE_ADDRESSABLE.
16500         (build_fold_addr_expr): Adjust.
16501         (fold_addr_expr): Remove.
16502         (fold_unary): Use build_fold_addr_expr.
16503         (fold_comparison): Likewise.
16504         (split_address_to_core_and_offset): Likewise.
16505         * coverage.c (tree_coverage_counter_addr): Mark the array decl
16506         TREE_ADDRESSABLE.
16507         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
16508         (gimplify_modify_expr_to_memcpy): Mark source and destination
16509         addressable.
16510         * omp-low.c (create_omp_child_function): Mark the object decl
16511         TREE_ADDRESSABLE.
16512         (lower_rec_input_clauses): Mark the var we take the address of
16513         TREE_ADDRESSABLE.
16514         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
16515
16516 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16517
16518         PR middle-end/39315
16519         * cfgexpand.c (expand_one_stack_var_at): Change alignment
16520         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
16521
16522 2009-03-27  Richard Guenther  <rguenther@suse.de>
16523
16524         PR tree-optimization/39120
16525         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
16526         constraints.
16527         (handle_lhs_call): Process return constraints.  Add escape
16528         constraints if necessary.
16529         (handle_const_call): Fill out return constraints.  Make nested
16530         case more precise.  Avoid consttmp if possible.
16531         (handle_pure_call): Fill out return constraints.  Avoid
16532         callused if possible.
16533         (find_func_aliases): Simplify call handling.
16534
16535 2009-03-27  Richard Guenther  <rguenther@suse.de>
16536
16537         PR tree-optimization/39120
16538         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
16539         as a representative.
16540         (solve_graph): Do propagate CALLUSED.
16541         (handle_pure_call): Use a scalar constraint from CALLUSED for
16542         the return value.
16543         (find_what_p_points_to): CALLUSED shall not appear in poins-to
16544         solutions.
16545
16546 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16547
16548         PR c/39323
16549         * c-common.c (handle_aligned_attribute): Properly check alignment
16550         overflow.  Use (1U << i) instead of (1 << i).
16551
16552         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
16553
16554         * expr.h (get_mem_align_offset): Updated.
16555
16556         * tree.h (tree_decl_common): Change align to "unsigned int" and
16557         move it before pointer_alias_set.
16558
16559 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16560             Jakub Jelinek  <jakub@redhat.com>
16561
16562         PR target/38034
16563         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
16564         gr_register_operand with gr_reg_or_0_operand.
16565         (cmpxchg_rel_di): Likewise.
16566         (sync_lock_test_and_set<mode>): Likewise.
16567
16568 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16569
16570         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
16571         (true_regnum): Likewise.
16572
16573         * rtlanal.c (subreg_info): Moved to ...
16574         * rtl.h (subreg_info): Here.  New.
16575         (subreg_get_info): New.
16576
16577         * rtlanal.c (subreg_get_info): Make it extern.
16578
16579 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16580
16581         PR target/39472
16582         * config/i386/i386.c (ix86_abi): New.
16583         (override_options): Handle -mabi=.
16584         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
16585         (ix86_call_abi_override): Likewise.
16586         (init_cumulative_args): Likewise.
16587         (function_arg_advance): Likewise.
16588         (function_arg_64): Likewise.
16589         (function_arg): Likewise.
16590         (ix86_pass_by_reference): Likewise.
16591         (ix86_function_value_regno_p): Likewise.
16592         (ix86_build_builtin_va_list_abi): Likewise.
16593         (setup_incoming_varargs_64): Likewise.
16594         (is_va_list_char_pointer): Likewise.
16595         (ix86_init_machine_status): Likewise.
16596         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
16597         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
16598         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
16599         (ix86_function_abi): Make it static and return enum calling_abi.
16600         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
16601         with ix86_abi.
16602         (ix86_fn_abi_va_list): Updated.
16603
16604         * config/i386/i386.h (ix86_abi): New.
16605         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
16606         (CONDITIONAL_REGISTER_USAGE): Likewise.
16607         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
16608         (machine_function): Likewise.
16609
16610         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
16611         with ix86_abi.
16612         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
16613         (STACK_BOUNDARY): Likewise.
16614         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
16615
16616         * config/i386/i386.opt (mabi=): New.
16617
16618         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
16619         return enum calling_abi.
16620         (ix86_function_type_abi): Likewise.
16621         (ix86_function_abi): Removed.
16622
16623         * doc/invoke.texi: Document -mabi= option for x86.
16624
16625 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16626
16627         * builtins.c (real_dconstp): Delete.
16628         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
16629
16630 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
16631             Jakub Jelinek  <jakub@redhat.com>
16632
16633         PR debug/37959
16634         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
16635         (gen_subprogram_die): When a function is explicit, generate the
16636         DW_AT_explicit attribute.
16637         * langhooks.h (struct lang_hooks_for_decls): Add
16638         function_decl_explicit_p langhook.
16639         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
16640         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
16641
16642 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
16643
16644         * builtins.c (fold_builtin_memory_op): Optimize memmove
16645         into memcpy if we can prove source and destination don't overlap.
16646
16647         * tree-inline.c: Include gt-tree-inline.h.
16648         (clone_fn_id_num): New variable.
16649         (clone_function_name): New function.
16650         (tree_function_versioning): Use it.
16651         * Makefile.in (GTFILES): Add tree-inline.c.
16652
16653 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
16654
16655         * BASE-VER: Change to 4.5.0.
16656
16657 2009-03-27  Xinliang David Li  <davidxl@google.com>
16658
16659         PR tree-optimization/39557
16660         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
16661
16662 2009-03-27  Xinliang David Li  <davidxl@google.com>
16663
16664         PR tree-optimization/39548
16665         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
16666         candidate check.
16667
16668 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16669
16670         * c-common.c (pointer_int_sum): Use %wd on return from
16671         tree_low_cst.
16672
16673 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16674
16675         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
16676         on return from tree_low_cst.
16677
16678 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16679
16680         PR c++/36799
16681         * ginclude/stdarg.h (va_copy): Define also for
16682         __GXX_EXPERIMENTAL_CXX0X__.
16683
16684 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16685
16686         PR c++/35652
16687         * builtins.h (c_strlen): Do not warn here.
16688         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
16689         * c-common.c (pointer_int_sum): Take an explicit location.
16690         Warn about offsets out of bounds.
16691         * c-common.h (pointer_int_sum): Adjust declaration.
16692
16693 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16694
16695         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
16696         markup glitch.
16697
16698 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
16699
16700         PR c++/39554
16701         * opts.c (warn_if_disallowed_function_p): Don't assume
16702         get_callee_fndecl must return non-NULL.
16703
16704 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
16705
16706         PR rtl-optimization/39522
16707         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
16708         when reg_reloaded_valid is set.
16709
16710 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16711
16712         * config/spu/divv2df3.c: New file.
16713         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
16714         (DPBIT_FUNCS): Filter out _div_df.
16715
16716 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
16717
16718         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
16719         a jump insn, count that jump in the distance to the loop start.
16720
16721 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
16722
16723         PR target/39523
16724         * config/sh/sh.c (calc_live_regs): Fix condition for global
16725         registers except PIC_OFFSET_TABLE_REGNUM.
16726
16727 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
16728
16729         PR/39518
16730         * doc/invoke.texi (-mconsole): New.
16731         (-mcygwin): New.
16732         (-mno-cygwin): New.
16733         (-mdll): New.
16734         (-mnop-fun-dllimport): New.
16735         (-mthread): New.
16736         (-mwin32): New.
16737         (-mwindows): New.
16738         (sub section "i386 and x86-64 Windows Options"): New.
16739
16740 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
16741
16742         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
16743         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
16744
16745 2009-03-25  Richard Guenther  <rguenther@suse.de>
16746
16747         PR middle-end/39497
16748         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
16749         of -Wno-error.
16750
16751 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
16752
16753         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
16754         neither of haifa/selective schedulers are working.
16755
16756 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16757
16758         * doc/invoke.texi (Debugging Options): Fix description of
16759         -fno-merge-debug-strings.
16760
16761 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
16762
16763         * config/cris/libgcc.ver: New version-script.
16764         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
16765
16766         * configure.ac <GAS features, nop mnemonic>: Add pattern
16767         crisv32-*-* for "nop".
16768         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
16769         * configure: Regenerate.
16770
16771 2009-03-24  Ira Rosen  <irar@il.ibm.com>
16772
16773         PR tree-optimization/39529
16774         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
16775         mark_sym_for_renaming for the tag copied to the new vector
16776         pointer.
16777
16778 2009-03-24  Arthur Loiret  <aloiret@debian.org>
16779
16780         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
16781         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
16782         EXTRA_SPEC_FUNCTIONS.
16783         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
16784         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
16785         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
16786         -march and -mtune options.
16787
16788 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
16789
16790         * config/m68k/t-rtems: Add m5329 multilib.
16791
16792 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
16793             Jakub Jelinek  <jakub@redhat.com>
16794
16795         PR debug/39524
16796         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
16797         nodes.
16798
16799 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
16800
16801         PR c/39495
16802         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
16803         instead of c_parser_expression_conv, if original_code isn't one of the
16804         4 allowed comparison codes, fail.
16805
16806 2009-03-23  Richard Guenther  <rguenther@suse.de>
16807
16808         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
16809         * tree.h (struct tree_type): Likewise.
16810         * reload.h (struct insn_chain): Likewise.
16811         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
16812         * function.h (struct function): Likewise.
16813         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
16814
16815 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
16816
16817         PR tree-optimization/39516
16818         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
16819
16820 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
16821
16822         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
16823         should be set true if BITS_PER_WORD of target is bigger than 32
16824
16825 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
16826
16827         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
16828         Translate -B-options to -rpath-link.  Correct existing
16829         rpath-link and conditionalize on !nostdlib.
16830
16831 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16832
16833         * doc/extend.texi (Function Attributes, Variable Attributes):
16834         Fix typos.
16835         * doc/invoke.texi (Debugging Options, Optimize Options)
16836         (i386 and x86-64 Options, MCore Options): Likewise.
16837
16838 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
16839
16840         PR debug/37890
16841         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
16842         it for block local namespace aliases.
16843         (gen_decl_die): Pass context_die to gen_namespace_die.
16844
16845 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
16846
16847         PR c/39495
16848         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
16849         minimum or maximum value.
16850
16851 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
16852
16853         * reginfo.c (globalize_reg): Recompute derived reg sets.
16854
16855 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
16856
16857         PR target/39063
16858         * libgcc2.c (mprotect): Do not use signed arguments for
16859         VirtualProtect, use DWORD arguments.  Also fix the 'may
16860         be used uninitialized' warning for the np variable.
16861
16862 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
16863
16864         PR target/39496
16865         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
16866         functions using regparm calling conventions when not optimizing.
16867         (ix86_function_sseregparm): Similarly for sseregparm calling
16868         conventions.
16869
16870 2009-03-19  Li Feng  <nemokingdom@gmail.com>
16871
16872         PR middle-end/39500
16873         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
16874         dependence if the first conflict is after niter iterations.
16875
16876 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
16877
16878         PR middle-end/38609
16879         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
16880         functions with dynamic stack-pointer adjustments.
16881
16882 2009-03-19  Ben Elliston  <bje@au.ibm.com>
16883
16884         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
16885         option; change to -msdata=data.
16886
16887 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16888
16889         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
16890         and -fopenmp.
16891
16892 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
16893
16894         PR target/35180
16895         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
16896
16897 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
16898
16899         * doc/invoke.texi (Code Gen Options): Expand discussion of
16900         -fno-common.
16901
16902 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
16903
16904         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
16905         * matrix-reorg.c (struct matrix_info): Likewise.
16906         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
16907         * rtl.h (struct mem_attrs): Likewise.
16908         * df.h (struct df): Likewise.
16909         * tree-data-ref.h (struct data_dependence_relation): Likewise.
16910         * ira-int.h (struct ira_allocno): Likewise.
16911         * df-scan.c (struct df_collection_rec): Likewise.
16912         * ira.c (struct equivalence): Likewise.
16913         * function.c (struct temp_slot): Likewise.
16914         * cfgloop.h (struct loop): Likewise.
16915
16916         PR debug/39485
16917         * function.c (use_register_for_decl): When not optimizing, disregard
16918         register keyword for variables with types containing methods.
16919
16920 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
16921
16922         PR middle-end/39447
16923         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
16924         (is_simple_operand): Call contains_component_ref_p before calling data
16925         reference analysis that would fail on COMPONENT_REFs.
16926
16927         * tree-vrp.c (search_for_addr_array): Fix formatting.
16928
16929 2009-03-18  Richard Guenther  <rguenther@suse.de>
16930
16931         * tree-vect-transform.c (vect_loop_versioning): Fold the
16932         generated comparisons.
16933         * tree-vectorizer.c (set_prologue_iterations): Likewise.
16934         (slpeel_tree_peel_loop_to_edge): Likewise.
16935
16936 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16937
16938         PR middle-end/37805
16939         * opts.c (print_specific_help): In addition to `undocumented',
16940         accept `separate' and `joined' flags if passed alone.  Describe
16941         output by the first matched one of those.
16942         (common_handle_option): Skip over empty strings.
16943         * gcc.c (display_help): Fix help string for `--help='.
16944         * doc/invoke.texi (Option Summary, Overall Options): With
16945         `--help=', classes and qualifiers can both be repeated, but
16946         only the latter can be negated.  One should not pass only
16947         negated qualifiers.  Fix markup and examples.
16948
16949         Revert
16950         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
16951         PR middle-end/37805
16952         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
16953         and -fhelp=separate.
16954
16955 2009-03-17  Jing Yu  <jingyu@google.com>
16956
16957         PR middle-end/39378
16958         * function.h (struct rtl_data): Move is_thunk from here...
16959         (struct function): ...to here.
16960         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
16961         * varasm.c (assemble_start_function): Change is_thunk from crtl to
16962         cfun.
16963         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
16964         cfun.
16965         (alpha_does_function_need_gp, alpha_start_function): Likewise.
16966         (alpha_output_function_end_prologue): Likewise.
16967         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
16968         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
16969         (rs6000_output_function_epilogue): Likewise.
16970         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
16971
16972 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
16973
16974         PR target/39482
16975         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
16976         from different units in a single alternative.
16977         (*truncdfsf_i387): Ditto.
16978         (*truncxfsf2_mixed): Ditto.
16979         (*truncxfdf2_mixed): Ditto.
16980
16981 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
16982
16983         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
16984         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
16985
16986         PR debug/39474
16987         * tree-ssa-live.c (remove_unused_locals): Don't remove local
16988         unused non-artificial variables when not optimizing.
16989
16990         PR debug/39471
16991         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
16992         DW_TAG_imported_module even if decl is IMPORTED_DECL with
16993         NAMESPACE_DECL in its DECL_INITIAL.
16994
16995         PR middle-end/39443
16996         * optabs.c (set_user_assembler_libfunc): New function.
16997         * expr.h (set_user_assembler_libfunc): New prototype.
16998         * c-common.c: Include libfuncs.h.
16999         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
17000         for memcmp, memset, memcpy, memmove and abort.
17001         * Makefile.in (c-common.o): Depend on libfuncs.h.
17002
17003         PR debug/39412
17004         * dwarf2out.c (gen_inlined_enumeration_type_die,
17005         gen_inlined_structure_type_die, gen_inlined_union_type_die,
17006         gen_tagged_type_instantiation_die): Removed.
17007         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
17008         do nothing.
17009
17010 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
17011
17012         PR testsuite/38526
17013         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
17014         its use.
17015         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
17016         (check-parallel-%): Ditto.
17017         (check-consistency): Ditto.
17018
17019 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
17020
17021         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
17022         local variable rhs by NULL_TREE.
17023
17024 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17025
17026         PR target/39477
17027         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
17028
17029 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17030
17031         PR target/39476
17032         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
17033
17034 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17035
17036         PR target/39473
17037         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
17038         for ms->sysv ABI calls only in 64bit mode.
17039
17040         * config/i386/i386.md (untyped_call): Support 32bit.
17041
17042 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17043
17044         * doc/extend.texi: Replace x86_65 with x86_64.
17045
17046 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
17047
17048         PR tree-optimization/39455
17049         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
17050         mismatches for POINTER_TYPE_P (type).
17051         (number_of_iterations_le): Likewise.
17052
17053 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
17054
17055         * config/picochip/picochip.c: Removed profiling support.
17056         * config/picochip/picochip.md: Removed profiling instruction.
17057         * config/picochip/picochip.h: Removed profiling builtin.
17058
17059 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
17060
17061         * doc/install.texi (--with-host-libstdcxx): Document.
17062
17063 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
17064
17065         PR target/34299
17066         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
17067         generate a warning if the function name does not begin with
17068         "__vector" and the function has either the 'signal' or 'interrupt'
17069         attribute, from here to ...
17070         (avr_declare_function_name): ...here. New function.
17071         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
17072         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
17073
17074 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
17075
17076         PR bootstrap/39454
17077         * cse.c (fold_rtx): Don't modify original const_arg1 when
17078         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
17079         separate variable instead.
17080         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
17081         from out of range shift counts.
17082         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
17083
17084 2009-03-13  Catherine Moore  <clm@codesourcery.com>
17085
17086         * config/i386/x-mingw32 (host-mingw32.o): Replace
17087         diagnostic.h with $(DIAGNOSTIC_H).
17088
17089 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
17090
17091         PR target/39431
17092         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
17093         predicate.
17094         * config/i386/sync.md (sync_compare_and_swap<mode>,
17095         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
17096         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
17097         into a register.
17098         (sync_double_compare_and_swapdi_pic,
17099         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
17100         cmpxchg8b_pic_memory_operand instead of just memory_operand.
17101
17102 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17103
17104         PR target/39445
17105         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
17106
17107 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17108
17109         PR target/39327
17110         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17111         (avx_addsubv4df3): Likewise.
17112         (*avx_addsubv4sf3): Likewise.
17113         (sse3_addsubv4sf3): Likewise.
17114
17115 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17116
17117         PR target/38824
17118         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
17119
17120 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
17121
17122         PR debug/39432
17123         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
17124         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17125         registers for allocnos created from user-defined variables.
17126
17127 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17128
17129         PR target/39181
17130         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
17131         of non-integer mode as well.
17132
17133 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
17134
17135         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
17136         for functions for which the parameter types are unknown.
17137
17138 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
17139
17140         PR target/39137
17141         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
17142         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
17143         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
17144         * config/i386/i386.c (ix86_local_alignment): For
17145         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
17146         long long variables on the stack to avoid dynamic realignment.
17147         Allow the first argument to be a decl rather than type.
17148         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
17149
17150 2009-03-11  Nick Clifton  <nickc@redhat.com>
17151
17152         PR target/5362
17153         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
17154         options.
17155         Add description to mno-lsim option.
17156         * config/mcore/mcore.h: Remove comment about deprecated m4align
17157         option.
17158         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
17159         * doc/invoke.texi: Add description of mno-lsim and
17160         mstack-increment options.
17161
17162         * config/fr30/fr30.opt: Document the -mno-lsim option.
17163         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
17164         and -mno-lsim options.
17165
17166 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17167
17168         * fold-const.c (fold_comparison): Only call fold_inf_compare
17169         if the mode supports infinities.
17170
17171 2009-03-11  Jason Merrill  <jason@redhat.com>
17172
17173         PR debug/39086
17174         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
17175         end already did.  Notice GIMPLE_CALL modifications of the result.
17176         Don't copy debug information from an ignored decl or a decl from
17177         another function.
17178
17179 2009-03-10  Richard Guenther  <rguenther@suse.de>
17180             Nathan Froyd  <froydnj@codesourcery.com>
17181
17182         PR middle-end/37850
17183         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
17184         (__divMODE3): Likewise.
17185
17186 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
17187
17188         PR tree-optimization/39394
17189         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
17190         DECL_SIZE_UNIT of variable length FIELD_DECLs.
17191
17192 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17193
17194         * recog.c (verfiy_changes): Disallow renaming of hard regs in
17195         inline asms for register asm ("") declarations.
17196
17197 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
17198
17199         * fold-const.c (fold_unary): Fix comment.
17200
17201 2009-03-07  Jan Hubicka  <jh@suse.cz>
17202
17203         PR target/39361
17204         * tree-inline.c (setup_one_parameter): Do replacement of const
17205         argument by constant in SSA form.
17206
17207 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17208
17209         PR middle-end/38028
17210         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
17211         determine alignment passed to assign_stack_local.
17212         (assign_parms_unsplit_complex): Likewise.
17213         * except.c (sjlj_build_landing_pads): Likewise.
17214
17215 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17216
17217         PR middle-end/39360
17218         * tree-flow.h (add_referenced_var): Return bool instead of void.
17219         * tree-dfa.c (add_referenced_var): Return result of
17220         referenced_var_check_and_insert call.
17221         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
17222         of referenced_var_check_and_insert.
17223
17224         PR debug/39372
17225         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
17226         (gen_variable_die): Emit DW_AT_location on abstract static variable's
17227         DIE, don't emit it if abstract origin already has it.
17228         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
17229         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
17230
17231 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17232
17233         * genpreds.c (needs_variable): Fix parentheses at variable name
17234         detection.
17235         (write_tm_constrs_h): Indent generated code.
17236
17237 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17238
17239         * doc/extend.texi (Function Attributes): Add documentation
17240         for isr attributes.
17241
17242 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17243
17244         PR debug/39387
17245         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
17246         take locus from its DECL_SOURCE_LOCATION instead of input_location.
17247
17248 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
17249
17250         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
17251         the loop as bad.
17252
17253 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
17254
17255         PR debug/39379
17256         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
17257         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
17258
17259 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
17260
17261         * config/i386/i386.md (R8_REG, R9_REG): New constants.
17262         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
17263         constants instead of magic numbers.
17264         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
17265         (QI_REG_P): Ditto.
17266         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
17267         (x86_64_ms_abi_int_parameter_registers): Ditto.
17268         (x86_64_int_return_registers): Ditto.
17269         (ix86_maybe_switch_abi): Ditto.
17270         (ix86_expand_call): Ditto for clobbered_registers array.
17271         (ix86_hard_regno_mode_ok): Ditto.
17272         (x86_extended_QIreg_mentioned_p): Ditto.
17273
17274 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
17275
17276         PR tree-optimization/39349
17277         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
17278
17279         * combine.c (gen_lowpart_for_combine): Use omode when generating
17280         clobber.
17281
17282 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
17283
17284         PR rtl-optimization/39235
17285         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
17286
17287 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17288
17289         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
17290
17291 2009-03-04  Richard Guenther  <rguenther@suse.de>
17292
17293         PR tree-optimization/39362
17294         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
17295         that occur in abnormal PHIs should be varying.
17296
17297 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17298
17299         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
17300         Extend comments.
17301         (simple_iv):  Take loop as an argument instead of statement.
17302         * tree-scalar-evolution.h (simple_iv): Declaration changed.
17303         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
17304         to simple_iv.
17305         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
17306         Ditto.
17307         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
17308         * matrix-reorg.c (analyze_transpose): Ditto.
17309         * tree-data-ref.c (dr_analyze_innermost): Ditto.
17310         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
17311         * tree-predcom.c (ref_at_iteration): Ditto.
17312         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
17313
17314 2009-03-04  Richard Guenther  <rguenther@suse.de>
17315
17316         PR tree-optimization/39358
17317         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
17318         escaped_id and callused_id.
17319         (solve_graph): Likewise.
17320
17321 2009-03-04  Richard Guenther  <rguenther@suse.de>
17322
17323         PR tree-optimization/39339
17324         * tree-sra.c (try_instantiate_multiple_fields): Make it
17325         no longer ICE on the above.
17326
17327 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
17328
17329         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
17330         that fits within Pmode.
17331
17332 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17333
17334         PR middle-end/10109
17335         * tm.texi (LIBCALL_VALUE): Update description.
17336
17337 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17338
17339         PR middle-end/34443
17340         * doc/extend.texi (section): Update description.
17341
17342 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17343
17344         PR middle-end/39345
17345         * tree-inline.c (remapped_type): New.
17346         (can_be_nonlocal): Call remapped_type instead of remap_type.
17347
17348 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17349
17350         PR fortran/39354
17351         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
17352         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
17353
17354 2009-03-03  Richard Guenther  <rguenther@suse.de>
17355
17356         PR middle-end/39272
17357         * tree.c (tree_nonartificial_location): New function.
17358         * tree.h (tree_nonartificial_location): Declare.
17359         * builtins.c (expand_builtin_memory_chk): Provide location
17360         of the call location for artificial function pieces.
17361         (maybe_emit_chk_warning): Likewise.
17362         (maybe_emit_sprintf_chk_warning): Likewise.
17363         (maybe_emit_free_warning): Likewise.
17364         * expr.c (expand_expr_real_1): Likewise.
17365
17366 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17367
17368         PR tree-optimization/39343
17369         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
17370         COMPONENT_REF t has ARRAY_TYPE.
17371
17372 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
17373
17374         PR middle-end/39335
17375         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
17376         when the type precision of the induction variable should be
17377         larger than the type precision of nit.
17378         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
17379         * graphite.c (graphite_loop_normal_form): Same.
17380         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
17381
17382 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17383
17384         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
17385         (*call_1_rex64_ms_sysv): Use named constants instead of magic
17386         numbers to describe clobbered registers.
17387         (*call_value_0_rex64_ms_sysv): Ditto.
17388         * config/i386/mmx.md (mmx_emms): Ditto.
17389         (mmx_femms): Ditto.
17390
17391 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
17392
17393         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
17394         of ABI_64.
17395
17396 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17397
17398         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
17399         (spu_section_type_flags): New function.
17400
17401 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17402
17403         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
17404         reg_class_contents of FLOAT_REGS into a temporary.
17405
17406 2009-03-02  Richard Guenther  <rguenther@suse.de>
17407             Ira Rosen  <irar@il.ibm.com>
17408
17409         PR tree-optimization/39318
17410         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
17411         information to the vectorized statement.
17412
17413 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
17414
17415         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
17416         variable.  Use defined names instead of magic constants for REX SSE
17417         registers.
17418
17419 2009-03-01  Richard Guenther  <rguenther@suse.de>
17420
17421         PR tree-optimization/39331
17422         * omp-low.c (lower_send_shared_vars): Do not receive new
17423         values for the reference of DECL_BY_REFERENCE parms or results.
17424
17425 2009-03-01  Jan Hubicka  <jh@suse.cz>
17426
17427         PR debug/39267
17428         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
17429         BLOCK_NONLOCALIZED_VAR): New macros.
17430         (tree_block): Add nonlocalized_vars.
17431         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
17432         gen_decl_die): Add origin argument.  Allow generation of die with
17433         origin at hand only.
17434         (gen_member_die, gen_type_die_with_usage, force_decl_die,
17435         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
17436         of gen_*.
17437         (gen_block_die): Fix checking for unused blocks.
17438         (process_scope_var): Break out from .... ; work with origins only.
17439         (decls_for_scope) ... here; process nonlocalized list.
17440         (dwarf2out_ignore_block): Look for nonlocalized vars.
17441         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
17442         vars.
17443         (dump_scope_block): Dump them.
17444         * tree-inline.c (remap_decls): Handle nonlocalized vars.
17445         (remap_block): Likewise.
17446         (can_be_nonlocal): New predicate.
17447         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
17448
17449 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17450
17451         * configure: Regenerate.
17452
17453 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17454
17455         * optc-gen.awk: No need to duplicate option flags twice.
17456         Reuse help texts for duplicate options which do not have any.
17457
17458         * gcc.c (display_help): Document --version.
17459
17460         * gcc.c (main): If print_help_list and verbose_flag, ensure
17461         driver output comes before subprocess output.
17462
17463         * optc-gen.awk: Assign all remaining fields to help string,
17464         space-separated, for multi-line help in *.opt.
17465
17466         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
17467         -Wno-pedantic-ms-format is for MinGW targets only.
17468
17469         * doc/options.texi (Option file format): Fix bad indentation,
17470         restoring dropped sentence.
17471
17472 2009-02-28  Jan Hubicka  <jh@suse.cz>
17473
17474         * tree-inline.c (tree_function_versioning): Output debug info.
17475
17476 2009-02-28  Jan Hubicka  <jh@suse.cz>
17477
17478         PR debug/39267
17479         * tree-inline.c (setup_one_parameter): Do not copy propagate
17480         arguments when not optimizing.
17481
17482 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
17483
17484         PR target/39327
17485         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17486         (avx_addsubv4df3): Likewise.
17487         (*avx_addsubv4sf3): Likewise.
17488         (sse3_addsubv4sf3): Likewise.
17489         (*avx_addsubv2df3): Likewise.
17490         (sse3_addsubv2df3): Likewise.
17491         (avx_unpckhps256): Correct item selectors.
17492         (avx_unpcklps256): Likewise.
17493         (avx_unpckhpd256): Likewise.
17494         (avx_unpcklpd256): Likewise.
17495
17496 2009-02-28  Jan Hubicka  <jh@suse.cz>
17497
17498         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
17499         static vars.
17500         (copy_arguments_for_versioning): If var is declared don't declare it.
17501         (tree_function_versioning): First setup substitutions and then copy
17502         args.
17503
17504 2009-02-27  Jan Hubicka  <jh@suse.cz>
17505
17506         PR debug/39267
17507         * cgraph.h (varpool_output_debug_info): Remove.
17508         * cgraphunit.c (varpool_output_debug_info): Remove.
17509         * dwarf2out.c (deferred_locations_struct): New struct
17510         (deferred_locations): New type.
17511         (deferred_locations_list): New static var.
17512         (deffer_location): New function.
17513         (gen_variable_die): Use it.
17514         (decls_for_scope): Output info on local static vars.
17515         (dwarf2out_finish): Process deferred locations.
17516         * varpool.c (varpool_output_debug_info): Remove.
17517
17518 2009-02-27  Jan Hubicka  <jh@suse.cz>
17519
17520         PR debug/39267
17521         * tree.h (TREE_PROTECTED): Fix comment.
17522         (BLOCK_HANDLER_BLOCK): Remove.
17523         (struct tree_block): Remove handler_block add body_block.
17524         (inlined_function_outer_scope_p): New.
17525         (is_body_block): Remove.
17526         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
17527         * dwarf2out.c (is_inlined_entry_point): Remove.
17528         (add_high_low_attributes): Use inlined_function_outer_scope_p.
17529         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
17530         code.
17531         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
17532         * gimplify.c (gimplify_expr): Gimplify body blocks.
17533         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
17534         block with multiple subblocks.
17535         (dump_scope_block): Prettier output; dump more flags and info.
17536         (dump_scope_blocks): New.
17537         (remove_unused_locals): Use dump_scope_blocks.
17538         * tree-flow.h (dump_scope_blocks): Declare.
17539         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
17540         * stmt.c (is_body_block): Remove.
17541         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
17542         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
17543
17544 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
17545
17546         PR middle-end/39308
17547         * graphite.c (graphite_loop_normal_form): Do not call
17548         number_of_iterations_exit from a gcc_assert.
17549
17550 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17551
17552         * config/s390/s390.c (s390_swap_cmp): Look for conditional
17553         jumps if COND is NULL.
17554         (find_cond_jump): New function.
17555         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
17556         * config/s390/s390.md: Remove z10_cobra attribute value.
17557
17558 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
17559
17560         * config/alpha/alpha.h (alpha_expand_mov): Return false if
17561         force_const_mem returns NULL_RTX.
17562
17563 2009-02-26  Jan Hubicka  <jh@suse.cz>
17564
17565         PR debug/39267
17566         * cgraph.h (varpool_output_debug_info): Remove.
17567         * cgraphunit.c (varpool_output_debug_info): Remove.
17568         * dwarf2out.c (deferred_locations_struct): New struct
17569         (deferred_locations): New type.
17570         (deferred_locations_list): New static var.
17571         (deffer_location): New function.
17572         (gen_variable_die): Use it.
17573         (decls_for_scope): Output info on local static vars.
17574         (dwarf2out_finish): Process deferred locations.
17575         * varpool.c (varpool_output_debug_info): Remove.
17576
17577 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
17578
17579         PR rtl-optimization/39241
17580         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
17581         to subreg_offset_representable_p.
17582
17583 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
17584
17585         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
17586         execute function prototype.  Get f and nregs from max_reg_num
17587         and get_insns.  Remove the first backward pass as it's dead,
17588         guard the forward pass by flag_expensive_optimizations.
17589         (rest_of_handle_regmove): Delete.
17590         (pass_regmove): Replace it with regmove_optimize.
17591
17592 2009-02-25  Martin Jambor  <mjambor@suse.cz>
17593
17594         PR tree-optimization/39259
17595         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
17596         calls_alloca function flags.
17597         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
17598         calls are detected.
17599
17600 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
17601
17602         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
17603         flags_set_1_rtx, flags_set_1_set): Delete.
17604         (regmove_optimize): Do not call mark_flags_life_zones.
17605
17606 2009-02-24  Julian Brown  <julian@codesourcery.com>
17607
17608         PR target/35965
17609         * config/arm/arm.c (require_pic_register): Only set
17610         cfun->machine->pic_reg once per function.
17611
17612 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
17613
17614         * doc/invoke.texi (Link Options): Document an easier way to pass
17615         options that take arguments to the GNU linker using -Xlinker and -Wl.
17616
17617 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
17618
17619         PR target/33785
17620         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
17621
17622 2009-02-24  Richard Guenther  <rguenther@suse.de>
17623
17624         PR debug/39285
17625         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
17626
17627 2009-02-24  Richard Guenther  <rguenther@suse.de>
17628             Zdenek Dvorak  <ook@ucw.cz>
17629
17630         PR tree-optimization/39233
17631         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
17632         from converting them to a generic type.
17633
17634 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
17635
17636         PR tree-optimization/39260
17637         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
17638         contains a condition with a real type.
17639         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
17640
17641 2009-02-23  Jason Merrill  <jason@redhat.com>
17642
17643         PR c++/38880
17644         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
17645         narrowing_initializer_constant_valid_p.
17646         (narrowing_initializer_constant_valid_p): Don't return
17647         null_pointer_node for adding a pointer to itself.
17648
17649 2009-02-23  Jan Hubicka  <jh@suse.cz>
17650
17651         PR c/12245
17652         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
17653         resizing.
17654
17655 2009-02-23  Jan Hubicka  <jh@suse.cz>
17656
17657         PR tree-optimization/37709
17658         * tree.c (block_ultimate_origin): Move here from dwarf2out.
17659         * tree.h (block_ultimate_origin): Declare.
17660         * dwarf2out.c (block_ultimate_origin): Move to tree.c
17661         * tree-ssa-live.c (remove_unused_scope_block_p):
17662         Eliminate blocks containig no instructions nor live variables nor
17663         nested blocks.
17664         (dump_scope_block): New function.
17665         (remove_unused_locals): Enable removal of dead blocks by default;
17666         enable dumping at TDF_DETAILS.
17667
17668 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
17669
17670         * config/i386/i386.c (classify_argument): Don't allow COImode
17671         and OImode.
17672         (function_arg_advance_32): Don't allow OImode.
17673         (function_arg_32): Likewise.
17674         (function_value_32): Likewise.
17675         (return_in_memory_32): Likewise.
17676         (function_arg_64): Remove OImode comment.
17677
17678 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
17679
17680         PR target/39261
17681         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
17682         ix86_expand_vector_set for V4DImode in 64bit mode only.
17683         (ix86_expand_vector_init_one_var): Likewise.
17684
17685 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
17686
17687         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
17688
17689 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
17690
17691         PR bootstrap/39257
17692         * loop-iv.c: Revert last change.
17693         * emit-rtl.c: Likewise.
17694
17695 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
17696
17697         PR target/39256
17698         * config/i386/i386.c (type_natural_mode): Remove an extra
17699         space in the warning message.
17700         (function_value_32): Handle 32-byte vector modes.
17701         (return_in_memory_32): Likewise.
17702
17703 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
17704
17705         * loop-iv.c (truncate_value): New function.
17706         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
17707         of lowpart_subreg.
17708         (lowpart_subreg): Move to...
17709         * emit-rtl.c: ...here.
17710
17711 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
17712
17713         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
17714         accidental and undocumented change at revision 140860.
17715
17716 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
17717
17718         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
17719         take gimple_seq * arguments.
17720         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
17721         types_compatible_p langhook.
17722
17723 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
17724             Joseph Myers  <joseph@codesourcery.com>
17725
17726         * config/arm/arm.c (arm_builtin_va_list): New function.
17727         (arm_expand_builtin_va_start): Likewise.
17728         (arm_gimplify_va_arg_expr): Likewise.
17729         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
17730         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
17731         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
17732         (va_list_type): New variable.
17733         (arm_mangle_type): Mangle va_list_type appropriately.
17734
17735 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
17736
17737         PR middle-end/39157
17738         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
17739         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
17740         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
17741         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
17742         parameter to 1000 for -O1 by default.
17743         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
17744         parameter.
17745         * loop-invariant.c: Include params.h.
17746         (move_loop_invariants): Don't call move_single_loop_invariants on
17747         very large loops.
17748
17749 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
17750
17751         * calls.c (emit_library_call_value_1): Use slot_offset instead of
17752         offset when calculating bounds for indexing stack_usage_map.  Fixes
17753         a buffer overflow with certain target setups.
17754
17755 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
17756
17757         PR target/39240
17758         * calls.c (expand_call): Clear try_tail_call if caller and callee
17759         disagree in promotion of function return value.
17760
17761 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
17762
17763         PR target/39175
17764         * c-common.c (c_determine_visibility): If visibility changed and
17765         DECL_RTL has been already set, call make_decl_rtl to update symbol
17766         flags.
17767
17768 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
17769
17770         PR c++/39188
17771         * varasm.c (assemble_variable): Don't check DECL_NAME when
17772         globalizing a variable.
17773
17774 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
17775
17776         PR c/38483
17777         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
17778         expression before any __builtin_trap call.
17779         * c-typeck.c (build_function_call): Convert and check function
17780         arguments before generating a call to a trap.  Evaluate the
17781         function arguments before the trap.
17782
17783 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
17784
17785         PR target/39228
17786         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
17787         (UNSPEC_FXAM_MEM): New unspec.
17788         (fxam<mode>2_i387_with_temp): New insn and split pattern.
17789         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
17790         memory using fxam<mode>2_i387_with_temp to remove excess precision.
17791
17792 2009-02-19  Richard Guenther  <rguenther@suse.de>
17793
17794         PR tree-optimization/39207
17795         PR tree-optimization/39074
17796         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
17797         storedanything_tree): New.
17798         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
17799         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
17800         (build_succ_graph): Add edges from STOREDANYTHING to all
17801         non-direct nodes.
17802         (init_base_vars): Initialize STOREDANYTHING.
17803         (compute_points_to_sets): Free substitution info after
17804         building the succ graph.
17805         (ipa_pta_execute): Likewise.
17806
17807         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
17808         field.
17809         (do_ds_constraint): Do not add to special var or non-pointer
17810         field solutions.
17811         (type_could_have_pointers): Split out from ...
17812         (could_have_pointers): ... here.  For arrays use the element type.
17813         (create_variable_info_for): Initialize may_have_pointers.
17814         (new_var_info): Likewise.
17815         (handle_lhs_call): Make the HEAP variable unknown-sized.
17816         (intra_create_variable_infos): Use a type with pointers for
17817         PARM_NOALIAS, make it unknown-sized.
17818
17819 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17820
17821         PR target/39224
17822         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
17823
17824 2009-02-18  Jason Merrill  <jason@redhat.com>
17825
17826         PR target/39179
17827         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
17828         value if DECL_EXTERNAL.
17829         * tree-sra.c (sra_walk_gimple_assign): Likewise.
17830         * target.h (gcc_target::binds_local_p): Clarify "module".
17831         * tree.h (TREE_PUBLIC): Clarify "module".
17832
17833 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
17834
17835         PR target/38891
17836         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
17837         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
17838
17839 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
17840
17841         PR target/39082
17842         * c.opt (Wabi): Support C and ObjC.
17843         (Wpsabi): New.
17844
17845         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
17846
17847         * config/i386/i386.c (classify_argument): Warn once about the ABI
17848         change when passing union with long double.
17849
17850         * doc/invoke.texi: Update -Wabi for warning psABI changes.
17851
17852 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
17853
17854         PR c/35447
17855         * c-parser.c (c_parser_compound_statement): Always enter and leave
17856         a scope.
17857
17858 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17859
17860         PR target/34587
17861         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
17862
17863 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
17864
17865         PR tree-optimization/36922
17866         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
17867         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
17868         Likewise.
17869
17870 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
17871
17872         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
17873         to 0 for EABI64.
17874
17875 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
17876
17877         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
17878
17879 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
17880
17881         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
17882         tree sharing.
17883
17884 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
17885             Richard Sandiford  <rdsandiford@googlemail.com>
17886
17887         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
17888         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
17889         (loongson_biadd): ...this.
17890
17891 2009-02-17  Richard Guenther  <rguenther@suse.de>
17892
17893         PR tree-optimization/39202
17894         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
17895         a var make sure to follow existing collapses.
17896
17897 2009-02-17  Richard Guenther  <rguenther@suse.de>
17898
17899         PR middle-end/39214
17900         * langhooks.c (lhd_print_error_function): Check for NULL block.
17901
17902 2009-02-17  Richard Guenther  <rguenther@suse.de>
17903
17904         PR tree-optimization/39204
17905         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
17906         of the PHI arg.
17907
17908 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
17909
17910         * config/soft-fp/double.h: Update from glibc CVS.
17911
17912 2009-02-17  Richard Guenther  <rguenther@suse.de>
17913
17914         PR tree-optimization/39207
17915         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
17916         strict-aliasing warnings for pointers pointing to NULL.
17917
17918 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
17919
17920         PR c/35446
17921         * c-parser.c (c_parser_braced_init): Call pop_init_level when
17922         skipping until next close brace.
17923
17924 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
17925
17926         PR target/37049
17927         * config/i386/i386.c (ix86_expand_push): Set memory alignment
17928         to function argument boundary.
17929
17930 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
17931
17932         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
17933         in the lea_add. Reload eventually constraints it properly.
17934         * config/picochip/constraints.md: Remove the target constraint
17935         "b", since it is not needed anymore.
17936
17937 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
17938
17939         * gthr-dce.h: Uglify function parameter and local variable names.
17940         * gthr-gnat.h: Likewise.
17941         * gthr-mipssde.h: Likewise.
17942         * gthr-nks.h: Likewise.
17943         * gthr-posix95.h: Likewise.
17944         * gthr-posix.h: Likewise.
17945         * gthr-rtems.h: Likewise.
17946         * gthr-single.h: Likewise.
17947         * gthr-solaris.h: Likewise.
17948         * gthr-tpf.h: Likewise.
17949         * gthr-vxworks.h: Likewise.
17950         * gthr-win32.h: Likewise.
17951
17952 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
17953
17954         PR target/39196
17955         * config/i386/i386.md: Restrict the new peephole2 to move
17956         between MMX/SSE registers.
17957
17958 2009-02-15  Richard Guenther  <rguenther@suse.de>
17959
17960         Revert
17961         2009-02-13  Richard Guenther  <rguenther@suse.de>
17962
17963         * configure.ac: Enable LFS.
17964         * configure: Re-generate.
17965         * config.in: Likewise.
17966
17967 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17968
17969         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
17970         spu_srqwbyte, spu_srqwbytebc): Define.
17971         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
17972         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
17973         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
17974         "shrqby_<mode>"): New insn-and-split patterns.
17975         * config/spu/spu.c (expand_builtin_args): Determine and return
17976         number of operands using spu_builtin_description data.
17977         (spu_expand_builtin_1): Use it.
17978
17979 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
17980
17981         PR target/38056
17982         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
17983         TARGET_CONST_GP.
17984
17985 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
17986
17987         PR target/39149
17988         * config/i386/i386.c (override_options): Correct warning
17989         messages for -malign-loops, -malign-jumps and -malign-functions.
17990
17991 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
17992
17993         PR target/39152
17994         * config/i386/i386.md: Restrict the new peephole2 to move
17995         between the general purpose registers.
17996
17997 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
17998
17999         PR target/39162
18000         * config/i386/i386.c (type_natural_mode): Add a new argument.
18001         Return the original mode and warn ABI change if vector size is 32byte.
18002         (function_arg_advance): Updated.
18003         (function_arg): Likewise.
18004         (ix86_function_value): Likewise.
18005         (ix86_return_in_memory): Likewise.
18006         (ix86_sol10_return_in_memory): Likewise.
18007         (ix86_gimplify_va_arg): Likewise.
18008         (function_arg_32): Don't warn ABX ABI change here.
18009         (function_arg_64): Likewise.
18010
18011 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18012
18013         * loop-iv.c (implies_p): In the final case, test that operands 0
18014         of the two comparisons match.
18015
18016         * config/bfin/bfin.c (find_prev_insn_start): New function.
18017         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
18018         (find_next_insn_start): Move.
18019
18020 2009-02-13  Richard Guenther  <rguenther@suse.de>
18021
18022         * configure.ac: Enable LFS.
18023         * configure: Re-generate.
18024         * config.in: Likewise.
18025
18026 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
18027
18028         PR c/35444
18029         * c-parser.c (c_parser_parms_list_declarator): Discard pending
18030         sizes on syntax error after some arguments have been parsed.
18031
18032 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18033
18034         * doc/invoke.texi (-fira): Remove.
18035
18036 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18037
18038         * caller-save.c: Replace regclass.c with reginfo.c in comments.
18039         * recog.c: Likewise.
18040         * rtl.h: Likewise.
18041
18042 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
18043
18044         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
18045         (umul_ppmm): Likewise.
18046         (count_leading_zeros): Likewise.
18047         (count_trailing_zeros): Likewise.
18048         (UMUL_TIME): Likewise.
18049
18050 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18051
18052         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
18053         soft-fp/t-softfp to tmake_file.
18054
18055         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
18056         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
18057         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
18058         IA64_BUILTIN_INFQ]: New.
18059         (ia64_init_builtins): Initialize __builtin_infq,
18060         __builtin_fabsq and __builtin_copysignq if not HPUX.
18061         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
18062         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
18063
18064         * config/ia64/lib1funcs.asm (__divtf3): Define only if
18065         SHARED is defined.
18066         (__fixtfti): Likewise.
18067         (__fixunstfti): Likewise.
18068         (__floattitf): Likewise.
18069
18070         * config/ia64/libgcc-glibc.ver: New.
18071         * config/ia64/t-fprules-softfp: Likewise.
18072         * config/ia64/sfp-machine.h: Likewise.
18073
18074         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
18075         (LIBGCC2_TF_CEXT): Likewise.
18076         (TF_SIZE): Likewise.
18077         (TARGET_INIT_LIBFUNCS): Likewise.
18078
18079         * config/ia64/t-glibc (SHLINB_MAPFILES):
18080         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
18081
18082 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18083
18084         * config/i386/i386.c (construct_container): Rewrite processing
18085         BLKmode with X86_64_SSE_CLASS.
18086
18087 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
18088
18089         PR target/39152
18090         * config/i386/i386.md: Replace simplify_replace_rtx with
18091         replace_rtx in the new peephole2.
18092
18093 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
18094
18095         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
18096         loop unrolling do not happen at -O2.
18097
18098 2009-02-12  Michael Matz  <matz@suse.de>
18099
18100         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
18101
18102 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18103
18104         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
18105         for -g3.
18106
18107 2009-02-12  Ben Elliston  <bje@au.ibm.com>
18108
18109         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
18110         patterns when updating the back chain.  Missed in the 2009-02-10
18111         change.
18112
18113 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
18114
18115         * doc/extend.texi (Decimal Floating Types): Update identifier of
18116         draft TR and list of missing support.
18117
18118 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18119
18120         PR middle-end/39154
18121         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
18122         bit to variable length decl's flags, add it also to its
18123         pointer replacement variable.
18124
18125 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
18126             Jakub Jelinek  <jakub@redhat.com>
18127
18128         PR target/39118
18129         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
18130         (memory_blockage): New expander.
18131         (*memory_blockage): New insn pattern.
18132         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
18133         instead of general blockage at the end of function prologue when
18134         frame pointer is used to access red zone area.  Do not emit blockage
18135         when profiling, it is emitted in generic code.
18136         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
18137         function epilogue when frame pointer is used to access red zone area.
18138
18139 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
18140
18141         PR target/38824
18142         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
18143         by arithmetic with memory operands.
18144         * config/i386/predicates.md (commutative_operator): New.
18145
18146 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
18147
18148         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
18149         bulleted lists.
18150
18151 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18152
18153         * alias.h (record_alias_subset): Declare.
18154         * alias.c (record_alias_subset): Make global.
18155
18156 2009-02-10  Nick Clifton  <nickc@redhat.com>
18157
18158         * tree-parloops.c: Change license to GPLv3.
18159         * ipa-struct-reorg.c: Change license to GPLv3.
18160         * ipa-struct-reorg.h: Change license to GPLv3.
18161
18162 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
18163
18164         PR c/39084
18165         * c-decl.c (start_struct): Return NULL on error.
18166
18167 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
18168
18169         PR middle-end/39124
18170         * cfgloopmanip.c (remove_path): Call remove_bbs after
18171         cancel_loop_tree, not before it.
18172
18173         PR target/39139
18174         * function.h (struct function): Add has_local_explicit_reg_vars bit.
18175         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
18176         VAR_DECLs were seen.
18177         * tree-ssa-live.c (remove_unused_locals): Recompute
18178         cfun->has_local_explicit_reg_vars.
18179         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
18180         copies or clearings if cfun->has_local_explicit_reg_vars.
18181
18182 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
18183
18184         PR target/39118
18185         * config/i386/i386.c (expand_prologue): Emit blockage at the end
18186         of function prologue when frame pointer is used to access
18187         red zone area.
18188
18189 2009-02-10  Richard Guenther  <rguenther@suse.de>
18190
18191         PR middle-end/39127
18192         * gimplify.c (gimple_regimplify_operands): Always look if
18193         we need to create a temporary.
18194
18195 2009-02-10  Richard Guenther  <rguenther@suse.de>
18196
18197         PR tree-optimization/39132
18198         * tree-loop-distribution.c (todo): New global var.
18199         (generate_memset_zero): Trigger TODO_rebuild_alias.
18200         (tree_loop_distribution): Return todo.
18201
18202 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
18203
18204         PR target/39119
18205         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
18206         (x86_64_reg_class_name): Removed.
18207         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
18208         first one isn't X86_64_SSE_CLASS or any other ones aren't
18209         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
18210         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
18211         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
18212         and 3 X86_64_SSEUP_CLASS.
18213         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
18214         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
18215
18216 2009-02-10  Ben Elliston  <bje@au.ibm.com>
18217
18218         * config/rs6000/rs6000.md (allocate_stack): Always use an update
18219         form instruction to update the stack back chain word, even if the
18220         user has disabled the generation of update instructions.
18221         (movdi_<mode>_update_stack): New.
18222         (movsi_update_stack): Likewise.
18223         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
18224         always use an update form instruction to update the stack back
18225         chain word.
18226
18227 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
18228
18229         PR middle-end/38953
18230         * graphite.c (if_region_set_false_region): After moving a region in
18231         the false branch of a condition, remove the empty dummy basic block.
18232         (gloog): Remove wrong fix for PR38953.
18233
18234 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18235
18236         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
18237         generation due to implicit sign extension.
18238
18239 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18240
18241         PR middle-end/38981
18242         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
18243         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
18244
18245 2009-02-09  Richard Guenther  <rguenther@suse.de>
18246
18247         PR middle-end/35202
18248         * convert.c (convert_to_real): Disable (float)fn((double)x)
18249         to fnf(x) conversion if errno differences may occur and
18250         -fmath-errno is set.
18251
18252 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
18253
18254         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
18255         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18256         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18257
18258 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18259
18260         PR c/35434
18261         * c-common.c (handle_alias_attribute): Disallow attribute for
18262         anything not a FUNCTION_DECL or VAR_DECL.
18263
18264 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
18265
18266         PR c/39035
18267         * real.c (do_compare): Special-case compare of zero against
18268         decimal float value.
18269
18270 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18271
18272         PR c/36432
18273         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
18274         as indicating flexible array members unless the field itself is
18275         being declarared as the incomplete array.
18276
18277 2009-02-06  Jan Hubicka  <jh@suse.cz>
18278
18279         PR tree-optimization/38844
18280         * ipa-inline.c (try_inline): Stop inlining recursion when edge
18281         is already inlined.
18282
18283 2009-02-06  Richard Guenther  <rguenther@suse.de>
18284
18285         PR middle-end/38977
18286         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
18287         fork because we may expand it as __gcov_fork.
18288
18289 2009-02-06  Nick Clifton  <nickc@redhat.com>
18290
18291         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
18292
18293 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
18294
18295         PR tree-optimization/35659
18296         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
18297         vn_phi_eq): Shortcut if hashcode does not match.
18298         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
18299         NULL operands.
18300         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
18301         and avoid iterative_hash_expr.
18302         (FOR_EACH_VALUE_ID_IN_SET): New.
18303         (value_id_compare): Remove.
18304         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
18305         sort expressions by value id.
18306
18307 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18308
18309         PR target/38991
18310         * config/sh/predicates.md (general_movsrc_operand): Don't check
18311         the subreg of system registers here.
18312
18313 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
18314
18315         PR c++/39106
18316         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
18317         on the copied decl.
18318
18319 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
18320
18321         PR rtl-optimization/39110
18322         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
18323         addresses, not aligned ones.
18324
18325 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
18326             Richard Guenther  <rguenther@suse.de>
18327
18328         PR tree-optimization/39100
18329         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
18330         comment says and add edges.
18331
18332 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
18333
18334         PR c/35435
18335         * c-common.c (handle_tls_model_attribute): Ignore attribute for
18336         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
18337
18338 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
18339
18340         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
18341         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
18342         register_bb_in_sese, new_sese, free_sese): Moved.
18343         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
18344         outermost_loop_in_scop, build_scop_iteration_domain,
18345         expand_scalar_variables_ssa_name, get_vdef_before_scop,
18346         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
18347         Use loop_in_sese_p instead of loop_in_scop_p.
18348         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
18349         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
18350         (scopdet_basic_block_info): Fix bug in scop detection.
18351         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
18352         eq_loop_to_cloog_loop): Remove.
18353         (nb_loops_around_loop_in_scop, nb_loop
18354         ref_nb_loops): Moved here...
18355         * graphite.h (ref_nb_loops): ... from here.
18356         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
18357         (loop_domain_dim, loop_iteration_vector_dim): Remove.
18358         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
18359         * testsuite/gcc.dg/graphite/scop-19.c: New
18360
18361 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
18362             Hans-Peter Nilsson  <hp@axis.com>
18363
18364         PR rtl-optimization/37889
18365         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
18366         Move offset handling from PLUS to before the switch.  Use new
18367         arguments when considering SYMBOL_REFs too.
18368         (rtx_addr_can_trap_p): Pass dummy offset and size.
18369         (enum may_trap_p_flags): Remove.
18370         (may_trap_p_1): Pass size from MEM_SIZE.
18371
18372         PR rtl-optimization/38921
18373         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
18374         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
18375         * rtlanal.c (may_trap_after_code_motion_p): Delete.
18376         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
18377
18378 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18379
18380         AVX Programming Reference (January, 2009)
18381         * config/i386/sse.md (*vpclmulqdq): New.
18382
18383 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
18384
18385         PR tree-optimization/38977
18386         PR gcov-profile/38292
18387         * calls.c (special_function_p): Disregard __builtin_ prefix.
18388
18389 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
18390
18391         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
18392         non-indexable addresses even before reload.
18393
18394 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18395
18396         PR c/29129
18397         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
18398         as having variable size.  Do not give an error for unnamed
18399         parameters with [*] declarators.  Give a warning for type names
18400         with [*] declarators and mark them as variable size.
18401         * c-parser.c (c_parser_sizeof_expression): Do not give an error
18402         for sizeof applied to [*] type names.
18403
18404 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18405
18406         PR C++/36607
18407         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
18408
18409 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18410
18411         * gcc.c (process_command): Update copyright notice dates.
18412         * gcov.c (print_version): Likewise.
18413         * gcov-dump.c (print_version): Likewise.
18414         * mips-tfile.c (main): Likewise.
18415         * mips-tdump.c (main): Likewise.
18416
18417 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18418
18419         PR c/35433
18420         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
18421         for composite type involving a zero-length array type.
18422
18423 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18424
18425         PR target/35318
18426         * function.c (match_asm_constraints_1): Skip over
18427         initial optional % in the constraint.
18428
18429         PR inline-asm/39059
18430         * c-parser.c (c_parser_postfix_expression): If fixed point is not
18431         supported, don't accept FIXED_CSTs.
18432         * c-decl.c (finish_declspecs): Error if fixed point is not supported
18433         and _Sat is used without _Fract/_Accum.  Set specs->type to
18434         integer_type_node for cts_fract/cts_accum if fixed point is not
18435         supported.
18436
18437 2009-02-02  Catherine Moore  <clm@codesourcery.com>
18438
18439         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
18440
18441 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
18442
18443         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
18444         (ABI_HAS_64BIT_SYMBOLS): Use it.
18445         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
18446
18447 2009-02-02  Paul Brook  <paul@codesourcery.com>
18448
18449         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
18450
18451 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
18452
18453         PR inline-asm/39058
18454         * recog.h (asm_operand_ok): Add constraints argument.
18455         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
18456         recurse on matching constraint.
18457         (check_asm_operands): Pass constraints as 3rd argument to
18458         asm_operand_ok.  Don't look up matching constraint here.
18459         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
18460         to asm_operand_ok.
18461
18462 2009-02-02  Ben Elliston  <bje@au.ibm.com>
18463
18464         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
18465         TARGET_NARROW_VOLATILE_BITFIELD macro names.
18466
18467 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18468
18469         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
18470         information.  Remove some obsolete information.  Reorganize.
18471
18472         * config/pa/fptr.c: Revert license to GPL 2.
18473         * config/pa/milli64.S: Likewise.
18474
18475 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
18476
18477         PR target/38904
18478         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
18479         LIBRARY name in, instead of hard-coding it.
18480         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
18481         extra target make frag to tmake_files according to EH model.
18482         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
18483         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
18484         frags that define makefile variable EH_MODEL appropriately.
18485         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
18486         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
18487         to "-sjlj" according to type of EH configured.
18488         (LIBGCC_SONAME):  Concatenate it to shared library base name.
18489         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
18490         to "_sjlj" according to type of EH configured.
18491         (LIBGCC_SONAME):  Concatenate it to shared library base name.
18492         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
18493         (SHLIB_LINK):  Add missing semicolon to if-else construct.
18494         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
18495         string value of "pe_dll" command-line option.
18496         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
18497         (SHLIB_SONAME):  Use it when overriding t-cygming default.
18498         (SHLIB_IMPLIB):  Override t-cygming default.
18499         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
18500         string value of "pe_dll" command-line option.
18501
18502 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
18503
18504         PR target/38952
18505         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
18506         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
18507
18508 2009-01-31  Richard Guenther  <rguenther@suse.de>
18509
18510         PR tree-optimization/38937
18511         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
18512         computing the transitive closure.
18513
18514 2009-01-30  Richard Guenther  <rguenther@suse.de>
18515
18516         PR tree-optimization/39041
18517         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
18518         Propagate variable indices only if the types match for this stmt.
18519
18520 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
18521
18522         PR target/39013
18523         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
18524         inline but never defined.
18525
18526 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
18527
18528         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
18529         (*insv_h_di_reg_extimm): New insn.
18530         (*insv_l<mode>_reg_extimm): New insn.
18531
18532 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18533
18534         * config/picochip/picochip.c (flag_conserve_stack): set
18535         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
18536         fconserve-stack. Reduce call-overhead used by inliner.
18537
18538 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18539
18540         PR/38157
18541         * common.opt (flag_conserve_stack): Initialised to zero.
18542
18543 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
18544
18545         PR/39002
18546         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
18547         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
18548         method.
18549
18550 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
18551
18552         * ira-color.c (allocno_reload_assign): Update comments.
18553         * regmove.c (regmove_optimize): Likewise.
18554
18555         * ra.h: Removed.
18556
18557 2009-01-29  Robert Millan  <rmh@aybabtu.com>
18558
18559         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
18560         * config/i386/kopensolaris-gnu.h: New file.  Undefine
18561         `MD_UNWIND_SUPPORT'.
18562         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
18563
18564 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
18565
18566         PR tree-optimization/39007
18567         * tree-loop-distribution.c (generate_builtin): Use
18568         recompute_dominator to compute the immediate dominator of the
18569         basic block just after the loop.
18570
18571 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18572
18573         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
18574         (ASM_OUTPUT_DWARF_PCREL): Define.
18575
18576 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
18577
18578         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
18579         * doc/passes.texi: Remove entries about regclass, local-alloc, and
18580         global.  Modify entries about regmove and IRA.
18581
18582         * ra-conflict.c: Remove the file.
18583
18584         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
18585
18586         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
18587         (pass_regclass_init): Rename to pass_reginfo_init.
18588
18589         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
18590
18591         * toplev.h (flag_ira): Remove.
18592
18593         * caller-save.c (setup_save_areas): Remove flag_ira.
18594
18595         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
18596
18597         * global.c: Remove the file.
18598
18599         * opts.c (decode_options): Remove flag_ira.
18600
18601         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
18602
18603         * regmove.c: Modify file description.
18604         (find_use_as_address, try_auto_increment): Define them only if
18605         AUTO_INC_DEC is defined.
18606         (replacement_quality, replace_in_call_usage, fixup_match_1,
18607         stable_and_no_regs_but_for_p): Remove.
18608         (reg_set_in_bb): Make it static.
18609         (regmove_optimize): Remove flag_ira and code which worked for
18610         !flag_ira.
18611
18612         * local-alloc.c: Remove the file.
18613
18614         * common.opt (fira): Remove.
18615
18616         * ira.c: Include except.h.
18617         (eliminable_regset): Move from global.c.
18618         (mark_elimination): Ditto.  Remove flag_ira.
18619         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
18620         equiv_mem_modified, validate_equiv_mem_from_store,
18621         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
18622         contains_replace_regs, memref_referenced_p, memref_used_between_p,
18623         no_equiv, recorded_label_ref): Move from local-alloc.c.
18624         (update_equiv_regs): Ditto.  Make it static.
18625         (print_insn_chain, print_insn_chains): Move it from global.c.
18626         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
18627         (build_insn_chain): Ditto.  Make it static.
18628         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
18629         Rename to init_live_subregs.
18630         (gate_ira): Remove flag_ira.
18631
18632         * regclass.c: Rename reginfo.c.  Change file description.
18633         (FORBIDDEN_INC_DEC_CLASSES): Remove.
18634         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
18635         (init_reg_sets_1): Remove code for evaluation of
18636         reg_class_superclasses and losing_caller_save_reg_set.
18637         (init_regs): Remove init_reg_autoinc.
18638         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
18639         ok_for_base_p_nonstrict): Remove.
18640         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
18641         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
18642         corresponding entries.
18643         (dump_regclass, record_operand_costs, scan_one_insn,
18644         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
18645         record_address_regs, auto_inc_dec_reg_p): Remove.
18646         (gt-regclass.h): Rename to gt-reginfo.h.
18647
18648         * rtl.h (dump_global_regs, retry_global_alloc,
18649         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
18650
18651         * Makefile.in (RA_H): Remove.
18652         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
18653         Rename regclass.o to reginfo.o.
18654         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
18655         gt-reginfo.h.
18656         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
18657         (GTFILES): Rename regclass.c to reginfo.c.
18658
18659         * passes.c (init_optimization_passes): Remove pass_local_alloc and
18660         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
18661
18662         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
18663         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
18664         Remove flag_ira.
18665         (finish_spills): Ditto.  Remove code for !flag_ira.
18666
18667 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
18668
18669         PR middle-end/35854
18670         * doc/invoke.texi (rtl debug options): Complete rewrite.
18671         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
18672         to auto_inc_dec".
18673         * mode-switching.c (pass_mode_switching): Rename pass from
18674         "mode-sw" to "mode_sw".
18675         * except.c (pass_convert_to_eh_ranges): Rename pass from
18676         "eh-ranges" to "eh_ranges".
18677         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
18678         to "subreg1".
18679
18680
18681 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
18682             Alexander Monakov  <amonakov@ispras.ru>
18683
18684         PR middle-end/38857
18685         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
18686         register.
18687         (move_exprs_to_boundary): Change return type and pass through
18688         should_move from move_op.  Relax assert.  Update usage ...
18689         (schedule_expr_on_boundary): ... here.  Use should_move instead of
18690         cant_move.
18691         (move_op_orig_expr_found): Indicate that insn was disconnected from
18692         stream.
18693         (code_motion_process_successors): Do not call after_merge_succs
18694         callback if original expression was not found when traversing any of
18695         the branches.
18696         (code_motion_path_driver): Change return type.  Update prototype.
18697         (move_op): Update comment.  Add a new parameter (should_move).  Update
18698         prototype.  Set *should_move based on indication provided by
18699         move_op_orig_expr_found.
18700
18701 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
18702
18703         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
18704         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
18705         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
18706         * config/rs6000/rs6000.c (rs6000_override_options): Default
18707         avoid-indexed-addresses on for Power6, off for everything else.
18708         (avoiding_indexed_address_p): New function.
18709         (rs6000_legitimize_address): Use it.
18710         (rs6000_legitimate_address): Likewise.
18711         * config/rs6000/rs6000.md (movXX_updateX): Likewise
18712
18713 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
18714
18715         PR tree-optimization/38997
18716         * tree-loop-distribution.c (generate_memset_zero): Use
18717         POINTER_PLUS_EXPR for a pointer addition.
18718
18719 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
18720
18721         * config/s390/s390.md (bswap<mode>2): New pattern added.
18722
18723 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
18724
18725         * config/s390/s390.md (*tls_load_31): Added type attribute.
18726
18727 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
18728
18729         * config/s390/s390.md: Fix a few comments.
18730
18731 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
18732
18733         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
18734         (*tm<mode>_full): Fixed z10prop attribute.
18735         (*tst<mode>_extimm): Fixed z10prop attribute.
18736         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
18737         (*tstqiCCT_cconly): Fixed z10prop attribute.
18738         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
18739         (*movsi_larl): Fixed z10prop attribute.
18740         (*movsi_zarch): Fixed z10prop attribute.
18741         (*movsi_eas): Fixed z10prop attribute.
18742         (*movhi): Fixed z10prop attribute.
18743         (*movqi): Fixed z10prop attribute.
18744         (*movstrictqi): Fixed z10prop attribute.
18745         (*mov<mode>): Fixed z10prop attribute.
18746         (*movcc): Fixed z10prop attribute.
18747         (*sethighpartdi_64): Fixed z10prop attribute.
18748         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
18749         (*negdi2_sign_cc): Fixed z10prop attribute.
18750         (*negdi2_sign): Fixed z10prop attribute.
18751         (*absdi2_sign_cc): Fixed z10prop attribute.
18752         (*absdi2_sign): Fixed z10prop attribute.
18753         (*negabsdi2_sign_cc): Fixed z10prop attribute.
18754         (*negabsdi2_sign): Fixed z10prop attribute.
18755         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
18756         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
18757         (doloop_si64): Fixed z10prop attribute.
18758         (doloop_si31): Fixed z10prop attribute.
18759         (doloop_long): Fixed z10prop attribute.
18760         (indirect_jump): Fixed z10prop attribute.
18761         (nop): Fixed z10prop attribute.
18762         (main_base_64): Fixed z10prop attribute.
18763         (reload_base_64): Fixed z10prop attribute.
18764
18765 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
18766
18767         PR rtl-optimization/38740
18768         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
18769         if !optimize.
18770         * config/mips/mips.c (mips_reorg): Likewise.
18771
18772 2009-01-28  Richard Guenther  <rguenther@suse.de>
18773
18774         PR tree-optimization/38926
18775         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
18776         with the correct value id to a value.
18777         (do_regular_insertion): Use the value number of edoubleprime
18778         for the value number of the expr.
18779
18780         Revert
18781         2008-08-21  Richard Guenther  <rguenther@suse.de>
18782
18783         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
18784         a PHI ask VN if it is already available.
18785         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
18786         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
18787
18788 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
18789
18790         PR middle-end/38934
18791         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
18792         set to varying whenever max has TREE_OVERFLOW set, similarly
18793         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
18794
18795 2009-01-28  Richard Guenther  <rguenther@suse.de>
18796
18797         PR middle-end/38908
18798         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
18799         uninitialized aggregate uses in call arguments.
18800
18801 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
18802
18803         PR tree-optimization/38984
18804         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
18805         the nothing_id variable if -fno-delete-null-pointer-checks.
18806
18807 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
18808
18809         PR target/38988
18810         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
18811         (set_got_offset_rex64): Ditto.
18812
18813 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
18814
18815         PR target/38941
18816         * doc/extend.texi: Improve local variable with asm reg.
18817
18818 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
18819
18820         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
18821         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
18822         was not supplied then set warn_packed_bitfield_compat to the
18823         default value of 1.
18824         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
18825         against 1.
18826
18827 2009-01-27  Richard Guenther  <rguenther@suse.de>
18828
18829         PR tree-optimization/38503
18830         * cfgexpand.c (expand_gimple_basic_block): Ignore
18831         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
18832         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
18833         variables that cannot have TBAA applied.
18834         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
18835         statements.
18836
18837 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
18838
18839         PR middle-end/38969
18840         * calls.c (initialize_argument_information): Do not wrap complex
18841         arguments in SAVE_EXPR.
18842
18843 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
18844
18845         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
18846         (INSTALL_LIBGCC): Revert typo commit.
18847
18848 2009-01-26  Richard Guenther  <rguenther@suse.de>
18849
18850         PR tree-optimization/38745
18851         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
18852         from special handling.
18853
18854 2009-01-26  Richard Guenther  <rguenther@suse.de>
18855
18856         PR tree-optimization/38745
18857         * tree-ssa.c (execute_update_addresses_taken): Do not include
18858         variables that cannot possibly be a register in not_reg_needs.
18859         Do not clear TREE_ADDRESSABLE on vars that may not become
18860         registers.
18861         * tree-ssa.c (update_alias_info_1): Include those in the set
18862         of addressable vars.
18863
18864 2009-01-26  Richard Guenther  <rguenther@suse.de>
18865
18866         PR middle-end/38851
18867         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
18868         * tree-ssa-dse.c: Include langhooks.h
18869         (execute_simple_dse): Remove stores with zero size.
18870
18871 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
18872
18873         PR c/38957
18874         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
18875         as PLUS_EXPR.
18876
18877 2009-01-24  Julian Brown  <julian@codesourcery.com>
18878
18879         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
18880         config/arm/linux-atomic.c.
18881         * config/arm/linux-atomic.c: New.
18882
18883 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
18884
18885         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
18886         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
18887         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
18888
18889 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18890
18891         PR c/38938
18892         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
18893         properly.
18894
18895 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
18896
18897         PR tree-optimization/38953
18898         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
18899         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
18900         (gloog): Split the exit of the scop when the scop exit is a loop exit.
18901         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
18902         changed the CFG.
18903
18904 2009-01-24  Paul Brook  <paul@codesourcery.com>
18905
18906         * config/arm/neon.md (neon_type): Move to arm.md.
18907         (neon_mov<VSTRUCT>): Add neon_type attribute.
18908         * config/arm/arm.md (neon_type): Move to here.
18909         (conds): Add "unconditioal" and use as default for NEON insns.
18910
18911 2009-01-24  Ben Elliston  <bje@au.ibm.com>
18912
18913         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
18914         void *' warning from -Wc++-compat.
18915         * Makefile.in (dominance.o-warn): Remove.
18916
18917 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
18918
18919         PR tree-optimization/38932
18920         * fold-const.c (fold_unary_ignore_overflow): New.
18921         * tree.h (fold_unary_ignore_overflow): Declare.
18922         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
18923         * tree-ssa-sccvn.c (visit_reference_op_load,
18924         simplify_unary_expression): Likewise.
18925
18926 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
18927
18928         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
18929         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
18930         regardless of their type.
18931         * c-common.c (handle_packed_attribute): Don't ignore packed on
18932         bitfields.
18933         * c.opt (Wpacked-bitfield-compat): New warning option.
18934         * stor-layout.c (place_field): Warn if offset of a field changed.
18935         * doc/extend.texi (packed): Mention the ABI change.
18936         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
18937         (Warning Options): Add it to the list.
18938
18939 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
18940
18941         * c-opts.c (c_common_post_options): Fix a typo in comments.
18942
18943 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
18944
18945         PR middle-end/38615
18946         * gimplify.c (gimplify_init_constructor): Fix promotion of const
18947         variables to static.
18948         * doc/invoke.texi (-fmerge-all-constants): Update description.
18949
18950 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
18951
18952         PR target/38931
18953         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
18954         (*movdi_1_rex64): Use type "mmx" for alternative 5.
18955
18956 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
18957
18958         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
18959         a word boundary.
18960         (LOCAL_ALIGNMENT): Similarly.
18961
18962 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
18963             Joseph Myers  <joseph@codesourcery.com>
18964
18965         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
18966         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
18967         * config/arm/arm-tune.md: Regenerate.
18968         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
18969         -march=iwmmxt2.
18970
18971 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
18972
18973         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
18974         version number to five.
18975
18976 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
18977
18978         PR c++/38930
18979         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
18980         * c-common.c (set_underlying_type): Likewise.
18981         (is_typedef_decl ): Likewise
18982         * tree.h: Likewise
18983         (set_underlying_type): Likewise.
18984         (is_typedef_type): Likewise.
18985
18986 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
18987
18988         PR middle-end/38587
18989         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
18990         crossing setjmps.
18991
18992 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
18993
18994         PR bootstrap/37660
18995         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
18996         (LIBGCC_SPEC):  Don't define.
18997         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
18998
18999 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
19000
19001         PR rtl-optimization/38879
19002         * alias.c (base_alias_check): Unaligned access via AND address can
19003         alias all surrounding object types except those with sizes equal
19004         or wider than the size of unaligned access.
19005
19006 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
19007
19008         PR c++/26693
19009         * c-decl.c (clone_underlying_type): Move this ...
19010         * c-common.c (set_underlying_type): ... here.
19011         Also, make sure the function properly sets TYPE_STUB_DECL() on
19012         the newly created typedef variant type.
19013         (is_typedef_decl ): New entry point.
19014         * tree.h: Added a new member member_types_needing_access_check to
19015         struct tree_decl_non_common.
19016         (set_underlying_type): New entry point.
19017         (is_typedef_type): Likewise.
19018
19019 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
19020
19021         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
19022         Check whether two instructions have memory references that
19023         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
19024         are helper functions for traversing.
19025         * alias.h (insn_alias_sets_confilict_p): New prototypes.
19026         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
19027         not to draw dependency edge for instructions with non-conflicting
19028         alias sets.
19029
19030 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
19031
19032         PR other/38758
19033         * longlong.h: Update copyright years.  Use soft-fp license notice.
19034         Sync __clz_tab declaration with glibc.
19035
19036 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
19037
19038         PR target/30687
19039         * doc/extend.texi (syscall_linkage): New.
19040         (version_id): Modify.
19041
19042 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19043             Richard Guenther  <rguenther@suse.de>
19044
19045         PR tree-optimization/38747
19046         PR tree-optimization/38748
19047         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
19048         conversion if the base address is an indirect reference and the
19049         aliasing sets could cause issues.
19050
19051 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19052
19053         * common.opt (fgraphite, fgraphite-identity): Add comment for
19054         explaining why these options are not documented.
19055
19056 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19057
19058         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
19059         gimple_call_lhs is NULL.
19060
19061 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19062
19063         PR target/38868
19064         * emit-rtl.c (adjust_address_1): Make sure memref is never
19065         overwritten.
19066
19067 2009-01-20  Ben Elliston  <bje@au.ibm.com>
19068
19069         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19070         const qualifier from arg parameter. Remove unnecessary cast to char *.
19071         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19072         const qualifier from arg 2.
19073
19074 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19075
19076         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
19077
19078 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
19079
19080         PR c/38869
19081         * rtl.h (reinit_regs): New prototype.
19082         * regclass.c: Include ira.h.
19083         (reinit_regs): New.
19084         * Makefile.in (regclass.o): Add ira.h.
19085         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
19086
19087 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
19088
19089         PR target/38736
19090         * c-common.c (handle_aligned_attribute): Use
19091         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
19092         default alignment value.
19093
19094         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
19095
19096         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
19097         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
19098
19099         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
19100         __BIGGEST_ALIGNMENT__.
19101
19102         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
19103
19104 2009-01-18  Richard Guenther  <rguenther@suse.de>
19105
19106         PR tree-optimization/38819
19107         * tree-flow.h (operation_could_trap_helper_p): Declare.
19108         * tree-eh.c (operation_could_trap_helper_p): Export.
19109         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
19110         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
19111         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
19112         are about to insert a possibly trapping instruction and fail
19113         in this case.
19114
19115 2009-01-18  Andreas Schwab  <schwab@suse.de>
19116
19117         * doc/install.texi (Configuration): Remove obsolete paragraph
19118         about use of --with-gnu-ld with --with-gnu-as.
19119
19120 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
19121
19122         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
19123         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
19124         Follow spelling conventions.
19125
19126 2009-01-18  Ben Elliston  <bje@au.ibm.com>
19127
19128         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
19129         C++ warning about implicit conversion from void * to struct
19130         bitmap_head_def *.
19131         (bitmap_obstack_free): Likewise for bitmap_element *.
19132         * Makefile.in (bitmap.o-warn): Remove.
19133
19134 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
19135
19136         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
19137
19138 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
19139             Tobias Grosser  <tobi.grosser@amd.com>
19140
19141         * graphite.c (graphite_trans_scop_block): Do not block single
19142         nested loops.
19143
19144 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
19145
19146         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
19147         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
19148         test with assertion.
19149
19150 2009-01-16  Richard Guenther  <rguenther@suse.de>
19151
19152         PR tree-optimization/38835
19153         PR middle-end/36227
19154         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
19155         and INT + PTR -> (INT)(PTR p+ INT) folding.
19156         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
19157
19158 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
19159
19160         PR target/38554
19161         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
19162         the subreg from a lowpart subreg if it is also casting the value.
19163
19164 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19165             Tobias Grosser  <tobi.grosser@amd.com>
19166
19167         * graphite.c (compare_prefix_loops): New.
19168         (build_scop_canonical_schedules): Rewritten.
19169         (graphite_transform_loops): Move build_scop_canonical_schedules
19170         after build_scop_iteration_domain.
19171
19172 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19173             Tobias Grosser  <tobi.grosser@amd.com>
19174
19175         * graphite.c (add_conditions_to_domain): Add the loops to
19176         the dimension of the iteration domain.  Do copy the domain
19177         only when it exists.
19178         (build_scop_conditions_1): Do not call add_conditions_to_domain.
19179         (add_conditions_to_constraints): New.
19180         (can_generate_code_stmt, can_generate_code): Removed.
19181         (gloog): Do not call can_generate_code.
19182         (graphite_transform_loops): Call add_conditions_to_constraints
19183         after building the iteration domain.
19184
19185 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
19186
19187         PR tree-optimization/38789
19188         * tree-ssa-threadedge.c
19189         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19190         __builtin_constant_p.
19191
19192 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
19193
19194         * dce.c (delete_unmarked_insns): Reversed the order that insns are
19195         examined before deleting them.
19196
19197 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
19198
19199         * function.c (aggregate_value_p): Correctly extract the function
19200         type from CALL_EXPR_FN lookup.
19201
19202 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
19203
19204         * config/picochip/picochip.c (picochip_override_options): Revert
19205         CFI asm flag disable commited previously.
19206
19207 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
19208             Tobias Grosser  <tobi.grosser@amd.com>
19209             Jan Sjodin  <jan.sjodin@amd.com>
19210
19211         * graphite.c (scan_tree_for_params): On substractions negate
19212         all the coefficients of the term.
19213         (clast_to_gcc_expression_red): New.  Handle reduction expressions
19214         of more than two operands.
19215         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
19216         (get_vdef_before_scop): Handle also the case of default definitions.
19217
19218 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
19219
19220         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
19221         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
19222         Also use them when walking CALL_INSN_FUNCTION_USAGE.
19223
19224 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19225             Joey Ye  <joey.ye@intel.com>
19226
19227         PR middle-end/37843
19228         * cfgexpand.c (expand_stack_alignment): Don't update stack
19229         boundary nor check incoming stack boundary here.
19230         (gimple_expand_cfg): Update stack boundary and check incoming
19231         stack boundary here.
19232
19233 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
19234
19235         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
19236
19237 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
19238
19239         PR rtl-optimization/38245
19240         * calls.c (expand_call): Add stack arguments to
19241         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19242         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
19243         in regs and partially in memory or BLKmode arguments.
19244         (emit_library_call_value_1): Add stack arguments to
19245         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19246         ACCUMULATE_OUTGOING_ARGS).
19247         * dce.c: Include tm_p.h.
19248         (find_call_stack_args): New function.
19249         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
19250         argument.
19251         (mark_insn): Call find_call_stack_args for CALL_Ps.
19252         (prescan_insns_for_dce): Walk insns backwards in bb rather than
19253         forwards.  Allocate and free arg_stores bitmap if needed, pass it
19254         down to deletable_insn_p, don't mark stores set in arg_stores
19255         bitmap, clear the bitmap at the beginning of each bb.
19256         * Makefile.in (dce.o): Depend on $(TM_P_H).
19257
19258 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
19259
19260         PR target/22599
19261         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
19262         to make sure the insn is a conditional test (bug 22599).  Reformat a
19263         few long lines.
19264
19265 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
19266
19267         PR middle-end/38431
19268         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
19269         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
19270         (gloog): Do not call cleanup_tree_cfg.
19271         (graphite_transform_loops): Call cleanup_tree_cfg after all
19272         scops have been code generated.
19273
19274 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
19275         * doc/gty.texi (Invoking the garbage collector): Added new node
19276         and section documenting ggc_collect.
19277
19278 2009-01-14  Richard Guenther  <rguenther@suse.de>
19279
19280         PR tree-optimization/38826
19281         PR middle-end/38477
19282         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
19283         initialization notes only if we actually emitted a warning.
19284         (intra_create_variable_infos): Add constraints for a result decl
19285         that is passed by hidden reference.
19286         (build_pred_graph): Mark all related variables non-direct on
19287         address-taking.
19288
19289 2009-01-14  Nick Clifton  <nickc@redhat.com>
19290
19291         * ira-conflicts.c: Include addresses.h for the definition of
19292         base_reg_class.
19293         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
19294         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
19295
19296 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
19297
19298         PR target/38811
19299         * Makefile.in (ira-lives.o): Add except.h.
19300
19301         * ira-lives.c: Include except.h.
19302         (process_bb_node_lives): Process can_throw_internal.
19303
19304 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
19305
19306         PR rtl-optimization/38774
19307         * combine.c (simplify_set): When undoing cc_use change, don't do
19308         PUT_CODE on the newly created comparison, but instead put back the
19309         old comparison.
19310
19311 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
19312
19313         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
19314         values.  Remove duplicate arm8 entry.
19315
19316 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19317
19318         PR tree-optimization/38786
19319         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
19320         the SSA_NAME case of expand_scalar_variables_expr.
19321         Set the type of an expression to the type of its assign statement.
19322         (expand_scalar_variables_expr): Also gather the scalar computation
19323         used to index the memory access.  Do not pass loop_p.
19324         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
19325         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
19326         the gimple_stmt_iterator where it inserts new code.
19327         Do not pass loop_p.
19328         (copy_bb_and_scalar_dependences): Do not pass loop_p.
19329         (translate_clast): Update call to copy_bb_and_scalar_dependences.
19330
19331 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19332
19333         * graphite.h (debug_value): Removed.
19334         * graphite.c (debug_value): Removed.
19335
19336 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19337
19338         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
19339         ldrd/strd with two 32-bit instructions.
19340
19341 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19342
19343         * config/arm/arm.c (struct processors): Pass for speed down into
19344         cost helper functions.
19345         (const_ok_for_op): Handle COMPARE and inequality nodes.
19346         (arm_rtx_costs_1): Rewrite.
19347         (arm_size_rtx_costs): Update prototype.
19348         (arm_rtx_costs): Pass speed down to helper functions.
19349         (arm_slowmul_rtx_costs): Rework cost calculations.
19350         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
19351         (arm_9e_rtx_costs): Likewise.
19352
19353 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
19354
19355         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
19356         relocations of local symbols wider than UNITS_PER_WORD are not valid.
19357         (alpha_legitimize_address): Do not split local symbols wider than
19358         UNITS_PER_WORD into HIGH/LO_SUM parts.
19359
19360 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
19361
19362         PR bootstrap/38580
19363         * gcc.c (process_command): Replace call to execvp with calls
19364         to pex_one and exit.
19365
19366 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
19367
19368         PR target/29141
19369         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
19370         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
19371         variant for devices with 3-byte PC.
19372         (__tablejump_elpm__): New.
19373
19374 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19375
19376         PR c/32041
19377         * c-parser.c (c_parser_postfix_expression): Allow `->' in
19378         offsetof member-designator, handle it as `[0].'.
19379
19380 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19381
19382         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
19383         function when not using named sections on targets with named sections
19384         if branch distance is less than 262132.
19385
19386 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
19387
19388         * combine.c (combine_instructions):  Recompute
19389         optimize_this_for_speed_p  for each BB in the main combine loop.
19390
19391 2009-01-12  Tomas Bily  <tbily@suse.cz>
19392
19393         PR middlend/38385
19394         * tree-loop-distribution.c (prop_phis): New function.
19395         (generate_builtin): Call prop_phis.
19396         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
19397
19398 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19399
19400         PR tree-optimization/38807
19401         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
19402         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
19403
19404 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
19405
19406         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
19407         subreg of op0 to the original op0.
19408
19409 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
19410
19411         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
19412
19413 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
19414
19415         PR debug/7055
19416         * mips-tfile.c (parse_def): Fix parsing of def strings
19417         starting with digits.
19418
19419 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
19420
19421         PR target/38695
19422         * config/arm/arm.c (arm_is_long_call_p): Don't call
19423         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
19424
19425 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
19426
19427         * regrename.c (regrename_optimize): Fix dumping.
19428         (find_oldest_value_reg): Preserve REG_POINTER.
19429         (copy_hardreg_forward_1): Likewise.
19430
19431 2009-01-09  Diego Novillo  <dnovillo@google.com>
19432
19433         * gimple.h (struct gimple_statement_base) <uid>: Document
19434         the restrictions on its use.
19435         (gimple_uid): Tidy.
19436         (gimple_set_uid): Tidy.
19437
19438 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19439
19440         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
19441         zero guard even if align_bytes != 0 and count is smaller than
19442         size_needed.
19443
19444 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
19445
19446         PR rtl-optimization/38495
19447         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
19448         (add_range_and_copies_from_move_list): Print all added ranges.
19449         Add ranges to memory optimized destination.
19450
19451 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19452
19453         PR target/38686
19454         PR target/38708
19455         * config/i386/i386.c (override_options): Reject
19456         -mstringop-strategy=rep_8byte with -m32.
19457         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
19458         to 1.  Do count comparison against epilogue_size_needed at compile
19459         time even when count_exp was constant forced into register.  For
19460         size_needed don't jump to epilogue, instead just avoid aligning
19461         and invoke the body algorithm.  If need_zero_guard, add zero guard
19462         even if count is non-zero, but smaller than size_needed + number of
19463         bytes that could be stored for alignment.
19464         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
19465         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
19466         but smaller than size_needed + number of bytes that could be stored
19467         for alignment.  Compare size_needed with epilogue_size_needed instead
19468         of desired_align - align, don't adjust size_needed, pass
19469         epilogue_size_needed to the epilogue expanders.
19470
19471         PR c/35742
19472         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
19473
19474 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19475
19476         * pa.c (last_address): Change to unsigned.
19477         (update_total_code_bytes): Change argument to unsigned.  Don't
19478         check if insn addresses are set.
19479         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
19480         addresses are not set.
19481         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
19482
19483 2009-01-09  Nick Clifton  <nickc@redhat.com>
19484
19485         * config/sh/symbian.c: Replace uses of DECL_INLINE with
19486         DECL_DECLARED_INLINE_P.
19487
19488 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19489
19490         PR middle-end/38347
19491         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
19492         GET_MODE (op0) in operand_subword_force calls.
19493
19494         PR middle-end/38771
19495         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
19496         fold_convert arg0 operands to TREE_TYPE (op0) first.
19497
19498 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
19499
19500         * params.def (ira-max-conflict-table-size): Decrease default value
19501         to 1000.
19502
19503 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
19504
19505         PR tree-optimization/37031
19506         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
19507         on parameter_set.
19508         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
19509         allocate it using gc instead of heap, use VEC_quick_push instead of
19510         VEC_safe_push.
19511         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
19512         instead of heap, use VEC_quick_push instead of VEC_safe_push.
19513         * tree-data-ref.h (struct access_matrix): Change matrix to gc
19514         allocated vector from heap allocated.
19515         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
19516         * tree-loop-linear.c (linear_transform_loops): Allocate nest
19517         vector only after perfect_loop_nest_depth call.
19518
19519 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
19520             Jan Sjodin  <jan.sjodin@amd.com>
19521
19522         PR tree-optimization/38559
19523         * graphite.c (debug_value, copy_constraint,
19524         swap_constraint_variables, scale_constraint_variable, ): New.
19525         (get_lower_bound, get_upper_bound): Removed.
19526         (graphite_trans_bb_strip_mine): Clean up this code that works
19527         only for constant number of iterations.  Fully copy upper and
19528         lower bound constraints, not only the constant part of them.
19529         * graphite.h (debug_value): Declared.
19530
19531 2009-01-08  Ira Rosen  <irar@il.ibm.com>
19532
19533         PR tree-optimization/37194
19534         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
19535         Don't add the cost of cost model guard in prologue to scalar
19536         outside cost in case of known number of iterations.
19537
19538 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
19539             Alan Modra  <amodra@bigpond.net.au>
19540
19541         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
19542         non-word-aligned REG+CONST addressing.
19543
19544 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
19545
19546         PR target/38706
19547         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
19548         free_after_compilation when outputting a thunk.
19549         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
19550         Do not call free_after_compilation here.
19551
19552 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
19553
19554         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
19555         (ix86_valid_target_attribute_inner_p): Ditto.
19556
19557 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
19558
19559         PR tree-optimization/38492
19560         PR tree-optimization/38498
19561         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
19562         * tree-chrec.h (scev_is_linear_expression): Declared.
19563         * graphite.c (graphite_cannot_represent_loop_niter): New.
19564         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
19565         (graphite_loop_normal_form): Use gcc_assert.
19566         (scan_tree_for_params): Use CASE_CONVERT.
19567         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
19568         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
19569         Use gcc_assert.  Discard scops that contain unhandled cases.
19570         (build_scop_conditions): Return a boolean status for unhandled cases.
19571         (strip_mine_profitable_p): Print the loop number, not its depth.
19572         (is_interchange_valid): Pass the depth of the loop nest, don't
19573         recompute it wrongly.
19574         (graphite_trans_bb_block): Same.
19575         (graphite_trans_bb_block): Print tentative of loop blocking.
19576         (graphite_trans_scop_block): Do not print that the loop has been
19577         blocked.
19578         (graphite_transform_loops): Do not handle scops that contain condition
19579         scalar phi nodes.
19580
19581 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19582
19583         AVX Programming Reference (December, 2008)
19584         * config/i386/avxintrin.h (_mm256_stream_si256): New.
19585         (_mm256_stream_pd): Likewise.
19586         (_mm256_stream_ps): Likewise.
19587
19588         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
19589         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
19590         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
19591         (bdesc_special_args): Add __builtin_ia32_movntdq256,
19592         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
19593         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
19594         (ix86_expand_special_args_builtin): Likewise.
19595
19596         * config/i386/sse.md (AVXMODEDI): New.
19597         (avx_movnt<mode>): Likewise.
19598         (avx_movnt<mode>): Likewise.
19599         (<sse>_movnt<mode>): Remove AVX support.
19600         (sse2_movntv2di): Likewise.
19601
19602 2009-01-07  Richard Guenther  <rguenther@suse.de>
19603
19604         PR middle-end/38751
19605         * fold-const.c (extract_muldiv): Remove obsolete comment.
19606         (fold_plusminus_mult_expr): Undo MINUS_EXPR
19607         to PLUS_EXPR canonicalization for the canonicalization.
19608
19609 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
19610
19611         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
19612         hosted cross-compilers generating less efficient code.
19613
19614 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
19615
19616         * function.h (rtl_data): Add a dbr_scheduled_p field.
19617         * reorg.c (dbr_schedule): Set it.
19618         (gate_handle_delay_slots): Check it.
19619         * config/mips/mips.c (mips_base_delayed_branch): Delete.
19620         (mips_reorg): Check flag_delayed_branch instead of
19621         mips_base_delayed_branch.
19622         (mips_override_options): Don't set mips_base_delayed_branch
19623         or flag_delayed_branch.
19624
19625 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
19626
19627         PR rtl-optimization/38426.
19628         * ira.c (ira): Set current_function_is_leaf earlier.
19629
19630 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
19631
19632         PR rtl-optimization/38722
19633         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
19634         too early, only set a flag and modify after last possible
19635         undo_all point.
19636
19637 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
19638
19639         PR c/34252
19640         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
19641         * real.c (decimal_single_format): Correct values of emin and emax.
19642         (decimal_double_format): Ditto.
19643         (decimal_quad_format): Ditto.
19644         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
19645         computation of DECnn_MIN and DECnn_MAX for corrected values of
19646         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
19647         __DECnn_MIN__, and adjust its computation for the corrected value
19648         of emin.
19649
19650 2009-01-06  Jan Hubicka  <jh@suse.cz>
19651
19652         PR target/38744
19653         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
19654
19655 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19656
19657         * doc/contrib.texi (Contributors): Slightly adjust the end note.
19658         Add Robert Clark to the list of testers.
19659
19660 2009-01-06  Jan Hubicka  <jh@suse.cz>
19661             Kai Tietz  <kai.tietz@onevision.com>
19662
19663         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
19664         * config/i386/i386.c (ix86_expand_call): Add clobbers.
19665
19666 2009-01-06  Jan Hubicka  <jh@suse.cz>
19667             Kai Tietz  <kai.tietz@onevision.com>
19668
19669         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
19670         for w64 ABI.
19671         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
19672         (ix86_nsaved_regs): Count only general purpose regs.
19673         (ix86_nsaved_sseregs): New.
19674         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
19675         to 16 for w64; compute padding and size of sse reg save area.
19676         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
19677         general purpose regs.
19678         (ix86_emit_save_sse_regs_using_mov): New.
19679         (ix86_expand_prologue): Save SSE regs if needed.
19680         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
19681         (ix86_emit_restore_sse_regs_using_mov): New.
19682         (ix86_expand_epilogue): Save SSE regs if needed.
19683
19684 2009-01-06  Jan Hubicka  <jh@suse.cz>
19685             Kai Tietz  <kai.tietz@onevision.com>
19686
19687         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
19688         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
19689         functions when accumulate outgoing args is off.
19690
19691 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
19692
19693         PR bootstrap/38742
19694         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
19695         before using pseudos_have_intersected_live_ranges_p.
19696
19697         * ira-int.h (ira_assert): Always define.
19698
19699 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
19700
19701         AVX Programming Reference (December, 2008)
19702         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
19703         (_mm256_permute2_pd): Likewise.
19704         (_mm_permute2_ps): Likewise.
19705         (_mm256_permute2_ps): Likewise.
19706         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
19707         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
19708
19709         * config/i386/i386.c (ix86_builtins): Remove
19710         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
19711         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
19712         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
19713         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
19714         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
19715         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
19716         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
19717         __builtin_ia32_vpermil2ps256.
19718         (ix86_init_mmx_sse_builtins): Updated.
19719         (ix86_expand_args_builtin): Likewise.
19720
19721 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19722
19723         * pa.c (output_call): Relocate non-jump insns in the delay slot of
19724         long absolute calls when generating PA 2.0 code.
19725
19726 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
19727
19728         PR rtl-optimization/38583
19729         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
19730
19731         * params.def (ira-max-conflict-table-size): New.
19732
19733         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
19734
19735         * ira.h (ira_conflicts_p): New external definition.
19736
19737         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
19738         table.  Report this.  Return result of building.
19739         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
19740         building conflict table.
19741
19742         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
19743         (ira_color): Use ira_conflicts_p.
19744
19745         * global.c: Include ira.h.
19746         (pseudo_for_reload_consideration_p, build_insn_chain): Use
19747         ira_conflicts_p.
19748
19749         * Makefile.in (global.o): Add ira.h.
19750
19751         * ira-build.c (mark_all_loops_for_removal,
19752         propagate_some_info_from_allocno): New.
19753         (remove_unnecessary_allocnos): Call
19754         propagate_some_info_from_allocno.
19755         (remove_low_level_allocnos): New.
19756         (remove_unnecessary_regions): Add parameter.  Call
19757         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
19758         parameter to remove_unnecessary_regions.
19759         (ira_build): Remove all regions but root if the conflict table was
19760         not built.  Update conflict hard regs for allocnos crossing calls.
19761
19762         * ira.c (ira_conflicts_p): New global.
19763         (ira): Define and use ira_conflicts_p.
19764
19765         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
19766         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
19767         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
19768
19769 2009-01-06  Ben Elliston  <bje@au.ibm.com>
19770
19771         * gengtype-lex.l (YY_NO_INPUT): Define.
19772
19773 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19774
19775         PR c/34911
19776         * c-common.c (handle_vector_size_attribute): Also reject
19777         BOOLEAN_TYPE types.
19778
19779 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
19780
19781         PR tree-optimization/38492
19782         * graphite.c (rename_map_elt, debug_rename_elt,
19783         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
19784         rename_map_elt_info, eq_rename_map_elts,
19785         get_new_name_from_old_name, bb_in_sese_p): Moved around.
19786         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
19787         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
19788         (sese_build_livein_liveouts): New.
19789         (new_sese, free_sese): New.
19790         (new_scop): Call new_sese.
19791         (free_scop): Call free_sese.
19792         (rename_variables_from_edge, rename_phis_end_scop): Removed.
19793         (register_old_new_names): Renamed register_old_and_new_names.
19794         (register_scop_liveout_renames, add_loop_exit_phis,
19795         insert_loop_close_phis, struct igp,
19796         default_liveout_before_guard, add_guard_exit_phis,
19797         insert_guard_phis, copy_renames): New.
19798         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
19799         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
19800         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
19801         (scop_adjust_phis_for_liveouts): New.
19802         (gloog): Call scop_adjust_phis_for_liveouts.
19803
19804         * graphite.h (struct sese): Documented.  Added fields liveout,
19805         num_ver and livein.
19806         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
19807         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
19808         (struct scop): Added field liveout_renames.
19809         (SCOP_LIVEOUT_RENAMES): New.
19810
19811 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
19812
19813         PR tree-optimization/38510
19814         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
19815         (translate_clast): Call recompute_all_dominators before
19816         graphite_verify.
19817         (gloog): Call recompute_all_dominators before graphite_verify.
19818
19819 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
19820             Jan Sjodin  <jan.sjodin@amd.com>
19821
19822         PR tree-optimization/38500
19823         * graphite.c (create_sese_edges): Call fix_loop_structure after
19824         splitting blocks.
19825
19826 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
19827
19828         * config.gcc: Add m32r*-*-rtems*.
19829         * config/m32r/rtems.h: New file.
19830
19831 2009-01-05  Ben Elliston  <bje@au.ibm.com>
19832
19833         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
19834         (.po.pox): Likewise.
19835         (po/gcc.pot): Likewise.
19836
19837 2009-01-04  David S. Miller  <davem@davemloft.net>
19838
19839         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
19840         (STARTING_FRAME_OFFSET): Always set to zero.
19841
19842 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
19843
19844         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
19845         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
19846         fixed-point types, and vectors of the same.
19847
19848 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
19849
19850         * config/mips/sync.md (*mb_barrier): Rename to...
19851         (*memory_barrier): ...this.
19852
19853 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
19854
19855         * doc/extend.texi (Function Attributes): Move @cindex after @item
19856         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
19857         and put in alphabetical order. Fix 'target' name and put in order.
19858         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
19859         typos.
19860
19861 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
19862
19863         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
19864         (memory_barrier): Expand as unspec instead of unspec_volatile.
19865         Remove mem:BLK from insn operands.  Use Pmode scratch register.
19866         (*memory_barrier): Define as unspec instead of unspec_volatile.
19867         Use (match_dup 0) as input operand.
19868
19869         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
19870         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
19871         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
19872         scratch register.  Remove operand 1.
19873         (*stbar): Define as unspec instead of unspec_volatile.
19874         Use (match_dup 0) as input operand, remove (const_int 8).
19875         (*membar): Define as unspec instead of unspec_volatile.
19876         Use (match_dup 0) as input operand, remove input operand 2.
19877
19878         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
19879         (memory_barrier): Expand as unspec instead of unspec_volatile.
19880         Remove mem:BLK from insn operands.  Use Pmode scratch register.
19881         (*memory_barrier): Define as unspec instead of unspec_volatile.
19882         Use (match_dup 0) as input operand.
19883
19884         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
19885         Remove mem:BLK from insn operands.  Use Pmode scratch register.
19886         Set volatile flag on operand 0.
19887         (*memory_barrier): New insn pattern.
19888
19889         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
19890         insn operands.
19891         (*memory_barrier): Use (match_dup 0) as input operand.
19892
19893         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
19894         Remove mem:BLK from insn operands.  Use Pmode scratch register.
19895         Set volatile flag on operand 0.
19896         (*mb_internal): New insn pattern.
19897
19898         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
19899
19900 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
19901
19902         PR middle-end/38586
19903         * function.c (struct temp_slot): Move to the section of the file
19904         that deals with temp slots.  Remove field 'address'.
19905         (temp_slot_address_table): New hash table of address -> temp slot.
19906         (struct temp_slot_address_entry): New struct, items for the table.
19907         (temp_slot_address_compute_hash, temp_slot_address_hash,
19908         temp_slot_address_eq, insert_temp_slot_address): Support functions
19909         for the new table.
19910         (find_temp_slot_from_address): Rewrite to use the new hash table.
19911         (remove_unused_temp_slot_addresses): Remove addresses of temp
19912         slots that have been made available.
19913         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
19914         worker function for remove_unused_temp_slot_addresses.
19915         (assign_stack_temp_for_type): Don't clear the temp slot address list.
19916         Add the temp slot address to the address -> temp slot map.
19917         (update_temp_slot_address): Update via insert_temp_slot_address.
19918         (free_temp_slots): Call remove_unused_temp_slot_addresses.
19919         (pop_temp_slots): Likewise.
19920         (init_temp_slots): Allocate the address -> temp slot map, or empty
19921         the map if it is already allocated.
19922         (prepare_function_start): Initialize temp slot processing.
19923
19924 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
19925
19926         PR middle-end/38584
19927         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
19928         Calculate the size of all stack vars assuming no packing of stack
19929         vars will happen, replacing a quadratic algorithm with a linear one.
19930
19931 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
19932
19933         PR target/38707
19934         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
19935         can't be used.
19936
19937 2009-01-03  Diego Novillo  <dnovillo@google.com>
19938
19939         * doc/contrib.texi: Update contributions.
19940
19941 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
19942
19943         PR c++/38705
19944         * builtins.c (fold_builtin_memory_op): Give up if either operand
19945         is volatile.  Set srctype or desttype to non-qualified version
19946         of the other type.
19947
19948         PR c/38700
19949         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
19950         and FUNCTION_DECLs.
19951
19952 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
19953
19954         PR rtl-optimization/35805
19955         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
19956         problem if fast dce is able to remove any instructions.
19957         * dce.c (dce_process_block): Fix dump message.
19958
19959 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
19960
19961         PR 33649
19962         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
19963
19964 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
19965
19966         PR middle-end/38690
19967         * tree-flow.h (op_code_prio, op_prio): New prototypes.
19968         * tree-pretty-print.c (op_code_prio): New function.
19969         (op_prio): No longer static.  Use op_code_prio.
19970         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
19971         Use op_prio and op_code_prio to determine if () should be
19972         printed around operand(s) or not.
19973
19974         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
19975         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
19976         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
19977         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
19978         pp_character instead of pp_string for single letter printing.
19979
19980 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
19981
19982         * doc/extend.texi: Fix '#pragma GCC option' typo.
19983
19984 2009-01-02  Richard Guenther  <rguenther@suse.de>
19985
19986         * doc/install.texi (--enable-checking): Mention different
19987         default for stage1.
19988         (--enable-stage1-checking): Document.
19989
19990 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
19991
19992         PR middle-end/30142
19993         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
19994         case to be an error.
19995
19996 2009-01-02  Ben Elliston  <bje@au.ibm.com>
19997
19998         * config/fp-bit.h (pack_d): Constify argument.
19999         * config/fp-bit.c (makenan): Constify return type. Remove casts.
20000         (isnan): Constify argument.
20001         (isinf): Likewise.
20002         (iszero): Likewise.
20003         (pack_d): Likewise.
20004         (_fpadd_parts): Constify return type.
20005         (_fpmul_parts): Likewise.
20006         (_fpdiv_parts): Likewise.
20007
20008 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
20009
20010         PR c/36489
20011         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
20012         warn about overwriting initializer with side-effects or
20013         -Woverride-init if !IMPLICIT.
20014         (output_init_element): Likewise.  Pass IMPLICIT down to
20015         add_pending_init.
20016         (process_init_element): Add IMPLICIT argument.  Pass it down
20017         to output_init_element.
20018         (push_init_element, pop_init_level, set_designator): Adjust
20019         process_init_element callers.
20020         (set_nonincremental_init, set_nonincremental_init_from_string):
20021         Adjust add_pending_init callers.
20022         (output_pending_init_elements): Adjust output_init_element callers.
20023         * c-tree.h (process_init_element): Adjust prototype.
20024         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
20025         process_init_element callers.
20026
20027 \f
20028 Copyright (C) 2009 Free Software Foundation, Inc.
20029
20030 Copying and distribution of this file, with or without modification,
20031 are permitted in any medium without royalty provided the copyright
20032 notice and this notice are preserved.