OSDN Git Service

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