OSDN Git Service

enable SH libgloss build
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-07-31  Christian Bruel  <christian.bruel@st.com>   
2
3         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4         
5 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6
7         * config/arm/arm.c (arm_arm_address_cost): Fix typo. 
8         Remove dead code for MINUS.
9
10 2009-07-31  Anthony Green  <green@moxielogic.com>
11
12         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
13         $r12 in prologue.
14         (moxie_expand_epilogue): Ditto for epilogue.
15         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
16         incoming arguments.
17         (moxie_function_arg): Ditto.
18         (moxie_pass_by_reference): Ditto.
19         (moxie_arg_partial_bytes): Ditto.
20         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
21         (FUNCTION_ARG_ADVANCE) Ditto.
22         (REG_PARM_STACK_SPACE) Ditto.
23         (FUNCTION_ARG_REGNO_P) Dito.
24
25         * config.gcc: Add moxie linux config support.
26         * gcc/config/moxie/uclinux.h: New file.
27
28 2009-07-31  DJ Delorie  <dj@redhat.com>
29
30         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
31         (UNSPECV_SP_SWITCH_E): New.
32         (sp_switch_1): Change to an unspec.
33         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
34         replace $r15.
35         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
36         reference the new stack's address
37
38 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
39
40         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
41         graphite-clast-to-gimple.o, graphite-dependences.o,
42         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
43         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
44         (graphite-blocking.o,
45         graphite-clast-to-gimple.o, graphite-dependences.o,
46         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
47         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
48         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
49         * cfgloop.h (struct loop): Add can_be_parallel field.
50         * common.opt (fgraphite-identity): Moved up.
51         (fgraphite-force-parallel): New flag.
52         * graphite.c: Rewrite.
53         * graphite.h: Rewrite.
54         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
55         after Graphite.
56         * toplev.c (graphite_out_file): New file descriptor.
57         (graphite_in_file): New.
58         (process_options): flag_graphite_force_parallel cannot be used without
59         Graphite.
60         * tree-ssa-loop.c: Include toplev.h.
61         (gate_graphite_transforms): Enable flag_graphite for
62         flag_graphite_force_parallel.
63
64 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
65
66         * ChangeLog.graphite: New.
67         * graphite-blocking.c: New.
68         * graphite-clast-to-gimple.c: New.
69         * graphite-clast-to-gimple.h: New.
70         * graphite-dependences.c: New.
71         * graphite-dependences.h: New.
72         * graphite-interchange.c: New.
73         * graphite-poly.c: New.
74         * graphite-poly.h: New.
75         * graphite-ppl.c: New.
76         * graphite-ppl.h: New.
77         * graphite-scop-detection.c: New.
78         * graphite-scop-detection.h: New.
79         * graphite-sese-to-poly.c: New.
80         * graphite-sese-to-poly.h: New.
81         * sese.c: New.
82         * sese.h: New.
83
84 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
85
86         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
87         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
88
89 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
90
91         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
92         (scev_is_linear_expression): Return false if the evolution is not
93         affine multivariate.
94
95 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
96
97         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
98         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
99
100 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
101
102         * tree-data-ref.c (debug_data_references): New.
103         (debug_data_reference): New.
104         * tree-data-ref.h (debug_data_references): Declared.
105         (debug_data_reference): Declared.
106
107 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
108
109         * tree-data-ref.c (stmt_simple_memref_p: Removed.
110         * tree-data-ref.h (scop_p): Removed.
111         (struct data_reference): Remove field scop.
112         (DR_SCOP): Removed.
113         (stmt_simple_memref_p): Removed.
114
115 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
116
117         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
118         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
119         basic block empty.
120
121 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
122
123         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
124
125 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
126
127         * doc/invoke.texi (-fgraphite-identity): Documented.
128
129 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
130
131         * tree-scalar-evolution.c: Fix comment.
132         (instantiate_scev_1): Return unknow from scev instantiation if the
133         result is not above instantiate_below.
134
135 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
136
137         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
138         static anymore.  Instantiate the symbols that may have been introduced
139         by chrec_apply.
140         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
141         Declared.
142
143 2009-07-30  DJ Delorie  <dj@redhat.com>
144
145         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
146         .vliw directive to VLIW sections.
147
148 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
149
150         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
151         New variables.
152         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
153         (AUTOHEADER): New variable.
154         ($(srcdir)/cstamp-h.in): Use it.
155
156 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
157             Pat Haugen  <pthaugen@us.ibm.com>
158             Revital Eres <ERES@il.ibm.com>
159
160         * config/rs6000/vector.md (VEC_F): Add VSX support.
161         (VEC_A): Ditto.
162         (VEC_N): Ditto.
163         (mov<mode>): Ditto.
164         (vector_load_<mode>): Ditto.
165         (vector_store_<mode>): Ditto.
166         (vector GPR move split): Ditto.
167         (vec_reload_and_plus_<mptrsize>): Ditto.
168         (vec_reload_and_reg_<mptrsize>): Ditto.
169         (add<mode>3): Ditto.
170         (sub<mode>3): Ditto.
171         (mul<mode>3): Ditto.
172         (neg<mode>2): Ditto.
173         (abs<mode>2): Ditto.
174         (smin<mode>3): Ditto.
175         (smax<mode>3): Ditto.
176         (vector_eq<mode>): Ditto.
177         (vector_gt<mode>): Ditto.
178         (vector_ge<mode>): Ditto.
179         (vector_gtu<mode>): Ditto.
180         (vector_select_<mode>_uns): Ditto.
181         (vector_eq_<mode>_p): Ditto.
182         (vector_gt_<mode>_p): Ditto.
183         (vector_ge_<mode>_p): Ditto.
184         (vector_gtu_<mode>_p): Ditto.
185         (cr6_test_for_zero): Ditto.
186         (cr6_test_for_zero_reverse): Ditto.
187         (cr6_test_for_lt): Ditto.
188         (cr6_test_for_lt_reverse): Ditto.
189         (xor<mode>3): Ditto.
190         (ior<mode>3): Ditto.
191         (and<mode>3): Ditto.
192         (one_cmpl<mode>2): Ditto.
193         (nor<mode>2): Ditto.
194         (andc<mode>2): Ditto.
195         (float<VEC_int<mode>2): Ditto.
196         (unsigned_float<VEC_int><mode>2): Ditto.
197         (fix_trunc<mode><VEC_int>2): Ditto.
198         (fixuns_trunc<mode><VEC_int>2): Ditto.
199         (vec_init<mode>):
200         (vec_set<mode>): Ditto.
201         (vec_extract<mode>): Ditto.
202         (vec_interleave_highv4sf): Ditto.
203         (vec_interleave_lowv4sf): Ditto.
204         (vec_realign_load_<mode>): Ditto.
205         (vec_shl_<mode>): Ditto.
206         (vec_shr_<mode>): Ditto.
207         (div<mode>3): New patterns for VSX.
208         (vec_interleave_highv2df): Ditto.
209         (vec_interleave_lowv2df): Ditto.
210         (vec_pack_trunc_v2df): Ditto.
211         (vec_pack_sfix_trunc_v2df): Ditto.
212         (vec_pack_ufix_trunc_v2df): Ditto.
213         (vec_unpacks_hi_v4sf): Ditto.
214         (vec_unpacks_lo_v4sf): Ditto.
215         (vec_unpacks_float_hi_v4si): Ditto.
216         (vec_unpacku_float_lo_v4si): Ditto.
217         (vec_unpacku_float_hi_v4si): Ditto.
218         (vec_unpacks_float_lo_v4si): Ditto.
219         (movmisalign<mode>): Ditto.
220         (vector_ceil<mode>2): New patterns for vectorizing math library.
221         (vector_floor<mode>2): Ditto.
222         (vector_btrunc<mode>2): Ditto.
223         (vector_copysign<mode>3): Ditto.
224
225         * config/rs6000/predicates.md (easy_vector_constant_msb): New
226         predicate for setting the high bit in each word, used for
227         copysign.
228
229         * config/rs6000/ppc-asm.h (f19): Whitespace.
230         (f32-f63): Define if VSX.
231         (v0-v31): Define if Altivec.
232         (vs0-vs63): Define if VSX.
233
234         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
235
236         * config/rs6000/power7.md: New file, provide tuning parameters for
237         -mcpu=power7.
238
239         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX
240         support.
241         (rs6000_cpu_cpp_builtins): Ditto.
242         (altivec_overloaded_builtins): Ditto.
243         (altivec_resolve_overloaded_builtin): Ditto.
244
245         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
246         debug switch to disable vectorizing simple math builtin
247         functions.
248
249         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
250         Vectorize simple math builtin functions.
251         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
252         hook to vectorize math builtins.
253         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
254         (rs6000_builtin_conversion): Add VSX/power7 support.
255         (rs6000_builtin_vec_perm): Ditto.
256         (vsplits_constant): Add support for loading up a vector constant
257         with just the high bit set in each part.
258         (rs6000_expand_vector_init): Add VSX/power7 support.
259         (rs6000_expand_vector_set): Ditto.
260         (rs6000_expand_vector_extract): Ditto.
261         (rs6000_emit_move): Ditto.
262         (bdesc_3arg): Ditto.
263         (bdesc_2arg): Ditto.
264         (bdesc_1arg): Ditto.
265         (rs6000_expand_ternop_builtin): Ditto.
266         (altivec_expand_builtin): Ditto.
267         (rs6000_expand_unop_builtin): Ditto.
268         (rs6000_init_builtins): Ditto.
269         (altivec_init_builtins): Ditto.
270         (builtin_function_type): Ditto.
271         (rs6000_common_init_builtins): Ditto.
272         (rs6000_handle_altivec_attribute); Ditto.
273         (rs6000_mangle_type): Ditto.
274         (rs6000_vector_mode_supported_p): Ditto.
275         (rs6000_mode_dependent_address): Altivec addresses with AND -16
276         are mode dependent.
277
278         * config/rs6000/vsx.md: New file for VSX support.
279
280         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
281         identifing values with just the most significant bit set.
282         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
283         vectorized builtins.
284
285         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
286         (UNSPEC_VRFIM): Delete.
287         (splitter for loading up vector with most significant bit): New
288         splitter for vectorizing copysign.
289         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
290         vectorizing simple math functions.
291         (altivec_vrfip): Add support for vectorizing simple math
292         functions.
293         (altivec_vrfim): Ditto.
294         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
295
296         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
297         (power7.md, vsx.md): Include for power7 support.
298         (copysigndf3): Use VSX instructions if -mvsx.
299         (negdf2_fpr): Ditto.
300         (absdf2_fpr): Ditto.
301         (nabsdf2_fpr): Ditto.
302         (adddf3_fpr): Ditto.
303         (subdf3_fpr): Ditto.
304         (muldf3_fpr): Ditto.
305         (divdf3_fpr): Ditto.
306         (fix_truncdfdi2_fpr): Ditto.
307         (cmpdf_internal1): Ditto.
308         (fred, fred_fpr): Convert into expander/insn to add VSX support.
309         (btruncdf2, btruncdf2_fpr): Ditto.
310         (ceildf2, ceildf2_fpr): Ditto.
311         (floordf2, floordf2_fpr): Ditto.
312         (floatdidf2, floatdidf2_fpr): Ditto.
313         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
314         (fmsubdf4_fpr): Ditto.
315         (fnmadddf4_fpr_1): Ditto.
316         (fnmadddf4_fpr_2): Ditto.
317         (fnmsubdf4_fpr_1): Ditto.
318         (fnmsubdf4_fpr_2): Ditto.
319         (fixuns_truncdfdi2): Add expander for VSX support.
320         (fix_truncdfdi2): Ditto.
321         (fix_truncdfsi2): Ditto.
322         (ftruncdf2): Ditto.
323         (btruncsf2): Whitespace.
324         (movdf_hardfloat32): Add support for VSX registers.
325         (movdf_softfloat32): Ditto.
326         (movdf_hardfloat64): Ditto.
327         (movdf_hardfloat64_mfpgpr): Ditto.
328         (movdf_softfloat64): Ditto.
329         (movti splitters): Add check for vector registers supporting
330         TImode in the future.
331         (bpermd): Add power7 bpermd instruction.
332
333         * config/rs6000/altivec.h (vec_div): Define if VSX.
334         (vec_mul): Ditto.
335         (vec_msub): Ditto.
336         (vec_nmadd): Ditto.
337         (vec_nearbyint): Ditto.
338         (vec_rint): Ditto.
339         (vec_sqrt): Ditto.
340         (all predicates): Use the generic builtin function, and not the
341         V4SF specific function so that the predicates will work with
342         VSX's V2DF.
343         (vec_all_*): Ditto.
344         (vec_any_*): Ditto.
345
346         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
347         Document new VSX functions and types.
348
349         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
350         switches.
351
352         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
353         "wa", and "j" constraints.  Modify "v" to talk about Altivec
354         instead of just vector.
355
356 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
357
358         PR debug/26475
359         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
360         location for phi arguments.
361         (rewrite_update_phi_arguments): Find locations for reaching defs.
362         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
363         Add location to add_phi_arg calls.
364         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
365         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
366         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
367         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
368         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
369         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
370         * tree-phinodes.c (make_phi_node): Initialize location.
371         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
372         (add_phi_arg): Add location parameter.
373         (remove_phi_arg_num): Move location when moving phi argument.
374         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set 
375         location.
376         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
377         slpeel_update_phi_nodes_for_guard1,
378         slpeel_update_phi_nodes_for_guard2,
379         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
380         vect_loop_versioning): Set locations.
381         * tree-parloops.c (create_phi_for_local_result,
382         transform_to_exit_first_loop, create_parallel_loop): Add locations.
383         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
384         * tree-vect-loop.c (get_initial_def_for_induction,
385         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
386         locations.
387         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
388         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
389         (gimple_phi_arg_set_location): New.  Set locus.
390         (gimple_phi_arg_has_location): New.  Check for locus.
391         (redirect_edge_var_map_location): New.  Return locus from var_map.
392         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
393         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
394         combining PHI arguments.
395         (cond_store_replacement): Set location.
396         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
397         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
398         scop_add_exit_phis_edge): Add locations.
399         * tree-cfgcleanup.c (remove_forwarder_block,
400         remove_forwarder_block_with_phi): Add locations.
401         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
402         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
403         locations.
404         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
405         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
406         flush_pending_stmts): Add source location.
407         * lambda-code.c (perfect_nestify): Maintain location stack with argument
408         stack to preserve locations.
409         * tree-vect-stmts.c (vectorizable_load): Add location.
410         * tree-inline.c (copy_phis_for_bb): Copy locus.
411         (setup_one_parameter): Add call locus to inlined parameter stmts.
412         (initialize_inlined_parameters): Pass in call location as parameter
413         assignment locus.
414         (tree_function_versioning): Pass location to setup_one_parameter.
415         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
416         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
417         copy and edge lists.
418         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
419         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a 
420         locus parameter and override the stmt default if provided.
421         (new_elim_graph, clear_elim_graph, delete_elim_graph,
422         elim_graph_add_edge, elim_graph_remove_succ_edge,
423         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
424         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
425         eliminate_phi):  Add locus info in elimination graph for each edge and
426         value copy.
427         (insert_backedge_copies): Copy locus if present.
428         * tree-flow.h (struct _edge_var_map): Add locus field.
429         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
430         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
431         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add 
432         locations.
433         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
434         
435 2009-07-30  Martin Jambor  <mjambor@suse.cz>
436
437         PR tree-optimization/40570
438         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
439         use inlining loops.
440
441 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
442
443         * ssa-loop-manip.c: Include langhooks.h.
444         (rewrite_phi_with_iv): New.
445         (rewrite_all_phi_nodes_with_iv): New.
446         (canonicalize_loop_ivs): Move here from tree-parloops.c.
447         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
448         * tree-parloops.c (loop_parallel_p): Move out all conditions
449         except dependency check.
450         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
451         (gen_parallel_loop): Call canonicalize_loop_ivs without
452         reduction_list argument.
453         (build_new_reduction): New.
454         (gather_scalar_reductions): New.
455         (try_get_loop_niter): New.
456         (try_create_reduction_list): New.
457         (parallleize_loops): Change the parallel conditions check.
458         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
459         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
460
461 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
462
463         * opt-functions.awk (opt_args): Allow argument to be enclosed in
464         curly braces.
465         * doc/options.texi (Option properties):  Mention new quoting syntax.
466
467 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
468
469         * config/alpha/alpha.c (alpha_start_function):
470         Handle VMS_DEBUG_MAIN_POINTER
471         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
472         * doc/invoke.texi: Document -mdebug-main switch.
473
474 2009-07-29  Richard Henderson  <rth@redhat.com>
475
476         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
477         (cgraph_create_edge_including_clones): Likewise.
478         * tree-inline.c (copy_bb): Operate on the correct edges
479         when updating the callgraph.
480
481 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
482
483         * config/alpha/vms-cc.c: Deleted.
484         * config/alpha/vms-ld.c: Deleted.
485         * config/alpha/t-vms64: Moved to config/vms
486         * config/alpha/vms-crt0-64.c: Moved to config/vms
487         * config/alpha/vms-crt0.c: Moved to config/vms
488         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
489         * config/alpha/vms-psxcrt0.c: Moved to config/vms
490         * config/alpha/xm-vms.h: Moved to config/vms
491         * config/alpha/x-vms: Moved to config/vms
492         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
493         config/vms/t-vms.
494         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
495         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
496         (version): Set.
497         * config/vms/t-vms64: Moved here from config/alpha
498         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
499         (argc,argv,envp): Enforce 32bit malloc'ing.
500         * config/vms/vms-psxcrt0-64.c: Likewise.
501         * config/vms/vms-crt0.c: Moved here from config/alpha.
502         * config/vms/vms-psxcrt0.c: Likewise.
503         * config/vms/vms-crtl-64.h: New file.
504         * config/vms/vms-crtl.h: New file.
505         * config/vms/vms.opt: New file.
506         * config/vms/xm-vms64.h: New file.
507         * config/vms/xm-vms.h: Moved here from config/alpha.
508         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
509         Set.
510         * config/vms/x-vms: Moved here from config/alpha.
511         (version, VMS_EXTRA_PARTS): Moved to t-vms.
512         (vms-ld.o, vms-cc.o): Removed.
513         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
514
515 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
516
517         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
518         correct stack (obvious VMS fix).
519
520 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
521
522         * dwarf2out.c (output_file_names): Output VMS style file name, size,
523         date, version info if VMS_DEBUGGING_INFO defined.
524         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
525         size, date calculating code moved here.
526
527 2009-07-29  Paul Brook  <paul@codesourcery.com>
528
529         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
530         do_push/do_pop.
531
532 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
533
534         PR target/40577
535         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
536         to DImode when generating insq_le insn.
537
538 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
539
540         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
541         New macro set for VMS_DEBUGGGING_INFO.
542         (AT_string_form): Use it.
543
544 2009-07-28  DJ Delorie  <dj@redhat.com>
545
546         * config/mep/mep.c (vtext_section): New.
547         (vftext_section): New.
548         (ftext_section): New.
549         (mep_select_section): Add support for functions.
550         (mep_unique_section): Likewise.
551         (mep_asm_init_sections): Likewise.
552         (mep_encode_section_info): Remove it from here.
553
554         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
555
556 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
557
558         * tree.h (TREE_DEPRECATED): Document it is used for types too.
559         (TYPE_VECTOR_OPAQUE): Use default_def_flag
560
561 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
562
563         * dwarf2out.c (output_file_names): Test new macro
564         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
565         (add_comp_dir_attribute): Likewise.
566
567 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
568
569         * config/i386/mingw-w64.h (LINK_SPEC): Add
570         separating space between commands.
571
572 2009-07-28  Jan Hubicka  <jh@suse.cz>
573
574         PR tree-optimization/40759
575         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
576         for renaming.
577
578 2009-07-27  DJ Delorie  <dj@redhat.com>
579
580         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
581         types are dword-aligned.
582         (mep_expand_va_start): Likewise.
583
584 2009-07-27  Olivier Hainque  <hainque@adacore.com>
585             Douglas B Rupp  <rupp@gnat.com>
586
587         * convert.c (convert_to_pointer): Don't assume the target
588         pointer type is POINTER_SIZE long. Fetch its precision instead.
589
590 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
591
592         * system.h (fopen): Undefine if macro.
593
594 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
595
596         * dwarf2out.c (output_cfi_p): Removed.
597         (output_cfis): New function.
598         (output_fde): New function, split from output_call_frame_info.
599         (output_call_frame_info): Use it.
600         (dwarf2out_switch_text_section): Use output_cfis.
601
602 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
603
604         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
605         TARGET_BI_ARCH is specified without enabling SJLJ.
606         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
607         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
608
609 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
610
611         * arm.md (negdi2): Use DImode if forcing a value into a register.
612
613 2009-07-26  Ira Rosen  <irar@il.ibm.com>
614
615         PR tree-optimization/40801
616         * tree-vect-stmts.c (vectorizable_call): Get previous copy
617         of vector operand from the previous copy of vector statement.
618         Pass the correct definition type value to
619         vect_get_vec_def_for_stmt_copy().
620
621 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
622
623         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
624         const char ** conversion.
625
626 2009-07-25 David Daney <ddaney@caviumnetworks.com>
627
628         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
629         fancy_abort() if !ENABLE_ASSERT_CHECKING.
630         (gcc_unreachable): Invoke __builtin_unreachable() if
631         !ENABLE_ASSERT_CHECKING.
632
633 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
634
635         PR rtl-optimization/40445
636         * emit-rtl.c (next_nonnote_insn_bb): New function.
637         * rtl.h (next_nonnote_insn_bb): Declare new function.
638         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
639         with no successors that is the successor of the ENTRY_BLOCK.
640         Continue from the top after removing an empty fallthrough block.
641         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
642         of next_nonnote_insn.
643
644 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
645
646         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
647         
648 2009-07-25  Martin Jambor  <mjambor@suse.cz>
649
650         * c-common.c (c_common_attribute_table): New element for noclone.
651         (handle_noclone_attribute): New function. Forward-declare.
652         * tree-inline.c (tree_versionable_function_p): Check for noclone
653         attribute.
654         * doc/extend.texi (Labels as Values): Document need for noclone.
655         (Function Attributes): Document noclone attribute.
656
657 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
658
659         PR rtl-optimization/34999
660         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
661         and dw_fde_switched_cold_to_hot fields.
662         (output_cfi_p): New function.
663         (output_call_frame_info): If fde->dw_fde_switched_sections,
664         output 2 FDEs instead of one with corrupted header.
665         (dwarf2out_do_cfi_startproc): New function.
666         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
667         and fde->dw_fde_switched_cold_to_hot.
668         (dwarf2out_switch_text_section): Compute
669         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
670         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
671         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
672         Otherwise, compute fde->dw_fde_switch_cfi.
673
674 2009-07-24  Cary Coutant  <ccoutant@google.com>
675
676         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
677
678 2009-07-24  Cary Coutant  <ccoutant@google.com>
679
680         * cfghooks.c (split_block): Copy discriminator to new block.
681         * tree-cfg.c (assign_discriminator): Check location of last
682         instruction in block as well as first.
683
684 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
685
686         * config/i386/linux.c: Use fputs or putc instead of fprintf
687         where appropriate.
688         * config/i386/gas.h: Ditto.
689         * config/i386/x86-64.h: Ditto.
690         * config/i386/att.h: Ditto.
691
692 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
693
694         * expmed.c (emit_store_flag): Use a recursive call to optimize the
695         xor case.
696
697 2009-07-24  Martin Jambor  <mjambor@suse.cz>
698
699         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
700         (ipa_push_func_to_list_1): Declare.
701         (ipa_push_func_to_list): New function.
702
703         * ipa-prop.c (ipa_push_func_to_list_1): New function.
704         (ipa_init_func_list): Call ipa_push_func_to_list_1.
705         (ipa_push_func_to_list): Removed.
706         (ipa_pop_func_from_list): Clear node_enqueued flag.
707
708 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
709         
710         * config/s390/s390.c (override_options): Default
711         max-unrolled-insns to 100 for z10 tuning.
712
713 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
714
715         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
716         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
717         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
718         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
719         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
720         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
721         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
722
723 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
724
725         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
726         use default set in mingw32.h header.
727         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
728         64-bit /mingw/include path.
729         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
730         path.
731
732 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
733
734         PR rtl-optimization/40209
735         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
736
737 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
738
739         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
740         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
741         with the rest of string where appropriate.  Use fputs or putc
742         instead of fprintf where appropriate.
743
744 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
745             Pat Haugen  <pthaugen@us.ibm.com>
746             Revital Eres <ERES@il.ibm.com>
747
748         * config/rs6000/vector.md: New file.  Move most of the vector
749         expander support here from altivec.md to allow for the VSX vector
750         unit in the future.  Add support for secondary_reload patterns.
751         Rewrite the patterns for vector comparison, and vector comparison
752         predicate instructions so that the RTL expresses the desired
753         behavior, instead of using unspec.
754
755         * config/rs6000/constraints.md ("f" constraint): Use
756         rs6000_constraints to hold the precalculated register class.
757         ("d" constraint): Ditto.
758         ("wd" constraint): New constraint for VSX.
759         ("wf" constraint): Ditto.
760         ("ws" constraint): Ditto.
761         ("wa" constraint): Ditto.
762         ("wZ" constraint): Ditto.
763         ("j" constraint): Ditto.
764
765         * config/rs6000/predicates.md (vsx_register_operand): New
766         predicate for VSX.
767         (vfloat_operand): New predicate for vector.md.
768         (vint_operand): Ditto.
769         (vlogical_operand): Ditto.
770         (easy_fp_constant): If VSX, 0.0 is an easy constant.
771         (easy_vector_constant): Add VSX support.
772         (altivec_indexed_or_indirect_operand): New predicate for
773         recognizing Altivec style memory references with AND -16.
774
775         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
776         for vector secondary reload support.
777         (rs6000_vector_reg_class): Delete, replacing it with
778         rs6000_constraints.
779         (rs6000_vsx_reg_class): Ditto.
780         (rs6000_constraints): New array to hold the register classes of
781         each of the register constraints that can vary at runtime.
782         (builtin_mode_to_type): New static array for builtin function type
783         creation.
784         (builtin_hash_table): New static hash table for builtin function
785         type creation.
786         (TARGET_SECONDARY_RELOAD): Define target hook.
787         (TARGET_IRA_COVER_CLASSES): Ditto.
788         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
789         registers are 128 bits if VSX memory reference instructions are used.
790         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
791         unit is being used.
792         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
793         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
794         Print several of the scheduling related parameters.
795         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
796         rs6000_constraints instead of rs6000_vector_reg_class.  Move
797         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
798         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
799         Altivec.  Add VSX support.  Setup for secondary reload support on
800         Altivec/VSX registers.
801         (rs6000_override_options): Make power7 set the scheduling groups
802         like the power5.  Add support for new debug switches to override
803         the scheduling defaults.  Temporarily disable -mcpu=power7 from
804         setting -mvsx.  Add support for debug switches -malways-hint,
805         -msched-groups, and -malign-branch-targets.
806         (rs6000_buitlin_conversion): Add support for returning unsigned
807         vector conversion functions to fix regressions due to stricter
808         type checking.
809         (rs6000_builtin_mul_widen_even): Ditto.
810         (rs6000_builtin_mul_widen_odd): Ditto.
811         (rs6000_builtin_vec_perm): Ditto.
812         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
813         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
814         to zero a register.
815         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
816         generated upstream.
817         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
818         VSX types for bit operations.  Changes to accomidate vector.md.
819         (bdesc_2arg): Ditto.
820         (bdesc_1arg): Ditto.
821         (struct builtin_description_predicates): Rewrite predicate
822         handling so that RTL describes the operation, instead of passing
823         the instruction to be used as a string argument.
824         (bdesc_altivec_preds): Ditto.
825         (altivec_expand_predicate_builtin): Ditto.
826         (altivec_expand_builtin): Ditto.
827         (rs6000_expand_ternop_builtin): Use a switch instead of an if
828         statement for vsldoi support.
829         (altivec_expand_ld_builtin): Change to use new names from vector.md.
830         (altivec_expand_st_builtin): Ditto.
831         (paired_expand_builtin): Whitespace changes.
832         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
833         builtin_mode_to_type table for secondary reload.  Call
834         builtin_function_type to build random builtin functions.
835         (altivec_init_builtins): Change to use builtin_function_type to
836         create builtin function types dynamically as we need them.
837         (builtin_hash_function): New support for hashing the tree types
838         for builtin function as we need it, rather than trying to build
839         all of the trees that we need.  Add initial preliminary VSX support.
840         (builtin_function_type): Ditto.
841         (builtin_function_eq): Ditto.
842         (builtin_hash_struct): Ditto.
843         (rs6000_init_builtins): Ditto.
844         (rs6000_common_init_builtins): Ditto.
845         (altivec_init_builtins): Ditto.
846         (rs6000_common_init_builtins): Ditto.
847         (enum reload_reg_type): New enum for simplifing reg classes.
848         (rs6000_reload_register_type): Simplify register classes into GPR,
849         Vector, and other registers.  Altivec and VSX addresses in reload.
850         (rs6000_secondary_reload_inner): Ditto.
851         (rs6000_ira_cover_classes): New target hook, that returns the
852         appropriate cover classes, based on -mvsx being used or not.
853         (rs6000_secondary_reload_class): Add VSX support.
854         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
855         (get_vsel_insn): Ditto.
856         (rs6000_emit_vector_compare): Rewrite vector conditional support
857         so that where we can, we use RTL operators, instead of blindly use
858         UNSPEC.
859         (rs6000_emit_vector_select): Ditto.
860         (rs6000_emit_vector_cond_expr): Ditto.
861         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
862         (create_TOC_reference): Add -mdebug=addr support.
863         (emit_frame_save): VSX loads/stores need register indexed addressing.
864
865         * config/rs6000/rs6000.md: Include vector.md.
866
867         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
868
869         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
870         support for V2DI, V2DF in logical, permute, select operations.
871
872         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
873         switch for vsx/power7.
874         (-mvsx-scalar-memory): Ditto.
875         (-mvsx-align-128): Ditto.
876         (-mallow-movmisalign): Ditto.
877         (-mallow-df-permute): Ditto.
878         (-msched-groups): Ditto.
879         (-malways-hint): Ditto.
880         (-malign-branch-targets): Ditto.
881         
882         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
883         hook instead.
884         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
885         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
886         (rs6000_vector_reg_class): Delete.
887         (rs6000_vsx_reg_class): Ditto.
888         (enum rs6000_reg_class_enum): New enum for the constraints that
889         vary based on target switches.
890         (rs6000_constraints): New array to hold the register class for all
891         of the register constraints that vary based on the switches used.
892         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
893         (enum rs6000_builtins): Add unsigned varients for the builtin
894         declarations returned by target hooks for expanding multiplies,
895         select, and permute operations.  Add VSX builtins.
896         (enum rs6000_builtin_type_index): Add entries for VSX.
897         (V2DI_type_node): Ditto.
898         (V2DF_type_node): Ditto.
899         (unsigned_V2DI_type_node): Ditto.
900         (bool_long_type_node): Ditto.
901         (intDI_type_internal_node): Ditto.
902         (uintDI_type_internal_node): Ditto.
903         (double_type_internal_node): Ditto.
904
905         * config/rs6000/altivec.md (whole file): Move all expanders to
906         vector.md from altivec.md.  Rename insn matching functions to be
907         altivec_foo.
908         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
909         (altivec_vcmp*): Ditto.
910         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
911         (VM): New iterator for moves that includes the VSX types.
912         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
913         (altivec_vperm_<mode>_uns): New, for unsigned types.
914         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
915         (altivec_eq<mode>): Ditto.
916         (altivec_gt<mode>): Ditto.
917         (altivec_gtu<mode>): Ditto.
918         (altivec_eqv4sf): Ditto.
919         (altivec_gev4sf): Ditto.
920         (altivec_gtv4sf): Ditto.
921         (altivec_vcmpbfp_p): Ditto.
922
923 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
924
925         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to 
926         unsigned HWI.
927
928 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
929
930         PR target/40832
931         * config/i386/i386.c (output_387_ffreep): Rewrite to use
932         ASM_SHORT instead of .word.
933         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
934         instead of .word in asm template.
935
936 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
937
938         PR target/37488
939         * ira-lives.c (bb_has_abnormal_call_pred): New function.
940         (process_bb_node_lives): Use it.
941
942         * ira.c (setup_cover_and_important_classes): Don't setup
943         ira_important_class_nums.  Add cover classes to the end of
944         important classes.
945         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
946         New.
947         (find_reg_class_closure): Use reorder_important_classes.
948
949         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
950
951         * config/i386/i386.c (i386_ira_cover_classes): New function.
952         (TARGET_IRA_COVER_CLASSES): Redefine.
953
954         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
955         importance of order of cover classes in the array.
956         
957 2009-07-22  Diego Novillo  <dnovillo@google.com>
958
959         * tree-pass.h (TDF_EH): Define.
960         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
961         contains TDF_EH, print the EH region number holding GS.
962         * tree-dump.c (dump_options): Add "eh".
963         * doc/invoke.texi: Document it.
964
965 2009-07-22  Doug Kwan  <dougkwan@google.com>
966
967         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
968
969 2009-07-22  Michael Matz  <matz@suse.de>
970
971         PR tree-optimization/35229
972         PR tree-optimization/39300
973
974         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
975         (inhibit_phi_insertion): New function.
976         (insert_into_preds_of_block): Call it for REFERENCEs.
977         (init_pre): Initialize and finalize scalar evolutions.
978         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
979
980 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
981
982         * config/i386/predicates.md (zero_extended_scalar_load_operand):
983         Use CONST_VECTOR_NUNITS to determine number of elements.
984
985 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
986
987         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
988         (U, W): Constraints are now deprecated and will be removed if we
989         run out of letters.     
990         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
991         the file.
992         ("prefetch"): Add the stcmh instruction for prefetching.
993         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
994         changes.
995         (s390_short_displacement): Return always true if compiling for
996         machines not providing the long displacement facility.
997         (s390_mem_constraint): Support the new constraint letter Z.
998         (s390_check_qrst_address): New function.
999
1000 2009-07-21  DJ Delorie  <dj@redhat.com>
1001
1002         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
1003         alone too.
1004
1005 2009-07-21  Jason Merrill  <jason@redhat.com>
1006
1007         * c-common.c (max_tinst_depth): Increase default to 1024.
1008
1009 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1010
1011         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
1012         (vec_unpacku_float_lo_v4si): Ditto.
1013
1014 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1015
1016         PR target/40811
1017         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
1018         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
1019         (builtin_description): Add __builtin_ia32_cvtudq2ps.
1020         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
1021
1022 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
1023
1024         PR tree-optimization/40813
1025         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
1026         it.
1027
1028 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1029
1030         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
1031         with a NOP_EXPR if needed.
1032
1033 2009-07-21  Paul Brook <paul@codesourcery.com>
1034
1035         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
1036         Terminate debug dump with newline.
1037
1038 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1039
1040         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
1041         Cast "1" to unsigned HOST_WIDE_INT.
1042         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
1043         deposit length to the maximum length - lsb.  Extend length if
1044         HOST_BITS_PER_WIDE_INT is 32.
1045
1046 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
1047
1048         * cgraph.h (constant_pool_htab): New function.
1049         (constant_descriptor_tree): Move from varasm.c.
1050         * varasm.c (constant_pool_htab): New function.
1051         (constant_descriptor_tree): Move to cgraph.h.
1052
1053 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
1054
1055         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
1056
1057 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
1058
1059         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
1060         $(VARRAY_H).
1061
1062 2009-07-20  Xinliang David Li  <davidxl@google.com>
1063
1064         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
1065
1066 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1067
1068         * config/mips/mips.md (move_type): Add arith.
1069         (type): Handle arith.
1070         (zero_extendsidi2): Rename this into ...
1071         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
1072         (zero_extendsidi2): New expander.
1073         (*zero_extendsidi2_dext): New pattern.
1074
1075 2009-07-20  Nick Clifton  <nickc@redhat.com>
1076
1077         * config.gcc (mips64-*-*): Add definition of tm_defines in order
1078         to set MIPS_ABI_DEFAULT.
1079         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
1080
1081 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
1082
1083         * tree-object-size.c (addr_object_size): Handle unions with
1084         array in it as last field of structs in __bos (, 1) as __bos (, 0).
1085
1086         PR tree-optimization/40792
1087         * tree.c (build_function_type_skip_args): Remove bogus assert.
1088
1089 2009-07-20  Jan Hubicka  <jh@suse.cz>
1090             Martin Jambor  <mjambor@suse.cz>
1091
1092         * cgraph.h (combined_args_to_skip): New field.
1093         * cgraph.c (cgraph_create_virtual_clone): Properly handle
1094         combined_args_to_skip and args_to_skip.
1095         * tree-inline.c (update_clone_info): New function.
1096         (tree_function_versioning): Call update_clone_info.
1097         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
1098         functions.
1099         (cgraph_materialize_all_clones): More extensive dumping, working
1100         with combined_args_to_skip rather than args_to_skip.
1101
1102 2009-07-20  Ira Rosen  <irar@il.ibm.com>
1103
1104         * tree-vectorizer.h (vectorizable_condition): Add parameters.
1105         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
1106         (get_initial_def_for_reduction): Likewise.
1107         (vectorizable_reduction): Skip the check of first operand in case
1108         of COND_EXPR. Add check that it is outer loop vectorization if
1109         nested cycle was detected. Call vectorizable_condition() for 
1110         COND_EXPR. If reduction epilogue cannot be created do not fail for
1111         nested cycles (if it is not double reduction). Assert that there
1112         is only one type in the loop in case of COND_EXPR. Call
1113         vectorizable_condition() to vectorize COND_EXPR.
1114         * tree-vect-stmts.c (vectorizable_condition): Update comment.
1115         Add parameters. Allow nested cycles if called from 
1116         vectorizable_reduction(). Use reduction vector variable if provided.
1117         (vect_analyze_stmt): Call vectorizable_reduction() before
1118         vectorizable_condition().
1119         (vect_transform_stmt): Update call to vectorizable_condition().
1120
1121 2009-07-20  Christian Bruel  <christian.bruel@st.com>
1122         
1123         * config/sh/sh.opt (-mfmovd): Resurrect and document.
1124         * doc/invoke.texi (-mfmovd): Likewise.
1125         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
1126         
1127 2009-07-20  Jan Hubicka  <jh@suse.cz>
1128
1129         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
1130         when handling SSA name.
1131
1132 2009-07-19  Jan Hubicka  <jh@suse.cz>
1133
1134         PR tree-optimization/40676
1135         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
1136         virtual PHIs in empty BBs.
1137
1138 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1139
1140         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
1141         re-expanded the compound use gen_lowpart instead to convert to the
1142         desired mode.
1143
1144 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1145
1146         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
1147         OUTER_CONST arguments.
1148         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
1149         the new wider mode will be masked off.
1150         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
1151
1152 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1153
1154         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
1155         high-order bits are zero.
1156
1157 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1158
1159         * combine.c (simplify_shift_const_1): Split code to determine
1160         shift_mode into ...
1161         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
1162         new bits shifted in are identical to the old sign bit.
1163
1164 2009-07-18  Richard Guenther  <rguenther@suse.de>
1165
1166         PR c/40787
1167         * gimplify.c (gimplify_call_expr): Reject code using results from
1168         functions returning void.
1169
1170 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1171
1172         * doc/md.texi: Document the new PowerPC "es" constraint.
1173         Document that "m" can include automodified addresses on this target,
1174         and explain how %U must be used.  Extend the "Q" and "Z" documentation
1175         to suggest "es" as well as "m".
1176         * config/rs6000/constraints.md (es): New memory constraint.
1177         (Q, Z): Update strings to match new documentation.
1178
1179 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1180
1181         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
1182         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
1183         * config/rs6000/predicates.md (volatile_mem_operand): Use
1184         offsettable_nonstrict_memref_p.
1185         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
1186         (*floatunssidf2_internal): Likewise.
1187         (*fix_truncdfsi2_internal): Likewise.
1188         (*fix_trunctfsi2_internal): Likewise.
1189
1190 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
1191
1192         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
1193         atmega32u2 devices.
1194         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1195
1196 2009-07-17  Richard Guenther  <rguenther@suse.de>
1197
1198         PR c/40401
1199         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
1200         (pass_warn_unused_result): Likewise.
1201         (TODO_set_props): Remove.
1202         * omp-low.c (diagnose_omp_structured_block_errors): Change to
1203         run as a pass.
1204         (pass_diagnose_omp_blocks): Define.
1205         * c-decl.c (pop_file_scope): Do not finalize the CU here.
1206         (c_gimple_diagnostics_recursively): Remove.
1207         (finish_function): Do not call it.
1208         (c_write_global_declarations): Continue after errors.
1209         Finalize the CU here.
1210         * c-gimplify.c (c_genericize): Do not gimplify here.
1211         * c-common.c (c_warn_unused_result): Move ...
1212         * tree-cfg.c (do_warn_unused_result): ... here.
1213         (run_warn_unused_result): New function.
1214         (gate_warn_unused_result): New function.
1215         (pass_warn_unused_result): New pass.
1216         * c-common.h (c_warn_unused_result): Remove.
1217         * flags.h (flag_warn_unused_result): Declare.
1218         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
1219         * opts.c (flag_warn_unused_result): Initialize to false.
1220         * toplev.c (compile_file): Add comment.
1221         * omp-low.c (create_omp_child_function): Do not register
1222         the function with the frontend.
1223         (diagnose_omp_structured_block_errors): Prepare to be
1224         called as optimization pass.
1225         (gate_diagnose_omp_blocks): New function.
1226         (pass_diagnose_omp_blocks): New pass.
1227         * cgraph.h (cgraph_optimize): Remove.
1228         (cgraph_analyze_function): Likewise.
1229         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
1230         * cgraphunit.c (cgraph_lower_function): Lower nested functions
1231         before their parents here.
1232         (cgraph_finalize_function): Not here.
1233         (cgraph_analyze_function): Gimplify functions here.
1234         (cgraph_finalize_compilation_unit): Continue after errors.
1235         Optimize the callgraph from here.
1236         (cgraph_optimize): Make static.
1237         * langhooks.c (write_global_declarations): Finalize the CU.
1238         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
1239         (gimplify_function_tree): Assert we gimplify only once.
1240         Set PROP_gimple_any property.
1241         * tree-nested.c (gimplify_all_functions): New function.
1242         (lower_nested_functions): Gimplify all nested functions.
1243         * gimple.h (diagnose_omp_structured_block_errors): Remove.
1244         * passes.c (init_optimization_passes): Add pass_warn_unused_result
1245         and pass_diagnose_omp_blocks after gimplification.  Do not
1246         set TODO_set_props on all_lowering_passes.
1247         (execute_one_pass): Do not handle TODO_set_props.
1248         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
1249         (gimplify.o): Add tree-pass.h dependency.
1250         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
1251         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
1252         (unsave_r): Likewise.
1253         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
1254         temporary variable.
1255
1256 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
1257
1258         * doc/service.texi (Service): Restore previously removed link,
1259         which isn't broken after all.
1260
1261 2009-07-17  Richard Guenther  <rguenther@suse.de>
1262
1263         PR tree-optimization/40321
1264         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
1265         PHI nodes to the maximal set.
1266         (make_values_for_phi): Add PHI arguments to the maximal set.
1267         (execute_pre): Dump PHI_GEN and the maximal set.
1268
1269 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
1270
1271         PR c++/40780
1272         * gimplify.c (gimplify_conversion): Don't change non-conversions into
1273         VIEW_CONVERT_EXPR.
1274
1275 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1276
1277         * doc/extend.texi (Nested Functions): Replace broken link with
1278         textual reference.
1279         * doc/service.texi (Service): Remove broken link.
1280
1281 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1282
1283         PR bootstrap/40781
1284         * builtins.c (expand_builtin_memcmp): Use loc instead of
1285         EXPR_LOCATION (exp).
1286         (expand_builtin_strncmp): Likewise.
1287
1288 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
1289             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1290
1291         PR 40435 
1292         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
1293         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
1294         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
1295         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
1296         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
1297         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
1298         tree-inline.c, c-common.c, c-common.h, gimple.c,
1299         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
1300         convert.c: Add location argument to fold_{unary,binary,ternary},
1301         fold_build[123], build_call_expr, build_size_arg,
1302         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
1303         fold_build1_initializer, fold_build2_initializer,
1304         fold_build3_initializer, fold_build_call_array,
1305         fold_build_call_array_initializer, fold_single_bit_test,
1306         omit_one_operand, omit_two_operands, invert_truthvalue,
1307         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
1308         combine_comparisons, fold_builtin_*, fold_call_expr,
1309         build_range_check, maybe_fold_offset_to_address, round_up,
1310         round_down.
1311
1312 2009-07-16  Jason Merrill  <jason@redhat.com>
1313
1314         PR libstdc++/37907
1315         * c-common.c (c_common_reswords): Add __is_standard_layout
1316         and __is_trivial.
1317         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
1318         * doc/implement-cxx.texi: New.
1319         * doc/gcc.texi: Include it.
1320
1321 2009-07-16  DJ Delorie  <dj@redhat.com>
1322
1323         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
1324         compares that may be indirectly affected by previous instructions.
1325
1326 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1327
1328         * builtins.c (do_mpc_arg2): New.
1329         (fold_builtin_2): Fold builtin cpow.
1330         * real.h (HAVE_mpc_pow): New.
1331
1332 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
1333
1334         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
1335         comparison to skip unprofitable schedule
1336
1337 2009-07-16  Simon Baldwin  <simonb@google.com>
1338
1339         * gcc.c (option_map): New flag -no-canonical-prefixes.
1340         * (display_help): Print help text for new flag.
1341         * (process_command): Move options translation and language specifics
1342         and handle new flag early.  Use it to set a function pointer to a
1343         prefix builder.  Replace make_relative_prefix calls with calls to
1344         the function pointed to.  Ignore new flag in regular options handling.
1345         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
1346
1347 2009-07-15  DJ Delorie  <dj@redhat.com>
1348
1349         * config/mep/mep.md (sibcall_internal): Change register to avoid
1350         argument registers.
1351         (sibcall_value_internal): Likewise.
1352
1353 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1354
1355         PR rtl-optimization/40710
1356         * resource.c (mark_target_live_regs): Reset DF problem to LR.
1357
1358 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
1359
1360         * config/mips/mips.md (*extenddi_truncate<mode>,
1361         *extendsi_truncate<mode>): Change type attribute to move_type
1362         with shift_shift.  Split out code handling exts from here ...
1363         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
1364         pattern.
1365         (*extendhi_truncateqi): Change type attribute to move_type with
1366         shift_shift.  Split out code handling exts from here ...
1367         (*extendhi_truncateqi_exts): ... to this new pattern.
1368
1369 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
1370
1371         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
1372         instead of "and" with inverted sign bit mask value.  Use
1373         "nonimmediate_operand" for operand 1 and operand 2 predicate.
1374         Allocate registers only for operand 4 and operand 5.
1375
1376 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
1377
1378         PR middle-end/40747
1379         * fold-const.c (fold_cond_expr_with_comparison): When folding
1380         < and <= to MIN, make sure the MIN uses the same type as the
1381         comparison's operands.
1382
1383 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
1384
1385         * arm.md (ior_xor): New code iterator.
1386         (split for ior/xor with shift and zero-extend): New split pattern.
1387         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
1388
1389 2009-07-15  Richard Guenther  <rguenther@suse.de>
1390
1391         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
1392         offset member.
1393
1394 2009-07-15  Richard Guenther  <rguenther@suse.de>
1395
1396         PR middle-end/40753
1397         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
1398
1399 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1400
1401         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
1402         handle 2.6.30 kernel.
1403
1404 2009-07-15  DJ Delorie  <dj@redhat.com>
1405
1406         * config/mep/mep.md (sibcall_internal): Change register to allow
1407         for 24-bit addresses.
1408         (sibcall_value_internal): Likewise.
1409
1410 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1411         
1412         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
1413         that are enabled/disabled by the flags introduced by a previous patch.
1414         
1415 2009-07-14  DJ Delorie  <dj@redhat.com>
1416
1417         * config/mep/mep.md (sibcall_internal): Include non-toggling
1418         non-jmp case.
1419         (sibcall_value_internal): Likewise.
1420
1421 2009-07-14  Taras Glek  <tglek@mozilla.com>
1422             Rafael Espindola  <espindola@google.com>
1423
1424         * doc/sourcebuild.texi: Document install-plugin target.
1425         * configure.ac: Added install-plugin target to language makefiles.
1426         * configure: Regenerate.
1427         * Makefile.in: (install-plugin): Install more headers,
1428         depend on lang.install-plugin.
1429
1430 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1431
1432         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
1433         translation.
1434         
1435 2009-07-14  DJ Delorie  <dj@redhat.com>
1436
1437         * config/mep/mep.c (mep_vliw_jmp_match): New function.
1438         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
1439         * config/mep/mep.md (sibcall_internal): Change test from
1440         mep_vliw_mode_match to mep_vliw_jmp_match.
1441         (sibcall_value_internal): Likewise.
1442
1443 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
1444
1445         * config/i386/sse.md (copysign<mode>3): New expander.
1446         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
1447         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
1448         Use ix86_build_const_vector.
1449         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
1450         IX86_BUILTIN_CPYSGNPD.
1451         (builtin_description): Add __builtin_ia32_copysignps and
1452         __builtin_ia32_copysignpd.
1453         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
1454         and BUILT_IN_COPYSIGNF.
1455
1456 2009-07-13  Jason Merrill  <jason@redhat.com>
1457
1458         * builtins.c (can_trust_pointer_alignment): New fn.
1459         (get_pointer_alignment): Factor it out from here.
1460         * tree.h: Declare it.
1461
1462 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
1463
1464         * config/rs6000/predicates.md (offsettable_mem_operand): Test
1465         RTX_AUTOINC class.
1466
1467 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
1468
1469         PR debug/40705
1470         PR c++/403057
1471         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
1472
1473 2009-07-14  Richard Guenther  <rguenther@suse.de>
1474             Andrey Belevantsev <abel@ispras.ru>
1475
1476         PR middle-end/40745
1477         * cfgexpand.c (partition_stack_vars): Do not bother to update
1478         alias information when not optimizing.
1479
1480 2009-07-14  Richard Guenther  <rguenther@suse.de>
1481             Andrey Belevantsev <abel@ispras.ru>
1482
1483         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
1484         (pt_solution_set): Likewise.
1485         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
1486         * tree-ssa-structalias.c (pt_solution_set): New function.
1487         * final.c (rest_of_clean_state): Free SSA data structures.
1488         * print-rtl.c (print_decl_name): Remove.
1489         (print_mem_expr): Implement in terms of print_generic_expr.
1490         * alias.c (ao_ref_from_mem): New function.
1491         (rtx_refs_may_alias_p): Likewise.
1492         (true_dependence): Query alias-export info.
1493         (canon_true_dependence): Likewise.
1494         (write_dependence_p): Likewise.
1495         * tree-dfa.c (get_ref_base_and_extent): For void types leave
1496         size unknown.
1497         * emit-rtl.c (component_ref_for_mem_expr): Remove.
1498         (mem_expr_equal_p): Use operand_equal_p.
1499         (set_mem_attributes_minus_bitpos): Do not use
1500         component_ref_for_mem_expr.
1501         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
1502         (update_alias_info_with_stack_vars): Likewise.
1503         (partition_stack_vars): Call update_alias_info_with_stack_vars.
1504         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
1505         explicitly nor clear stmt operands.
1506         Free the decl-to-pointer map.
1507         * tree-optimize.c (execute_free_datastructures): Do not free
1508         SSA data structures here.
1509         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
1510         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
1511         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
1512         dependencies.
1513         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
1514
1515 2009-07-13  DJ Delorie  <dj@redhat.com>
1516
1517         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
1518         unrolling at the right iteration count.
1519
1520         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
1521         calculations.
1522
1523 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1524         
1525         * haifa-sched.c (rank_for_schedule): Introduced flags to
1526         enable/disable individual scheduling heuristics.
1527         * common.opt: Introduced flags to enable/disable individual
1528         heuristics in the scheduler.    
1529         * doc/invoke.texi: Introduced flags to enable/disable individual
1530         heuristics in the scheduler.
1531         
1532 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
1533
1534         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
1535         config/i386/mingw-tls.c.
1536         * config/i386/mingw-tls.c: Removed.
1537
1538 2009-07-13  Ira Rosen  <irar@il.ibm.com>
1539
1540         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
1541         checks access only relevant statements.
1542         (vectorizable_reduction): Likewise.
1543
1544 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
1545
1546         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
1547         just for 32-bit case.
1548
1549 2009-07-12  Jan Hubicka  <jh@suse.cz>
1550
1551         PR tree-optimization/40585
1552         * except.c (expand_resx_expr): When there already is resume
1553         instruction, produce linked list.
1554         (build_post_landing_pads): Assert that resume is empty.
1555         (connect_post_landing_pads): Handle resume lists.
1556         (dump_eh_tree): Dump resume list.
1557
1558 2009-07-12  Ira Rosen  <irar@il.ibm.com>
1559
1560         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
1561         with additional argument.
1562         * tree-vectorizer.h (enum vect_def_type): Add
1563         vect_double_reduction_def.
1564         (vect_is_simple_reduction): Add argument.
1565         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
1566         indentation.
1567         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
1568         vect_is_simple_reduction with additional argument.
1569         (vect_analyze_loop_operations): Handle exit phi nodes in case of
1570         double reduction.
1571         (reduction_code_for_scalar_code): Handle additional codes by
1572         returning ERROR_MARK for them. Fix comment and indentation.
1573         (vect_is_simple_reduction): Fix comment, add argument to specify
1574         double reduction. Detect double reduction.
1575         (get_initial_def_for_induction): Fix indentation.
1576         (get_initial_def_for_reduction): Fix comment and indentation.
1577         Handle double reduction. Create initial definitions that do not
1578         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
1579         (vect_create_epilog_for_reduction): Fix comment, add argument to
1580         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
1581         epilogue result extraction. Create double reduction phi node and
1582         replace relevant uses.
1583         (vectorizable_reduction): Call vect_is_simple_reduction with
1584         additional argument. Fix indentation. Update epilogue code treatment
1585         according to the changes in reduction_code_for_scalar_code. Check
1586         for double reduction. Call vect_create_epilog_for_reduction with
1587         additional argument.
1588         * tree-vect-stmts.c (process_use): Handle double reduction, update
1589         documentation.
1590         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
1591         (vect_get_vec_def_for_operand): Likewise.
1592
1593 2009-07-12  Danny Smith  <dansmister@gmail.com>
1594
1595         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
1596         dllexport if !TREE_PUBLIC.
1597         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
1598
1599 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
1600
1601         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
1602         (avr_extra_arch_macro) Remove declatation.
1603         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
1604         (avr_extra_arch_macro) Declare as static.
1605         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
1606
1607 2009-07-11  Jan Hubicka  <jh@suse.cz>
1608
1609         PR middle-end/48388
1610         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
1611
1612 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
1613
1614         PR debug/40713
1615         * dwarf2out.c (dw_fde_struct): Add in_std_section and
1616         cold_in_std_section bits.
1617         (dwarf2out_begin_prologue): Initialize them.
1618         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
1619         if already covered by text_section or cold_text_section range.
1620
1621         PR rtl-optimization/40667
1622         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
1623         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
1624         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
1625         * config/i386/i386.c (ix86_minimum_alignment): New function.
1626         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
1627         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
1628         * emit-rtl.c (gen_reg_rtx): Likewise.
1629         * function.c (assign_parms): Likewise.  If nominal_type needs
1630         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
1631         rather than passed_type's alignment.
1632
1633         PR target/40668
1634         * function.c (assign_parm_setup_stack): Adjust
1635         MEM_OFFSET (data->stack_parm) if promoted_mode is different
1636         from nominal_mode on big endian.
1637
1638 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
1639
1640         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
1641
1642 2009-07-10  DJ Delorie  <dj@redhat.com>
1643
1644         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
1645
1646 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
1647
1648         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
1649         attribute.
1650         (thumb2_cbnz): Likewise.
1651
1652 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
1653
1654         PR target/39079
1655         * config.gcc (supported_defaults): Add synci.
1656         (with_synci): Add validation.
1657         (all_defaults): Add synci.
1658         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
1659         ISA_HAS_SYNCI.
1660         (synci): Same.
1661         * config/mips/mips.opt (msynci): New option.
1662         * config/mips/mips.c (mips_override_options): Warn on use of
1663         -msynci for targets that do now support it.
1664         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
1665         msynci.
1666         * gcc/doc/invoke.texi (-msynci): Document the new option.
1667         * doc/install.texi (--with-synci): Document the new option.
1668
1669 2009-07-10  Richard Guenther  <rguenther@suse.de>
1670
1671         PR tree-optimization/40496
1672         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
1673         the PHI result with a compatible type.
1674
1675 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1676
1677         PR 25509
1678         PR 40614
1679         * c.opt (Wunused-result): New.
1680         * doc/invoke.texi: Document it.
1681         * c-common.c (c_warn_unused_result): Use it.
1682
1683 2009-07-09  DJ Delorie  <dj@redhat.com>
1684
1685         * targhooks.c (default_target_can_inline_p): Rename from
1686         default_target_option_can_inline_p.
1687         * targhooks.h (default_target_can_inline_p): Likewise.
1688         * target-def.h (TARGET_CAN_INLINE_P): Rename from
1689         TARGET_OPTION_CAN_INLINE_P.
1690         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
1691         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
1692         (mep_target_can_inline_p): Rename from
1693         mep_target_option_can_inline_p.
1694
1695         PR target/40626
1696         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
1697         registers used to pass vectors.
1698
1699         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
1700
1701 2009-07-09  Tom Tromey  <tromey@redhat.com>
1702
1703         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
1704         * config/mmix/mmix.c: Include dwarf2.h.
1705         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
1706         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
1707         * config/sh/sh.c: Include dwarf2.h.
1708         * config/i386/i386.c: Include dwarf2.h.
1709         * Makefile.in (DWARF2_H): Remove 'elf'.
1710         * except.c: Include dwarf2.h.
1711         * unwind-dw2.c: Include dwarf2.h.
1712         * dwarf2out.c: Include dwarf2.h.
1713         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
1714         * unwind-dw2-fde.c: Include dwarf2.h.
1715         * dwarf2asm.c: Include dwarf2.h.
1716
1717 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1718
1719         * haifa-sched.c (insn_finishes_cycle_p): New static function.
1720         (max_issue): Use it.
1721         * sched-int.h (struct sched_info: insn_finishes_block_p): New
1722         scheduler hook.
1723         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
1724         (region_sched_info): Update.
1725         * sched-ebb.c (ebb_sched_info): Update.
1726         * modulo-sched.c (sms_sched_info): Update.
1727         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
1728
1729 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1730
1731         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
1732
1733 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
1734
1735         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
1736
1737 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
1738
1739         PR middle-end/40692
1740         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
1741         arg1 with arg01 if arg1 is already INTEGER_CST.
1742
1743 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
1744
1745         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
1746         Transform (and (truncate)) into (truncate (and)).
1747
1748 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
1749
1750         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
1751         creating LHS paradoxical subregs.  Fix surrounding returns to
1752         use NULL_RTX rather than 0.
1753
1754 2009-07-08  DJ Delorie  <dj@redhat.com>
1755
1756         * config/mep/mep.c: (mep_option_can_inline_p): New.
1757         (TARGET_OPTION_CAN_INLINE_P): Define.
1758
1759 2009-07-08  Mark Wielaard  <mjw@redhat.com>
1760
1761         PR debug/40659
1762         * dwarf2out.c (add_data_member_location_attribute): When we have
1763         only a constant offset don't emit a new location description using
1764         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
1765         dwarf_version > 2.
1766
1767 2009-07-08  Richard Henderson  <rth@redhat.com>
1768
1769         PR target/38900
1770         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
1771         (enum reg_class): Add CLOBBERED_REGS.
1772         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
1773         * config/i386/i386.c (ix86_conditional_register_usage): Moved
1774         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
1775         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
1776         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
1777         force 64-bit sibcalls into R11.
1778         * config/i386/constraints.md (U): New constraint.
1779         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
1780         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
1781         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
1782
1783 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
1784
1785         * basic-block.h (dump_regset, debug_regset): Remove duplicate
1786         prototypes.
1787         * c-objc-common.h (c_initialize_diagnostics): Ditto.
1788         * ebitmap.h (dump_ebitmap): Ditto.
1789         * optabs.h (optab_libfunc): Ditto.
1790         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
1791         * tree-flow.h (vect_can_force_dr_alignment_p,
1792         get_vectype_for_scalar_type): Ditto.
1793         (vectorize_loops): Move prototype to ...
1794         * tree-vectorizer.h: ... here. Also, adjust comment.
1795         (vect_set_verbosity_level): Remove duplicate prototype.
1796         * tree-ssa-loop.c: Include tree-vectorizer.h.
1797         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
1798
1799 2009-07-08  Nick Clifton  <nickc@redhat.com>
1800
1801         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
1802         forward slash.
1803
1804 2009-07-08  DJ Delorie  <dj@redhat.com>
1805
1806         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
1807         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
1808         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
1809         written to.
1810         * config/mep/intrinsics.md: Regenerated.
1811         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
1812         registers when asm() or calls are detected.
1813
1814 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1815
1816         PR c++/31246
1817         * gimplify.c (gimplify_expr): Propagate no_warning flag when
1818         gimplifying.
1819         * gimple (gimple_build_call_from_tree): Likewise.
1820         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
1821         no_warning flag before warning.
1822
1823 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1824
1825         * tree.c (set_expr_locus): Remove.
1826         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
1827         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
1828         EXPR_LOCATION.
1829         * gimplify.c (internal_get_tmp_var): Likewise.
1830         (gimplify_call_expr): Likewise.
1831         (gimplify_one_sizepos): Likewise.
1832
1833 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
1834
1835         PR debug/40666
1836         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
1837         to variables for debugging purposes.
1838
1839 2009-06-23  Mark Loeser  <mark@halcy0n.com>
1840
1841         PR build/40010
1842         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
1843
1844 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1845
1846         * pretty-print.c (pp_base_format): Remove %J.
1847         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1848         gcc_cxxdiag_char_table): Likewise.
1849         (init_dynamic_diag_info): Likewise.
1850
1851 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1852
1853         * pretty-print.c (pp_base_format): Remove %H.
1854         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1855         gcc_cxxdiag_char_table): Likewise.
1856         (init_dynamic_diag_info): Likewise.
1857         * config/mep/mep.c (mep_select_section): Likewise.
1858
1859 2009-07-07  Duncan Sands  <baldrick@free.fr>
1860
1861         * final.c (pass_clean_state): Give the pass a name.
1862         * passes.c (pass_rest_of_compilation): Likewise.
1863         * tree-optimize.c (pass_all_optimizations): Likewise.
1864
1865 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1866
1867         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
1868         an extra 'decl' for error_at.
1869
1870 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
1871
1872         PR middle-end/40669
1873         * tree-tailcall.c (adjust_return_value_with_ops,
1874         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
1875         if it has complex or vector type.
1876
1877 2009-07-07  Olivier Hainque  <hainque@adacore.com>
1878
1879         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
1880         pthread symbols.
1881
1882 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
1883
1884         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
1885
1886 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1887
1888         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
1889         * c-decl.c: Likewise.
1890         * function.c: Likewise.
1891         * varasm.c: Likewise.
1892         * tree-ssa.c: Likewise.
1893         * c-common.c: Likewise.
1894         * tree-cfg.c: Likewise.
1895         * config/spu/spu.c: Likewise.
1896         * config/ia64/ia64.c: Likewise.
1897         * config/v850/v850.c: Likewise.
1898
1899 2009-07-06  DJ Delorie  <dj@redhat.com>
1900
1901         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
1902         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
1903         unspecified accesses to control registers.
1904         * config/mep/intrinsics.md: Regenerate.
1905         * config/mep/intrinsics.h: Regenerate.
1906         * config/mep/mep-intrin.h: Regenerate.
1907
1908 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1909
1910         * c-lex.c: Replace %H by an explicit location. Update all calls.
1911         * c-common.c: Likewise.
1912         * c-decl.c: Likewise.
1913         * c-typeck.c: Likewise.
1914         * fold-const.c: Likewise.
1915         * gimplify.c: Likewise.
1916         * stmt.c: Likewise.
1917         * tree-cfg.c: Likewise.
1918         * tree-ssa-loop-niter.c: Likewise.
1919         * tree-vrp.c: Likewise.
1920         * value-prof.c: Likewise.
1921
1922 2009-07-06  Diego Novillo  <dnovillo@google.com>
1923
1924         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
1925         if it has one.  Handle cases where VAR does not have an
1926         annotation or cfun is NULL.
1927
1928 2009-07-06  Diego Novillo  <dnovillo@google.com>
1929
1930         * tree.c: Include debug.h.
1931         (initialize_tree_contains_struct): New.
1932         (init_ttree): Call it.
1933         (tree_node_structure_for_code): Factor out of ...
1934         (tree_node_structure): ... here.
1935         * treestruct.def (TS_PHI_NODE): Remove.
1936         (TS_GIMPLE_STATEMENT): Remove.
1937
1938 2009-07-06  Diego Novillo  <dnovillo@google.com>
1939
1940         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
1941         (debug_tree_chain): Handle cycles.
1942
1943 2009-07-06  Nick Clifton  <nickc@redhat.com>
1944             DJ Delorie  <dj@redhat.com>
1945
1946         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
1947         __FMOVD_ENABLED__ is defined.
1948         * config/sh/sh.h
1949         (TARGET_FMOVD): Provide a default definition.
1950         (MASK_FMOVD): Likewise.
1951         (TARGET_CPU_CPP_BUILTINS): Define
1952         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
1953         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
1954         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
1955         (split for DF load from memory into register): Also handle
1956         MEMs which consist of REG+DISP addressing.
1957         (split for DF store from register to memory): Likewise.
1958         (movsf_ie): Always use single fp_mode.
1959         * config/sh/sh.c (sh_override_options): Do not automatically
1960         enable TARGET_MOVD for the SH2A when supporting doubles - leave
1961         that to the -mfmovd command line switch.
1962         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
1963         (fldi_ok): Always allow.
1964         * config/sh/sh.opt (mfmovd): Remove this switch.
1965         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
1966
1967 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
1968             Kaz Kojima  <kkojima@gcc.gnu.org>
1969
1970         PR rtl-optimization/30807
1971         * postreload.c (reload_combine): For every new use of REG_SUM,
1972         record the use of BASE.
1973
1974 2009-07-06  Jan Hubicka  <jh@suse.cz>
1975
1976         * params.def: Revert my accidental commit at 2009-06-30.
1977
1978 2009-07-04  Ian Lance Taylor  <iant@google.com>
1979
1980         PR target/40636
1981         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
1982         EXPORTED_CONST.
1983         (mingw_format_attribute_overrides): Likewise.
1984
1985 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
1986
1987         PR debug/40596
1988         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
1989         don't check cfa.reg.  Instead of cfa.indirect use
1990         fde && fde->drap_reg != INVALID_REGNUM test.
1991
1992 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
1993
1994         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
1995
1996 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
1997
1998         PR target/40587
1999         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
2000
2001 2009-07-03  Richard Guenther  <rguenther@suse.de>
2002
2003         PR tree-optimization/40640
2004         * tree-switch-conversion.c (build_arrays): Perform arithmetic
2005         in original type.
2006
2007 2009-07-03  Jan Hubicka  <jh@suse.cz>
2008
2009         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
2010         for size, reduce amount of inlining.
2011
2012 2009-07-03  Richard Guenther  <rguenther@suse.de>
2013
2014         PR middle-end/34163
2015         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
2016         if t +- x is known to not overflow and the conversion widens the
2017         operation.
2018         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
2019
2020 2009-07-03  Jan Hubicka  <jh@suse.cz>
2021
2022         * ipa-pure-const.c (analyze): Update loop optimizer init.
2023         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
2024         try_remove_empty_loop, remove_empty_loops): Remove.
2025         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
2026         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
2027         to mark regular loops as neccesary.
2028         (degenerate_phi_p): New function.
2029         (propagate_necessity, remove_dead_phis): Use it.
2030         (forward_edge_to_pdom): Likewise.
2031         (eliminate_unnecessary_stmts): Take care to remove uses of results of
2032         virtual PHI nodes that became unreachable.
2033         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
2034         * tree-flow.h (remove_empty_loops): Remove.
2035         * passes.c (init_optimization_passes): Remove.
2036
2037 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
2038
2039         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
2040         can_create_pseudo_p.
2041         (*fix_trunc<mode>_i387_1): Ditto.
2042         (*floathi<mode>2_1): Ditto.
2043         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
2044         (*fistdi2_1): Ditto.
2045         (*fist<mode>2_1): Ditto.
2046         (frndintxf2_floor): Ditto.
2047         (*fist<mode>2_floor_1): Ditto.
2048         (frndintxf2_ceil): Ditto.
2049         (*fist<mode>2_ceil_1): Ditto.
2050         (frndintxf2_trunc): Ditto.
2051         (frndintxf2_mask_pm): Ditto.
2052         (fxam<mode>2_i387_with_temp): Ditto.
2053         * config/i386/sse.md (mulv16qi3): Ditto.
2054         (*sse2_mulv4si3): Ditto.
2055         (mulv2di3): Ditto.
2056         (sse4_2_pcmpestr): Ditto.
2057         (sse4_2_pcmpistr): Ditto.
2058
2059 2009-07-03  Jan Hubicka  <jh@suse.cz>
2060
2061         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
2062         (mark_stmt_necessary): Set it.
2063         (mark_operand_necessary): Set it.
2064         (mark_control_dependent_edges_necessary): Set it.
2065         (mark_virtual_phi_result_for_renaming): New function.
2066         (get_live_post_dom): New function.
2067         (forward_edge_to_pdom): New function.
2068         (remove_dead_stmt): Fix handling of control dependences.
2069         (tree_dce_init): Init new bitmap.
2070         (tree_dce_done): Free it.
2071
2072 2009-07-02  Richard Guenther  <rguenther@suse.de>
2073
2074         PR bootstrap/40617
2075         * tree-ssa-structalias.c (new_var_info): Initialize
2076         is_restrict_var.
2077
2078 2009-07-02  Jan Hubicka  <jh@suse.cz>
2079
2080         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
2081         local.
2082
2083 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
2084
2085         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
2086         instead of recomputing it.  Adjust calls.
2087         (emit_store_flag): Adjust recursive calls.
2088
2089 2009-07-02  Richard Guenther  <rguenther@suse.de>
2090
2091         * tree-ssa-live.c (remove_unused_locals): Do not remove
2092         heap variables.
2093         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
2094         of DECL_EXTERNAL for HEAP variables.
2095         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
2096         HEAP variables.  Do not adjust RESTRICT vars.
2097         (find_what_var_points_to): Nobody cares if something
2098         points to READONLY.
2099
2100 2009-07-02  Ben Elliston  <bje@au.ibm.com>
2101
2102         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
2103         pc_low and pc_high declarations to the top of the function.
2104
2105 2009-07-01  DJ Delorie  <dj@redhat.com>
2106
2107         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
2108         registers as fixed.
2109         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
2110         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
2111         unspecified accesses to control registers.
2112         * config/mep/intrinsics.md: Regenerate.
2113         * config/mep/intrinsics.h: Regenerate.
2114         * config/mep/mep-intrin.h: Regenerate.
2115
2116 2009-07-01  Anthony Green  <green@moxielogic.com>
2117
2118         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2119         instruction when possible.
2120         (moxie_expand_prologue): Ditto.  Also, save an instruction and
2121         some complexity by popping off of $r12 instead of $sp.
2122         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
2123         operands.
2124
2125 2009-07-01  Richard Henderson  <rth@redhat.com>
2126
2127         PR bootstrap/40347
2128         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
2129         contained no insns, reposition note before last insn.
2130
2131 2009-07-01  Richard Henderson  <rth@redhat.com>
2132
2133         PR debug/40431
2134         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
2135         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
2136
2137 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2138
2139         PR bootstrap/40558
2140         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
2141         darwin9 for printing reg addresses with %y.
2142
2143 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2144
2145         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
2146         truncation from operands in binary operations.
2147
2148 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2149
2150         Revert:
2151         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
2152         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2153         subreg of op0 to the original op0.
2154
2155         * expmed.c (store_bit_field_1): Use a temporary as the destination
2156         instead of a paradoxical subreg when we need to truncate the result.
2157
2158 2009-07-01  DJ Delorie  <dj@redhat.com>
2159
2160         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
2161         names to VLIW variants.
2162         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
2163         * config/mep/intrinsics.md: Regenerate.
2164         * config/mep/intrinsics.h: Regenerate.
2165         * config/mep/mep-intrin.h: Regenerate.
2166
2167 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
2168
2169         PR debug/40462
2170         * jump.c (returnjump_p): Revert last patch.
2171         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
2172
2173 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2174
2175         PR target/40575
2176         * pa.md (casesi32p): Use jump table label to determine the offset
2177         of the jump table.
2178         (casesi64p): Likewise.
2179
2180         * pa.c (forward_branch_p): Return bool type.  Use instruction
2181         addresses when available.  Assert that INSN has a jump label.
2182         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
2183         have a jump label.
2184
2185 2009-07-01  Richard Guenther  <rguenther@suse.de>
2186
2187         PR tree-optimization/19831
2188         * tree-ssa-dce.c (propagate_necessity): Calls to functions
2189         that only act as barriers do not make any previous stores necessary.
2190         * tree-ssa-structalias.c (handle_lhs_call): Delay making
2191         HEAP variables global, do not add a constraint from nonlocal.
2192         (find_func_aliases): Handle escapes through return statements.
2193         (compute_points_to_sets): Make escaped HEAP variables global.
2194
2195 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2196
2197         PR bootstrap/40597
2198         * expmed.c (emit_store_flag): Perform a conversion if necessary,
2199         after reducing a DImode cstore to SImode.
2200
2201 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2202
2203         * expr.c (expand_expr_real_1): Reinstate fallthrough to
2204         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
2205
2206 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
2207
2208         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
2209         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
2210         to 0.
2211         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
2212         and umod_optab if TARGET_BSD_DIVMOD.
2213         * config/vax/lib1funcs.asm: New file.
2214         * config/vax/t-linux: New file.
2215         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
2216
2217 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
2218
2219         PR c++/40566
2220         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
2221         to type arguments that have void type.
2222
2223         PR debug/40573
2224         * dwarf2out.c (gen_formal_parameter_die): Call
2225         equate_decl_number_to_die if node is different from origin.
2226
2227 2009-06-30  Anthony Green  <green@moxielogic.com>
2228
2229         Clean up moxie port for --enable-build-with-cxx.
2230         * config/moxie/moxie.c (moxie_function_value): First two
2231         parameters are const_tree, not tree.
2232         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
2233         (REG_CLASS_NAMES): Ditto.
2234         (REGNO_REG_CLASS): Ditto.
2235         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
2236         (moxie_function_value): Fix constyness of arguments.
2237
2238 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2239
2240         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
2241         finalize_size_functions before further processing.
2242         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
2243         (variable_size): Call self_referential_size on size expressions
2244         that contain a PLACEHOLDER_EXPR.
2245         (size_functions): New static variable.
2246         (copy_self_referential_tree_r): New static function.
2247         (self_referential_size): Likewise.
2248         (finalize_size_functions): New global function.
2249         * tree.c: Include tree-inline.h.
2250         (push_without_duplicates): New static function.
2251         (find_placeholder_in_expr): New global function.
2252         (substitute_in_expr) <tcc_declaration>: Return the replacement object
2253         on equality.
2254         <tcc_expression>: Likewise.
2255         <tcc_vl_exp>: If the replacement object is a constant, try to inline
2256         the call in the expression.
2257         * tree.h (finalize_size_functions): Declare.
2258         (find_placeholder_in_expr): Likewise.
2259         (FIND_PLACEHOLDER_IN_EXPR): New macro.
2260         (substitute_placeholder_in_expr): Update comment.
2261         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
2262         is true.
2263         (copy_tree_body_r): Likewise.
2264         (copy_tree_body): New static function.
2265         (maybe_inline_call_in_expr): New global function.
2266         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
2267         (maybe_inline_call_in_expr): Declare.
2268         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
2269         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
2270         GIMPLE_H.
2271
2272 2009-06-30  Richard Guenther  <rguenther@suse.de>
2273
2274         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
2275         continue walking.
2276         (propagate_necessity): Do not mark reaching defs of stores
2277         as necessary.
2278
2279 2009-06-30  Jan Hubicka  <jh@suse.cz>
2280
2281         * cfgloopanal.c (check_irred): Move into ...
2282         (mark_irreducible_loops): ... here; return true if ireducible
2283         loops was found.
2284         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
2285         (analyze_function): Try to prove loop finiteness.
2286         * cfgloop.h (mark_irreducible_loops): Update prototype.
2287         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
2288
2289 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
2290
2291         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
2292
2293 2009-06-30  Ira Rosen  <irar@il.ibm.com>
2294
2295         PR tree-optimization/40542
2296         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
2297         types.
2298
2299 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2300
2301         PR tree-optimization/40582
2302         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
2303         than useless_type_conversion_p.
2304         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
2305         proper place.
2306
2307 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2308
2309         PR middle-end/40554
2310         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2311
2312 2009-06-30  Richard Guenther  <rguenther@suse.de>
2313
2314         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
2315         use ao_ref references.
2316         (walk_aliased_vdefs): Likewise.
2317         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
2318         * tree-ssa-dce.c (struct ref_data): Remove.
2319         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
2320         (mark_aliased_reaching_defs_necessary): Adjust.
2321         (mark_all_reaching_defs_necessary_1): Likewise.
2322
2323 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
2324
2325         PR boostrap/40597
2326         * expmed.c (emit_cstore): New name of emit_store_flag_1.
2327         (emit_store_flag_1): Extract from emit_store_flag, adjust
2328         calls to (what now is) emit_cstore.
2329         (emit_store_flag): Call emit_store_flag_1 and also use it
2330         for what used to be recursive calls.
2331
2332 2009-06-30  Wei Guozhi  <carrot@google.com>
2333
2334         PR/40416
2335         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
2336         if the target bb post dominates from bb.
2337         * config/i386/i386.c (memory_address_length): Check existence of base
2338         register before using it.
2339
2340 2009-06-30  Nick Clifton  <nickc@redhat.com>
2341             DJ Delorie  <dj@redhat.com>
2342
2343         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2344         __FMOVD_ENABLED__ is defined.
2345         * config/sh/sh.h
2346         (TARGET_FMOVD): Provide a default definition.
2347         (MASK_FMOVD): Likewise.
2348         (TARGET_CPU_CPP_BUILTINS): Define
2349         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2350         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2351         two fmov instructions depending upon whether TARGET_FMOVD is
2352         enabled.
2353         (split for DF load from memory into register): Also handle
2354         MEMs which consist of REG+DISP addressing.
2355         (split for DF store from register to memory): Likewise.
2356         * config/sh/sh.opt (mfmovd): Remove this switch.
2357         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2358         * config/sh/sh.c (sh_override_options): Do not automatically
2359         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2360         that to the -mfmovd command line switch.
2361
2362         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
2363         the SH4 and SH4A.
2364         (fldi_ok): Always allow.
2365         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
2366
2367 2009-06-29  DJ Delorie  <dj@redhat.com>
2368
2369         * doc/install.texi (mep-x-elf): Correct chip's full name.
2370
2371 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2372
2373         * doc/extend.texi: Fix typo.
2374
2375 2009-06-29  Tom Tromey  <tromey@redhat.com>
2376
2377         * dwarf2.h: Remove.
2378         * Makefile.in (DWARF2_H): New variable.
2379         (except.o): Use it.
2380         (dwarf2out.o): Likewise.
2381         (dwarf2asm.o): Likewise.
2382         * config/i386/t-i386: Use DWARF2_H.
2383         * except.c: Include elf/dwarf2.h.
2384         * unwind-dw2.c: Include elf/dwarf2.h.
2385         * dwarf2out.c: Include elf/dwarf2.h.
2386         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
2387         <dtprel>: New field.
2388         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
2389         (size_of_loc_descr): Likewise.
2390         (output_loc_operands_raw): Likewise.
2391         (output_loc_operands): Handle new dtprel field.
2392         (loc_checksum): Update.
2393         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
2394         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
2395         * unwind-dw2-fde.c: Include elf/dwarf2.h.
2396         * dwarf2asm.c: Include elf/dwarf2.h.
2397         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
2398         * config/mmix/mmix.c: Include elf/dwarf2.h.
2399         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
2400         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
2401         * config/sh/sh.c: Include elf/dwarf2.h.
2402         * config/i386/i386.c: Include elf/dwarf2.h.
2403
2404 2009-06-29  DJ Delorie  <dj@redhat.com>
2405
2406         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
2407
2408         * doc/extend.texi: Add MeP attributes and pragmas.
2409         * doc/invoke.text: Add MeP Options.
2410         * doc/contrib.texi: Add MeP contribution.
2411         * doc/md.texi: Add MeP constraints.
2412         * doc/install.texi: Add MeP target.
2413
2414 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
2415
2416         * target.h (struct gcc_target): Add frame_pointer_required field.
2417         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
2418         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
2419         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
2420         hook.
2421         * reload1.c (update_eliminables): (Ditto.).
2422         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
2423         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2424         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
2425
2426         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
2427
2428         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
2429         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2430         (arm_frame_pointer_required): New function.
2431
2432         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
2433         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2434         (avr_frame_pointer_required_p): Declare as static.
2435         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
2436
2437         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
2438         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2439         (bfin_frame_pointer_required): Make as static, change return type
2440         to bool.
2441         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
2442
2443         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
2444         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2445         (cris_frame_pointer_required): New function.
2446         
2447         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
2448
2449         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
2450         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2451         (fr30_frame_pointer_required): New function.
2452         
2453         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
2454         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2455         (frv_frame_pointer_required): Make as static, change return type
2456         to bool.
2457         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
2458
2459         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
2460         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2461         (ix86_frame_pointer_required): Make as static, change return type to
2462         bool.
2463         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
2464
2465         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
2466         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2467
2468         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
2469
2470         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
2471         
2472         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
2473
2474         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
2475         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2476         (mips_frame_pointer_required): Make as static.
2477         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
2478         
2479         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
2480         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2481         (mmix_frame_pointer_required): Mew function.
2482
2483         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
2484         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2485
2486         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
2487
2488         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
2489
2490         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
2491
2492         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
2493         (CAN_ELIMINATE): Redefine.
2494         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2495         (sparc_frame_pointer_required): New function.
2496         (sparc_can_eliminate): New function.
2497         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
2498
2499         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
2500         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2501
2502         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
2503         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2504         (xtensa_frame_pointer_required): Make as static, change return type
2505         to bool.
2506         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
2507         Remove.
2508
2509 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
2510
2511         * doc/plugins.texi: Document PLUGIN_START_UNIT.
2512         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
2513         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
2514         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
2515         (register_callback): Handle PLUGIN_START_UNIT.
2516         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
2517
2518 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2519
2520         * tree.c (process_call_operands): Propagate TREE_READONLY from the
2521         operands.
2522         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
2523         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
2524
2525 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
2526
2527         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
2528         move cost.
2529
2530 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
2531
2532         * doc/extend.texi (Additional Floating Types): __float128 is also
2533         supported on i386 targets.
2534
2535 2009-06-29  Richard Guenther  <rguenther@suse.de>
2536
2537         PR middle-end/14187
2538         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2539         flag.
2540         (pt_solutions_same_restrict_base): Declare.
2541         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
2542         flag.
2543         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
2544         (make_constraint_from, make_copy_constraint): Move earlier.
2545         (make_constraint_from_heapvar): New function.
2546         (make_constraint_from_restrict): Likewise.
2547         (handle_lhs_call): Use it.
2548         (find_func_aliases): Use it to track conversions to restrict
2549         qualified pointers.
2550         (struct fieldoff): Add only_restrict_pointers flag.
2551         (push_fields_onto_fieldstack): Initialize it.
2552         (create_variable_info_for): Track global restrict qualified pointers.
2553         (intra_create_variable_infos): Use make_constraint_from_heapvar.
2554         Track restrict qualified pointer arguments.
2555         (set_uids_in_ptset): Use varinfo is_global_var flag.
2556         (find_what_var_points_to): Set the vars_contains_restrict flag.
2557         Always create the points-to solution for sets including restrict tags.
2558         (pt_solutions_same_restrict_base): New function.
2559         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
2560         qualified pointers use pt_solutions_same_restrict_base as
2561         additional source for disambiguation.
2562
2563 2009-06-29  Richard Guenther  <rguenther@suse.de>
2564
2565         PR middle-end/38212
2566         * alias.c (find_base_decl): Remove.
2567         (get_deref_alias_set_1): Remove restrict handling.
2568         * c-common.c (c_apply_type_quals_to_decl): Do not set
2569         DECL_POINTER_ALIAS_SET.
2570         * gimplify.c (find_single_pointer_decl_1): Remove.
2571         (find_single_pointer_decl): Likewise.
2572         (internal_get_tmp_var): Remove restrict handling.
2573         (gimple_regimplify_operands): Likewise.
2574         * omp-low.c (expand_omp_atomic_pipeline): Do not set
2575         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
2576         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
2577         * tree.c (restrict_base_for_decl): Remove.
2578         (init_ttree): Do not allocate it.
2579         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
2580         LABEL_DECL_UID for label decls.
2581         (copy_node_stat): Do not copy restrict information.
2582         (decl_restrict_base_lookup): Remove.
2583         (decl_restrict_base_insert): Likewise.
2584         (print_restrict_base_statistics): Likewise.
2585         (dump_tree_statistics): Do not call print_restrict_base_statistics.
2586         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
2587         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
2588         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
2589         (LABEL_DECL_UID): Adjust.
2590         (DECL_BASED_ON_RESTRICT_P): Remove.
2591         (DECL_GET_RESTRICT_BASE): Likewise.
2592         (SET_DECL_RESTRICT_BASE): Likewise.
2593         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
2594
2595         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
2596         instead of DECL_POINTER_ALIAS_SET.
2597         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2598         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
2599         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
2600
2601 2009-06-29  Richard Guenther  <rguenther@suse.de>
2602
2603         PR tree-optimization/40579
2604         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
2605         the IL to simplify has constants that overflowed.
2606
2607 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
2608
2609         PR tree-optimization/40550
2610         * tree-vect-generic.c (expand_vector_operations_1): Compute in
2611         vector_compute_type only when the size of vector_compute_type is
2612         less than the size of type.
2613
2614 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2615
2616         * fold-const.c (contains_label_1): Fix comments.
2617         (contains_label_p): Do not walk trees multiple time.
2618
2619 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2620
2621         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
2622         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
2623         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
2624         ix86_fp_comparison_operator.
2625         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
2626         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
2627         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
2628         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
2629         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
2630         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
2631         (related splits): Change predicate to ix86_fp_comparison_operator.
2632         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
2633         instead of ix86_fp_comparison_codes.
2634         (ix86_trivial_fp_comparison_operator,
2635         ix86_fp_comparison_operator): New.
2636         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
2637         (ix86_expand_compare): Eliminate last two parameters.
2638         (ix86_fp_jump_nontrivial_p): Kill.
2639         * config/i386/i386.c (put_condition_code): Eliminate call to
2640         ix86_fp_comparison_codes and subsequent assertion.
2641         (ix86_fp_comparison_codes): Eliminate.
2642         (ix86_fp_swap_condition): New.
2643         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
2644         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
2645         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
2646         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
2647         and ix86_fp_swap_condition.
2648         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
2649         Use ix86_fp_comparison_strategy.
2650         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
2651         (ix86_fp_jump_nontrivial_p): Eliminate.
2652         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
2653         call to ix86_expand_compare.
2654         (ix86_split_fp_branch, ix86_expand_setcc,
2655         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
2656         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
2657
2658 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2659
2660         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
2661         related to jump_clobbers.
2662         * config/arm/arm.md (conds): Remove jump_clob case.
2663         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
2664         splits): Change comparison_operator to arm_comparison_operator.
2665         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
2666         Eliminate.
2667
2668 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2669
2670         * dojump.c (do_compare_rtx_and_jump): Try swapping the
2671         condition for floating point modes.
2672         * expmed.c (emit_store_flag_1): Move here a bigger part
2673         of emit_store_flag.
2674         (emit_store_flag): Try swapping the condition for floating point
2675         modes.
2676         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
2677
2678 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2679
2680         * expr.c (expand_expr_real_1): Just use do_store_flag.
2681         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
2682         emit_store_flag_force.
2683         * expmed.c (emit_store_flag_force): Copy here trick
2684         previously in expand_expr_real_1.  Try reversing the comparison.
2685         (emit_store_flag_1): Work if target is NULL.
2686         (emit_store_flag): Work if target is NULL, using the result mode
2687         from the comparison.  Use split_comparison, restructure final part
2688         to simplify conditionals.
2689
2690 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2691
2692         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
2693         * dojump.c (do_jump): Change handling of floating-point
2694         ops to use just do_compare_and_jump.
2695         (split_comparison): New.
2696         (do_compare_rtx_and_jump): Add here logic coming previously
2697         in do_jump, using split_comparison.
2698
2699 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
2700
2701         PR target/40489
2702         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
2703
2704 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2705
2706         * tree-ssa-alias.c: Fix unintentional commit.
2707
2708 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2709
2710         * passes.c (execute_one_pass): Fix unintentional commit.
2711
2712 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2713
2714         * df-problems.c (df_set_seen, df_unset_seen): Delete.
2715         (df_rd_local_compute, df_md_local_compute): Inline them.
2716
2717         (df_md_scratch): New.
2718         (df_md_alloc, df_md_free): Allocate/free it.
2719         (df_md_local_compute): Only include live registers in init.
2720         (df_md_transfer_function): Prune the in-set computed by
2721         the confluence function, and the gen-set too.
2722
2723 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2724
2725         PR rtl-optimization/26854
2726         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
2727         * df-problems.c (df_rd_add_problem): Fix comment.
2728         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
2729         df_md_simulate_artificial_defs_at_top,
2730         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
2731         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
2732         df_md_transfer_function, df_md_init, df_md_confluence_0,
2733         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
2734         problem_MD, df_md_add_problem): New.
2735         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
2736         df_md_get_bb_info): New.
2737         (DF_LAST_PROBLEM_PLUS1): Adjust.
2738
2739         * Makefile.in (fwprop.o): Include domwalk.h.
2740         * fwprop.c: Include domwalk.h.
2741         (reg_defs, reg_defs_stack): New.
2742         (bitmap_only_bit_between): Remove.
2743         (process_defs): New.
2744         (process_uses): Use reg_defs and local_md instead of
2745         bitmap_only_bit_between and local_rd.
2746         (single_def_use_enter_block): New, from build_single_def_use_links.
2747         (single_def_use_leave_block): New.
2748         (build_single_def_use_links): Remove code moved to
2749         single_def_use_enter_block, invoke domwalk.
2750         (use_killed_between): Adjust comment.
2751
2752 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2753
2754         * bitmap.h (bitmap_ior_and_into): New.
2755         * bitmap.c (bitmap_ior_and_into): New.
2756
2757 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2758
2759         * domwalk.h (struct dom_walk_data): Remove all callbacks except
2760         before_dom_children_before_stmts and after_dom_children_after_stmts.
2761         Rename the two remaining callbacks to just before_dom_children and 
2762         after_dom_children. Remove other GIMPLE statement walking bits.
2763         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
2764         * graphite.c: Do not include domwalk.h.
2765         * tree-into-ssa.c (interesting_blocks): New global.
2766         (struct mark_def_sites_global_data): Remove it and names_to_rename.
2767         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
2768         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
2769         now that they're not domwalk callbacks.
2770         (rewrite_initialize_block): Rename to...
2771         (rewrite_enter_block): ... this, place after called functions.  Test
2772         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
2773         (rewrite_finalize_block): Rename to...
2774         (rewrite_leave_block): ... this, place after called functions.
2775         (rewrite_update_init_block): Rename to...
2776         (rewrite_update_enter_block): ... this, place after called functions.
2777         Test interesting_blocks, call rewrite_update_stmt and 
2778         rewrite_update_phi_arguments.
2779         (rewrite_update_fini_block): Rename to...
2780         (rewrite_leave_block): ... this, place after called functions.
2781         (rewrite_blocks): Remove last argument, simplify initialization of
2782         walk_data.
2783         (mark_def_sites_initialize_block): Rename to...
2784         (mark_def_sites_block): ... this, call mark_def_sites.
2785         (mark_def_sites_blocks): Remove argument, simplify initialization of
2786         walk_data.
2787         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
2788         (update_ssa): Likewise.
2789         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
2790         callback.
2791         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
2792         (dom_opt_initialize_block): Rename to...
2793         (dom_opt_enter_block): ... this, place after called functions.  Walk
2794         statements here, inline propagate_to_outgoing_edges.
2795         (dom_opt_finalize_block): Rename to...
2796         (dom_opt_leave_block): ... this, place after called functions.
2797         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
2798         domwalk callback.
2799         (dse_enter_block, dse_record_phi): New.
2800         (dse_record_phis): Delete.
2801         (dse_finalize_block): Rename to...
2802         (dse_leave_block): ... this.
2803         (tree_ssa_dse): Simplify initialization of walk_data.
2804         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
2805         Adjust initialization of walk_data.
2806         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
2807         * tree-ssa-loop-phiopt.c (get_non_trapping):
2808         Adjust initialization of walk_data.
2809         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
2810         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
2811         it's not a domwalk callback.
2812         (uncprop_initialize_block): Rename to...
2813         (dse_enter_block): ... this, call uncprop_into_successor_phis.
2814         (dse_finalize_block): Rename to...
2815         (dse_leave_block): ... this.
2816         (tree_ssa_uncprop): Simplify initialization of walk_data.
2817         * Makefile.in: Adjust dependencies.
2818
2819 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
2820
2821         * arm.md (casesi): Fix test for Thumb1.
2822         (thumb1_casesi_internal_pic): Likewise.
2823         (thumb1_casesi_dispatch): Likewise.
2824
2825 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
2826
2827         * config/arm/arm-cores.def: Added core cortex-m0.
2828         * config/arm/arm-tune.md: Regenerated.
2829         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
2830
2831 2009-06-26  DJ Delorie  <dj@redhat.com>
2832
2833         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
2834
2835         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
2836         the scheduler doesn't tag jump insns.
2837
2838 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2839
2840         * c-decl.c (merge_decls): Re-indent.
2841
2842 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
2843
2844         PR c/39902
2845         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
2846         Special-case decimal float constants.
2847
2848 2009-06-26  Richard Henderson  <rth@redhat.com>
2849
2850         * function.h (struct function): Add cannot_be_copied_reason,
2851         and cannot_be_copied_set.
2852         * tree-inline.c (has_label_address_in_static_1): Rename from
2853         inline_forbidden_p_2; don't set inline_forbidden_reason here.
2854         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
2855         don't set inline_forbidden_reason.
2856         (copy_forbidden): New function, split out of inline_forbidden_p.
2857         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
2858         (inline_forbidden_p): Use copy_forbidden.
2859         (tree_versionable_function_p): Likewise.
2860         (inlinable_function_p): Merge into tree_inlinable_function_p.
2861         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
2862         * ipa-cp.c (ipcp_versionable_function_p): New function.
2863         (ipcp_cloning_candidate_p): Use it.
2864         (ipcp_node_modifiable_p): Likewise.
2865
2866 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
2867
2868         * builtins.c (expand_builtin_alloca): Handle builtin alloca
2869         that is marked not to be inlined. Remove flag_mudflap use.
2870         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
2871         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
2872
2873 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
2874
2875         PR bootstrap/40338
2876         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
2877         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
2878
2879 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
2880
2881         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
2882         shared libgcc.
2883         (__mingwthr_remove_key_dtor): Likewise.
2884
2885 2009-06-26  Richard Guenther  <rguenther@suse.de>
2886
2887         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
2888
2889 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2890
2891         PR middle-end/40525
2892         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
2893         try the non-cond_exec path also.
2894
2895 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2896
2897         PR target/40468
2898         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
2899         (output_cbranch): Use new functions.
2900         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
2901         Likewise.
2902
2903 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2904             Pat Haugen  <pthaugen@us.ibm.com>
2905             Revital Eres <ERES@il.ibm.com>
2906
2907         * config/rs6000/rs6000.c (print_operand): Correct lossage message
2908         for %c error.  Add %x support to print VSX registers as a unified
2909         register set, instead of separate float and altivec registers.
2910         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
2911         %y case, and add support for VSX pre-modify addresses.
2912         (output_toc): Add assert for CONST containing an integer constant
2913         in the PLUS case.
2914         (rs6000_adjust_cost): Add POWER7 support.
2915         (insn_must_be_first_in_group): Ditto.
2916         (insn_must_be_last_in_group): Ditto.
2917         (rs6000_emit_popcount): Ditto.
2918         (rs6000_vector_mode_supported_p): Ditto.
2919
2920         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
2921         Change some of the functions called by macros to being called
2922         through a pointer, so debug functions can be inserted if
2923         -mdebug=addr or -mdebug=cost. 
2924         (rs6000_preferred_reload_class_ptr): Ditto.
2925         (rs6000_secondary_reload_class_ptr): Ditto.
2926         (rs6000_secondary_memory_needed_ptr): Ditto.
2927         (rs6000_cannot_change_mode_class_ptr): Ditto.
2928         (rs6000_secondary_reload_inner): Ditto.
2929         (rs6000_legitimize_reload_address): Ditto.
2930         (rs6000_legitimize_reload_address_ptr): Ditto.
2931         (rs6000_mode_dependent_address): Ditto.
2932         (rs6000_mode_dependent_address_ptr): Ditto.
2933
2934         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
2935         function to return true if the mode allows reg + integer
2936         addresses.
2937         (virtual_stack_registers_memory_p): New function to return true if
2938         the address refers to a virtual stack register.
2939         (rs6000_legitimate_offset_address_p): Move code to say whether a
2940         mode supports reg+int addressing to reg_offset_addressing_ok_p and
2941         call it.
2942         (rs6000_legitimate_address_p): Add checks for modes that only can
2943         do reg+reg addressing.  Start adding VSX support.
2944         (rs6000_legitimize_reload_address): Ditto.
2945         (rs6000_legitimize_address): Ditto.
2946         (rs6000_debug_legitimate_address_p): New debug functions for
2947         -mdebug=addr and -mdebug=cost.
2948         (rs6000_debug_rtx_costs): Ditto.
2949         (rs6000_debug_address_costs): Ditto.
2950         (rs6000_debug_adjust_cost): Ditto.
2951         (rs6000_debug_legitimize_address): Ditto.
2952         (rs6000_legitimize_reload_address_ptr): Point to call normal
2953         function or debug function.  Make functions called via pointer
2954         static.
2955         (rs6000_mode_dependent_address_ptr): Ditto.
2956         (rs6000_secondary_reload_class_ptr): Ditto.
2957         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
2958         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
2959         into a friendlier error.
2960         (rs6000_init_builtins): Add initial VSX support.
2961         (rs6000_adjust_cost): Fix some spacing issues.
2962
2963         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
2964         (REG_CLASS_NAMES): Ditto.
2965         (REG_CLASS_CONTENTS): Ditto.
2966         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
2967         pointer, to add -mdebug=addr support.
2968         (CANNOT_CHANGE_MODE_CLASS): Ditto.
2969         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
2970         -mdebug=addr support.
2971         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
2972         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
2973         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
2974
2975         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
2976         16-bit values.
2977         (bswapsi*): Set attribute types for load/store.  Add combiner
2978         patterns to eliminate zero extend on 64-bit.
2979         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
2980         stdbrx if the hardware supports those instructions.
2981
2982 2009-06-25  Ian Lance Taylor  <iant@google.com>
2983
2984         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
2985         (Link Options): Document -static-libstdc++.
2986
2987 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2988
2989         PR target/38731
2990         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
2991         DATA_ALIGNMENT instead.
2992
2993 2009-06-25  Richard Guenther  <rguenther@suse.de>
2994
2995         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
2996         indirect references against the callused/escaped solutions.
2997         (call_may_clobber_ref_p_1): Likewise.
2998
2999 2009-06-25  Martin Jambor  <mjambor@suse.cz>
3000
3001         PR tree-optimization/40493
3002         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
3003         (enum unscalarized_data_handling): New type.
3004         (handle_unscalarized_data_in_subtree): Return what has been done.
3005         (load_assign_lhs_subreplacements): Handle left flushes differently.
3006         (sra_modify_assign): Use unscalarized_data_handling, simplified
3007         condition determining whether to remove the statement.
3008
3009 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3010
3011         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
3012         excerpt - @ should be doubled for texinfo.
3013
3014 2009-06-24  Ian Lance Taylor  <iant@google.com>
3015
3016         * config/arc/arc.c: Include "df.h".
3017         (arc_attribute_table): Make static.  Move higher in file.
3018         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
3019         (output_shift): Initialize n later to avoid warning.
3020         * config/arm/arm.c (arm_attribute_table): Make static.  Move
3021         higher in file.
3022         * config/avr/avr.c (avr_attribute_table): Make static.  Move
3023         higher in file.
3024         (reg_class_tab): Change array type from int to enum reg_class.
3025         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
3026         LABEL_REF.
3027         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
3028         (lshrhi3_out): Likewise.
3029         (class_likely_spilled_p): Change return type to bool.
3030         (avr_rtx_costs): Use local code variable with enum type.
3031         * config/avr/avr.md (movmemhi): Use add_reg_note.
3032         (andhi3, andsi3): Don't use AS2 with "and".
3033         (iorhi3, iorsi3): Don't use AS2 with "or".
3034         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
3035         * config/crx/crx.c: Include "df.h".
3036         (crx_attribute_table): Make static.
3037         * config/m32r/m32r.c: Include "df.h".
3038         (m32r_attribute_table): Make static.  Move higher in file.
3039         (pop): Use add_reg_note.
3040         (block_move_call): Change 0 to LCT_NORMAL in function call.
3041         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
3042         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
3043         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
3044         declare, not just when TREE_CODE is defined.
3045         * config/m68hc11/m68hc11.c: Include "expr.h".
3046         (m68hc11_attribute_table): Make static.  Move higher in file.
3047         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
3048         function call.
3049         (m68hc11_register_indirect_p): Likewise.
3050         (m68hc11_function_arg_padding): Change return type to enum
3051         direction.
3052         (emit_move_after_reload): Use add_reg_note.
3053         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
3054         (m68hc11_split_logical): Likewise.
3055         (m68hc11_rtx_costs): Add local code_and outer_code variables with
3056         enum type.
3057         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
3058         to VOIDmode in function call.
3059         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
3060         tree is defined.
3061         (m68hc11_split_logical): Update declaration.
3062         (m68hc11_function_arg_padding): Update declaration.
3063         * config/mcore/mcore.c (regno_reg_class): Change form array of int
3064         to array of enum reg_class.
3065         (mcore_attribute_table): Make static.  Move higher in file.
3066         (mcore_rtx_costs): Add cast to enum type.
3067         * config/mcore/mcore.h (regno_reg_class): Update declaration.
3068         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
3069         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
3070         in file.
3071         * config/sh/predicates.md (trapping_target_operand): Rename and to
3072         and_expr.
3073         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
3074         higher in file.
3075         * config/spu/spu.c (spu_attribute_table): Make static.  Move
3076         higher in file.
3077         * config/v850/v850.c (v850_attribute_table): Make static.  Move
3078         higher in file.
3079         (v850_rtx_costs): Use local code with enum type.
3080         (expand_epilogue): Add cast.
3081         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
3082
3083 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
3084
3085         PR target/40515
3086         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
3087         -m2a-single-only and -m2a-nofpu.
3088         * config/sh/sh.opt: Document m2a generates FPU code.  
3089
3090 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
3091
3092         * defaults.h (CAN_ELIMINATE): Provide default.
3093         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
3094         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
3095         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
3096         * config/spu/spu.h (CAN_ELIMINATE): Delete.
3097         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
3098         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
3099         * config/cris/cris.h (CAN_ELIMINATE): Delete.
3100         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
3101         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
3102         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
3103
3104 2009-06-24  DJ Delorie  <dj@redhat.com>
3105
3106         * mep-ext-cop.cpu: Fix copyright notice.
3107         * mep-default: Fix copyright notice.
3108         * mep-core: Fix copyright notice.
3109         * mep: Fix copyright notice.
3110         * mep-ivc2: Fix copyright notice.
3111         * mep-c5: Fix copyright notice.
3112
3113 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
3114
3115         * doc/contrib.texi (Contributors): 
3116
3117 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3118         
3119         PR middle-end/40501
3120         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
3121         src and dst operands if necessary.
3122
3123 2009-06-23  DJ Delorie  <dj@redhat.com>
3124
3125         Add MeP port.
3126         * config.gcc: Add mep support.
3127         * recog.c: Resurrect validate_replace_rtx_subexp().
3128         * recog.h: Likewise.
3129         * config/mep/: Add new port:
3130         * config/mep/constraints.md: New file.
3131         * config/mep/default.h: New file.
3132         * config/mep/intrinsics.h: New file.
3133         * config/mep/intrinsics.md: New file.
3134         * config/mep/ivc2-template.h: New file.
3135         * config/mep/mep-c5.cpu: New file.
3136         * config/mep/mep-core.cpu: New file.
3137         * config/mep/mep-default.cpu: New file.
3138         * config/mep/mep-ext-cop.cpu: New file.
3139         * config/mep/mep-intrin.h: New file.
3140         * config/mep/mep-ivc2.cpu: New file.
3141         * config/mep/mep-lib1.asm: New file.
3142         * config/mep/mep-lib2.c: New file.
3143         * config/mep/mep-pragma.c: New file.
3144         * config/mep/mep-protos.h: New file.
3145         * config/mep/mep-tramp.c: New file.
3146         * config/mep/mep.c: New file.
3147         * config/mep/mep.cpu: New file.
3148         * config/mep/mep.h: New file.
3149         * config/mep/mep.md: New file.
3150         * config/mep/mep.opt: New file.
3151         * config/mep/predicates.md: New file.
3152         * config/mep/t-mep: New file.
3153
3154 2009-06-23  Ian Lance Taylor  <iant@google.com>
3155
3156         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
3157         from loose_warn into c_loose_warn and from strict_warn into
3158         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
3159         --enable-build-with-cxx.  Set and substitute
3160         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
3161         * Makefile.in (CXXFLAGS): New variable.
3162         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
3163         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
3164         the default is the same as $(STRICT_WARN).
3165         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
3166         (CXX): New variable.
3167         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
3168         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
3169         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
3170         (HOST_LIBS): New variable.
3171         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
3172         (ALL_CXXFLAGS): New variable.
3173         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
3174         * doc/install.texi (Configuration): Document
3175         --enable-build-with-cxx, --with-stage1-ldflags,
3176         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
3177         * configure: Rebuild.
3178
3179 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3180
3181         * config/arm/arm.c (arm_override_options): Fix braces and formatting
3182         from previous commit.
3183
3184 2009-06-23  Ian Lance Taylor  <iant@google.com>
3185
3186         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
3187
3188 2009-06-23  Ian Lance Taylor  <iant@google.com>
3189
3190         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
3191         with ATTRIBUTE_UNUSED.
3192
3193 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3194             Pat Haugen  <pthaugen@us.ibm.com>
3195             Revital Eres  <eres@il.ibm.com>
3196
3197         * config.in (HAVE_AS_POPCNTD): Add default definition.
3198         (HAVE_AS_LWSYNC): Ditto.
3199
3200         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
3201         release number.
3202         (gcc_cv_as_powerpc_cmpb): Ditto.
3203         (gcc_cv_as_powerpc_dfp): Ditto.
3204         (gcc_cv_as_powerpc_vsx): Ditto.
3205         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
3206         supporting the popcntd/lwsync instructions.
3207         (gcc_cv_as_powerpc_lwsync): Ditto.
3208         * configure: Regenerate.
3209
3210         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
3211         -mcpu=native and -mcpu=power7.
3212         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3213
3214         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
3215         a variable instead of a mask to reduce the number of mask bits.
3216         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3217         (-mbit-word): Ditto.
3218         (-mregnames): Ditto.
3219         * config/rs6000/rs6000.opt (-mupdate): Ditto.
3220         (-mfused-madd): Ditto.
3221
3222         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
3223         2.06 instructions.
3224         (-mvsx): New switch for VSX instructions.
3225         (-misel): Move from a variable to a mask to allow it to be set by
3226         -mcpu=.
3227
3228         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
3229         function declaration to an array declaration.
3230         (rs6000_hard_regno_nregs): New external array declaration.
3231
3232         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
3233         files included by rs6000.md.
3234
3235         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3236         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
3237
3238         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
3239         a target mask.
3240         (rs6000_debug_reg): New -mdebug= variables.
3241         (rs6000_debug_addr): Ditto.
3242         (rs6000_debug_cost): Ditto.
3243         (rs6000_pmode): New variable to hold Pmode.
3244         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
3245         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
3246         calculated at compiler start.
3247         (rs6000_hard_regno_nregs): Change function to an array which holds
3248         HARD_REGNO_NREGS calculated at compiler start.
3249         (rs6000_explicit_options): Delete isel field.
3250         (rs6000_vector_unit): New array to hold which vector unit
3251         supports arithmetic options for a given type.
3252         (rs6000_vector_mem): New array to hold which vector unit supports
3253         memory reference operations for a given type.
3254         (rs6000_vector_align): New array to given the alignment of each
3255         vector type.
3256         (power7_cost): New basic costs for power7.
3257         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
3258         (rs6000_hard_regno_nregs_internal): New function, moved from
3259         HARD_REGNO_NREGS, to calculate the number of registers each hard
3260         register takes for each type.
3261         (rs6000_debug_reg_print): New function for -mdebug=reg support.
3262         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
3263         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
3264         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
3265         unit information here so it is calculated once at compiler startup
3266         time.
3267         (rs6000_override_options): Make -misel a target mask.  Add more
3268         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
3269         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
3270         -mdebug=cost.
3271         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
3272         (rs6000_handle_option): Move -misel from variable to target mask.
3273         (rs6000_builtin_mask_for_load): Add VSX support.
3274         (rs6000_conditional_register_usage): Ditto.
3275         (USE_ALTIVEC_FOR_ARG_P): Ditto.
3276         (function_arg_boundary): Ditto.
3277         (rs6000_expand_builtin): Ditto.
3278         (def_builtin): Make abort message a little friendlier.
3279         (rs6000_emit_int_cmove): Add support for 64-bit isel.
3280
3281         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
3282         assembler support the popcntd instruction instead of a vsx
3283         instruction to enable power7 support.
3284         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
3285         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
3286         option to the assembler if -mcpu=native.
3287         (ASM_CPU_NATIVE_SPEC): Ditto.
3288         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
3289         ISA 2.06 features.
3290         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
3291         the lwsync instruction.
3292         (enum processor_type): Add PROCESSOR_POWER7.
3293         (rs6000_debug_reg): New -mdebug= options.
3294         (rs6000_debug_addr): Ditto.
3295         (rs6000_debug_cost): Ditto.
3296         (rs6000_isel): Delete.
3297         (enum rs6000_vector): New enum to say what vector unit we have.
3298         (VECTOR_UNIT_*): New macros to say which vector unit has
3299         arithmetic operations for a given type.
3300         (VECTOR_MEM_*): New macros to say which vector unit has memory
3301         operations for a given type.
3302         (TARGET_LDBRX): Whether the machine supports the ldbrx
3303         instruction.
3304         (TARGET_ISEL): Delete, -misel moved to be a mask.
3305         (TARGET_ISEL64): New macro for 64-bit isel support.
3306         (UNITS_PER_VSX_WORD): New macro.
3307         (POINTER_SIZE): Move to be an external variable, rather than
3308         calculating whether we are generating 32 ot 64-bit code.
3309         (Pmode): Ditto.
3310         (STACK_BOUNDARY): Add VSX support.
3311         (LOCAL_ALIGNMENT): Ditto.
3312         (SLOW_UNALIGNED_ACCESS): Ditto.
3313         (VSX_REGNO_P): New macro for VSX support.
3314         (VFLOAT_REGNO_P): Ditto.
3315         (VINT_REGNO_P): Ditto.
3316         (VLOGICAL_REGNO_P): Ditto.
3317         (VSX_VECTOR_MODE): Ditto.
3318         (VSX_SCALAR_MODE): Ditto.
3319         (VSX_MODE): Ditto.
3320         (VSX_MOVE_MODE): Ditto.
3321         (VSX_REG_CLASS_P): Ditto.
3322         (HARD_REGNO_NREGS): Instead of calling a function, use an array
3323         lookup.
3324         (UNITS_PER_SIMD_WORD): Add VSX support.
3325         (MODES_TIEABLE_P): Ditto.
3326         (STARTING_FRAME_OFFSET): Ditto.
3327         (STACK_DYNAMIC_OFFSET): Ditto.
3328         (EPILOGUE_USES): Ditto.
3329         (REGNO_REG_CLASS): Move to array lookup.
3330         (CLASS_MAX_NREGS): Ditto.
3331         (rs6000_vector_reg_class): Add declaration.
3332         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
3333         overlap with the floating point and Altivec registers.
3334
3335         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
3336
3337         * config/rs6000/driver-rs6000.c (asm_names): New static array to
3338         give the appropriate asm switches if -mcpu=native.
3339         (host_detect_local_cpu): Add support for "asm".
3340         (host_detect_local_cpu): Follow GNU code guidelines for name.
3341
3342         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
3343         -mbit-word to a variable instead of being a target mask.
3344
3345         * config/rs6000/sync.md (lwsync): If the assembler supports it,
3346         emit the lwsync instruction instead of emitting the instruction as
3347         an integer constant.
3348
3349         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
3350         fixuns_trundfsi2, move expander into rs6000.md.
3351
3352         * config/rs6000/rs6000.md (cpu): Add power7.
3353         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
3354         (logical predicate patterns): Change the single instruction
3355         primitives that set CR0 to be fast_compare instead of compare.
3356         (norsi*): Ditto.
3357         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
3358         (popcntddi2): Ditto.
3359         (popcount<mode>): Ditto.
3360         (floating multiply/add insns): Name the floating point
3361         multiply/add insns.
3362         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
3363         (isel_unsigned_<mode>): Ditto.
3364         (fixuns_trundfsi2): Move expander here from spe.md.
3365         (smindi3): Define if we have -misel on 64-bit systems.
3366         (smaxdi3): Ditto.
3367         (umindi3): Ditto.
3368         (umaxdi3): Ditto.
3369
3370 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
3371
3372         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
3373         extra_objs.
3374         * config/avr/avr.c (avr_current_device): New variable.
3375         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
3376         (avr_arch, mcu_type_s): Move to avr.h.
3377         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
3378         default_data_section_start fields.
3379         (avr_arch): Moved from avr.c.
3380         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
3381         library_name fields.
3382         (avr_current_device, avr_mcu_types, avr_arch_types,
3383         avr_device_to_arch, avr_device_to_data_start,
3384         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
3385         (EXTRA_SPEC_FUNCTIONS): Define.
3386         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
3387         options mapping. Use device_to_arch and device_to_data_start insted.
3388         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
3389         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
3390         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
3391         * config/avr/driver-avr.c: New file.
3392         * config/avr/avr-devices.c: New file.
3393
3394 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
3395
3396         * var-tracking.c (unshare_variable): Force initialized to
3397         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
3398         (set_variable_part): Likewise.
3399         (struct variable_union_info): Remove pos_src field.
3400         (vui_vec, vui_allocated): New variables.
3401         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
3402         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
3403         == 1 use a simpler sorting algorithm.  Compute pos field right
3404         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
3405         Avoid quadratic comparison if !flag_var_tracking_uninit.
3406         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
3407         unshare_variable unconditionally.   
3408         (dataflow_set_different_2): Removed.
3409         (dataflow_set_different): Don't traverse second hash table.
3410         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
3411         unconditionally to var_reg_set or var_mem_set.